stat-size: comment fix
[gnulib.git] / ChangeLog
1 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
2
3         stat-size: comment fix
4         * lib/stat-size.h: Remove obsolete comment about indenting.
5
6 2012-05-06  Bruno Haible  <bruno@clisp.org>
7
8         Tests for module 'sh-quote'.
9         * modules/sh-quote-tests: New file.
10         * tests/test-sh-quote.c: New file.
11
12 2012-05-06  Bruno Haible  <bruno@clisp.org>
13
14         sh-quote: Improve shell_quote_argv's signature.
15         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
16         * lib/sh-quote.c (shell_quote_argv): Likewise.
17
18 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
19
20         stdint: document issues with int_fast8_t etc.
21         * doc/posix-headers/stdint.texi (stdint.h): Say that other
22         stdint.h substitutes may define these types differently.  See
23         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
24
25 2012-05-05  Bruno Haible  <bruno@clisp.org>
26
27         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
28         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
29         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
30         or 'guessing no (mishandles large arguments)'.
31
32 2012-05-05  Bruno Haible  <bruno@clisp.org>
33
34         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
35         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
36         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
37         set gl_cv_func_link_follows_symlink to "guessing no".
38
39 2012-05-05  Bruno Haible  <bruno@clisp.org>
40
41         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
42         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
43         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
44         "guessing no".
45         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
46
47 2012-05-05  Bruno Haible  <bruno@clisp.org>
48
49         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
50         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
51         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
52         set gl_cv_struct_dirent_d_ino to "guessing yes".
53
54 2012-05-05  Bruno Haible  <bruno@clisp.org>
55
56         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
57         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
58         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
59         "guessing yes".
60
61 2012-05-05  Bruno Haible  <bruno@clisp.org>
62
63         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
64         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
65         compiling to a glibc system, set gl_cv_func_signbit and
66         gl_cv_func_signbit_gcc to "guessing yes".
67
68 2012-05-05  Bruno Haible  <bruno@clisp.org>
69
70         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
71         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
72         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
73         to "guessing yes".
74         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
75         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
76
77 2012-05-05  Bruno Haible  <bruno@clisp.org>
78
79         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
80         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
81         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
82         gl_cv_func_realpath_works to "guessing yes".
83
84 2012-05-05  Bruno Haible  <bruno@clisp.org>
85
86         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
87         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
88         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
89
90 2012-05-04  Bruno Haible  <bruno@clisp.org>
91
92         Tweak last commit.
93         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
94         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
95
96 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
97
98         unistd_h: make it easier to avoid sys_types_h
99         This is useful for Emacs, which has its own method of porting to
100         Windows, and which therefore does not need the sys_types_h module.
101         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
102         code moved here from gl_SYS_TYPES_H.
103         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
104         using the code directly.
105         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
106         gl_SYS_TYPES_H.
107         * modules/sys_types (Files):
108         * modules/unistd (Files): Add m4/off_t.m4.
109
110 2012-05-03  Bruno Haible  <bruno@clisp.org>
111
112         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
113         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
114         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
115         "guessing yes" or "guessing no".
116         (gl_FUNC_LSTAT): Update.
117         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
118         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
119         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
120
121 2012-05-03  Bruno Haible  <bruno@clisp.org>
122
123         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
124         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
125         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
126         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
127         cross-compiling, choose the first alternative on glibc systems.
128         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
129
130 2012-05-03  Bruno Haible  <bruno@clisp.org>
131
132         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
133         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
134         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
135
136 2012-05-03  Bruno Haible  <bruno@clisp.org>
137
138         chown: Avoid "guessing no" when cross-compiling to glibc systems.
139         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
140
141 2012-05-03  Bruno Haible  <bruno@clisp.org>
142
143         Avoid "guessing no" guesses when cross-compiling to glibc systems.
144         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
145         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
146         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
147         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
148         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
149         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
150         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
151         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
152         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
153         compiling to glibc systems, set gl_cv_func_chown_slash_works,
154         gl_cv_func_chown_ctime_works to "guessing yes".
155         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
156         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
157         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
158         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
159         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
160         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
161         compiling to glibc systems, set gl_cv_func_open_directory_works to
162         "guessing yes".
163         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
164         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
165         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
166         "guessing yes".
167         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
168         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
169         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
170         compiling to glibc systems, set gl_cv_func_floorf_ieee to
171         "guessing yes".
172         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
173         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
174         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
175         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
176         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
177         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
178         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
179         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
180         "guessing yes".
181         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
182         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
183         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
184         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
185         "guessing yes".
186         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
187         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
188         "guessing yes".
189         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
190         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
191         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
192         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
193         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
194         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
195         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
196         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
197         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
198         compiling to glibc systems, set gl_cv_func_log10f_ieee to
199         "guessing yes".
200         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
201         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
202         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
203         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
204         "guessing yes".
205         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
206         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
207         "guessing yes".
208         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
209         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
210         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
211         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
212         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
213         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
214         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
215         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
216         compiling to glibc systems, set gl_cv_func_mkfifo_works to
217         "guessing yes".
218         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
219         compiling to glibc systems, set gl_cv_func_mknod_works to
220         "guessing yes".
221         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
222         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
223         "guessing yes".
224         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
225         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
226         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
227         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
228         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
229         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
230         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
231         compiling to glibc systems, set gl_cv_func_svid_putenv to
232         "guessing yes".
233         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
234         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
235         "guessing yes".
236         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
237         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
238         "guessing yes".
239         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
240         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
241         to "guessing yes".
242         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
243         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
244         to "guessing yes".
245         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
246         compiling to glibc systems, set gl_cv_func_rmdir_works to
247         "guessing yes".
248         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
249         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
250         gl_cv_func_unlink_parent_fails to "guessing yes".
251         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
252         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
253         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
254         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
255         gl_cv_func_rename_dest_works to "guessing yes".
256         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
257         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
258         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
259         compiling to glibc systems, set gl_cv_func_roundf_ieee to
260         "guessing yes".
261         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
262         compiling to glibc systems, set gl_cv_func_roundl_ieee to
263         "guessing yes".
264         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
265         compiling to glibc systems, set gl_cv_func_setenv_works to
266         "guessing yes".
267         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
268         compiling to glibc systems, set gl_cv_func_unsetenv_works to
269         "guessing yes".
270         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
271         compiling to glibc systems, set gl_cv_func_sleep_works to
272         "guessing yes".
273         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
274         compiling to glibc systems, set gl_cv_func_stat_file_slash to
275         "guessing yes".
276         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
277         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
278         "guessing yes".
279         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
280         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
281         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
282         compiling to glibc systems, set gl_cv_func_truncf_ieee to
283         "guessing yes".
284         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
285         compiling to glibc systems, set gl_cv_func_truncl_ieee to
286         "guessing yes".
287         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
288         compiling to glibc systems, set gl_cv_func_usleep_works to
289         "guessing yes".
290         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
291         compiling to glibc systems, set gl_cv_func_futimesat_works to
292         "guessing yes".
293
294 2012-05-03  Bruno Haible  <bruno@clisp.org>
295
296         Say "guessing yes" or "guessing no" when cross-compiling.
297         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
298         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
299         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
300         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
301         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
302         am_cv_func_working_getline to "guessing yes" or "guessing no".
303         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
304         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
305         (gl_FUNC_MEMMEM): When cross-compiling, set
306         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
307         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
308         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
309         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
310         set gl_cv_func_strcasestr_works_always to "guessing yes" or
311         "guessing no".
312         (gl_FUNC_STRCASESTR): When cross-compiling, set
313         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
314         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
315         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
316         (gl_FUNC_STRSTR): When cross-compiling, set
317         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
318         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
319         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
320         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
321         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
322
323 2012-05-01  Bruno Haible  <bruno@clisp.org>
324
325         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
326         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
327         * build-aux/reloc-ldflags: Likewise.
328         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
329
330 2012-05-01  Bruno Haible  <bruno@clisp.org>
331
332         gnulib-tool: Remove transitional code.
333         * gnulib-tool: Don't warn about --import with 0 arguments any more.
334         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
335
336 2012-05-01  Bruno Haible  <bruno@clisp.org>
337
338         getcwd: Fix misindentation.
339         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
340
341 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
342
343         exclude: process exclude and include directives in order
344         This restores the pre-2009 behavior, and is part of a fix of a
345         grep bug reported by Quentin Arce in
346         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
347         * lib/exclude.c (struct exclude): Remove 'tail' member.
348         (new_exclude_segment): Prepend the new segment instead of appending.
349         Return void, since that's now more convenient.
350         (file_pattern_matches): Renamed from excluded_file_pattern_p.
351         (file_name_matches): Renamed from excluded_file_name_p.
352         (file_pattern_matches, file_name_matches):
353         Return true if the pattern matches, not if it excludes.
354         All callers changed.
355         (excluded_file_name): Process the list in reverse order;
356         since the list is now reversed this restores the pre-2009 behavior.
357         (add_exclude): Adjust to new reversed-order list.  Use local var
358         rather than macro, for clarity.
359         * tests/test-exclude7.sh: Adjust to corrected behavior.
360
361         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
362         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
363         it's not possible here.  Handle the case of \ at end of pattern
364         without dumping core.
365         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
366
367         _Noreturn: future-proof non-GNU and non-MSVC compilers
368         * build-aux/snippet/_Noreturn.h (_Noreturn):
369         * m4/gnulib-common.m4 (gl_COMMON_BODY):
370         Do not define _Noreturn if __STDC_VERSION__ indicates this is
371         C11 or later.  This is more likely to work with random future C
372         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
373         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
374
375         exclude: handle wildcards with FNM_EXTMATCH
376         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
377         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
378         comment that "has wildcards" really means "has or may have
379         wildcards".  Simplify by avoiding the need to call strcspn.
380
381 2012-04-29  Bruno Haible  <bruno@clisp.org>
382
383         gnulib-tool: Fix list of authors.
384         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
385
386 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
387
388         bootstrap: support Automake-NG in $buildreq
389         * bootstrap (check_versions): Handle automake and aclocal from
390         Automake-NG specially.  They can be specified as respectively
391         the "automake-ng" and "aclocal-ng" requirements.
392
393 2012-04-25  Eric Blake  <eblake@redhat.com>
394
395         bootstrap: only force latest Makefile.in.in for gettext module
396         * build-aux/bootstrap (with_gettext): Only install latest
397         Makefile.in.in for projects requesting bleeding edge gettext.
398
399 2012-04-22  Bruno Haible  <bruno@clisp.org>
400
401         doc: Mention reason for replacement on glibc/Linux systems.
402         * doc/posix-functions/dprintf.texi: Mention the problem with special
403         'long double' values.
404         * doc/posix-functions/fprintf.texi: Likewise.
405         * doc/posix-functions/printf.texi: Likewise.
406         * doc/posix-functions/snprintf.texi: Likewise.
407         * doc/posix-functions/sprintf.texi: Likewise.
408         * doc/posix-functions/vdprintf.texi: Likewise.
409         * doc/posix-functions/vfprintf.texi: Likewise.
410         * doc/posix-functions/vprintf.texi: Likewise.
411         * doc/posix-functions/vsnprintf.texi: Likewise.
412         * doc/posix-functions/vsprintf.texi: Likewise.
413         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
414         platforms with F_DUPFD_CLOEXEC problems.
415         * doc/posix-functions/glob.texi: Mention which platforms are affected
416         by the problem with symbolic links.
417         * doc/posix-functions/linkat.texi: Mention the problem with
418         AT_SYMLINK_FOLLOW on Linux.
419
420 2012-04-22  Bruno Haible  <bruno@clisp.org>
421
422         pwrite: Don't replace on all platforms.
423         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
424
425 2012-04-22  Bruno Haible  <bruno@clisp.org>
426
427         rint* tests: Avoid gcc warnings.
428         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
429         * tests/test-rintf.c (INFINITY, NAN): Likewise.
430         * tests/test-rintl.c (INFINITY, NAN): Likewise.
431
432 2012-04-21  Bruno Haible  <bruno@clisp.org>
433
434         users.txt: Update.
435         * users.txt: Add freedink, wdiff. Update URLs for projects that have
436         switched from CVS to git, bzr, or svn.
437
438 2012-04-21  Bruno Haible  <bruno@clisp.org>
439
440         Large File Support for native Windows platforms.
441
442         * m4/largefile.m4 (gl_LARGEFILE): New macro.
443         * modules/largefile (configure.ac): Require gl_LARGEFILE.
444
445         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
446         type.
447         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
448         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
449         * doc/posix-headers/sys_types.texi: Mention the effect of the
450         'largefile' module.
451
452         * lib/fcntl.in.h: Add comments about off_t.
453         * modules/fcntl-h (Depends-on): Add sys_types.
454
455         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
456         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
457         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
458         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
459         * modules/unistd (Depends-on): Add sys_types.
460         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
461
462         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
463         instead of lseek.
464         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
465         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
466         * modules/lseek (Depends-on): Add sys_types.
467
468         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
469         msvc-nothrow.h.
470         (SetFileSize): New function.
471         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
472         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
473         if Large File Support is requested.
474         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
475         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
476
477         * lib/stdio.in.h: Add comments about off_t.
478         * modules/stdio (Depends-on): Add sys_types.
479
480         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
481         instead of ftello.
482         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
483         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
484         (gl_PREREQ_FTELLO): New macro.
485         * modules/ftello (Depends-on): Add sys_types.
486         (configure.ac): Incoke gl_PREREQ_FTELLO.
487
488         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
489         instead of fseeko.
490         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
491         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
492         (gl_PREREQ_FSEEKO): New macro.
493         * modules/fseeko (Depends-on): Add sys_types.
494         (configure.ac): Invoke gl_PREREQ_FSEEKO.
495
496         * lib/sys_stat.in.h: Add comments about off_t.
497         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
498         64-bit integer for st_size in 'struct stat'.
499         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
500         Define _GL_WINDOWS_64_BIT_ST_SIZE.
501         * modules/sys_stat (Depends-on): Add sys_types.
502         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
503
504         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
505         instead of stat or _stat.
506
507         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
508         'struct _stati64' instead of fstat and 'struct stat'.
509         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
510         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
511
512         Reported by Ray Satiro <raysatiro@yahoo.com>.
513
514 2012-04-19  Eric Blake  <eblake@redhat.com>
515
516         bootstrap: accommodate older libtool
517         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
518         Reported by Daniel P. Berrange.
519
520 2012-04-19  Jim Meyering  <meyering@redhat.com>
521
522         announce-gen: avoid failure due to lack of Digest::SHA1
523         Even with the preferred Digest::SHA available, this script
524         would fail when the backup module, Digest::SHA1, was not installed.
525         * build-aux/announce-gen: Quote the conditional use of "use".
526         Reported by Reuben Thomas in:
527         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
528
529         bootstrap: don't let a user's CDPATH setting affect this script
530         When CDPATH is set, cd will sometimes generate output.
531         When "cd" is run in a subshell whose output matters, that
532         surprising-to-some output can cause malfunction.
533         Unsetting CDPATH turns off this shell "feature."
534         * build-aux/bootstrap (CDPATH): Unset.
535         Reported by Reuben Thomas in:
536         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
537         and inspired by his patch here:
538         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
539
540 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
541         and Jim Meyering  <meyering@redhat.com>
542
543         maint.mk: catch "see @xref{}" and similar
544         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
545         prohibit "See also @xref{", "Also see @pxref{", and similar.
546
547 2012-04-16  Jim Meyering  <meyering@redhat.com>
548
549         bootstrap: really use gnulib's po/Makefile.in.in
550         * build-aux/bootstrap: Correct the source file name in previous change.
551         Reported by Akim Demaille.
552
553         configmake: correct minor inconsistency in Makefile rule
554         * modules/configmake (Makefile.am): All other rules like this one
555         run the final "mv -f ..." in the same backslash-continued command
556         as the one that does everything else.  This one put the mv -f ...
557         command on a separate, non-backslash-continued line.
558         Make it like the others.
559
560         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
561         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
562         the one from gettext.  Reported by Akim Demaille.
563
564 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
565
566         Fix recursion of install-* into po directories.
567         Bison's install-pdf bug reported by Hans Aberg at
568         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
569         * build-aux/po/Makefile.in.in (install-dvi, install-html)
570         (install-info, install-pdf, install-ps): New targets.
571
572 2012-04-16  Jim Meyering  <meyering@redhat.com>
573
574         maint: avoid spurious "make sc_maint" failure
575         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
576         exempt all *.class file names, for lib/javaversion.class.
577
578 2012-04-15  Bruno Haible  <bruno@clisp.org>
579
580         lseek: Make configure test independent of environment.
581         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
582         Windows, we know that lseek() on pipes is broken; skip the runtime
583         test.
584
585 2012-04-14  Bruno Haible  <bruno@clisp.org>
586
587         stat: Bypass buggy override in mingw64.
588         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
589         * lib/stat.c (stat) [mingw64]: Define to _stat.
590         * doc/posix-functions/stat.texi: Mention mingw64 bug.
591
592 2012-04-14  Bruno Haible  <bruno@clisp.org>
593
594         pathmax: Fix compilation error on MSVC 9.
595         * modules/pathmax (Depends-on): Add unistd.
596
597 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
598
599         README: document pointer comparison assumption
600         * README (Portability guidelines): Document assumption about
601         pointer comparisons, in response to a recent bug-gnulib comment by
602         Jeffrey Kegler.
603
604 2012-04-12  Bruno Haible  <bruno@clisp.org>
605
606         Tests for module 'getrusage'.
607         * modules/getrusage-tests: New file.
608         * tests/test-getrusage.c: New file.
609
610         New module 'getrusage'.
611         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
612         warn-on-use.h.
613         (getrusage): New declaration.
614         * lib/getrusage.c: New file.
615         * m4/getrusage.m4: New file.
616         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
617         is declared.
618         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
619         HAVE_GETRUSAGE.
620         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
621         snippet/c++defs, snippet/warn-on-use.
622         (Makefile.am): Update generation of sys/resource.h. Substitute
623         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
624         * modules/getrusage: New file.
625         * doc/posix-functions/getrusage.texi: Mention the new module.
626
627 2012-04-12  Bruno Haible  <bruno@clisp.org>
628
629         Tests for module 'sys_resource'.
630         * modules/sys_resource-tests: New file.
631         * tests/test-sys_resource.c: New file.
632
633         New module 'sys_resource'.
634         * lib/sys_resource.in.h: New file.
635         * m4/sys_resource_h.m4: New file.
636         * modules/sys_resource: New file.
637         * doc/posix-headers/sys_resource.texi: Mention the new module.
638
639 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
640
641         ioctl: Fix compilation error on mingw.
642         * lib/ioctl.c: Include <windows.h>.
643         Also reported by Ray Satiro <raysatiro@yahoo.com>.
644
645 2012-04-04  Jim Meyering  <meyering@redhat.com>
646
647         regex: correct #pragma guard expression
648         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
649         not 4.3.  Correct its cpp guard expression.
650
651 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
652
653         regex: remove unnecessary type punning
654         Problem reported by Vladimir Serbinenko in
655         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
656         * lib/regex.h (struct re_pattern_buffer): Change the type of
657         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
658         Fix comment to match code.
659         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
660         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
661         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
662         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
663         (set_regs):
664         Omit no-longer-necessary casts.
665
666 2012-04-03  Bruno Haible  <bruno@clisp.org>
667
668         Tests for module 'ilogbl'.
669         * modules/ilogbl-tests: New file.
670         * tests/test-ilogbl.c: New file.
671
672         New module 'ilogbl'.
673         * lib/math.in.h (ilogbl): New declaration.
674         * lib/ilogbl.c: New file.
675         * m4/ilogbl.m4: New file.
676         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
677         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
678         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
679         Split sed invocation, to avoid the limit of 100 substitutions of
680         HP-UX 'sed'.
681         * modules/ilogbl: New file.
682         * tests/test-math-c++.cc: Check the declaration of ilogbl.
683         * doc/posix-functions/ilogbl.texi: Mention the new module.
684
685 2012-04-03  Bruno Haible  <bruno@clisp.org>
686
687         Tests for module 'ilogbf'.
688         * modules/ilogbf-tests: New file.
689         * tests/test-ilogbf.c: New file.
690
691         New module 'ilogbf'.
692         * lib/math.in.h (ilogbf): New declaration.
693         * lib/ilogbf.c: New file.
694         * m4/ilogbf.m4: New file.
695         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
696         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
697         REPLACE_ILOGBF.
698         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
699         REPLACE_ILOGBF.
700         * modules/ilogbf: New file.
701         * tests/test-math-c++.cc: Check the declaration of ilogbf.
702         * doc/posix-functions/ilogbf.texi: Mention the new module.
703
704 2012-04-03  Bruno Haible  <bruno@clisp.org>
705
706         Tests for module 'ilogb'.
707         * modules/ilogb-tests: New file.
708         * tests/test-ilogb.c: New file.
709         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
710         tests/test-logb-ieee.h.
711
712         New module 'ilogb'.
713         * lib/math.in.h (ilogb): New declaration.
714         * lib/ilogb.c: New file.
715         * m4/ilogb.m4: New file.
716         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
717         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
718         REPLACE_ILOGB.
719         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
720         REPLACE_ILOGB.
721         * modules/ilogb: New file.
722         * tests/test-math-c++.cc: Check the declaration of ilogb.
723         * doc/posix-functions/ilogb.texi: Mention the new module.
724
725 2012-04-03  Bruno Haible  <bruno@clisp.org>
726
727         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
728         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
729         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
730         (main): Check their values.
731         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
732         problem.
733
734 2012-04-03  Bruno Haible  <bruno@clisp.org>
735
736         Tests for module 'logbl-ieee'.
737         * modules/logbl-ieee-tests: New file.
738         * tests/test-logbl-ieee.c: New file.
739
740         New module 'logbl-ieee'.
741         * modules/logbl-ieee: New file.
742
743         Tests for module 'logb-ieee'.
744         * modules/logb-ieee-tests: New file.
745         * tests/test-logb-ieee.c: New file.
746
747         New module 'logb-ieee'.
748         * modules/logb-ieee: New file.
749
750         Tests for module 'logbf-ieee'.
751         * modules/logbf-ieee-tests: New file.
752         * tests/test-logbf-ieee.c: New file.
753         * tests/test-logb-ieee.h: New file.
754
755         New module 'logbf-ieee'.
756         * modules/logbf-ieee: New file.
757
758 2012-04-03  Bruno Haible  <bruno@clisp.org>
759
760         Tests for module 'logbl'.
761         * modules/logbl-tests: New file.
762         * tests/test-logbl.c: New file.
763
764         New module 'logbl'.
765         * lib/math.in.h (logbl): New declaration.
766         * lib/logbl.c: New file.
767         * m4/logbl.m4: New file.
768         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
769         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
770         REPLACE_LOGBL.
771         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
772         REPLACE_LOGBL.
773         * modules/logbl: New file.
774         * tests/test-math-c++.cc: Check the declaration of logbl.
775         * doc/posix-functions/logbl.texi: Mention the new module.
776
777 2012-04-02  Bruno Haible  <bruno@clisp.org>
778
779         Tests for module 'logbf'.
780         * modules/logbf-tests: New file.
781         * tests/test-logbf.c: New file.
782
783         New module 'logbf'.
784         * lib/math.in.h (logbf): New declaration.
785         * lib/logbf.c: New file.
786         * m4/logbf.m4: New file.
787         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
788         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
789         REPLACE_LOGBF.
790         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
791         REPLACE_LOGBF.
792         * modules/logbf: New file.
793         * tests/test-math-c++.cc: Check the declaration of logbf.
794         * doc/posix-functions/logbf.texi: Mention the new module.
795
796 2012-04-02  Bruno Haible  <bruno@clisp.org>
797
798         logb tests: More tests.
799         * tests/test-logb.h: New file, based on tests/test-logb.c and
800         tests/test-frexp.h.
801         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
802         (main): Just invoke test_function.
803         * modules/logb-tests (Files): Add tests/test-logb.h,
804         tests/minus-zero.h, tests/randomd.c.
805         (Makefile.am): Add randomd.c to test_logb_SOURCES.
806
807         logb: Provide replacement and workarounds.
808         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
809         is 1.
810         * lib/logb.c: New file.
811         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
812         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
813         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
814         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
815         * modules/logb (Files): Add lib/logb.c.
816         (Depends-on): Add isfinite, frexp, isnand.
817         (configure.ac): Compile the replacement code logb.c if needed.
818         * tests/test-math-c++.cc: Check the declaration of logb.
819         * doc/posix-functions/logb.texi: Mention the replacement and the bug
820         with subnormal numbers.
821
822 2012-04-02  Bruno Haible  <bruno@clisp.org>
823
824         log10* tests: Speed up.
825         * tests/test-log10.h (test_function): Reduce amount of random numbers
826         to test.
827
828 2012-04-01  Bruno Haible  <bruno@clisp.org>
829
830         logf-ieee: Fix test whether logf works.
831         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
832
833 2012-04-01  Bruno Haible  <bruno@clisp.org>
834
835         log10l: Work around log10l-ieee test failure on IRIX 6.5.
836         * lib/log10l.c: Include <float.h>
837         (log10l): On IRIX, normalize the +Infinity value.
838         * modules/log10l (Depends-on): Add 'float'.
839         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
840         +Infinity.
841
842         log10f-ieee: Work around test failure on NetBSD 5.1.
843         * m4/log10f-ieee.m4: New file.
844         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
845         test whether log10f works with a negative argument. Replace it if not.
846         * lib/log10f.c (log10f): For negative arguments, return NaN.
847         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
848         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
849         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
850
851         log10f-ieee: Work around test failure on Solaris 9.
852         * modules/log10f-ieee (Depends-on): Add log10-ieee.
853         (configure.ac): Require gl_FUNC_LOG10F.
854
855         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
856         * m4/log10-ieee.m4: New file.
857         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
858         whether log10 works with a negative argument. Replace it if not.
859         * lib/log10.c (log10): For negative arguments, return NaN.
860         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
861         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
862         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
863
864         Tests for module 'log10l-ieee'.
865         * modules/log10l-ieee-tests: New file.
866         * tests/test-log10l-ieee.c: New file.
867
868         New module 'log10l-ieee'.
869         * modules/log10l-ieee: New file.
870
871         Tests for module 'log10-ieee'.
872         * modules/log10-ieee-tests: New file.
873         * tests/test-log10-ieee.c: New file.
874
875         New module 'log10-ieee'.
876         * modules/log10-ieee: New file.
877
878         Tests for module 'log10f-ieee'.
879         * modules/log10f-ieee-tests: New file.
880         * tests/test-log10f-ieee.c: New file.
881         * tests/test-log10-ieee.h: New file.
882
883         New module 'log10f-ieee'.
884         * modules/log10f-ieee: New file.
885
886 2012-04-01  Bruno Haible  <bruno@clisp.org>
887
888         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
889         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
890         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
891         workaround.
892         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
893         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
894         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
895         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
896         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
897         (Depends-on): Update conditions.
898         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
899         IRIX 6.5, OSF/1 5.1 problems.
900
901 2012-04-01  Bruno Haible  <bruno@clisp.org>
902
903         log10f: Work around OSF/1 5.1 bug.
904         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
905         * lib/log10f.c (log10f): If logf exists, use it and provide just the
906         workaround.
907         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
908         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
909         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
910         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
911         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
912         (Depends-on): Update conditions.
913         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
914
915 2012-04-01  Bruno Haible  <bruno@clisp.org>
916
917         log10: Work around OSF/1 5.1 bug.
918         * lib/math.in.h (log10): New declaration.
919         * lib/log10.c: New file.
920         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
921         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
922         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
923         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
924         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
925         * modules/log10 (Files): Add lib/log10.c.
926         (Depends-on): Add math.
927         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
928         * tests/test-math-c++.cc: Check the declaration of log10.
929         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
930
931 2012-03-31  Bruno Haible  <bruno@clisp.org>
932
933         log10l tests: More tests.
934         * modules/log10l-tests (Files): Add tests/test-log10l.h,
935         tests/minus-zero.h, tests/randoml.c.
936         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
937         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
938         (main): Invoke test_function.
939
940         log10f tests: More tests.
941         * modules/log10f-tests (Files): Add tests/test-log10.h,
942         tests/minus-zero.h, tests/randomf.c.
943         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
944         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
945         (main): Invoke test_function.
946
947         log10 tests: More tests.
948         * tests/test-log10.h: New file.
949         * modules/log10-tests (Files): Add tests/test-log10.h,
950         tests/minus-zero.h, tests/randomd.c.
951         (Makefile.am): Add randomd.c to test_log10_SOURCES.
952         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
953         (main): Invoke test_function.
954
955 2012-03-31  Simon Josefsson  <simon@josefsson.org>
956
957         fflush: Fix syntax error.
958         * lib/fflush.c: Include unused-parameter.h, needed for
959         _GL_UNUSED_PARAMETER.
960         * modules/fflush (Depends-on): Add snippet/unused-parameter.
961
962 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
963
964         regex: pacify GCC when compiling GRUB
965         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
966         a diagnostic.  Reported by Vladimir Serbinenko in
967         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
968
969 2012-03-29  Eric Blake  <eblake@redhat.com>
970
971         stdio: don't assume gets any more
972         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
973         support.
974         * modules/stdio (Makefile.am): Likewise.
975         * lib/stdio-read.c (gets): Likewise.
976         * tests/test-stdio-c++.cc: Likewise.
977         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
978         * lib/stdio.in.h (gets): Make warning occur in more places.
979         * doc/posix-functions/gets.texi (gets): Update documentation.
980         Reported by Christer Solskogen.
981
982         maint.mk: fix syntax checks without exclusions
983         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
984         Reported by Daniel P. Berrange.
985
986         strerror_r: avoid compiler warning
987         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
988         level.
989
990         fflush: avoid compiler warning
991         * lib/fflush.c (update_fpos_cache): Mark variables that are
992         potentially unused.
993
994 2012-03-25  Bruno Haible  <bruno@clisp.org>
995
996         Tests for module 'localeconv'.
997         * modules/localeconv-tests: New file.
998         * tests/test-localeconv.c: New file.
999
1000         New module 'localeconv'.
1001         * lib/locale.in.h (localeconv): New declaration.
1002         * lib/localeconv.c: New file.
1003         * m4/localeconv.m4: New file.
1004         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
1005         REPLACE_LOCALECONV.
1006         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
1007         REPLACE_LOCALECONV.
1008         * modules/localeconv: New file.
1009         * modules/nl_langinfo (Depends-on): Add localeconv.
1010         * modules/human (Depends-on): Likewise.
1011         * doc/posix-functions/localeconv.texi: Mention the new module.
1012
1013 2012-03-25  Bruno Haible  <bruno@clisp.org>
1014
1015         locale: Provide a complete 'struct lconv'.
1016         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1017         'struct lconv' does not contain int_p_cs_precedes.
1018         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1019         * doc/posix-headers/locale.texi: Update.
1020
1021         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
1022         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
1023         * doc/posix-headers/locale.texi: Update.
1024
1025         locale: Provide a working 'struct lconv'.
1026         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
1027         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1028         'struct lconv' does not even contain decimal_point.
1029         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
1030         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
1031         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1032         * doc/posix-headers/locale.texi: Mention the problems with
1033         'struct lconv'.
1034         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
1035
1036 2012-03-24  Bruno Haible  <bruno@clisp.org>
1037
1038         Enable common subexpression optimization in GCC.
1039         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
1040         macros.
1041         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
1042         GCC attribute 'const'.
1043         (uc_locale_language): Declare with GCC attribute 'pure'.
1044         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
1045         with GCC attribute 'const'.
1046         * lib/unictype.in.h (uc_is_general_category_withtable,
1047         uc_combining_class, uc_combining_class_name,
1048         uc_combining_class_long_name, uc_bidi_class_name,
1049         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
1050         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
1051         uc_decimal_value, uc_digit_value, uc_numeric_value,
1052         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
1053         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
1054         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
1055         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
1056         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
1057         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
1058         Declare with GCC attribute 'const'.
1059         (uc_general_category_name, uc_general_category_long_name,
1060         uc_general_category_byname, uc_general_category,
1061         uc_is_general_category, uc_combining_class_byname,
1062         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
1063         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
1064         Declare with GCC attribute 'pure'.
1065         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
1066         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
1067         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
1068         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
1069         with GCC attribute 'pure'.
1070         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
1071         'const'.
1072         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
1073         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
1074         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
1075         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
1076         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
1077         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
1078         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
1079         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
1080         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
1081         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
1082         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
1083         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
1084         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
1085         GCC attribute 'pure'.
1086         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
1087         'const'.
1088         * lib/uniwidth.in.h (uc_width): Simplify declaration.
1089         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
1090         u32_strwidth): Declare with GCC attribute 'pure'.
1091
1092         Enable common subexpression optimization in GCC.
1093         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1094         (alphasort): Declare with GCC attribute 'pure'.
1095         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1096         (atoll): Declare with GCC attribute 'pure'.
1097         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
1098         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
1099         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
1100         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1101         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
1102         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
1103         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
1104
1105 2012-03-24  Bruno Haible  <bruno@clisp.org>
1106
1107         gnulib-tool: Avoid unintended error output from 'cmp'.
1108         * gnulib-tool (func_add_file, func_update_file, func_import): Use
1109         "cmp -s", not "cmp > /dev/null".
1110
1111 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
1112
1113         gnulib-tool: fix imprecise comments w.r.t. an automake bug
1114
1115         It's not just Automake versions < 1.9b that creates an empty
1116         pkgdatadir at installation time if pkgdata_DATA is specified
1117         to empty; modern automake versions do this as well, at least
1118         until automake 1.11.4 (not yet released at the moment of writing,
1119         but soon to appear).  That behaviour was generally considered a
1120         feature rather than a bug, at least until this discussion:
1121         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
1122
1123         See also automake bugs #10997 and #11030.
1124
1125         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
1126         reference to relevant automake bug numbers.
1127         (func_emit_tests_Makefile_am): Likewise.
1128
1129 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1130
1131         announce-gen: use Digest::SHA when possible
1132         * build-aux/announce-gen: Use Digest::SHA when possible, falling
1133         back to Digest::SHA1 if necessary.
1134
1135 2012-03-20  Jim Meyering  <meyering@redhat.com>
1136
1137         tests: avoid gcc warnings about argv vs. const initializers
1138         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
1139         warnings about discarding 'const' qualifier from pointer target type.
1140         * tests/test-posix_spawn2.c (main): Likewise.
1141
1142 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1143
1144         README-release: simplify slightly
1145         * top/README-release: Run "git checkout master" only once.
1146
1147 2012-03-15  Mark Wielaard  <mark@klomp.org>
1148
1149         git-merge-changelog: add specific example on how to use with hg.
1150         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
1151
1152 2012-03-18  Mark Wielaard  <mark@klomp.org>
1153
1154         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
1155
1156 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
1157
1158         git-version-gen: don't let "prefix" envvar cause trouble
1159         * build-aux/git-version-gen (prefix): Initialize properly,
1160         so as not to use a value specified via the environment.
1161         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
1162
1163 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1164
1165         regex: diagnose too-large repeat counts in EREs
1166         Previously, the code did not diagnose the too-large repeat count
1167         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
1168         as if it were 'b\{1000000000}', which is unexpected.
1169         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
1170         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
1171         is a reasonable one for this problem.  Another option would be to
1172         create a new REG_OVERFLOW error for repeat counts that are too large.
1173         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
1174         count is too large, so that the caller can distinguish the two cases.
1175         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
1176         "Too large" return code, and that repeat counts are one example of this.
1177
1178 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1179
1180         doc: some glibc x32 integer width issues
1181         * doc/posix-headers/sys_types.texi (sys/types.h):
1182         * doc/posix-headers/time.texi (time.h):
1183         Mention that glibc x32 does not conform to POSIX in a couple of
1184         areas related to integer widths.
1185
1186 2012-03-15  Bruno Haible  <bruno@clisp.org>
1187
1188         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
1189         * lib/fma.c (VOLATILE): New macro.
1190         (FUNC): Use it to work around a GCC compiler bug.
1191
1192 2012-03-13  Bruno Haible  <bruno@clisp.org>
1193
1194         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1195         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
1196         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
1197         REPLACE_HYPOTL to 1.
1198         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
1199
1200 2012-03-13  Bruno Haible  <bruno@clisp.org>
1201
1202         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1203         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
1204         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
1205         REPLACE_REMAINDERL to 1.
1206         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
1207         bug.
1208
1209 2012-03-13  Bruno Haible  <bruno@clisp.org>
1210
1211         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1212         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
1213         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
1214         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
1215         too big rounding errors.
1216         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
1217         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
1218         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
1219         (Depends-on): Update conditions.
1220         * tests/test-sqrtl.c (my_ldexpl): New function.
1221         (main): Add test of a particular value.
1222         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1223
1224 2012-03-13  Pádraig Brady  <P@draigBrady.com>
1225
1226         doc: Update timer_* platform portability notes.
1227         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
1228         that always return ENOSYS.
1229         * doc/posix-functions/timer_delete.texi: Likewise.
1230         * doc/posix-functions/timer_gettime.texi: Likewise.
1231         * doc/posix-functions/timer_settime.texi: Likewise.
1232
1233 2012-03-13  Bruno Haible  <bruno@clisp.org>
1234
1235         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1236         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
1237         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
1238         REPLACE_CBRTL to 1.
1239         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1240
1241 2012-03-13  Bruno Haible  <bruno@clisp.org>
1242
1243         remainderl: Avoid compilation error on AIX >= 5.2.
1244         * lib/math.in.h (remainderl): Undefine macro from the system header.
1245
1246 2012-03-13  Bruno Haible  <bruno@clisp.org>
1247
1248         Avoid compilation errors with MSVC option -fp:strict.
1249         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
1250         * lib/cbrtf.c: Likewise.
1251         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1252
1253 2012-03-12  Bruno Haible  <bruno@clisp.org>
1254
1255         uninorm: Don't crash in out-of-memory conditions.
1256         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
1257         gracefully.
1258         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
1259         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
1260
1261 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
1262
1263         quote: fix syntax-check
1264         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
1265         also exports quote_quoting_options.
1266
1267 2012-03-12  Simon Josefsson  <simon@josefsson.org>
1268
1269         Collapse list of copyright years to ranges.  See
1270         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
1271         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
1272         build-aux/csharpexec.sh.in, build-aux/gnupload,
1273         build-aux/install-reloc, build-aux/javacomp.sh.in,
1274         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
1275         build-aux/move-if-change, build-aux/reloc-ldflags,
1276         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
1277
1278 2012-03-11  Bruno Haible  <bruno@clisp.org>
1279
1280         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1281         * m4/log2f-ieee.m4: New file.
1282         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
1283         whether log2f works with a minus zero argument. Replace it if not.
1284         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
1285         (Depends-on): Add log2-ieee.
1286         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
1287         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
1288
1289         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1290         * m4/log2-ieee.m4: New file.
1291         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
1292         whether log2 works with a minus zero argument. Replace it if not.
1293         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
1294         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
1295         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
1296
1297         Tests for module 'log2l-ieee'.
1298         * modules/log2l-ieee-tests: New file.
1299         * tests/test-log2l-ieee.c: New file.
1300
1301         New module 'log2l-ieee'.
1302         * modules/log2l-ieee: New file.
1303
1304         Tests for module 'log2-ieee'.
1305         * modules/log2-ieee-tests: New file.
1306         * tests/test-log2-ieee.c: New file.
1307
1308         New module 'log2-ieee'.
1309         * modules/log2-ieee: New file.
1310
1311         Tests for module 'log2f-ieee'.
1312         * modules/log2f-ieee-tests: New file.
1313         * tests/test-log2f-ieee.c: New file.
1314         * tests/test-log2-ieee.h: New file.
1315
1316         New module 'log2f-ieee'.
1317         * modules/log2f-ieee: New file.
1318
1319 2012-03-11  Bruno Haible  <bruno@clisp.org>
1320
1321         Tests for module 'log2l'.
1322         * modules/log2l-tests: New file.
1323         * tests/test-log2l.c: New file.
1324
1325         New module 'log2l'.
1326         * lib/math.in.h (log2l): New declaration.
1327         * lib/log2l.c: New file.
1328         * m4/log2l.m4: New file.
1329         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
1330         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
1331         REPLACE_LOG2L.
1332         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
1333         REPLACE_LOG2L.
1334         * modules/log2l: New file.
1335         * tests/test-math-c++.cc: Check the declaration of log2l.
1336         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
1337         and OSF/1 problems.
1338
1339 2012-03-11  Bruno Haible  <bruno@clisp.org>
1340
1341         Tests for module 'log2f'.
1342         * modules/log2f-tests: New file.
1343         * tests/test-log2f.c: New file.
1344
1345         New module 'log2f'.
1346         * lib/math.in.h (log2f): New declaration.
1347         * lib/log2f.c: New file.
1348         * m4/log2f.m4: New file.
1349         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
1350         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
1351         REPLACE_LOG2F.
1352         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
1353         REPLACE_LOG2F.
1354         * modules/log2f: New file.
1355         * tests/test-math-c++.cc: Check the declaration of log2f.
1356         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
1357         and OSF/1 and Cygwin problems.
1358
1359 2012-03-11  Bruno Haible  <bruno@clisp.org>
1360
1361         Tests for module 'log2'.
1362         * modules/log2-tests: New file.
1363         * tests/test-log2.c: New file.
1364         * tests/test-log2.h: New file.
1365
1366         New module 'log2'.
1367         * lib/math.in.h (log2): New declaration.
1368         * lib/log2.c: New file.
1369         * m4/log2.m4: New file.
1370         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
1371         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
1372         REPLACE_LOG2.
1373         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
1374         REPLACE_LOG2.
1375         * modules/log2: New file.
1376         * tests/test-math-c++.cc: Check the declaration of log2.
1377         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
1378         and OSF/1 and Cygwin problems.
1379
1380 2012-03-11  Bruno Haible  <bruno@clisp.org>
1381
1382         exp2* tests: More tests.
1383         * tests/test-exp2.h (test_function): Test all integral arguments that
1384         don't need to overflow or denormalized numbers.
1385         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
1386         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
1387         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
1388
1389 2012-03-10  Bruno Haible  <bruno@clisp.org>
1390
1391         log1pl-ieee: Work around test failure on AIX 7.1.
1392         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
1393
1394         log1pl-ieee: Work around test failure on IRIX 6.5.
1395         * m4/log1pl-ieee.m4: New file.
1396         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
1397         test whether log1pl works with a minus zero argument. Replace it if
1398         not.
1399         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
1400         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
1401         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
1402         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
1403         (Depends-on): Update conditions.
1404         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1405         m4/signbit.m4.
1406         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
1407         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
1408
1409         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
1410         * m4/log1pf-ieee.m4: New file.
1411         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
1412         test whether log1pf works with a minus zero argument. Replace it if
1413         not.
1414         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
1415         m4/signbit.m4.
1416         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
1417         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
1418
1419         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
1420         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
1421         (configure.ac): Require gl_FUNC_LOG1PF.
1422
1423         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
1424         * m4/log1p-ieee.m4: New file.
1425         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
1426         whether log1p works with a minus zero argument. Replace it if not.
1427         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
1428         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
1429         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
1430         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
1431         (Depends-on): Update conditions.
1432         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1433         m4/signbit.m4.
1434         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
1435         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
1436
1437         Tests for module 'log1pl-ieee'.
1438         * modules/log1pl-ieee-tests: New file.
1439         * tests/test-log1pl-ieee.c: New file.
1440
1441         New module 'log1pl-ieee'.
1442         * modules/log1pl-ieee: New file.
1443
1444         Tests for module 'log1p-ieee'.
1445         * modules/log1p-ieee-tests: New file.
1446         * tests/test-log1p-ieee.c: New file.
1447
1448         New module 'log1p-ieee'.
1449         * modules/log1p-ieee: New file.
1450
1451         Tests for module 'log1pf-ieee'.
1452         * modules/log1pf-ieee-tests: New file.
1453         * tests/test-log1pf-ieee.c: New file.
1454         * tests/test-log1p-ieee.h: New file.
1455
1456         New module 'log1pf-ieee'.
1457         * modules/log1pf-ieee: New file.
1458
1459 2012-03-10  Bruno Haible  <bruno@clisp.org>
1460
1461         Tests for module 'log1pl'.
1462         * modules/log1pl-tests: New file.
1463         * tests/test-log1pl.c: New file.
1464
1465         New module 'log1pl'.
1466         * lib/math.in.h (log1pl): New declaration.
1467         * lib/log1pl.c: New file.
1468         * m4/log1pl.m4: New file.
1469         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
1470         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
1471         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
1472         * modules/log1pl: New file.
1473         * tests/test-math-c++.cc: Check the declaration of log1pl.
1474         * doc/posix-functions/log1pl.texi: Mention the new module.
1475
1476 2012-03-10  Bruno Haible  <bruno@clisp.org>
1477
1478         Tests for module 'log1pf'.
1479         * modules/log1pf-tests: New file.
1480         * tests/test-log1pf.c: New file.
1481
1482         New module 'log1pf'.
1483         * lib/math.in.h (log1pf): New declaration.
1484         * lib/log1pf.c: New file.
1485         * m4/log1pf.m4: New file.
1486         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
1487         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
1488         REPLACE_LOG1PF.
1489         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
1490         REPLACE_LOG1PF.
1491         * modules/log1pf: New file.
1492         * tests/test-math-c++.cc: Check the declaration of log1pf.
1493         * doc/posix-functions/log1pf.texi: Mention the new module.
1494
1495 2012-03-10  Bruno Haible  <bruno@clisp.org>
1496
1497         log1p tests: More tests.
1498         * tests/test-log1p.h: New file.
1499         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
1500         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
1501         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
1502         (main): Invoke test_function.
1503
1504         log1p: Provide replacement for Minix and MSVC.
1505         * lib/math.in.h (log1p): New declaration.
1506         * lib/log1p.c: New file.
1507         * m4/log1p.m4: New file.
1508         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
1509         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
1510         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
1511         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
1512         (Depends-on): Add math, isnand, log, round.
1513         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
1514         HAVE_LOG1P is 0.
1515         * tests/test-math-c++.cc: Check the declaration of log1p.
1516         * doc/posix-functions/log1p.texi: Mention the replacement.
1517
1518 2012-03-10  Bruno Haible  <bruno@clisp.org>
1519
1520         math tests: Small simplification.
1521         * tests/test-exp.h (test_function): Use the same err_bound for
1522         'double' on platforms with sizeof (long double) == sizeof (double)
1523         than on platforms with sizeof (long double) > sizeof (double).
1524         * tests/test-exp2.h (test_function): Likewise.
1525         * tests/test-expm1.h (test_function): Likewise.
1526         * tests/test-log.h (test_function): Likewise.
1527
1528 2012-03-10  Bruno Haible  <bruno@clisp.org>
1529
1530         Fix some comments.
1531         * lib/expl.c: Fix an ambiguous comment.
1532         * lib/expm1.c: Likewise.
1533         * lib/expm1l.c: Likewise.
1534         * lib/exp2.c: Likewise.
1535         * lib/exp2l.c: Likewise.
1536
1537 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
1538
1539         regex: allow inclusion of <regex.h> before <limits.h>
1540         Without this patch, portable programs had to include <limits.h> before
1541         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
1542         I ran into this problem with a test version of GNU grep on Solaris 8.
1543         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
1544         This is done conditionally so that this change can be merged
1545         back to glibc.
1546         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
1547         using the included regex.
1548
1549         fts: depend on fdopendir
1550         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
1551         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
1552         problem was introduced when fdopendir was split out.
1553
1554 2012-03-10  Bruno Haible  <bruno@clisp.org>
1555
1556         Remove unused variables.
1557         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
1558         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1559
1560 2012-03-10  Bruno Haible  <bruno@clisp.org>
1561
1562         isnanf-nolibm: Fix last commit.
1563         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
1564
1565         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
1566         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
1567
1568 2012-03-10  Bruno Haible  <bruno@clisp.org>
1569
1570         logf-ieee: Work around test failure on NetBSD 5.1.
1571         * m4/logf-ieee.m4: New file.
1572         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
1573         whether logf works with a negative argument. Replace it if not.
1574         * lib/logf.c (logf): For negative arguments, return NaN.
1575         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
1576         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
1577         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
1578
1579         logf-ieee: Work around test failure on Solaris 9.
1580         * modules/logf-ieee (Depends-on): Add log-ieee.
1581         (configure.ac): Require gl_FUNC_LOGF.
1582
1583         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1584         * m4/log-ieee.m4: New file.
1585         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
1586         log works with a negative argument. Replace it if not.
1587         * lib/log.c (log): For negative arguments, return NaN.
1588         * modules/log-ieee (Files): Add m4/log-ieee.m4.
1589         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
1590         * doc/posix-functions/log.texi: Mention the log-ieee module.
1591
1592         Tests for module 'logl-ieee'.
1593         * modules/logl-ieee-tests: New file.
1594         * tests/test-logl-ieee.c: New file.
1595
1596         New module 'logl-ieee'.
1597         * modules/logl-ieee: New file.
1598
1599         Tests for module 'log-ieee'.
1600         * modules/log-ieee-tests: New file.
1601         * tests/test-log-ieee.c: New file.
1602
1603         New module 'log-ieee'.
1604         * modules/log-ieee: New file.
1605
1606         Tests for module 'logf-ieee'.
1607         * modules/logf-ieee-tests: New file.
1608         * tests/test-logf-ieee.c: New file.
1609         * tests/test-log-ieee.h: New file.
1610
1611         New module 'logf-ieee'.
1612         * modules/logf-ieee: New file.
1613
1614 2012-03-10  Bruno Haible  <bruno@clisp.org>
1615
1616         log: Fix bug introduced on 2012-03-09.
1617         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
1618
1619 2012-03-10  Pádraig Brady  <P@draigBrady.com>
1620
1621         timer-time: link explicitly with pthreads on glibc
1622         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1623         to support static linking, when newer glibc is
1624         detected, as that contains pthread emulation of
1625         POSIX timer functions where required.
1626         * modules/timer-time: Depend on threadlib to
1627         pull in the appropriate library to link.
1628
1629 2012-03-10  Bruno Haible  <bruno@clisp.org>
1630
1631         log* tests: More tests.
1632         * tests/test-log.h: New file.
1633         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
1634         (main): Invoke test_function.
1635         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
1636         (main): Invoke test_function.
1637         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
1638         (main): Invoke test_function.
1639         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1640         tests/randomd.c.
1641         (Makefile.am): Add randomd.c to test_log_SOURCES.
1642         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1643         tests/randomf.c.
1644         (Makefile.am): Add randomf.c to test_logf_SOURCES.
1645         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1646         tests/randoml.c.
1647         (Depends-on): Add 'float'.
1648         (Makefile.am): Add randoml.c to test_logl_SOURCES.
1649
1650 2012-03-09  Bruno Haible  <bruno@clisp.org>
1651
1652         logl: Work around OSF/1 5.1 bug.
1653         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
1654         * lib/logl.c (logl): If logl exists, use it and provide just the
1655         workaround.
1656         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
1657         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
1658         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
1659         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
1660         * modules/logl (configure.ac): Consider REPLACE_LOGL.
1661         (Depends-on): Update conditions.
1662         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
1663
1664 2012-03-09  Bruno Haible  <bruno@clisp.org>
1665
1666         logf: Work around OSF/1 5.1 bug.
1667         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
1668         * lib/logf.c (logf): If logf exists, use it and provide just the
1669         workaround.
1670         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
1671         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
1672         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
1673         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
1674         * modules/logf (configure.ac): Consider REPLACE_LOGF.
1675         (Depends-on): Update conditions.
1676         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
1677
1678 2012-03-09  Bruno Haible  <bruno@clisp.org>
1679
1680         log: Work around OSF/1 5.1 bug.
1681         * lib/math.in.h (log): New declaration.
1682         * lib/log.c: New file.
1683         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
1684         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
1685         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
1686         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
1687         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
1688         * modules/log (Files): Add lib/log.c.
1689         (Depends-on): Add math.
1690         (configure.ac): If REPLACE_LOG is 1, compile an override.
1691         * tests/test-math-c++.cc: Check the declaration of log.
1692         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
1693
1694 2012-03-09  Jim Meyering  <meyering@redhat.com>
1695
1696         readtokens.c: adjust wording in a comment
1697         * lib/readtokens.c: Insert omitted "that" in a comment.
1698
1699 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1700
1701         modechange: add notations +40, 00440, etc.
1702         * lib/modechange.c (mode_compile): Support new notations
1703         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
1704
1705 2012-03-08  Bruno Haible  <bruno@clisp.org>
1706
1707         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
1708         * m4/exp2l-ieee.m4: New file.
1709         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
1710         test whether exp2l works with a NaN argument and with a negative
1711         infinity argument. Replace it if not.
1712         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
1713         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
1714         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
1715         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
1716         (Depends-on): Update conditions.
1717         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
1718         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
1719         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
1720
1721         Tests for module 'exp2l-ieee'.
1722         * modules/exp2l-ieee-tests: New file.
1723         * tests/test-exp2l-ieee.c: New file.
1724
1725         New module 'exp2l-ieee'.
1726         * modules/exp2l-ieee: New file.
1727
1728         Tests for module 'exp2-ieee'.
1729         * modules/exp2-ieee-tests: New file.
1730         * tests/test-exp2-ieee.c: New file.
1731
1732         New module 'exp2-ieee'.
1733         * modules/exp2-ieee: New file.
1734
1735         Tests for module 'exp2f-ieee'.
1736         * modules/exp2f-ieee-tests: New file.
1737         * tests/test-exp2f-ieee.c: New file.
1738         * tests/test-exp2-ieee.h: New file.
1739
1740         New module 'exp2f-ieee'.
1741         * modules/exp2f-ieee: New file.
1742
1743 2012-03-08  Bruno Haible  <bruno@clisp.org>
1744
1745         Tests for module 'exp2l'.
1746         * modules/exp2l-tests: New file.
1747         * tests/test-exp2l.c: New file.
1748
1749         New module 'exp2l'.
1750         * lib/math.in.h (exp2l): New declaration.
1751         * lib/exp2l.c: New file.
1752         * lib/expl-table.c: New file, extracted from lib/expl.c.
1753         * lib/expl.c (gl_expl_table): New declaration.
1754         (expl): Remove expl_table. Update reference.
1755         * m4/exp2l.m4: New file.
1756         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
1757         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
1758         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
1759         * modules/exp2l: New file.
1760         * modules/expl (Files): Add lib/expl-table.c.
1761         (configure.ac): Compile also expl-table.c.
1762         * tests/test-math-c++.cc: Check the declaration of exp2l.
1763         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
1764         problem.
1765
1766 2012-03-08  Bruno Haible  <bruno@clisp.org>
1767
1768         Tests for module 'exp2f'.
1769         * modules/exp2f-tests: New file.
1770         * tests/test-exp2f.c: New file.
1771
1772         New module 'exp2f'.
1773         * lib/math.in.h (exp2f): New declaration.
1774         * lib/exp2f.c: New file.
1775         * m4/exp2f.m4: New file.
1776         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
1777         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
1778         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
1779         * modules/exp2f: New file.
1780         * tests/test-math-c++.cc: Check the declaration of exp2f.
1781         * doc/posix-functions/exp2f.texi: Mention the new module and the
1782         IRIX problem.
1783
1784 2012-03-08  Bruno Haible  <bruno@clisp.org>
1785
1786         Tests for module 'exp2'.
1787         * modules/exp2-tests: New file.
1788         * tests/test-exp2.c: New file.
1789         * tests/test-exp2.h: New file.
1790
1791         New module 'exp2'.
1792         * lib/math.in.h (exp2): New declaration.
1793         * lib/exp2.c: New file.
1794         * m4/exp2.m4: New file.
1795         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
1796         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
1797         REPLACE_EXP2.
1798         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
1799         REPLACE_EXP2.
1800         * modules/exp2: New file.
1801         * tests/test-math-c++.cc: Check the declaration of exp2.
1802         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
1803         and OpenBSD problems.
1804
1805 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1806
1807         savedir: fix comment typo
1808         * lib/savedir.c (savedirstream): Fix typo in comment.
1809
1810 2012-03-08  Bruno Haible  <bruno@clisp.org>
1811
1812         test-readtokens.c: use const; remove unwarranted cast
1813         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
1814
1815 2012-03-08  Bruno Haible  <bruno@clisp.org>
1816
1817         fmal: Avoid compilation error on AIX.
1818         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
1819         AIX 5.2..7.1.
1820
1821 2012-03-08  Bruno Haible  <bruno@clisp.org>
1822
1823         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
1824         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
1825         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
1826         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
1827         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
1828         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
1829         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
1830
1831 2012-03-08  Bruno Haible  <bruno@clisp.org>
1832
1833         remainderf: Override buggy system function on IRIX 6.5.
1834         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
1835         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
1836         when it exists.
1837         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
1838
1839 2012-03-08  Jim Meyering  <meyering@redhat.com>
1840
1841         test-readtokens.c: avoid const-related compilation warnings
1842         * tests/test-readtokens.c: Avoid const-related compilation warnings.
1843
1844 2012-03-07  Jim Meyering  <meyering@redhat.com>
1845             Bruno Haible  <bruno@clisp.org>
1846
1847         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
1848         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
1849         tests/randomd.c.
1850         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
1851         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
1852         tests/randoml.c.
1853         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
1854
1855 2012-03-07  Bruno Haible  <bruno@clisp.org>
1856
1857         expm1l: Avoid compilation error on AIX.
1858         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
1859         AIX 5.2..7.1.
1860
1861 2012-03-07  Bruno Haible  <bruno@clisp.org>
1862
1863         expm1l: Don't override undeclared system function on IRIX 6.5.
1864         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
1865         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
1866         it exists. Set HAVE_DECL_EXPM1L.
1867         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
1868         HAVE_EXPM1L.
1869         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
1870         HAVE_EXPM1L.
1871         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
1872
1873 2012-03-07  Bruno Haible  <bruno@clisp.org>
1874
1875         remainderl: Don't override undeclared system function on IRIX 6.5.
1876         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
1877         HAVE_REMAINDERL.
1878         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
1879         declared when it exists. Set HAVE_DECL_REMAINDERL.
1880         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
1881         not HAVE_REMAINDERL.
1882         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
1883         HAVE_REMAINDERL.
1884         * doc/posix-functions/remainderl.texi: Mention missing declaration
1885         problem.
1886
1887 2012-03-07  Bruno Haible  <bruno@clisp.org>
1888
1889         rintf: Don't override undeclared system function on IRIX 6.5.
1890         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
1891         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
1892         exists. Set HAVE_DECL_RINTF.
1893         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
1894         HAVE_RINTF.
1895         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
1896         HAVE_RINTF.
1897         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
1898
1899 2012-03-07  Bruno Haible  <bruno@clisp.org>
1900
1901         roundl: Avoid compilation error on AIX.
1902         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
1903         AIX 5.2..7.1.
1904
1905 2012-03-07  Bruno Haible  <bruno@clisp.org>
1906
1907         roundl: Don't override undeclared system function on IRIX 6.5.
1908         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
1909         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
1910         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1911         * modules/roundl (configure.ac): For replacement code, test
1912         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1913         (Depends-on): Update conditions.
1914         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
1915
1916 2012-03-07  Bruno Haible  <bruno@clisp.org>
1917
1918         roundf: Don't override undeclared system function on IRIX 6.5.
1919         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
1920         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
1921         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1922         * modules/roundf (configure.ac): For replacement code, test
1923         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1924         (Depends-on): Update conditions.
1925         * modules/roundf-ieee (Depends-on): Update conditions.
1926         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
1927
1928 2012-03-07  Bruno Haible  <bruno@clisp.org>
1929
1930         round: Don't override undeclared system function on IRIX 6.5.
1931         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
1932         argument.
1933         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
1934         also when it is not declared. Set HAVE_ROUND. For replacement code,
1935         test HAVE_ROUND, not HAVE_DECL_ROUND.
1936         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
1937         not HAVE_DECL_ROUND.
1938         (Depends-on): Update conditions.
1939         * modules/round-ieee (Depends-on): Update conditions.
1940         * doc/posix-functions/round.texi: Mention the IRIX problem.
1941
1942 2012-03-07  Bruno Haible  <bruno@clisp.org>
1943
1944         copysignf: Don't override undeclared system function on IRIX 6.5.
1945         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
1946         HAVE_COPYSIGNF.
1947         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
1948         declared when it exists. Set HAVE_DECL_COPYSIGNF.
1949         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
1950         not HAVE_COPYSIGNF.
1951         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
1952         HAVE_COPYSIGNF.
1953         * doc/posix-functions/copysignf.texi: Mention missing declaration
1954         problem.
1955
1956 2012-03-07  Jim Meyering  <meyering@redhat.com>
1957
1958         readtokens: add tests
1959         * modules/readtokens-tests: New file.
1960         * tests/test-readtokens.c: New file.
1961
1962 2012-03-07  Jim Meyering  <meyering@redhat.com>
1963
1964         quotearg: the module must now include quote.h
1965         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
1966         So must the module.
1967         * modules/quotearg (Files): Add quote.h.
1968
1969 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
1970
1971         readtokens: avoid core dumps with unusual calling patterns
1972         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
1973         * lib/readtokens.c: Include limits.h.
1974         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
1975         (readtoken): Don't cache the delimiters; the cache code was buggy
1976         if !delim && saved_delim, or if the new n_delim differs from the old.
1977         Also, it wasn't thread-safe.
1978
1979 2012-03-07  Bruno Haible  <bruno@clisp.org>
1980
1981         quote: Adhere to common module description layout.
1982         * modules/quote (Makefile.am): Add back empty section.
1983
1984 2012-03-06  Akim Demaille  <demaille@gostai.com>
1985
1986         quote: fuse into quotearg
1987         This patch is made for the benefit of Bison.
1988         quote does not leave the choice of the quoting style to the user.
1989         quoting_style provides poor customizability, yet quoting_options,
1990         which is very rich, is hidden inside quotearg.c.  So in order to
1991         allow quote customization, move its implementation to quotearg.c.
1992         * lib/quote.c: Remove.
1993         * modules/quote: Adjust.
1994         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
1995         warning: provide all the members of literal structs.
1996         (quote_quoting_options): New.
1997         (quote, quote_n): Import implementation from quote.c.
1998         * lib/quote.h: Import the comments from quote.c.
1999         (quote_quoting_options): New.
2000
2001 2012-03-06  Bruno Haible  <bruno@clisp.org>
2002
2003         Tests for module 'expm1l-ieee'.
2004         * modules/expm1l-ieee-tests: New file.
2005         * tests/test-expm1l-ieee.c: New file.
2006
2007         New module 'expm1l-ieee'.
2008         * modules/expm1l-ieee: New file.
2009
2010         Tests for module 'expm1f-ieee'.
2011         * modules/expm1f-ieee-tests: New file.
2012         * tests/test-expm1f-ieee.c: New file.
2013
2014         New module 'expm1f-ieee'.
2015         * modules/expm1f-ieee: New file.
2016
2017         Tests for module 'expm1-ieee'.
2018         * modules/expm1-ieee-tests: New file.
2019         * tests/test-expm1-ieee.c: New file.
2020         * tests/test-expm1-ieee.h: New file.
2021
2022         New module 'expm1-ieee'.
2023         * modules/expm1-ieee: New file.
2024         * m4/expm1-ieee.m4: New file.
2025         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
2026         whether expm1 works with a minus zero argument. Replace it if not.
2027         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
2028         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
2029         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
2030         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
2031         (Depends-on): Update conditions.
2032         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
2033         AIX problem.
2034
2035 2012-03-06  Bruno Haible  <bruno@clisp.org>
2036
2037         Work around expm1f bug on IRIX 6.5.
2038         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
2039         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
2040         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
2041         not work.
2042         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
2043         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
2044         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
2045         (Depends-on): Update conditions.
2046         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
2047
2048 2012-03-06  Bruno Haible  <bruno@clisp.org>
2049
2050         Tests for module 'expm1l'.
2051         * modules/expm1l-tests: New file.
2052         * tests/test-expm1l.c: New file.
2053
2054         New module 'expm1l'.
2055         * lib/math.in.h (expm1l): New declaration.
2056         * lib/expm1l.c: New file.
2057         * m4/expm1l.m4: New file.
2058         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
2059         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
2060         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
2061         * modules/expm1l: New file.
2062         * tests/test-math-c++.cc: Check the declaration of expm1l.
2063         * doc/posix-functions/expm1l.texi: Mention the new module.
2064
2065 2012-03-06  Bruno Haible  <bruno@clisp.org>
2066
2067         Tests for module 'expm1f'.
2068         * modules/expm1f-tests: New file.
2069         * tests/test-expm1f.c: New file.
2070
2071         New module 'expm1f'.
2072         * lib/math.in.h (expm1f): New declaration.
2073         * lib/expm1f.c: New file.
2074         * m4/expm1f.m4: New file.
2075         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
2076         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
2077         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
2078         * modules/expm1f: New file.
2079         * tests/test-math-c++.cc: Check the declaration of expm1f.
2080         * doc/posix-functions/expm1f.texi: Mention the new module.
2081
2082 2012-03-06  Bruno Haible  <bruno@clisp.org>
2083
2084         Tests for module 'expm1'.
2085         * modules/expm1-tests: New file.
2086         * tests/test-expm1.c: New file.
2087         * tests/test-expm1.h: New file.
2088
2089         New module 'expm1'.
2090         * lib/math.in.h (expm1): New declaration.
2091         * lib/expm1.c: New file.
2092         * m4/expm1.m4: New file.
2093         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
2094         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
2095         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
2096         * modules/expm1: New file.
2097         * tests/test-math-c++.cc: Check the declaration of expm1.
2098         * doc/posix-functions/expm1.texi: Mention the new module.
2099
2100 2012-03-06  Bruno Haible  <bruno@clisp.org>
2101
2102         math: Ensure declarations of math functions.
2103         * modules/acosf (Depends-on): Add 'extensions'.
2104         * modules/asinf (Depends-on): Likewise.
2105         * modules/atan2f (Depends-on): Likewise.
2106         * modules/atanf (Depends-on): Likewise.
2107         * modules/cbrt (Depends-on): Likewise.
2108         * modules/cbrtf (Depends-on): Likewise.
2109         * modules/cbrtl (Depends-on): Likewise.
2110         * modules/copysignf (Depends-on): Likewise.
2111         * modules/copysignl (Depends-on): Likewise.
2112         * modules/cosf (Depends-on): Likewise.
2113         * modules/coshf (Depends-on): Likewise.
2114         * modules/expf (Depends-on): Likewise.
2115         * modules/fabsf (Depends-on): Likewise.
2116         * modules/fabsl (Depends-on): Likewise.
2117         * modules/fmaf (Depends-on): Likewise.
2118         * modules/fmal (Depends-on): Likewise.
2119         * modules/fmodf (Depends-on): Likewise.
2120         * modules/fmodl (Depends-on): Likewise.
2121         * modules/frexpf (Depends-on): Likewise.
2122         * modules/frexpl (Depends-on): Likewise.
2123         * modules/hypot (Depends-on): Likewise.
2124         * modules/hypotf (Depends-on): Likewise.
2125         * modules/hypotl (Depends-on): Likewise.
2126         * modules/ldexpf (Depends-on): Likewise.
2127         * modules/ldexpl (Depends-on): Likewise.
2128         * modules/log10f (Depends-on): Likewise.
2129         * modules/log10l (Depends-on): Likewise.
2130         * modules/log1p (Depends-on): Likewise.
2131         * modules/logb (Depends-on): Likewise.
2132         * modules/logf (Depends-on): Likewise.
2133         * modules/modff (Depends-on): Likewise.
2134         * modules/modfl (Depends-on): Likewise.
2135         * modules/powf (Depends-on): Likewise.
2136         * modules/remainderf (Depends-on): Likewise.
2137         * modules/remainderl (Depends-on): Likewise.
2138         * modules/rintf (Depends-on): Likewise.
2139         * modules/rintl (Depends-on): Likewise.
2140         * modules/sinf (Depends-on): Likewise.
2141         * modules/sinhf (Depends-on): Likewise.
2142         * modules/sqrtf (Depends-on): Likewise.
2143         * modules/tanf (Depends-on): Likewise.
2144         * modules/tanhf (Depends-on): Likewise.
2145         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
2146         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
2147         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
2148         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
2149         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
2150         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
2151         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
2152         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
2153         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
2154         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
2155         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
2156         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
2157         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
2158         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
2159         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
2160         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
2161         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
2162         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2163         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
2164         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
2165         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
2166         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
2167         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
2168         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
2169         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2170         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
2171         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
2172         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2173         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
2174         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
2175         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2176         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
2177         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2178         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2179         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2180         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2181         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
2182         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
2183         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
2184         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
2185         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
2186
2187 2012-03-06  Bruno Haible  <bruno@clisp.org>
2188
2189         math: Update module names in warnings.
2190         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2191         tanl): Use specific module name in warn-on-use warning.
2192
2193 2012-03-06  Bruno Haible  <bruno@clisp.org>
2194
2195         expl: Simplify computation.
2196         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
2197
2198 2012-03-05  Bruno Haible  <bruno@clisp.org>
2199
2200         exp* tests: More tests.
2201         * tests/test-exp.h: New file.
2202         * tests/test-exp.c: Include <float.h> and test-exp.h.
2203         (main): Invoke test_function.
2204         * tests/test-expf.c: Include <float.h> and test-exp.h.
2205         (main): Invoke test_function.
2206         * tests/test-expl.c: Include <float.h> and test-exp.h.
2207         (main): Invoke test_function.
2208         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
2209         (Makefile.am): Add randomd.c to test_exp_SOURCES.
2210         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
2211         (Makefile.am): Add randomf.c to test_expf_SOURCES.
2212         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
2213         (Depends-on): Add 'float'.
2214         (Makefile.am): Add randoml.c to test_expl_SOURCES.
2215
2216         expl: Fix precision of computed result.
2217         * lib/expl.c: Completely rewritten.
2218         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
2219         (Maintainer): Add me.
2220         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
2221
2222 2012-03-05  Bruno Haible  <bruno@clisp.org>
2223
2224         cbrt* tests: More tests.
2225         * tests/test-cbrt.h: New file.
2226         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
2227         (main): Invoke test_function.
2228         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
2229         (main): Invoke test_function.
2230         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
2231         (main): Invoke test_function.
2232         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
2233         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
2234         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
2235         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
2236         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
2237         (Depends-on): Add 'float'.
2238         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
2239
2240 2012-03-05  Bruno Haible  <bruno@clisp.org>
2241
2242         hypot* tests: More tests.
2243         * tests/test-hypot.h: New file, partially extracted from
2244         tests/test-hypotl.c.
2245         * tests/test-hypot.c: Include test-hypot.h.
2246         (main): Invoke test_function.
2247         * tests/test-hypotf.c: Include test-hypot.h.
2248         (main): Invoke test_function.
2249         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
2250         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
2251         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
2252         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
2253         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
2254         tests/randomf.c.
2255         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
2256         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
2257         tests/randoml.c.
2258         (Depends-on): Add 'fpucw', 'float'.
2259         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
2260
2261 2012-03-05  Bruno Haible  <bruno@clisp.org>
2262
2263         fpucw: Doc about FreeBSD.
2264         * lib/fpucw.h: Mention FreeBSD in comments.
2265
2266 2012-03-04  Bruno Haible  <bruno@clisp.org>
2267
2268         sqrt* tests: More tests.
2269         * tests/test-sqrt.h: New file.
2270         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
2271         (main): Invoke test_function.
2272         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
2273         (main): Invoke test_function.
2274         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
2275         (main): Invoke test_function.
2276         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
2277         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
2278         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
2279         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
2280         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
2281         (Depends-on): Add 'float'.
2282         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
2283
2284 2012-03-04  Bruno Haible  <bruno@clisp.org>
2285
2286         remainder* tests: More tests.
2287         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
2288         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
2289         (main): Invoke test_function.
2290         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
2291         (main): Invoke test_function.
2292         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
2293         (main): Invoke test_function.
2294         * modules/remainder-tests (Files): Add tests/test-remainder.h,
2295         tests/randomd.c.
2296         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
2297         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
2298         tests/randomf.c.
2299         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
2300         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
2301         tests/randoml.c.
2302         (Depends-on): Add 'float'.
2303         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
2304
2305 2012-03-04  Bruno Haible  <bruno@clisp.org>
2306
2307         remainder, remainderf, remainderl: Fix computation for large quotients.
2308         * lib/remainder.c: Completely rewritten.
2309         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
2310         USE_FLOAT.
2311         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
2312         USE_LONG_DOUBLE.
2313         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
2314         isnand, isinf. Remove round, fma.
2315         * modules/remainderf (Files): Add lib/remainder.c.
2316         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
2317         Remove roundf, fmaf.
2318         * modules/remainderl (Files): Add lib/remainder.c.
2319         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
2320         isinf. Remove roundl, fmal.
2321         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
2322         REMAINDER_LIBM.
2323         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
2324         REMAINDERF_LIBM.
2325         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
2326         REMAINDERL_LIBM.
2327
2328 2012-03-04  Bruno Haible  <bruno@clisp.org>
2329
2330         fmod* tests: More tests.
2331         * tests/test-fmod.h (my_ldexp): New function.
2332         (test_function): Reduce amount of random numbers to test. Add tests
2333         of very large quotients x / y.
2334         * tests/test-fmod.c (MAX_EXP): New macro.
2335         * tests/test-fmodf.c (MAX_EXP): Likewise.
2336         * tests/test-fmodl.c (MAX_EXP): Likewise.
2337
2338 2012-03-04  Bruno Haible  <bruno@clisp.org>
2339
2340         fmod, fmodl: Fix computation for large quotients x / y.
2341         * lib/fmod.c: Completely rewritten.
2342         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
2343         USE_LONG_DOUBLE.
2344         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
2345         isnand. Remove fma.
2346         * modules/fmodl (Files): Add lib/fmod.c.
2347         (Depends-on): Add float, isfinite, signbit, fabsl,
2348         frexpl, ldexpl, isnanl. Remove fma.
2349         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
2350         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
2351
2352 2012-03-03  Bruno Haible  <bruno@clisp.org>
2353
2354         fmod* tests: More tests.
2355         * tests/test-fmod.h: New file.
2356         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
2357         (main): Invoke test_function.
2358         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
2359         (main): Invoke test_function.
2360         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
2361         (main): Invoke test_function.
2362         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
2363         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
2364         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
2365         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
2366         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
2367         (Depends-on): Add 'float'.
2368         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
2369
2370 2012-03-03  Bruno Haible  <bruno@clisp.org>
2371
2372         rint* tests: More tests.
2373         * tests/test-rint.h: New file, partially extracted from
2374         tests/test-rintl.c.
2375         * tests/test-rint.c: Include test-rint.h.
2376         (main): Invoke test_function.
2377         * tests/test-rintf.c: Include test-rint.h.
2378         (main): Invoke test_function.
2379         * tests/test-rintl.c: Include test-rint.h.
2380         (main): Invoke test_function.
2381         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
2382         (Makefile.am): Add randomd.c to test_rint_SOURCES.
2383         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
2384         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
2385         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
2386         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
2387
2388 2012-03-03  Bruno Haible  <bruno@clisp.org>
2389
2390         modf* tests: More tests.
2391         * tests/test-modf.h: New file.
2392         * tests/test-modf.c: Include <float.h> and test-modf.h.
2393         (main): Invoke test_function.
2394         * tests/test-modff.c: Include <float.h> and test-modf.h.
2395         (main): Invoke test_function.
2396         * tests/test-modfl.c: Include <float.h> and test-modf.h.
2397         (main): Invoke test_function.
2398         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
2399         (Makefile.am): Add randomd.c to test_modf_SOURCES.
2400         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
2401         (Makefile.am): Add randomf.c to test_modff_SOURCES.
2402         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
2403         (Depends-on): Add 'float'.
2404         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
2405
2406 2012-03-03  Bruno Haible  <bruno@clisp.org>
2407
2408         fabs* tests: More tests.
2409         * tests/test-fabs.h: New file, partially extracted from
2410         tests/test-fabsl.c.
2411         * tests/test-fabs.c (RANDOM): New macro.
2412         * tests/test-fabsf.c (RANDOM): New macro.
2413         * tests/test-fabsl.c (RANDOM): New macro.
2414         * modules/fabs-tests (Files): Add tests/randomd.c.
2415         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
2416         * modules/fabsf-tests (Files): Add tests/randomf.c.
2417         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
2418         * modules/fabsl-tests (Files): Add tests/randoml.c.
2419         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
2420
2421 2012-03-03  Bruno Haible  <bruno@clisp.org>
2422
2423         ldexp* tests: More tests.
2424         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
2425         * tests/test-ldexp.c (RANDOM): New macro.
2426         * tests/test-ldexpf.c (RANDOM): New macro.
2427         * tests/test-ldexpl.c (RANDOM): New macro.
2428         * modules/ldexp-tests (Files): Add tests/randomd.c.
2429         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
2430         * modules/ldexpf-tests (Files): Add tests/randomf.c.
2431         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
2432         * modules/ldexpl-tests (Files): Add tests/randoml.c.
2433         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
2434
2435 2012-03-03  Bruno Haible  <bruno@clisp.org>
2436
2437         frexp* tests: More tests.
2438         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
2439         * tests/test-frexp.c (RANDOM): New macro.
2440         * tests/test-frexpf.c (RANDOM): New macro.
2441         * tests/test-frexpl.c (RANDOM): New macro.
2442         * modules/frexp-tests (Files): Add tests/randomd.c.
2443         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
2444         * modules/frexpf-tests (Files): Add tests/randomf.c.
2445         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
2446         * modules/frexpl-tests (Files): Add tests/randoml.c.
2447         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
2448
2449 2012-03-03  Bruno Haible  <bruno@clisp.org>
2450
2451         Support for pseudo-random numbers in tests.
2452         * tests/randomf.c: New file.
2453         * tests/randomd.c: New file.
2454         * tests/randoml.c: New file.
2455         * tests/macros.h (randomf, randomd, randoml): New declarations.
2456
2457 2012-03-03  Bruno Haible  <bruno@clisp.org>
2458
2459         frexp* tests: Refactor.
2460         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
2461         * tests/test-frexp.c: Include and use it.
2462         * tests/test-frexpf.c: Likewise.
2463         * tests/test-frexpl.c: Likewise.
2464         * modules/frexp-tests (Files): Add tests/test-frexp.h.
2465         * modules/frexpf-tests (Files): Likewise.
2466         * modules/frexpl-tests (Files): Likewise.
2467
2468 2012-03-02  Jim Meyering  <meyering@redhat.com>
2469
2470         maint: don't specify XZ_OPT=-9ev in dist-related rule
2471         Using xz's -9 option is warranted only if you have a very large
2472         tarball (see xz's documentation for the sizes vs. presets), and
2473         requires 64MiB of memory at decompression time.
2474         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
2475         Automake's default of just "-e" is fine.  Override on a
2476         per-package basis by setting XZ_OPT e.g., in cfg.mk.
2477
2478 2012-03-01  Eric Blake  <eblake@redhat.com>
2479
2480         maint.mk: allow announcement for non-gnulib project
2481         * maint.mk (announcement): Skip gnulib version if not used.
2482
2483 2012-03-01  Jim Meyering  <meyering@redhat.com>
2484
2485         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
2486         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
2487         envvar settings cannot interfere.  Otherwise, setting envvars like
2488         prohibit=foo require=bar, etc. would cause spurious test failures.
2489
2490 2012-03-01  Eric Blake  <eblake@redhat.com>
2491
2492         maint.mk: add per-line exclusions to prohibitions
2493         * maint.mk (_sc_search_regexp): Add $exclude parameter.
2494         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2495         (sc_const_long_option): Use it.
2496
2497 2012-03-01  Bruno Haible  <bruno@clisp.org>
2498
2499         Tests for module 'expl-ieee'.
2500         * modules/expl-ieee-tests: New file.
2501         * tests/test-expl-ieee.c: New file.
2502
2503         New module 'expl-ieee'.
2504         * modules/expl-ieee: New file.
2505
2506         Tests for module 'exp-ieee'.
2507         * modules/exp-ieee-tests: New file.
2508         * tests/test-exp-ieee.c: New file.
2509
2510         New module 'exp-ieee'.
2511         * modules/exp-ieee: New file.
2512
2513         Tests for module 'expf-ieee'.
2514         * modules/expf-ieee-tests: New file.
2515         * tests/test-expf-ieee.c: New file.
2516         * tests/test-exp-ieee.h: New file.
2517
2518         New module 'expf-ieee'.
2519         * modules/expf-ieee: New file.
2520
2521 2012-02-29  Bruno Haible  <bruno@clisp.org>
2522
2523         cbrtl-ieee: Work around test failure on IRIX 6.5.
2524         * m4/cbrtl-ieee.m4: New file.
2525         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
2526         test whether cbrtl works with a minus zero argument. Replace it if not.
2527         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
2528         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
2529         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
2530         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
2531         (Depends-on): Update conditions.
2532         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
2533         m4/signbit.m4.
2534         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
2535         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
2536         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
2537
2538         Tests for module 'cbrtl-ieee'.
2539         * modules/cbrtl-ieee-tests: New file.
2540         * tests/test-cbrtl-ieee.c: New file.
2541
2542         New module 'cbrtl-ieee'.
2543         * modules/cbrtl-ieee: New file.
2544
2545         Tests for module 'cbrt-ieee'.
2546         * modules/cbrt-ieee-tests: New file.
2547         * tests/test-cbrt-ieee.c: New file.
2548
2549         New module 'cbrt-ieee'.
2550         * modules/cbrt-ieee: New file.
2551
2552         Tests for module 'cbrtf-ieee'.
2553         * modules/cbrtf-ieee-tests: New file.
2554         * tests/test-cbrtf-ieee.c: New file.
2555         * tests/test-cbrt-ieee.h: New file.
2556
2557         New module 'cbrtf-ieee'.
2558         * modules/cbrtf-ieee: New file.
2559
2560 2012-02-29  Bruno Haible  <bruno@clisp.org>
2561
2562         cbrtf: Work around bug in IRIX 6.5 system function.
2563         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
2564         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
2565         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
2566         work.
2567         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
2568         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
2569         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
2570         (Depends-on): Update conditions.
2571         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
2572
2573 2012-02-29  Bruno Haible  <bruno@clisp.org>
2574
2575         Tests for module 'cbrtl'.
2576         * modules/cbrtl-tests: New file.
2577         * tests/test-cbrtl.c: New file.
2578
2579         New module 'cbrtl'.
2580         * lib/math.in.h (cbrtl): New declaration.
2581         * lib/cbrtl.c: New file.
2582         * m4/cbrtl.m4: New file.
2583         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
2584         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
2585         HAVE_DECL_CBRTL.
2586         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
2587         HAVE_DECL_CBRTL.
2588         * modules/cbrtl: New file.
2589         * tests/test-math-c++.cc: Check the declaration of cbrtl.
2590         * doc/posix-functions/cbrtl.texi: Mention the new module.
2591
2592 2012-02-29  Bruno Haible  <bruno@clisp.org>
2593
2594         Tests for module 'cbrtf'.
2595         * modules/cbrtf-tests: New file.
2596         * tests/test-cbrtf.c: New file.
2597
2598         New module 'cbrtf'.
2599         * lib/math.in.h (cbrtf): New declaration.
2600         * lib/cbrtf.c: New file.
2601         * m4/cbrtf.m4: New file.
2602         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
2603         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
2604         HAVE_DECL_CBRTF.
2605         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
2606         HAVE_DECL_CBRTF.
2607         * modules/cbrtf: New file.
2608         * tests/test-math-c++.cc: Check the declaration of cbrtf.
2609         * doc/posix-functions/cbrtf.texi: Mention the new module.
2610
2611 2012-02-29  Bruno Haible  <bruno@clisp.org>
2612
2613         cbrt: Provide replacement on MSVC and Minix.
2614         * lib/math.in.h (cbrt): New declaration.
2615         * lib/cbrt.c: New file.
2616         * m4/cbrt.m4: New file.
2617         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
2618         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
2619         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
2620         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
2621         (Depends-on): Add dependencies.
2622         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
2623         * tests/test-math-c++.cc: Check the declaration of cbrt.
2624         * doc/posix-functions/cbrt.texi: Mention that the module provides a
2625         replacement.
2626
2627 2012-02-29  Bruno Haible  <bruno@clisp.org>
2628
2629         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
2630         * m4/hypotl-ieee.m4: New file.
2631         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
2632         test whether hypotl works with mixed NaN and Infinity arguments.
2633         Replace it if not.
2634         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
2635         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
2636         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
2637         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
2638         (Depends-on): Update conditions.
2639         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
2640         (Depends-on): Add hypot-ieee.
2641         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
2642         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
2643
2644         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
2645         * m4/hypotf-ieee.m4: New file.
2646         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
2647         test whether hypotf works with mixed NaN and Infinity arguments.
2648         Replace it if not.
2649         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
2650         (Depends-on): Add hypot-ieee.
2651         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
2652         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
2653
2654         hypot-ieee: Work around test failure on OSF/1 and native Windows.
2655         * lib/math.in.h (hypot): New declaration.
2656         * lib/hypot.c: New file.
2657         * m4/hypot-ieee.m4: New file.
2658         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
2659         whether hypot works with mixed NaN and Infinity arguments. Replace it
2660         if not.
2661         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
2662         REPLACE_HYPOT.
2663         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
2664         * modules/hypot (Files): Add lib/hypot.c.
2665         (Depends-on): Add dependencies.
2666         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
2667         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
2668         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
2669         * tests/test-math-c++.cc: Check the declaration of hypot.
2670         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
2671
2672         Tests for module 'hypotl-ieee'.
2673         * modules/hypotl-ieee-tests: New file.
2674         * tests/test-hypotl-ieee.c: New file.
2675
2676         New module 'hypotl-ieee'.
2677         * modules/hypotl-ieee: New file.
2678
2679         Tests for module 'hypot-ieee'.
2680         * modules/hypot-ieee-tests: New file.
2681         * tests/test-hypot-ieee.c: New file.
2682
2683         New module 'hypot-ieee'.
2684         * modules/hypot-ieee: New file.
2685
2686         Tests for module 'hypotf-ieee'.
2687         * modules/hypotf-ieee-tests: New file.
2688         * tests/test-hypotf-ieee.c: New file.
2689         * tests/test-hypot-ieee.h: New file.
2690
2691         New module 'hypotf-ieee'.
2692         * modules/hypotf-ieee: New file.
2693
2694 2012-02-29  Bruno Haible  <bruno@clisp.org>
2695
2696         Remove unused variables.
2697         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
2698         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2699         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
2700         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2701
2702 2012-02-29  Eric Blake  <eblake@redhat.com>
2703
2704         termios: fix pid_t always, not just for tcgetsid
2705         * doc/posix-headers/termios.texi (termios.h): Mention problem.
2706         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
2707         just when building tcgetsid.
2708
2709 2012-02-29  Bruno Haible  <bruno@clisp.org>
2710
2711         Tests for module 'hypotl'.
2712         * modules/hypotl-tests: New file.
2713         * tests/test-hypotl.c: New file.
2714
2715         New module 'hypotl'.
2716         * lib/math.in.h (hypotl): New declaration.
2717         * lib/hypotl.c: New file.
2718         * m4/hypotl.m4: New file.
2719         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2720         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
2721         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
2722         * modules/hypotl: New file.
2723         * tests/test-math-c++.cc: Check the hypotl declaration.
2724         * doc/posix-functions/hypotl.texi: Mention the new module.
2725
2726 2012-02-29  Eric Blake  <eblake@redhat.com>
2727
2728         tcgetsid: fix cygwin header bug
2729         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
2730
2731         docs: update cygwin progress
2732         * doc/posix-functions/llround.texi (llround): Added in cygwin
2733         1.7.8.
2734         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
2735         * doc/glibc-functions/program_invocation_name.texi
2736         (program_invocation_name): Likewise.
2737         * doc/glibc-functions/program_invocation_short_name.texi
2738         (program_invocation_short_name): Likewise.
2739         * doc/glibc-functions/madvise.texi (madvise): Likewise.
2740         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
2741         Likewise.
2742         * doc/posix-functions/pthread_spin_destroy.texi
2743         (pthread_spin_destroy): Added in cygwin 1.7.10.
2744         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
2745         Likewise.
2746         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
2747         Likewise.
2748         * doc/posix-functions/pthread_spin_trylock.texi
2749         (pthread_spin_trylock): Likewise.
2750         * doc/posix-functions/pthread_spin_unlock.texi
2751         (pthread_spin_unlock): Likewise.
2752         * doc/posix-functions/pthread_setschedprio.texi
2753         (pthread_setschedprio): Likewise.
2754         * doc/posix-functions/pthread_attr_getstack.texi
2755         (pthread_attr_getstack): Likewise.
2756         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
2757         (pthread_attr_getstackaddr): Likewise.
2758         * doc/glibc-functions/pthread_getattr_np.texi
2759         (pthread_getattr_np): Likewise.
2760         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
2761         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
2762         * doc/posix-functions/clock_settime.texi (clock_settime):
2763         Likewise.
2764         * doc/posix-functions/pthread_attr_getguardsize.texi
2765         (pthread_attr_getguardsize): Likewise.
2766         * doc/posix-functions/pthread_attr_setguardsize.texi
2767         (pthread_attr_setguardsize): Likewise.
2768         * doc/posix-functions/pthread_attr_setstack.texi
2769         (pthread_attr_setstack): Likewise.
2770         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
2771         (pthread_attr_setstackaddr): Likewise.
2772         * doc/posix-functions/clock_getcpuclockid.texi
2773         (clock_getcpuclockid): Likewise.
2774         * doc/posix-functions/pthread_getcpuclockid.texi
2775         (pthread_getcpuclockid): Likewise.
2776         * doc/glibc-functions/error.texi (error): Likewise.
2777         * doc/glibc-functions/error_at_line.texi (error_at_line):
2778         Likewise.
2779         * doc/glibc-functions/error_message_count.texi
2780         (error_message_count): Likewise.
2781         * doc/glibc-functions/error_one_per_line.texi
2782         (error_one_per_line): Likewise.
2783         * doc/glibc-functions/error_print_progname.texi
2784         (error_print_progname): Likewise.
2785         * doc/posix-functions/pthread_condattr_getclock.texi
2786         (pthread_condattr_getclock): Likewise.
2787         * doc/posix-functions/pthread_condattr_setclock.texi
2788         (pthread_condattr_setclock): Likewise.
2789         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
2790         Likewise.
2791         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
2792         * doc/glibc-functions/getpt.texi (getpt): Likewise.
2793         * doc/glibc-functions/get_current_dir_name.texi
2794         (get_current_dir_name): Likewise.
2795         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
2796         Likewise.
2797         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
2798         wrong return type.
2799         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
2800         1.7.11.
2801
2802 2012-02-29  Bruno Haible  <bruno@clisp.org>
2803
2804         Tests for module 'hypotf'.
2805         * modules/hypotf-tests: New file.
2806         * tests/test-hypotf.c: New file.
2807
2808         New module 'hypotf'.
2809         * lib/math.in.h (hypotf): New declaration.
2810         * lib/hypotf.c: New file.
2811         * m4/hypotf.m4: New file.
2812         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2813         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
2814         REPLACE_HYPOTF.
2815         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
2816         REPLACE_HYPOTF.
2817         * modules/hypotf: New file.
2818         * tests/test-math-c++.cc: Check the hypotf declaration.
2819         * doc/posix-functions/hypotf.texi: Mention the new module.
2820
2821         hypot: Prepare for hypotf module.
2822         * m4/hypot.m4: New file.
2823         * modules/hypot (Files): Add m4/hypot.m4.
2824         (configure.ac): Invoke gl_FUNC_HYPOT.
2825
2826 2012-02-29  Bruno Haible  <bruno@clisp.org>
2827
2828         hypot tests: More tests.
2829         * tests/test-hypot.c: Include <float.h>.
2830         (main): Add tests about overflow and underflow.
2831
2832 2012-02-29  Bruno Haible  <bruno@clisp.org>
2833
2834         math code: Add comments.
2835         * lib/acosl.c: Add comment about related glibc source files.
2836         * lib/asinl.c: Likewise.
2837         * lib/atanl.c: Likewise.
2838         * lib/expl.c: Likewise.
2839         * lib/logl.c: Likewise.
2840         * lib/sincosl.c: Likewise.
2841         * lib/sinl.c: Likewise.
2842         * lib/tanl.c: Likewise.
2843         * lib/trigl.c: Likewise.
2844         * lib/cosl.c: Likewise. Fix comments.
2845
2846 2012-02-28  Bruno Haible  <bruno@clisp.org>
2847
2848         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
2849         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
2850         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
2851         HUGE_VALL are defined.
2852         (numeric_equald): Renamed from numeric_equal.
2853         (numeric_equalf, numeric_equall): New functions.
2854         (main): Check also HUGE_VALF, HUGE_VALL.
2855         * modules/math-tests (Files): Add tests/macros.h.
2856         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
2857         HUGE_VALL.
2858
2859 2012-02-28  Bruno Haible  <bruno@clisp.org>
2860
2861         doc: Move ISO C11 feature notes into POSIX chapters.
2862         * doc/posix-functions/aligned_alloc.texi: Renamed from
2863         doc/glibc-functions/aligned_alloc.texi.
2864         * doc/posix-functions/quick_exit.texi: Renamed from
2865         doc/glibc-functions/quick_exit.texi.
2866         * doc/posix-headers/uchar.texi: Renamed from
2867         doc/glibc-headers/uchar.texi.
2868         * doc/posix-functions/c16rtomb.texi: Renamed from
2869         doc/glibc-functions/c16rtomb.texi.
2870         * doc/posix-functions/c32rtomb.texi: Renamed from
2871         doc/glibc-functions/c32rtomb.texi.
2872         * doc/posix-functions/mbrtoc16.texi: Renamed from
2873         doc/glibc-functions/mbrtoc16.texi.
2874         * doc/posix-functions/mbrtoc32.texi: Renamed from
2875         doc/glibc-functions/mbrtoc32.texi.
2876         * doc/gnulib.texi: Update.
2877         (Glibc uchar.h): Remove section.
2878         Suggested by Eric Blake.
2879
2880 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
2881
2882         stdnoreturn: port to MSVC better
2883         MSVC standard headers use __declspec(noreturn), so #define noreturn
2884         to empty on that platform.  Reported by Bruno Haible in
2885         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
2886         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
2887         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
2888
2889 2012-02-28  Bruno Haible  <bruno@clisp.org>
2890
2891         doc: Mention new glibc headers and functions.
2892         * doc/glibc-headers/uchar.texi: New file.
2893         * doc/glibc-functions/aligned_alloc.texi: New file.
2894         * doc/glibc-functions/c16rtomb.texi: New file.
2895         * doc/glibc-functions/c32rtomb.texi: New file.
2896         * doc/glibc-functions/clock_adjtime.texi: New file.
2897         * doc/glibc-functions/fanotify_init.texi: New file.
2898         * doc/glibc-functions/fanotify_mark.texi: New file.
2899         * doc/glibc-functions/inet6_opt_append.texi: New file.
2900         * doc/glibc-functions/inet6_opt_find.texi: New file.
2901         * doc/glibc-functions/inet6_opt_finish.texi: New file.
2902         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
2903         * doc/glibc-functions/inet6_opt_init.texi: New file.
2904         * doc/glibc-functions/inet6_opt_next.texi: New file.
2905         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
2906         * doc/glibc-functions/inet6_rth_add.texi: New file.
2907         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
2908         * doc/glibc-functions/inet6_rth_init.texi: New file.
2909         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
2910         * doc/glibc-functions/inet6_rth_segments.texi: New file.
2911         * doc/glibc-functions/inet6_rth_space.texi: New file.
2912         * doc/glibc-functions/login.texi: New file.
2913         * doc/glibc-functions/mbrtoc16.texi: New file.
2914         * doc/glibc-functions/mbrtoc32.texi: New file.
2915         * doc/glibc-functions/name_to_handle_at.texi: New file.
2916         * doc/glibc-functions/ntp_gettimex.texi: New file.
2917         * doc/glibc-functions/open_by_handle_at.texi: New file.
2918         * doc/glibc-functions/prlimit.texi: New file.
2919         * doc/glibc-functions/process_vm_readv.texi: New file.
2920         * doc/glibc-functions/process_vm_writev.texi: New file.
2921         * doc/glibc-functions/recvmmsg.texi: New file.
2922         * doc/glibc-functions/scandirat.texi: New file.
2923         * doc/glibc-functions/sendmmsg.texi: New file.
2924         * doc/glibc-functions/setns.texi: New file.
2925         * doc/glibc-functions/timespec_get.texi: New file.
2926         * doc/gnulib.texi: Include them.
2927         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
2928         sections.
2929         Reported by Eric Blake.
2930
2931 2012-02-28  Bruno Haible  <bruno@clisp.org>
2932
2933         Avoid compilation errors with MSVC option -fp:strict.
2934         * lib/floor.c: Use MSVC specific pragma fenv_access.
2935         * lib/ceil.c: Likewise.
2936         * lib/trunc.c: Likewise.
2937         * lib/round.c: Likewise.
2938         * lib/rint.c: Likewise.
2939         * lib/fma.c: Likewise.
2940         * lib/integer_length.c: Likewise.
2941         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2942         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2943         * tests/test-floor2.c: Likewise.
2944         * tests/test-floorf2.c: Likewise.
2945         * tests/test-ceil2.c: Likewise.
2946         * tests/test-ceilf2.c: Likewise.
2947         * tests/test-trunc2.c: Likewise.
2948         * tests/test-truncf2.c: Likewise.
2949         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2950
2951 2012-02-27  Bruno Haible  <bruno@clisp.org>
2952
2953         Tests for module 'sqrtl-ieee'.
2954         * modules/sqrtl-ieee-tests: New file.
2955         * tests/test-sqrtl-ieee.c: New file.
2956
2957         New module 'sqrtl-ieee'.
2958         * modules/sqrtl-ieee: New file.
2959
2960         Tests for module 'sqrt-ieee'.
2961         * modules/sqrt-ieee-tests: New file.
2962         * tests/test-sqrt-ieee.c: New file.
2963
2964         New module 'sqrt-ieee'.
2965         * modules/sqrt-ieee: New file.
2966
2967         Tests for module 'sqrtf-ieee'.
2968         * modules/sqrtf-ieee-tests: New file.
2969         * tests/test-sqrtf-ieee.c: New file.
2970         * tests/test-sqrt-ieee.h: New file.
2971
2972         New module 'sqrtf-ieee'.
2973         * modules/sqrtf-ieee: New file.
2974
2975 2012-02-27  Bruno Haible  <bruno@clisp.org>
2976
2977         remainderl-ieee: Work around test failure on OSF/1.
2978         * m4/remainderl-ieee.m4: New file.
2979         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
2980         present, test whether remainderl works with a zero second argument.
2981         Replace it if not.
2982         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
2983         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
2984         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
2985         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
2986         (Depends-on): Update conditions.
2987         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
2988         (Depends-on): Add remainder-ieee.
2989         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
2990         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
2991         module.
2992
2993         remainderf-ieee: Work around test failure on OSF/1.
2994         * m4/remainderf-ieee.m4: New file.
2995         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
2996         present, test whether remainderf works with a zero second argument.
2997         Replace it if not.
2998         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
2999         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
3000         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
3001         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
3002         (Depends-on): Update conditions.
3003         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
3004         (Depends-on): Add remainder-ieee.
3005         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
3006         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
3007         module.
3008
3009         remainder-ieee: Work around test failure on OSF/1.
3010         * m4/remainder-ieee.m4: New file.
3011         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
3012         present, test whether remainder works with a zero second argument.
3013         Replace it if not.
3014         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
3015         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
3016         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
3017         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
3018         (Depends-on): Update dependencies.
3019         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
3020         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
3021         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
3022
3023         Tests for module 'remainderl-ieee'.
3024         * modules/remainderl-ieee-tests: New file.
3025         * tests/test-remainderl-ieee.c: New file.
3026
3027         New module 'remainderl-ieee'.
3028         * modules/remainderl-ieee: New file.
3029
3030         Tests for module 'remainder-ieee'.
3031         * modules/remainder-ieee-tests: New file.
3032         * tests/test-remainder-ieee.c: New file.
3033
3034         New module 'remainder-ieee'.
3035         * modules/remainder-ieee: New file.
3036
3037         Tests for module 'remainderf-ieee'.
3038         * modules/remainderf-ieee-tests: New file.
3039         * tests/test-remainderf-ieee.c: New file.
3040         * tests/test-remainder-ieee.h: New file.
3041
3042         New module 'remainderf-ieee'.
3043         * modules/remainderf-ieee: New file.
3044
3045 2012-02-27  Bruno Haible  <bruno@clisp.org>
3046
3047         modff, modfl: Fix configure syntax error.
3048         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
3049         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3050
3051 2012-02-27  Bruno Haible  <bruno@clisp.org>
3052
3053         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
3054         * m4/fmodl-ieee.m4: New file.
3055         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
3056         whether fmodl works with zero arguments. Replace it if not.
3057         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
3058         (Depends-on): Add fmod-ieee.
3059         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
3060         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
3061
3062         fmodf-ieee: Work around test failure on OSF/1.
3063         * m4/fmodf-ieee.m4: New file.
3064         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
3065         whether fmodf works with zero arguments. Replace it if not.
3066         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
3067         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
3068         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
3069         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
3070         (Depends-on): Update dependencies.
3071         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
3072         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
3073         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
3074
3075         fmodf-ieee: Work around test failure on MSVC 9.
3076         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
3077         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
3078
3079         fmod-ieee: Work around test failures on OSF/1, mingw.
3080         * m4/fmod-ieee.m4: New file.
3081         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
3082         whether fmod works with zero arguments. Replace it if not.
3083         * lib/math.in.h (fmod): New declaration.
3084         * lib/fmod.c: New file.
3085         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
3086         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
3087         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
3088         * modules/fmod (Files): Add lib/fmod.c.
3089         (Depends-on): Add math, isinf, trunc, fma.
3090         (configure.ac): Arrange to compile lib/fmod.c if needed.
3091         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
3092         m4/signbit.m4.
3093         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
3094         * tests/test-math-c++.cc: Check the declaration of fmod.
3095         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
3096
3097         fmodl-ieee: Fix test failures.
3098         * lib/fmodl.c (fmodl): Treat Inf specially.
3099         * modules/fmodl (Depends-on): Add isinf.
3100
3101         Tests for module 'fmodl-ieee'.
3102         * modules/fmodl-ieee-tests: New file.
3103         * tests/test-fmodl-ieee.c: New file.
3104
3105         New module 'fmodl-ieee'.
3106         * modules/fmodl-ieee: New file.
3107
3108         Tests for module 'fmod-ieee'.
3109         * modules/fmod-ieee-tests: New file.
3110         * tests/test-fmod-ieee.c: New file.
3111
3112         New module 'fmod-ieee'.
3113         * modules/fmod-ieee: New file.
3114
3115         Tests for module 'fmodf-ieee'.
3116         * modules/fmodf-ieee-tests: New file.
3117         * tests/test-fmodf-ieee.c: New file.
3118         * tests/test-fmod-ieee.h: New file.
3119
3120         New module 'fmodf-ieee'.
3121         * modules/fmodf-ieee: New file.
3122
3123 2012-02-27  Bruno Haible  <bruno@clisp.org>
3124
3125         Tests for module 'rintl-ieee'.
3126         * modules/rintl-ieee-tests: New file.
3127         * tests/test-rintl-ieee.c: New file.
3128
3129         New module 'rintl-ieee'.
3130         * modules/rintl-ieee: New file.
3131
3132         Tests for module 'rint-ieee'.
3133         * modules/rint-ieee-tests: New file.
3134         * tests/test-rint-ieee.c: New file.
3135
3136         New module 'rint-ieee'.
3137         * modules/rint-ieee: New file.
3138
3139         Tests for module 'rintf-ieee'.
3140         * modules/rintf-ieee-tests: New file.
3141         * tests/test-rintf-ieee.c: New file.
3142         * tests/test-rint-ieee.h: New file.
3143
3144         New module 'rintf-ieee'.
3145         * modules/rintf-ieee: New file.
3146
3147 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
3148
3149         regex: re_search etc. should return -2 when memory exhausted
3150         This bug was uncovered when testing 'grep'.  Without the fix,
3151         re_search and friends return -1 when memory is exhausted, but -1
3152         means no match, and this causes grep to falsely report no-match
3153         instead of memory-exhaustion.  See
3154         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
3155         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
3156         trouble; this can occur if re_search_internal ran out of memory.
3157
3158 2012-02-26  Bruno Haible  <bruno@clisp.org>
3159
3160         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
3161         * m4/modfl-ieee.m4: New file.
3162         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
3163         whether modfl works with Inf. Replace it if not.
3164         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
3165         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
3166         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
3167         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
3168         (Depends-on): Update dependencies.
3169         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
3170         m4/signbit.m4.
3171         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
3172         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
3173
3174         modfl-ieee: Fix dependencies.
3175         * modules/modfl-ieee (Depends-on): Add modf-ieee.
3176
3177         modfl-ieee: Fix test failures.
3178         * lib/modfl.c (modfl): Treat NaN and Inf specially.
3179         * modules/modfl (Depends-on): Add isfinite, isinf.
3180
3181         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
3182         * m4/modff-ieee.m4: New file.
3183         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
3184         whether modff works with NaN and Inf. Replace it if not.
3185         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
3186         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
3187         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
3188         * modules/modff (configure.ac): Consider REPLACE_MODFF.
3189         (Depends-on): Update dependencies.
3190         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
3191         m4/signbit.m4.
3192         (Depends-on): Add modf-ieee.
3193         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
3194         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
3195
3196         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
3197         * m4/modf-ieee.m4: New file.
3198         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
3199         whether modf works with NaN and Inf. Replace it if not.
3200         * lib/math.in.h (modf): New declaration.
3201         * lib/modf.c: New file.
3202         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
3203         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
3204         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
3205         * modules/modf (Files): Add lib/modf.c.
3206         (Depends-on): Add math, isfinite, trunc, isinf.
3207         (configure.ac): Addrange to compile lib/modf.c if needed.
3208         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
3209         m4/signbit.m4.
3210         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
3211         * tests/test-math-c++.cc: Check the declaration of modf.
3212         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
3213
3214         Tests for module 'modfl-ieee'.
3215         * modules/modfl-ieee-tests: New file.
3216         * tests/test-modfl-ieee.c: New file.
3217
3218         New module 'modfl-ieee'.
3219         * modules/modfl-ieee: New file.
3220
3221         Tests for module 'modf-ieee'.
3222         * modules/modf-ieee-tests: New file.
3223         * tests/test-modf-ieee.c: New file.
3224
3225         New module 'modf-ieee'.
3226         * modules/modf-ieee: New file.
3227
3228         Tests for module 'modff-ieee'.
3229         * modules/modff-ieee-tests: New file.
3230         * tests/test-modff-ieee.c: New file.
3231         * tests/test-modf-ieee.h: New file.
3232
3233         New module 'modff-ieee'.
3234         * modules/modff-ieee: New file.
3235
3236 2012-02-26  Bruno Haible  <bruno@clisp.org>
3237
3238         Tests for module 'fabsl-ieee'.
3239         * modules/fabsl-ieee-tests: New file.
3240         * tests/test-fabsl-ieee.c: New file.
3241
3242         New module 'fabsl-ieee'.
3243         * modules/fabsl-ieee: New file.
3244
3245         Tests for module 'fabs-ieee'.
3246         * modules/fabs-ieee-tests: New file.
3247         * tests/test-fabs-ieee.c: New file.
3248
3249         New module 'fabs-ieee'.
3250         * modules/fabs-ieee: New file.
3251
3252         Tests for module 'fabsf-ieee'.
3253         * modules/fabsf-ieee-tests: New file.
3254         * tests/test-fabsf-ieee.c: New file.
3255         * tests/test-fabs-ieee.h: New file.
3256
3257         New module 'fabsf-ieee'.
3258         * modules/fabsf-ieee: New file.
3259
3260 2012-02-26  Bruno Haible  <bruno@clisp.org>
3261
3262         Tests for module 'fmal-ieee'.
3263         * modules/fmal-ieee-tests: New file.
3264         * tests/test-fmal-ieee.c: New file.
3265
3266         New module 'fmal-ieee'.
3267         * modules/fmal-ieee: New file.
3268
3269         Tests for module 'fma-ieee'.
3270         * modules/fma-ieee-tests: New file.
3271         * tests/test-fma-ieee.c: New file.
3272
3273         New module 'fma-ieee'.
3274         * modules/fma-ieee: New file.
3275
3276         Tests for module 'fmaf-ieee'.
3277         * modules/fmaf-ieee-tests: New file.
3278         * tests/test-fmaf-ieee.c: New file.
3279         * tests/test-fma-ieee.h: New file.
3280
3281         New module 'fmaf-ieee'.
3282         * modules/fmaf-ieee: New file.
3283
3284 2012-02-26  Bruno Haible  <bruno@clisp.org>
3285
3286         Tests for module 'ldexpl-ieee'.
3287         * modules/ldexpl-ieee-tests: New file.
3288         * tests/test-ldexpl-ieee.c: New file.
3289
3290         New module 'ldexpl-ieee'.
3291         * modules/ldexpl-ieee: New file.
3292
3293         Tests for module 'ldexp-ieee'.
3294         * modules/ldexp-ieee-tests: New file.
3295         * tests/test-ldexp-ieee.c: New file.
3296
3297         New module 'ldexp-ieee'.
3298         * modules/ldexp-ieee: New file.
3299
3300         Tests for module 'ldexpf-ieee'.
3301         * modules/ldexpf-ieee-tests: New file.
3302         * tests/test-ldexpf-ieee.c: New file.
3303         * tests/test-ldexp-ieee.h: New file.
3304
3305         New module 'ldexpf-ieee'.
3306         * modules/ldexpf-ieee: New file.
3307
3308 2012-02-26  Bruno Haible  <bruno@clisp.org>
3309
3310         Refactor frexp*-ieee tests.
3311         * tests/test-frexp-ieee.h: New file.
3312         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
3313         (main): Just call test_function.
3314         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
3315         (main): Just call test_function.
3316         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
3317         (main): Just call test_function.
3318         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
3319         * modules/frexp-ieee-tests (Files): Likewise.
3320         * modules/frexpl-ieee-tests (Files): Likewise.
3321
3322         Tests for module 'frexpl-ieee'.
3323         * modules/frexpl-ieee-tests: New file.
3324         * tests/test-frexpl-ieee.c: New file.
3325
3326         New module 'frexpl-ieee'.
3327         * modules/frexpl-ieee: New file.
3328
3329         Tests for module 'frexp-ieee'.
3330         * modules/frexp-ieee-tests: New file.
3331         * tests/test-frexp-ieee.c: New file.
3332
3333         New module 'frexp-ieee'.
3334         * modules/frexp-ieee: New file.
3335
3336         Tests for module 'frexpf-ieee'.
3337         * modules/frexpf-ieee-tests: New file.
3338         * tests/test-frexpf-ieee.c: New file.
3339
3340         New module 'frexpf-ieee'.
3341         * modules/frexpf-ieee: New file.
3342
3343 2012-02-26  Bruno Haible  <bruno@clisp.org>
3344
3345         roundl-ieee tests: More tests.
3346         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3347         (main): Add tests for [MX] shaded specification in POSIX.
3348         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3349         (Depends-on): Add isnanl-nolibm.
3350
3351         round-ieee tests: More tests.
3352         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3353         (main): Add tests for [MX] shaded specification in POSIX.
3354         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3355         (Depends-on): Add isnand-nolibm.
3356
3357         roundf-ieee tests: More tests.
3358         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3359         (main): Add tests for [MX] shaded specification in POSIX.
3360         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3361         (Depends-on): Add isnanf-nolibm.
3362
3363         truncl-ieee tests: More tests.
3364         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3365         (main): Add tests for [MX] shaded specification in POSIX.
3366         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3367         (Depends-on): Add isnanl-nolibm.
3368
3369         trunc-ieee tests: More tests.
3370         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3371         (main): Add tests for [MX] shaded specification in POSIX.
3372         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3373         (Depends-on): Add isnand-nolibm.
3374
3375         truncf-ieee tests: More tests.
3376         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3377         (main): Add tests for [MX] shaded specification in POSIX.
3378         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3379         (Depends-on): Add isnanf-nolibm.
3380
3381         ceill-ieee tests: More tests.
3382         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3383         (main): Add tests for [MX] shaded specification in POSIX.
3384         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3385         (Depends-on): Add isnanl-nolibm.
3386
3387         ceil-ieee tests: More tests.
3388         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3389         (main): Add tests for [MX] shaded specification in POSIX.
3390         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3391         (Depends-on): Add isnand-nolibm.
3392
3393         ceilf-ieee tests: More tests.
3394         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3395         (main): Add tests for [MX] shaded specification in POSIX.
3396         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3397         (Depends-on): Add isnanf-nolibm.
3398
3399         floorl-ieee tests: More tests.
3400         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3401         (main): Add tests for [MX] shaded specification in POSIX.
3402         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3403         (Depends-on): Add isnanl-nolibm.
3404
3405         floor-ieee tests: More tests.
3406         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3407         (main): Add tests for [MX] shaded specification in POSIX.
3408         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3409         (Depends-on): Add isnand-nolibm.
3410
3411         floorf-ieee tests: More tests.
3412         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3413         (main): Add tests for [MX] shaded specification in POSIX.
3414         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3415         (Depends-on): Add isnanf-nolibm.
3416
3417 2012-02-26  Bruno Haible  <bruno@clisp.org>
3418
3419         fpieee: More comments.
3420         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
3421
3422 2012-02-25  Bruno Haible  <bruno@clisp.org>
3423
3424         Tests for module 'log10l'.
3425         * modules/log10l-tests: New file.
3426         * tests/test-log10l.c: New file.
3427         * tests/test-math-c++.cc: Check the declaration of log10l.
3428
3429         New module 'log10l'.
3430         * lib/math.in.h (log10l): New declaration.
3431         * lib/log10l.c: New file.
3432         * m4/log10l.m4: New file.
3433         * modules/log10l: New file.
3434         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
3435         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
3436         HAVE_DECL_LOG10L.
3437         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
3438         HAVE_DECL_LOG10L.
3439         * doc/posix-functions/log10l.texi: Mention the new module.
3440
3441 2012-02-25  Bruno Haible  <bruno@clisp.org>
3442
3443         fmodl, remainder*: Avoid wrong results due to rounding errors.
3444         * lib/fmodl.c (fmodl): Correct the result if it is not within the
3445         expected bounds.
3446         * lib/remainderf.c (remainderf): Likewise.
3447         * lib/remainder.c (remainder): Likewise.
3448         * lib/remainderl.c (remainderl): Likewise.
3449
3450 2012-02-25  Bruno Haible  <bruno@clisp.org>
3451
3452         Tests for module 'remainderl'.
3453         * modules/remainderl-tests: New file.
3454         * tests/test-remainderl.c: New file.
3455         * tests/test-math-c++.cc: Check the declaration of remainderl.
3456
3457         New module 'remainderl'.
3458         * lib/math.in.h (remainderl): New declaration.
3459         * lib/remainderl.c: New file.
3460         * m4/remainderl.m4: New file.
3461         * modules/remainderl: New file.
3462         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
3463         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
3464         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
3465         HAVE_REMAINDERL.
3466         * doc/posix-functions/remainderl.texi: Mention the new module.
3467
3468 2012-02-25  Bruno Haible  <bruno@clisp.org>
3469
3470         Tests for module 'remainderf'.
3471         * modules/remainderf-tests: New file.
3472         * tests/test-remainderf.c: New file.
3473         * tests/test-math-c++.cc: Check the declaration of remainderf.
3474
3475         New module 'remainderf'.
3476         * lib/math.in.h (remainderf): New declaration.
3477         * lib/remainderf.c: New file.
3478         * m4/remainderf.m4: New file.
3479         * modules/remainderf: New file.
3480         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
3481         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
3482         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
3483         HAVE_REMAINDERF.
3484         * doc/posix-functions/remainderf.texi: Mention the new module.
3485
3486 2012-02-25  Bruno Haible  <bruno@clisp.org>
3487
3488         remainder: Support for MSVC.
3489         * lib/math.in.h (remainder): New declaration.
3490         * lib/remainder.c: New file.
3491         * m4/remainder.m4: New file.
3492         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
3493         (Depends-on): Add math, round, fma.
3494         (configure.ac): Use results of gl_FUNC_REMAINDER.
3495         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
3496         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
3497         HAVE_DECL_REMAINDER.
3498         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
3499         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
3500         * tests/test-math-c++.cc: Check the declaration of remainder.
3501         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
3502         problems are fixed.
3503
3504 2012-02-25  Bruno Haible  <bruno@clisp.org>
3505
3506         Tests for module 'fmodl'.
3507         * modules/fmodl-tests: New file.
3508         * tests/test-fmodl.c: New file.
3509         * tests/test-math-c++.cc: Check the declaration of fmodl.
3510
3511         New module 'fmodl'.
3512         * lib/math.in.h (fmodl): New declaration.
3513         * lib/fmodl.c: New file.
3514         * m4/fmodl.m4: New file.
3515         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
3516         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
3517         REPLACE_FMODL.
3518         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
3519         REPLACE_FMODL.
3520         * modules/fmodl: New file.
3521         * doc/posix-functions/fmodl.texi: Mention the new module.
3522
3523 2012-02-25  Bruno Haible  <bruno@clisp.org>
3524
3525         Tests for module 'modfl'.
3526         * modules/modfl-tests: New file.
3527         * tests/test-modfl.c: New file.
3528         * tests/test-math-c++.cc: Check the declaration of modfl.
3529
3530         New module 'modfl'.
3531         * lib/math.in.h (modfl): New declaration.
3532         * lib/modfl.c: New file.
3533         * m4/modfl.m4: New file.
3534         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
3535         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
3536         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
3537         * modules/modfl: New file.
3538         * doc/posix-functions/modfl.texi: Mention the new module.
3539
3540 2012-02-25  Bruno Haible  <bruno@clisp.org>
3541
3542         Tests for module 'fabsl'.
3543         * modules/fabsl-tests: New file.
3544         * tests/test-fabsl.c: New file.
3545         * tests/test-math-c++.cc: Check the declaration of fabsl.
3546
3547         New module 'fabsl'.
3548         * lib/math.in.h (fabsl): New declaration.
3549         * lib/fabsl.c: New file.
3550         * m4/fabsl.m4: New file.
3551         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
3552         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
3553         REPLACE_FABSL.
3554         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
3555         REPLACE_FABSL.
3556         * modules/fabsl: New file.
3557         * doc/posix-functions/fabsl.texi: Mention the new module.
3558
3559 2012-02-25  Bruno Haible  <bruno@clisp.org>
3560
3561         fabs tests: More tests.
3562         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
3563         (zero): New variable.
3564         (main): Add tests for signed zero.
3565         * modules/fabs-tests (Files): Add tests/minus-zero.h.
3566
3567         fabsf tests: More tests.
3568         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
3569         (zero): New variable.
3570         (main): Add tests for signed zero.
3571         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
3572
3573 2012-02-24  Bruno Haible  <bruno@clisp.org>
3574
3575         atanl: Provide function definition on MSVC.
3576         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
3577         function pointer.
3578         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
3579
3580 2012-02-24  Bruno Haible  <bruno@clisp.org>
3581
3582         acosl: Provide function definition on MSVC.
3583         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
3584         function pointer.
3585         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
3586
3587 2012-02-24  Bruno Haible  <bruno@clisp.org>
3588
3589         asinl: Provide function definition on MSVC.
3590         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
3591         function pointer.
3592         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
3593
3594 2012-02-24  Bruno Haible  <bruno@clisp.org>
3595
3596         tanl: Provide function definition on MSVC.
3597         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
3598         function pointer.
3599         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
3600
3601 2012-02-24  Bruno Haible  <bruno@clisp.org>
3602
3603         cosl: Provide function definition on MSVC.
3604         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
3605         function pointer.
3606         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
3607
3608 2012-02-24  Bruno Haible  <bruno@clisp.org>
3609
3610         sinl: Provide function definition on MSVC.
3611         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
3612         function pointer.
3613         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
3614
3615 2012-02-24  Bruno Haible  <bruno@clisp.org>
3616
3617         logl: Provide function definition on MSVC.
3618         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
3619         function pointer.
3620         * lib/math.in.h (logl): Undefine if it does not exist as a function.
3621
3622 2012-02-24  Bruno Haible  <bruno@clisp.org>
3623
3624         expl: Provide function definition on MSVC.
3625         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
3626         function pointer.
3627         * lib/math.in.h (expl): Undefine if it does not exist as a function.
3628
3629 2012-02-24  Bruno Haible  <bruno@clisp.org>
3630
3631         sqrtl: Provide function definition on MSVC.
3632         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
3633         a function pointer.
3634         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
3635
3636 2012-02-24  Bruno Haible  <bruno@clisp.org>
3637
3638         ceill: Provide function definition on MSVC.
3639         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
3640         used as a function pointer.
3641         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
3642
3643 2012-02-24  Bruno Haible  <bruno@clisp.org>
3644
3645         floorl: Provide function definition on MSVC.
3646         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
3647         used as a function pointer.
3648         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
3649
3650 2012-02-24  Bruno Haible  <bruno@clisp.org>
3651
3652         ceilf: Provide function definition on MSVC.
3653         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
3654         used as a function pointer.
3655         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
3656
3657 2012-02-24  Bruno Haible  <bruno@clisp.org>
3658
3659         floorf: Provide function definition on MSVC.
3660         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
3661         used as a function pointer.
3662         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
3663
3664 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3665
3666         stdnoreturn: new module
3667         This implements a replacement for C11's <stdnoreturn.h>.
3668         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
3669         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
3670         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3671         * tests/test-stdnoreturn.c: New files.
3672
3673 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
3674
3675         regex: fix false multibyte matches in some regular expressions
3676         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
3677         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
3678         * lib/regex_internal.c (re_string_skip_chars):
3679         Fix miscomputation of remain_len that may cause incomplete
3680         multi-byte character and false match.
3681
3682 2012-02-24  Jim Meyering  <meyering@redhat.com>
3683
3684         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
3685         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
3686         uses with "==" *before* the call, e.g., 0 == strcmp (...)
3687         Remove now-unnecessary str''cmp obfuscation.
3688         Suggested by Akim Demaille.
3689
3690 2012-02-24  Bruno Haible  <bruno@clisp.org>
3691
3692         streq: Rename macro.
3693         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
3694         * NEWS: Mention the change.
3695         * lib/mbrtowc.c (mbrtowc): Update.
3696         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
3697         * lib/wcwidth.c (wcwidth): Update.
3698         Suggested by Akim Demaille and Jim Meyering.
3699
3700 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
3701
3702         regex: fix typo in definition of MIN
3703         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
3704         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
3705
3706 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3707             Bruno Haible  <bruno@clisp.org>
3708
3709         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
3710         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
3711         entries into a stack-allocated buffer directly.
3712         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
3713
3714 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3715             Bruno Haible  <bruno@clisp.org>
3716
3717         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
3718
3719          - There were several instances of this pattern:
3720
3721              for (;;) {
3722                n = acl (f, GETACLCNT, 0, NULL);
3723                [ allocate an array A of size N ]
3724                if (acl (f, GETACL, n, a) == n)
3725                  break;
3726              }
3727
3728            This loop might never terminate if some other process is constantly
3729            manipulating the file's ACL.  The loop should be rewritten to
3730            terminate.
3731
3732          - The acl (... GETACLNT ...) call is merely an optimization; its value
3733            is merely a hint as to how big to make the array.  A better
3734            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
3735            and just guess a reasonably-big size, growing the size and trying
3736            again if it's not large enough.  This guarantees termination, and
3737            saves a system call.
3738
3739         * lib/acl-internal.h: Include <limits.h>.
3740         (MIN, SIZE_MAX): New macros.
3741         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
3742         a stack-allocated buffer, and use malloc if it does not fit. Don't
3743         use GETACLCNT.
3744         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3745
3746 2012-02-19  Bruno Haible  <bruno@clisp.org>
3747
3748         acl: Fix endless loop on Solaris with vxfs.
3749         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
3750         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
3751         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3752         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
3753         * tests/test-sameacls.c (main)[Solaris]: Likewise.
3754         Reported by Bill Jones in
3755         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
3756
3757 2012-02-19  Bruno Haible  <bruno@clisp.org>
3758
3759         acl: Fix copy-acl test failure on Solaris 11 2011-11.
3760         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
3761         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
3762         that this function returns 0 in some more cases.
3763
3764 2012-02-19  Bruno Haible  <bruno@clisp.org>
3765
3766         acl: Update doc references.
3767         * doc/acl-resources.txt: Update links to Solaris documentation.
3768
3769 2012-02-19  Bruno Haible  <bruno@clisp.org>
3770
3771         Fix test failure in many locales on Solaris 11.
3772         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
3773         'tr' arguments.
3774         * tests/test-pipe-filter-ii1.c (main): Likewise.
3775         * build-aux/bootstrap (check_versions): Run 'tr' command with range
3776         expressions in the C locale.
3777         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3778         * m4/host-os.m4 (gl_HOST_OS): Likewise.
3779
3780 2012-02-19  Bruno Haible  <bruno@clisp.org>
3781
3782         gnulib-tool: Improve usage message.
3783         * gnulib-tool (func_usage): Move doc of --help and --version to the
3784         section "Operation modes".
3785
3786 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
3787
3788         README-release: make it easier to execute commands
3789         * top/README-release: break commands out on to separate lines.
3790
3791 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
3792
3793         GNUmakefile: simplify detection of unconfigured trees
3794         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
3795         whether the tree make is being run from is already configured or
3796         not.  Related simplifications.
3797
3798 2012-02-13  Simon Josefsson  <simon@josefsson.org>
3799
3800         * gnulib-tool (func_usage): Document --help and --version.
3801
3802 2012-02-11  Jim Meyering  <meyering@redhat.com>
3803
3804         bootstrap: don't exit 0 upon gnulib-tool failure
3805         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
3806         its exit status, not 0.
3807
3808 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
3809
3810         README-release: various improvements
3811         * top/README-release: Give a command to push changes for the
3812         release.  Add "distcheck" to list of other pre-release checks.
3813         Fix instance of "make stable" which should be "make TYPE".
3814
3815 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3816
3817         maint: replace FSF snail-mail addresses with URLs
3818         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
3819         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
3820         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
3821         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
3822         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
3823         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
3824         * lib/check-version.c, lib/check-version.h, lib/config.charset:
3825         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
3826         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
3827         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
3828         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
3829         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
3830         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
3831         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
3832         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
3833         * lib/glthread/thread.c, lib/glthread/thread.h:
3834         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
3835         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
3836         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
3837         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
3838         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
3839         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
3840         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
3841         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
3842         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
3843         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
3844         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
3845         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
3846         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
3847         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
3848         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
3849         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
3850         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
3851         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
3852         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
3853         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
3854         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
3855         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
3856         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
3857         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
3858         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
3859         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
3860         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
3861         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
3862         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
3863         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
3864         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
3865         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
3866         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
3867         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
3868         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
3869         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
3870         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
3871         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
3872         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
3873         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
3874         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
3875         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
3876         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
3877         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
3878         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
3879         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
3880         * tests/test-poll.c, tests/test-quotearg-simple.c:
3881         * tests/test-quotearg.c, tests/test-quotearg.h:
3882         * tests/test-round-ieee.c, tests/test-round1.c:
3883         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
3884         * tests/test-roundl-ieee.c, tests/test-roundl.c:
3885         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
3886         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
3887         * tests/test-strerror.c, tests/test-strerror_r.c:
3888         * tests/test-strsignal.c, tests/test-strverscmp.c:
3889         * tests/test-xmemdup0.c:
3890         Replace FSF snail mail addresses with URLs, as per GNU coding
3891         standards.  See glibc bug
3892         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
3893
3894 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
3895
3896         README-release: capitalize a word and split a line
3897         * top/README-release: Fix punctuation and spacing.
3898
3899 2012-02-08  Akim Demaille  <demaille@gostai.com>
3900
3901         fatal-signal: use C prototypes (with explicit void).
3902         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3903         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
3904
3905 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3906
3907         regex: spelling fix
3908         * lib/regexec.c: spelling fix
3909
3910         regex: rely on stdint.h for SIZE_MAX
3911         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
3912
3913 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3914
3915         regex: merge glibc changes
3916
3917         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
3918         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
3919         (init_word_char): Work even if bitset words are not exactly 32 or
3920         64 bits wide.  Don't assume there are no padding bits.
3921         * lib/regex.c [_LIBC]: Do not include <config.h>.
3922         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
3923         and -Wtype-limits.
3924         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
3925         needless disagreement with glibc.  All uses changed.  Define it to
3926         1 only if _GNU_SOURCE, to match glibc.
3927         (_REG_RM_NAME): Remove; no longer needed, since the names in
3928         question are now all protected by __USE_GNU.
3929         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
3930         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
3931         * lib/regex_internal.h (MIN): New macro.
3932
3933         2012-01-03 Ulrich Drepper <drepper@gmail.com>
3934         * lib/regcomp.c (init_word_char): Optimize regex a bit.
3935
3936         2011-12-30 Jakub Jelinek <jakub@redhat.com>
3937         * lib/regex_internal.c (re_string_fetch_byte_case):
3938         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
3939         is miscompiled, and it turns out it is because of an incorrect
3940         attribute on re_string_fetch_byte_case.  Unlike
3941         re_string_peek_byte_case, this one is really not pure, it modifies
3942         memory (increments pstr->cur_idx), and with the pure attribute GCC
3943         assumed it doesn't and it cached the presumed value of
3944         regexp->cur_idx in a variable across the
3945          for (;; ++i)
3946            {
3947              if (i >= BRACKET_NAME_BUF_SIZE)
3948                return REG_EBRACK;
3949              if (token->type == OP_OPEN_CHAR_CLASS)
3950                ch = re_string_fetch_byte_case (regexp);
3951              else
3952                ch = re_string_fetch_byte (regexp);
3953              if (re_string_eoi(regexp))
3954                return REG_EBRACK;
3955              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
3956                break;
3957              elem->opr.name[i] = ch;
3958            }
3959
3960         2011-11-29 Andreas Schwab <schwab@redhat.com>
3961         * lib/regcomp.c (build_equiv_class):
3962         Fix access after end of search string in regex matcher.
3963
3964         2011-11-12 Ulrich Drepper <drepper@redhat.com>
3965         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
3966
3967         2011-10-12 Ulrich Drepper <drepper@redhat.com>
3968         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
3969
3970         2011-10-11 Ulrich Drepper <drepper@redhat.com>
3971         * lib/regcomp.c (parse_branch, parse_sub_exp):
3972         More regex memory leak fixes and tests.
3973         (parse_sub_exp, parse_bracket_exp):
3974         Fix memory leak for some invalid regular expressions.
3975
3976         2011-05-28 Ulrich Drepper <drepper@gmail.com>
3977         * lib/regex_internal.c, lib/regexec.c:
3978         Fix unnecessary overallocation due to incomplete character.  When
3979         incomplete characters are found at the end of a string the code
3980         ran amok and allocated lots of memory.  Stricter limits are now in
3981         place.
3982
3983         2011-05-20 Reuben Thomas <rrt@sc3d.org>
3984         * lib/regex.h: Update documentation.
3985
3986         2011-05-16 Aharon Robbins <arnold@skeeve.com>
3987         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
3988
3989         2010-05-05 Andreas Schwab <schwab@redhat.com>
3990         * lib/regexec.c (find_collation_sequence_value):
3991         Fix lookup of collation sequence value during regexp matching.
3992
3993         2010-01-22 Ulrich Drepper <drepper@redhat.com>
3994         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
3995
3996         2008-01-16 Ulrich Drepper <drepper@redhat.com>
3997         * lib/regex.h: Cleanup namespace.
3998
3999         2007-11-26 Ulrich Drepper <drepper@redhat.com>
4000         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
4001
4002         2007-08-26 Ulrich Drepper <drepper@redhat.com>
4003         * lib/regex_internal.h: Prevent some declarations and definitions
4004         to be seen when used in tests.
4005
4006         2005-05-06 Ulrich Drepper <drepper@redhat.com>
4007         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
4008         __libc_lock_* macros if not _LIBC.
4009         (struct re_dfa_t): Add lock.
4010
4011 2012-02-07  Eric Blake  <eblake@redhat.com>
4012
4013         maint.mk: also prohibit lower-case @var@
4014         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
4015         lower case, like @top_srcdir@.
4016
4017 2012-02-04  Eric Blake  <eblake@redhat.com>
4018
4019         canonicalize: avoid uninitialized memory use
4020         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
4021         random '/' left in dest.
4022         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
4023
4024 2012-02-04  Bruno Haible  <bruno@clisp.org>
4025
4026         isatty: Fix test failure of ptsname_r on native Windows.
4027         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
4028         and don't set errno.
4029         (isatty): Test first whether fd is valid. Set errno when returning 0.
4030
4031 2012-02-04  Bruno Haible  <bruno@clisp.org>
4032
4033         spawn-pipe tests: Fix a NULL program name in a diagnostic.
4034         * tests/test-spawn-pipe-main.c: Include progname.h.
4035         (main): Invoke set_program_name.
4036         * modules/spawn-pipe-tests (Depends-on): Add progname.
4037
4038         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
4039         * tests/test-nonblocking-socket-main.c: Include progname.h.
4040         (main): Invoke set_program_name.
4041         * modules/nonblocking-socket-tests (Depends-on): Add progname.
4042
4043         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
4044         * tests/test-nonblocking-pipe-main.c: Include progname.h.
4045         (main): Invoke set_program_name.
4046         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
4047
4048 2012-02-04  Eric Blake  <eblake@redhat.com>
4049
4050         canonicalize-lgpl: fix // handling
4051         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
4052
4053         canonicalize: fix // handling
4054         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
4055         /// to //, since only // is special.
4056
4057 2012-02-04  Bruno Haible  <bruno@clisp.org>
4058
4059         ioctl: Fix test failure on native Windows.
4060         * lib/ioctl.c: Include msvc-nothrow.h.
4061         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
4062
4063 2012-02-04  Bruno Haible  <bruno@clisp.org>
4064
4065         fsync: Avoid test failure on native Windows.
4066         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
4067         read-only.
4068
4069 2012-02-04  Bruno Haible  <bruno@clisp.org>
4070
4071         sys_select: Avoid syntax error on OpenBSD 5.0.
4072         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
4073         currently being included, just include the system's <sys/select.h>.
4074
4075 2012-02-04  Bruno Haible  <bruno@clisp.org>
4076
4077         sys_select: Avoid syntax error on OpenBSD 5.0.
4078         * lib/sys_select.in.h: Include <signal.h> only after the include_next
4079         <sys/select.h>, not before.
4080         Reported by Jiri B <jirib@devio.us>.
4081
4082 2012-02-04  Bruno Haible  <bruno@clisp.org>
4083
4084         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
4085         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
4086         global variables.
4087         * tests/test-get-rusage-data.c (main): Likewise.
4088         Reported by Jim Meyering.
4089
4090 2012-02-04  Bruno Haible  <bruno@clisp.org>
4091
4092         stdioext: Fix last commit.
4093         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
4094
4095 2012-02-03  Bruno Haible  <bruno@clisp.org>
4096
4097         stdioext: Add tentative support for Plan9.
4098         * lib/stdio-impl.h: Include <errno.h>.
4099         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
4100         * lib/freadable.c (freadable): Likewise.
4101         * lib/fwritable.c (fwritable): Likewise.
4102         * lib/fbufmode.c (fbufmode): Likewise.
4103         * lib/freading.c (freading): Likewise.
4104         * lib/fwriting.c (fwriting): Likewise.
4105         * lib/freadptr.c (freadptr): Likewise.
4106         * lib/freadseek.c (freadptrinc): Likewise.
4107         * lib/freadahead.c (freadahead): Likewise.
4108         * lib/fpurge.c (fpurge): Likewise.
4109         * lib/fseeko.c (rpl_fseeko): Likewise.
4110         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
4111         Reported by Jens Staal <staal1978@gmail.com>.
4112
4113 2012-02-02  Jim Meyering  <meyering@redhat.com>
4114
4115         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
4116         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
4117         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
4118         not even to try to add the attribute.  Instead, add a pragma to suppress
4119         the suggestion/warning.
4120
4121 2012-01-31  Karl Berry  <karl@gnu.org>
4122
4123         setstate doc: typo.
4124         * doc/posix-functions/setstate.texi (setstate): { not (.
4125
4126 2012-01-31  Bruno Haible  <bruno@clisp.org>
4127
4128         popen: Make more robust on Windows.
4129         * lib/popen.c: On native Windows, use the _popen based code even if
4130         HAVE_POPEN is set.
4131         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
4132         environment variable on native Windows.
4133
4134 2012-01-30  Bruno Haible  <bruno@clisp.org>
4135
4136         pclose: Fix typo.
4137         * lib/stdio.in.h (pclose): Fix typo in warning message.
4138
4139 2012-01-30  Bruno Haible  <bruno@clisp.org>
4140
4141         doc about getlogin_r, setstate.
4142         * doc/posix-functions/getlogin_r.texi: List the incompatible
4143         declaration problem under "not fixed by gnulib".
4144         * doc/posix-functions/setstate.texi: Mention incompatible declaration
4145         problem on Solaris 11 and other platforms.
4146
4147 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
4148             Bruno Haible  <bruno@clisp.org>
4149
4150         poll tests: Make test more robust.
4151         * tests/test-poll.c: Include macros.h.
4152         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
4153         return value of various I/O operations.
4154         * modules/poll-tests (Files): Add tests/macros.h.
4155
4156 2012-01-30  Bruno Haible  <bruno@clisp.org>
4157
4158         sys_stat: Fix support for mingw64 and MSVC.
4159         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
4160         header files already do it.
4161         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
4162         stat itself.
4163         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4164
4165 2012-01-30  Bruno Haible  <bruno@clisp.org>
4166
4167         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
4168         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
4169         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
4170
4171 2012-01-29  Bruno Haible  <bruno@clisp.org>
4172
4173         quotearg: Fix test failure on MacOS X 10.5.
4174         * tests/test-quotearg-simple.c: Include localcharset.h.
4175         (main): If the locale encoding is not ASCII, bypass the tests of
4176         locale_quoting_style and clocale_quoting_style.
4177         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
4178
4179 2012-01-29  Jim Meyering  <meyering@redhat.com>
4180
4181         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
4182         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
4183         detect uses of canonicalize_file_name.
4184
4185 2012-01-28  Bruno Haible  <bruno@clisp.org>
4186
4187         test-framework-sh: Fix test failure with AIX 7.1 diff.
4188         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
4189         in column 1, like 'diff -c' does.
4190         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
4191         whether 'diff -u' is used. Instead, test whether the output contains
4192         some '@' character.
4193
4194 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4195
4196         strtoimax: eliminate need for stdint.h, inttypes.h checks
4197         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
4198         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
4199         the prerequisites for a recently-introduced strtoimax test.
4200         I guess this might cause strtoimax to be replaced when not
4201         strictly necessary on older hosts, but this shouldn't introduce
4202         any bugs and it should make Emacs 'configure' faster on typical
4203         modern hosts.  Problem discovered when importing the latest gnulib
4204         to an Emacs test version.
4205         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
4206
4207 2012-01-28  Bruno Haible  <bruno@clisp.org>
4208
4209         sys_time: Override 'struct timeval' on some native Windows platforms.
4210         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
4211         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
4212         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
4213         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
4214         needs to be overridden.
4215         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
4216         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
4217         * tests/test-sys_select.c: Check that the tv_sec member has the same
4218         size as a 'time_t'.
4219         * tests/test-sys_time.c: Likewise.
4220         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
4221         is set, set also REPLACE_GETTIMEOFDAY.
4222         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
4223         convert the resulting 'struct timeval' before returning.
4224         * lib/select.c: Include <sys/time.h>.
4225         (select, timeval): Undefine at the right place.
4226         * modules/select (Depends-on): Add sys_time.
4227         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
4228         some Windows platforms.
4229         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4230
4231 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4232
4233         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
4234         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
4235         an integer.
4236         * lib/fcntl.c (dupfd): Likewise.
4237         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
4238
4239 2012-01-28  Bruno Haible  <bruno@clisp.org>
4240
4241         fcntl: Avoid compilation error on native Windows.
4242         * modules/fcntl (Depends-on): Add 'close'.
4243
4244 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4245
4246         select, poll, isatty: Avoid warnings on x86_64 mingw64.
4247         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
4248         pointer to an integer.
4249         * lib/poll.c (IsConsoleHandle): Likewise.
4250         * lib/isatty.c (IsConsoleHandle): Likewise.
4251
4252 2012-01-28  Jim Meyering  <meyering@redhat.com>
4253
4254         doc: clarify README-release
4255         * top/README-release: Clarify: you should make a point to have
4256         the latest stable versions of build tools in your PATH, and the
4257         reference to buildreq is solely for its list of tool names, not
4258         for its minimal-functional version numbers.
4259         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
4260
4261         maint.mk: use more readable (yet functionally equivalent) quoting
4262         It is common to quote a single quote in a single quoted string like
4263         this:  '...'\''...'.  Unless you know the idiom, that looks like
4264         gibberish, so prefer to double-quote the string when possible.
4265         Then you can use a more readable, lone single quote: "...'..."
4266         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
4267         "don't" is more readable than the equivalent 'don'\''t'.
4268         (sc_cast_of_x_alloc_return_value): Likewise.
4269         (sc_cast_of_alloca_return_value): Likewise.
4270         (sc_makefile_path_separator_check): Similar: use ":" in '...',
4271         rather than '\'':'\''.
4272
4273 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4274
4275         stdalign: relax _Alignof and tighten _Alignas test
4276         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
4277         as it was too strict: alignof must divide offsetof, but it need
4278         not equal offsetof.  Inspired by Joseph S. Myers's comment
4279         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
4280         Conversely, tighten the _Alignas test a bit, as the resulting
4281         alignment must be exactly 8.
4282
4283 2012-01-27  Bruno Haible  <bruno@clisp.org>
4284
4285         stdalign: Document the last change.
4286         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
4287
4288 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4289
4290         stdalign: check that alignof and offsetof are consistent
4291         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
4292         Problem reported for gnulib by Richard W.M. Jones in
4293         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
4294
4295 2012-01-27  Jim Meyering  <meyering@redhat.com>
4296
4297         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
4298         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
4299         convert a sequence with gaps to the minimal containing range.
4300         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
4301         * tests/test-update-copyright.sh: Test for this.
4302         The FSF confirmed it is ok to do this, assuming there is at
4303         least one significant change per year in the affected range:
4304         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
4305
4306 2012-01-26  Bruno Haible  <bruno@clisp.org>
4307
4308         pipe2: refine doc about thread-safety
4309         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
4310         multithread-safety problem.
4311         * doc/glibc-functions/accept4.texi: Likewise.
4312
4313 2012-01-26  Bruno Haible  <bruno@clisp.org>
4314
4315         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
4316         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
4317         In the test program, include <fcntl.h>, for O_RDONLY.
4318
4319 2012-01-26  Eric Blake  <eblake@redhat.com>
4320
4321         pipe2: document lack of thread-safety in replacement
4322         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
4323         issue in replacement.
4324         * doc/glibc-functions/accept4.texi (accept4): Likewise.
4325         Based on a report by Eric Wong.
4326
4327 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4328             Bruno Haible  <bruno@clisp.org>
4329
4330         malloca: Avoid warnings on x86_64 mingw64.
4331         * lib/malloca.c: Include <stdint.h>.
4332         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
4333         * modules/malloca (Depends-on): Add stdint.
4334         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
4335
4336 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
4337
4338         obstack: remove __STDC__ conditionals
4339         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
4340         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
4341         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
4342         m4/include_next.m4 as the only gnulib-maintained places that still
4343         refer to __STDC__.
4344
4345 2012-01-24  Bruno Haible  <bruno@clisp.org>
4346
4347         havelib: Modern quoting.
4348         * build-aux/config.rpath: Quote 'like this', not `like this', as per
4349         the recent change to the GNU coding standards.
4350
4351 2012-01-24  Bruno Haible  <bruno@clisp.org>
4352
4353         stdint: Improve support for Android.
4354         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
4355         Reported by Simon Josefsson <simon@josefsson.org>.
4356
4357 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4358
4359         doc: omit trailing empty lines from INSTALL etc.
4360         * doc/Makefile (INSTALL): Omit trailing empty lines.
4361         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
4362         omit trailing empty lines.  This simplifies the build procedure.
4363
4364 2012-01-23  Jim Meyering  <meyering@redhat.com>
4365
4366         tests: avoid spurious warnings about gl_sockets_startup
4367         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
4368         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
4369         reporting a "statement with no effect".
4370         * tests/test-accept.c (main): Mark as "(void)".
4371         * tests/test-accept4.c (main): Likewise.
4372         * tests/test-bind.c (main): Likewise.
4373         * tests/test-connect.c (main): Likewise.
4374         * tests/test-getpeername.c (main): Likewise.
4375         * tests/test-getsockname.c (main): Likewise.
4376         * tests/test-getsockopt.c (main): Likewise.
4377         * tests/test-listen.c (main): Likewise.
4378         * tests/test-recv.c (main): Likewise.
4379         * tests/test-recvfrom.c (main): Likewise.
4380         * tests/test-send.c (main): Likewise.
4381         * tests/test-sendto.c (main): Likewise.
4382         * tests/test-setsockopt.c (main): Likewise.
4383         * tests/test-shutdown.c (main): Likewise.
4384
4385 2012-01-21  Bruno Haible  <bruno@clisp.org>
4386
4387         locale-fr.m4: Fix for Android.
4388         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
4389         failure of the test program on Bionic libc.
4390
4391 2012-01-21  Jim Meyering  <meyering@redhat.com>
4392
4393         bootstrap: fail when bootstrap_post_import_hook fails
4394         Otherwise, it's far too easy to miss diagnostics emitted
4395         between gnulib-tool's output and that of running configure.
4396         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
4397
4398 2012-01-17  Jim Meyering  <meyering@redhat.com>
4399
4400         maint: enable sc_trailing_blank
4401         * build-aux/pmccabe.css: Remove trailing blanks.
4402         * doc/acl-cygwin.txt: Likewise.
4403         * doc/gnu-oids.texi: Likewise
4404         * cfg.mk: Enable sc_trailing_blank.
4405         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
4406
4407 2012-01-17  Jim Meyering  <meyering@redhat.com>
4408
4409         maint: enable sc_prohibit_openat_without_use
4410         * cfg.mk: Enable sc_prohibit_openat_without_use.
4411         Exempt lib/selinux-at.c.
4412
4413 2012-01-17  Jim Meyering  <meyering@redhat.com>
4414
4415         maint: enable sc_prohibit_cloexec_without_use
4416         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
4417         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
4418
4419 2012-01-17  Jim Meyering  <meyering@redhat.com>
4420
4421         maint: enable sc_prohibit_intprops_without_use
4422         * cfg.mk: Enable sc_prohibit_intprops_without_use
4423         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
4424
4425 2012-01-17  Jim Meyering  <meyering@redhat.com>
4426
4427         maint: enable sc_prohibit_hash_pjw_without_use
4428         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
4429         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
4430         to match any use of \<hash_pjw\>, i.e., not necessarily with a
4431         following " (".
4432
4433 2012-01-17  Jim Meyering  <meyering@redhat.com>
4434
4435         maint: enable double-word-prohibiting rule
4436         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
4437         Exempt three files.
4438
4439 2012-01-17  Jim Meyering  <meyering@redhat.com>
4440
4441         maint: remove empty lines at EOF, but excluding modules/*
4442         Apply syntax rules at home as well as abroad.  Most changes
4443         were induced by running this:
4444           make srcdir=. _build-aux=build-aux -f top/maint.mk \
4445             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
4446             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
4447         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
4448         Exempt modules/* and two binary files.
4449         Also exempt doc/INSTALL*, per request from Bruno Haible.
4450         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
4451         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
4452         * doc/Copyright/request-assign.future: Likewise.
4453         * doc/Copyright/request-disclaim.changes: Likewise.
4454         * doc/INSTALL: Likewise.
4455         * doc/INSTALL.ISO: Likewise.
4456         * doc/INSTALL.UTF-8: Likewise.
4457         * doc/acl-cygwin.txt: Likewise.
4458         * doc/acl-resources.txt: Likewise.
4459         * doc/fdl-1.2.texi: Likewise.
4460         * doc/fdl-1.3.texi: Likewise.
4461         * doc/fdl.texi: Likewise.
4462         * lib/argp-pin.c: Likewise.
4463         * lib/round.c: Likewise.
4464         * lib/unicase/u16-totitle.c: Likewise.
4465         * lib/unictype/block_test.c: Likewise.
4466         * lib/uninorm/canonical-decomposition.c: Likewise.
4467         * m4/README: Likewise.
4468         * m4/relocatable-lib.m4: Likewise.
4469         * tests/test-isnand-nolibm.c: Likewise.
4470         * tests/test-isnand.c: Likewise.
4471         * tests/uninorm/NormalizationTest.txt: Likewise.
4472
4473 2012-01-17  Jim Meyering  <meyering@redhat.com>
4474
4475         maint: add framework to run syntax-check rules against gnulib sources
4476         * cfg.mk: New file, to disable all currently-failing tests.
4477         We'll enable them one by one, as they are made to pass.
4478         * Makefile (sc_maint): New rule.
4479
4480 2012-01-21  Bruno Haible  <bruno@clisp.org>
4481
4482         stdint: Add support for Android.
4483         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
4484         include the system's <stdint.h>.
4485         Reported by Simon Josefsson <simon@josefsson.org>.
4486
4487 2012-01-19  Jim Meyering  <meyering@redhat.com>
4488
4489         bootstrap: add bootstrap_post_import_hook
4490         Bison does still need something like the gnulib_mk_hook whose
4491         invocation I had to remove along with slurp in commit 767ccd40.
4492         Technically, we could get along without it, but doing so would
4493         have required living with a warning and a mandatory post-bootstrap
4494         automake rerun.
4495         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
4496         (bootstrap_post_import_hook): New function.
4497         Invoke it after gnulib-tool --import and before autoreconf.
4498
4499 2012-01-18  Jim Meyering  <meyering@redhat.com>
4500
4501         gitlog-to-changelog: don't use "no_"-prefixed variable name
4502         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
4503         to enable both --cluster and --no-cluster.  Change variable name,
4504         s/\$no_cluster/$cluster/, and reverse usage to match.
4505
4506         gitlog-to-changelog: use "||", not "or" in expressions
4507         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
4508         expressions.
4509
4510 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
4511
4512         gitlog-to-changelog: new option --no-cluster
4513         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
4514         clustering of adjacent commit messages.
4515
4516 2012-01-17  Jim Meyering  <meyering@redhat.com>
4517
4518         maint: spell file systems with two words, not one
4519         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
4520         two words, not one.
4521
4522 2012-01-16  Jim Meyering  <meyering@redhat.com>
4523
4524         bootstrap: add a FIXME comment to ensure we eventually remove the hack
4525         * build-aux/bootstrap (gnulib_tool_options): Add comment.
4526
4527 2012-01-16  Eric Blake  <eblake@redhat.com>
4528
4529         bootstrap: cater to autoconf 2.59
4530         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
4531         is not available.
4532
4533         bootstrap: properly check for libtool
4534         * build-aux/bootstrap (libtoolize): Also run libtool when older
4535         usage is detected.
4536
4537 2012-01-15  Bruno Haible  <bruno@clisp.org>
4538
4539         Improve support for MSVC 9.
4540         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
4541         clashes on MSVC.
4542         * lib/fcntl.in.h: Likewise.
4543         * lib/stdlib.in.h: Likewise.
4544         * lib/sys_stat.in.h: Likewise.
4545
4546 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
4547
4548         gnupload: we hold the master copy of this script now
4549         For motivation and more information, see:
4550         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
4551         * build-aux/gnupload: Make it clear in the heading comments that the
4552         master copy of this file is maintained by gnulib.  Since we are at
4553         it, bump its copyright year and ...
4554         ($scriptversion): ... the date in its version.
4555         ($usage): Patches and bug reports should be sent to the gnulib list,
4556         not the automake one.
4557         * config/srclist.txt: Don't try to sync 'gnupload' from automake
4558         anymore.
4559
4560 2012-01-15  Bruno Haible  <bruno@clisp.org>
4561
4562         Fix module 'random'.
4563         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
4564         initstate, setstate are declared.
4565
4566 2012-01-14  Bruno Haible  <bruno@clisp.org>
4567
4568         Tests for module 'random'.
4569         * modules/random-tests: New file.
4570         * tests/test-random.c: New file, based on tests/test-random_r.c.
4571
4572         New module 'random'.
4573         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
4574         declarations.
4575         * lib/random.c: New file, based on glibc/stdlib/random.c.
4576         * m4/random.m4: New file.
4577         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
4578         HAVE_RANDOM.
4579         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
4580         * modules/random: New file.
4581         * config/srclist.txt: Add an entry for random.c.
4582         * doc/posix-functions/random.texi: Mention the 'random' module.
4583         * doc/posix-functions/initstate.texi: Likewise.
4584         * doc/posix-functions/setstate.texi: Likewise.
4585         * doc/posix-functions/srandom.texi: Likewise.
4586
4587 2012-01-12  Bruno Haible  <bruno@clisp.org>
4588
4589         random_r: Use common idioms.
4590         * lib/random_r.c: Include <stdlib.h> first.
4591
4592         random_r: Override incompatible API on AIX, OSF/1.
4593         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
4594         Override the system function if REPLACE_RANDOM_R is 1.
4595         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
4596         and OSF/1, set REPLACE_RANDOM_R.
4597         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
4598         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
4599         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
4600         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
4601         * doc/glibc-functions/random_r.texi: Likewise.
4602         * doc/glibc-functions/setstate_r.texi: Likewise.
4603
4604         random_r: Support for MSVC 9.
4605         * lib/random_r.c: Include stdint.h, not inttypes.h.
4606
4607 2012-01-12  Eric Blake  <eblake@redhat.com>
4608
4609         inet_ntop: guard extra work by IF_LINT
4610         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
4611         better code generation when not checking for warnings.
4612         Suggested by Paul Eggert and Jim Meyering.
4613
4614         strptime: fix regression on mingw
4615         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
4616         Fix regression.  Reported by Bruno Haible.
4617
4618 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
4619             Bruno Haible  <bruno@clisp.org>
4620
4621         copy-file: add error-code-returning variant.
4622         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
4623         (qcopy_file_preserving): New declaration.
4624         * lib/copy-file.c (qcopy_file_preserving): Renamed from
4625         copy_file_preserving. Change return type to 'int'. Don't emit an error
4626         message here.
4627         (copy_file_preserving): New function.
4628         * tests/test-copy-file.c: Include <stdlib.h>.
4629         (main): Test qcopy_file_preserving if the environment variable
4630         NO_STDERR_OUTPUT is set.
4631         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
4632         with NO_STDERR_OUTPUT
4633         * tests/test-copy-file-2.sh: Likewise.
4634
4635 2012-01-10  Bruno Haible  <bruno@clisp.org>
4636
4637         copy-file: Use 'quote' module consistently.
4638         * lib/copy-file.c (copy_file_preserving): Use quote().
4639
4640         copy-file: Refactor.
4641         * lib/copy-file.c: Include quote.h.
4642         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
4643         message here.
4644         * modules/copy-file (Depends-on): Add quote.
4645
4646         acl: Export qcopy_acl.
4647         * lib/acl.h (qcopy_acl): New declaration.
4648         * lib/copy-acl.c (qcopy_acl): Make non-static.
4649
4650         acl: Rename a local variable.
4651         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
4652
4653         acl: Align return values of copy_acl and qcopy_acl.
4654         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
4655         maybe < -1.
4656
4657 2012-01-11  Eric Blake  <eblake@redhat.com>
4658
4659         strptime: silence gcc warnings
4660         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
4661         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
4662         Reported by Daniel P. Berrange.
4663
4664         inet_ntop: silence gcc warning
4665         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
4666         Reported by Daniel P. Berrange.
4667
4668 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
4669
4670         getloadavg test: skip the test on GNU/Linux without /proc mounted
4671         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
4672         file.  When /proc is not mounted, it always fails with ENOENT.
4673         * tests/test-getloadavg.c (main): Treat ENOENT return code from
4674         getloadavg(3) the same way as ENOSYS and ENOTSUP.
4675
4676 2012-01-10  Bruno Haible  <bruno@clisp.org>
4677
4678         regex: Avoid link error on MSVC 9.
4679         * modules/regex (Depends-on): Add wctype.
4680
4681 2012-01-10  Bruno Haible  <bruno@clisp.org>
4682
4683         doc: Mention --with-tests option.
4684         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
4685         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
4686         --with-tests.
4687         Reported by Reuben Thomas.
4688
4689 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
4690
4691         users.txt: order package names lexicographically.
4692         * users.txt: Order package names lexicographically.
4693
4694 2012-01-10  Jim Meyering  <meyering@redhat.com>
4695
4696         maint.mk: fix description in comment
4697         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
4698
4699         ignore-value: remove deprecated ignore_ptr function
4700         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
4701         * NEWS: Note this.
4702
4703 2012-01-09  Jim Meyering  <meyering@redhat.com>
4704
4705         test-init.sh: avoid a subshell
4706         * tests/test-init.sh: Remove protective subshell.
4707         Suggested by Bernhard Voelker.  While a subshell is normally
4708         required to protect against older shells (Solaris, FreeBSD) that
4709         warn about a missing program before performing redirection, the
4710         shell-selection tests performed by init.sh probably exclude any
4711         offending shell.
4712
4713 2012-01-08  Bruno Haible  <bruno@clisp.org>
4714
4715         setlocale tests: Avoid test failure on Solaris 11 2011-11.
4716         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
4717         variable.
4718
4719 2012-01-08  Bruno Haible  <bruno@clisp.org>
4720
4721         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
4722         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4723         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4724         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
4725         macro.
4726         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
4727         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4728         * lib/spawn_faction_addopen.c: Add workaround implementation if
4729         HAVE_WORKING_POSIX_SPAWN.
4730         * modules/spawn (Makefile): Substitute
4731         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4732         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
4733         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
4734         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4735         (Depends-on): Update conditions.
4736         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
4737         the Solaris 11 bug.
4738
4739 2012-01-08  Bruno Haible  <bruno@clisp.org>
4740
4741         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
4742         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4743         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4744         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
4745         macro.
4746         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
4747         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4748         * lib/spawn_faction_adddup2.c: Add workaround implementation if
4749         HAVE_WORKING_POSIX_SPAWN.
4750         * modules/spawn (Makefile): Substitute
4751         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4752         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
4753         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
4754         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4755         (Depends-on): Update conditions.
4756         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
4757         the Solaris 11 bug.
4758
4759 2012-01-08  Bruno Haible  <bruno@clisp.org>
4760
4761         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
4762         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4763         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4764         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
4765         HAVE_WORKING_POSIX_SPAWN.
4766         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
4767         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
4768         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4769         * lib/spawn_faction_addclose.c: Add workaround implementation if
4770         HAVE_WORKING_POSIX_SPAWN.
4771         * modules/spawn (Makefile): Substitute
4772         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4773         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
4774         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
4775         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4776         (Depends-on): Update conditions.
4777         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
4778         the Solaris 11 bug.
4779
4780 2012-01-08  Bruno Haible  <bruno@clisp.org>
4781
4782         doc: Update for Solaris 11 2011-11.
4783         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
4784         * m4/printf.m4: Update comments.
4785
4786 2012-01-08  Bruno Haible  <bruno@clisp.org>
4787
4788         mktime: Avoid compilation error on Solaris 11.
4789         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
4790
4791 2012-01-08  Bruno Haible  <bruno@clisp.org>
4792
4793         doc: Small fix.
4794         * doc/posix-headers/nl_types.texi: Correct platforms list.
4795
4796 2012-01-08  Simon Josefsson  <simon@josefsson.org>
4797
4798         Add lgpl-3.0 module.
4799         * MODULES.html.sh (Support for building documentation): Add
4800         lgpl-3.0.
4801         * modules/lgpl-3.0: New file.
4802
4803 2012-01-08  Jim Meyering  <meyering@redhat.com>
4804
4805         select.c: indent with spaces, not TABs
4806         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
4807
4808 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4809
4810         quotearg: do not use grave accent for left quote
4811         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
4812         locale_quoting_style.
4813         (quotearg_buffer_restyled): Fix example.
4814         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
4815
4816 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4817
4818         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
4819         Most programs do not have translation catalogs for English and much
4820         less separate catalogs for British and American English.  Drop the
4821         suggestion to translators about these two, and provide it
4822         automatically for Unicode locales.  Like most programs, even those
4823         using American English, we use single quotation marks.  This conflicts
4824         with the American typographic convention, but works better when you
4825         cite the entire error message within double quotes.  It also tries not
4826         to clash with established practice and with what non-gnulib programs
4827         will usually do.
4828         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
4829         using an UTF-8 or GB-18030 locale.  The list of other locales with
4830         quotes was provided by Bruno Haible.
4831         (quotearg_buffer_restyled): Adjust instructions to translators.
4832         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
4833         text, since this would be wrong when using Unicode.
4834         * modules/quotearg: Depend on c-strcaseeq.
4835
4836 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4837
4838         quotearg: fix Wikipedia link
4839         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
4840
4841 2012-01-07  Simon Josefsson  <simon@josefsson.org>
4842
4843         Fix for mingw with MSVC9.
4844         * m4/ld-version-script.m4: Check that compiler rejects version
4845         scripts with syntax errors.  Reported by Bruno Haible
4846         <bruno@clisp.org>.
4847
4848 2012-01-06  Bruno Haible  <bruno@clisp.org>
4849
4850         Talk about "native Windows API", not "Woe32".
4851         * lib/accept4.c: Update comments to mention native Windows.
4852         * lib/execute.c: Likewise.
4853         * lib/fatal-signal.c: Likewise.
4854         * lib/localcharset.c: Likewise.
4855         * lib/nanosleep.c: Likewise.
4856         * lib/nl_langinfo.c: Likewise.
4857         * lib/pclose.c: Likewise.
4858         * lib/pipe-filter-gi.c: Likewise.
4859         * lib/pipe-filter-ii.c: Likewise.
4860         * lib/pipe.c: Likewise.
4861         * lib/pipe2.c: Likewise.
4862         * lib/popen.c: Likewise.
4863         * lib/progreloc.c: Likewise.
4864         * lib/relocatable.c: Likewise.
4865         * lib/sigaction.c: Likewise.
4866         * lib/sigprocmask.c: Likewise.
4867         * lib/spawn-pipe.h: Likewise.
4868         * lib/spawn-pipe.c: Likewise.
4869         * lib/spawni.c: Likewise.
4870         * lib/stat-time.h: Likewise.
4871         * lib/w32spawn.h: Likewise.
4872         * tests/test-isatty.c: Likewise.
4873         * lib/config.charset: More comments.
4874         * doc/gnulib-intro.texi: Mention native Windows.
4875         * doc/posix-functions/_Exit_C99.texi: Likewise.
4876         * doc/posix-headers/fcntl.texi: Likewise.
4877
4878 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
4879
4880         argp: Avoid crash if translator uses % characters in a translation.
4881         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
4882         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4883
4884 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
4885
4886         doc: C11 and C++11 are now official
4887         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
4888         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
4889         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
4890         * modules/stdalign:
4891         Replace references to draft C1X to C11, and to draft C++0X to C++11.
4892
4893 2012-01-06  Bruno Haible  <bruno@clisp.org>
4894
4895         uc-is-grapheme-break tests: Tweak.
4896         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
4897         message.
4898
4899 2012-01-06  Bruno Haible  <bruno@clisp.org>
4900
4901         test-init.sh: correct the test for diff -u
4902         * tests/test-init.sh: Also redirect stdout to /dev/null.
4903
4904 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
4905
4906         Use ', not `, for quoting output.
4907         * build-aux/announce-gen (usage, sizes, print_news_deltas)
4908         (print_changelog_deltas, get_tool_versions, main program):
4909         * build-aux/git-version-gen:
4910         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
4911         * build-aux/move-if-change (help):
4912         * build-aux/useless-if-before-free (usage, main program):
4913         * check-module (parse_module_file, usage)
4914         (find_included_lib_files, check_module):
4915         * lib/argmatch.c (main) [TEST]:
4916         * lib/argp-help.c (_help):
4917         * lib/getopt1.c (main) [TEST]:
4918         * lib/git-merge-changelog.c (usage):
4919         * lib/xstrtol-error.c (xstrtol_error):
4920         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
4921         * m4/argz.m4 (gl_FUNC_ARGZ):
4922         * m4/bison.m4 (gl_BISON):
4923         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
4924         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
4925         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
4926         * m4/fpending.m4 (gl_PREREQ_FPENDING):
4927         * m4/gc-random.m4 (gl_GC_RANDOM):
4928         * m4/intl.m4 (gt_CHECK_DECL):
4929         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
4930         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
4931         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
4932         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
4933         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
4934         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
4935         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
4936         * tests/test-dirname.c (main):
4937         * tests/test-getpass.c (main):
4938         * tests/test-iconvme.c (main):
4939         * tests/test-parse-datetime.c (LOG):
4940         * tests/test-xstrtoimax.sh:
4941         * tests/test-xstrtol.sh:
4942         * tests/test-xstrtoll.sh:
4943         * tests/test-xstrtoumax.sh:
4944         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
4945         * top/GNUmakefile (abort-due-to-no-makefile):
4946         Quote 'like this', not `like this', as per the recent change to
4947         the GNU coding standards.
4948
4949 2012-01-05  Bruno Haible  <bruno@clisp.org>
4950
4951         strtoimax: Don't force a replacement on systems where intmax_t is int.
4952         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
4953         'intmax_t' is not larger than 'int'.
4954         Reported by Pádraig Brady <P@draigBrady.com>.
4955
4956 2012-01-05  Bruno Haible  <bruno@clisp.org>
4957
4958         doc: Mention NetBSD bugs.
4959         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
4960         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
4961
4962 2012-01-05  Bruno Haible  <bruno@clisp.org>
4963
4964         strtoumax tests: Enhance tests.
4965         * tests/test-strtoumax.c (main): Add tests for large values.
4966
4967 2012-01-05  Bruno Haible  <bruno@clisp.org>
4968
4969         strtoimax: Work around AIX 5.1 bug.
4970         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
4971         definition.
4972         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
4973         Set HAVE_STRTOIMAX.
4974         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
4975         REPLACE_STRTOIMAX.
4976         * modules/inttypes-incomplete (Makefile.am): Substitute
4977         REPLACE_STRTOIMAX.
4978         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
4979         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
4980         (Depends-on): Update conditions.
4981         * tests/test-strtoimax.c (main): Add tests for large values.
4982         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
4983
4984 2012-01-05  Bruno Haible  <bruno@clisp.org>
4985
4986         inttypes: Modernize.
4987         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
4988         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
4989         (Makefile.am): Update inttypes.h rule.
4990
4991 2012-01-05  Jim Meyering  <meyering@redhat.com>
4992
4993         init.sh: don't waste a subshell just to redirect stderr
4994         * tests/init.sh: In testing for diff -u and diff -c, use a
4995         stderr-redirecting exec inside `...` rather than a subshell.
4996
4997         test-init.sh: avoid failure on HP-UX 11.00
4998         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
4999         resolves to diff -c or cmp.  Reported by Bruno Haible.
5000
5001 2012-01-05  Bruno Haible  <bruno@clisp.org>
5002
5003         Tests for module 'strtoull'.
5004         * modules/strtoull-tests: New file.
5005         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
5006
5007 2012-01-05  Bruno Haible  <bruno@clisp.org>
5008
5009         Tests for module 'strtoll'.
5010         * modules/strtoll-tests: New file.
5011         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
5012
5013 2012-01-05  Bruno Haible  <bruno@clisp.org>
5014
5015         Tests for module 'strtoul'.
5016         * modules/strtoul-tests: New file.
5017         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
5018
5019 2012-01-05  Bruno Haible  <bruno@clisp.org>
5020
5021         Tests for module 'strtol'.
5022         * modules/strtol-tests: New file.
5023         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
5024
5025 2012-01-04  Jim Meyering  <meyering@redhat.com>
5026
5027         test-init.sh: accommodate Solaris 5.10's different diff -u output
5028         * tests/test-init.sh: Also exempt @@ lines from the comparison
5029         of diff output, since Solaris 5.10 and GNU diff formats differ.
5030         Reported by Stefano Lattarini.
5031
5032 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
5033
5034         test-posixtm: don't assume signed integer wraparound
5035         * tests/test-posixtm.c (main): Don't assume wraparound semantics
5036         after signed integer overflow.  Inspired by (though it may not
5037         fix) Bruno Haible's bug report in
5038         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
5039
5040         Spell out "Windows 9x" and "Windows XP".
5041         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
5042         "Windows 9x" and "WinXP" with "Windows XP".
5043
5044 2012-01-04  Jim Meyering  <meyering@redhat.com>
5045
5046         test-vc-list-files-cvs.sh: remove obsolete comment
5047         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
5048         double exit.  Now that's all encapsulated via skip_ and Exit.
5049
5050 2012-01-04  Bruno Haible  <bruno@clisp.org>
5051
5052         Talk about "native Windows API", not "Win32".
5053         * lib/classpath.c: Update comments to mention native Windows.
5054         * lib/csharpexec.c: Likewise.
5055         * lib/dup2.c: Likewise.
5056         * lib/error.c: Likewise.
5057         * lib/fcntl.c: Likewise.
5058         * lib/filename.h: Likewise.
5059         * lib/findprog.c: Likewise.
5060         * lib/get-rusage-as.c: Likewise.
5061         * lib/get-rusage-data.c: Likewise.
5062         * lib/getpagesize.c: Likewise.
5063         * lib/javaexec.c: Likewise.
5064         * lib/msvc-inval.c: Likewise.
5065         * lib/msvc-nothrow.c: Likewise.
5066         * lib/nanosleep.c: Likewise.
5067         * lib/nonblocking.c: Likewise.
5068         * lib/printf-parse.c: Likewise.
5069         * lib/setlocale.c: Likewise.
5070         * lib/sigaction.c: Likewise.
5071         * lib/strerror_r.c: Likewise.
5072         * lib/tmpdir.c: Likewise.
5073         * lib/vasnprintf.c: Likewise.
5074         * lib/w32spawn.h: Likewise.
5075         * lib/waitpid.c: Likewise.
5076         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
5077         * m4/locale-ar.m4: Likewise.
5078         * m4/locale-fr.m4: Likewise.
5079         * m4/locale-ja.m4: Likewise.
5080         * m4/locale-tr.m4: Likewise.
5081         * m4/locale-zh.m4: Likewise.
5082         * m4/printf.m4: Likewise.
5083         * tests/test-cloexec.c: Likewise.
5084         * tests/test-copy-acl.sh: Likewise.
5085         * tests/test-copy-file.sh: Likewise.
5086         * tests/test-file-has-acl.sh: Likewise.
5087         * tests/test-set-mode-acl.sh: Likewise.
5088         * tests/test-dup-safer.c: Likewise.
5089         * tests/test-dup2.c: Likewise.
5090         * tests/test-dup3.c: Likewise.
5091         * tests/test-fcntl.c: Likewise.
5092         * tests/test-nonblocking-pipe.h: Likewise.
5093         * tests/test-nonblocking-socket.h: Likewise.
5094         * tests/test-pipe.c: Likewise.
5095         * tests/test-pipe2.c: Likewise.
5096         * tests/test-spawn-pipe-child.c: Likewise.
5097         * doc/acl-resources.txt: Likewise.
5098         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5099         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
5100         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
5101         * lib/localcharset.c: Update comments to mention native Windows.
5102         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5103         * lib/localename.c: Likewise.
5104         * lib/progreloc.c: Likewise.
5105         * lib/relocatable.c: Likewise.
5106         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5107         (windows_compute_revents): Renamed from win32_compute_revents.
5108         (windows_compute_revents_socket): Renamed from
5109         win32_compute_revents_socket.
5110         * lib/select.c: Update comments to mention native Windows.
5111         (windows_poll_handle): Renamed from win32_poll_handle.
5112         * m4/threadlib.m4: Update comments to mention native Windows.
5113         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
5114         --enable-threads=windows instead of --enable-threads=win32. Set
5115         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
5116         * lib/glthread/lock.h: Update comments to mention native Windows.
5117         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
5118         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
5119         USE_WIN32_THREADS.
5120         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
5121         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
5122         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
5123         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
5124         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
5125         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
5126         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
5127         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
5128         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
5129         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
5130         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
5131         * tests/test-tls.c: Likewise.
5132         Rationale:
5133         Microsoft renamed the "Win32 API" to "Windows API", as it is available
5134         on both 32-bit and 64-bit Windows systems.
5135         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
5136         line of distinction is between "native Windows" on one side and Unix/
5137         POSIX systems on the other side. More details in
5138         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
5139         Suggested by Paul Eggert.
5140
5141 2012-01-03  Bruno Haible  <bruno@clisp.org>
5142
5143         isatty: Support for MSVC 9.
5144         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
5145         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
5146         (_isatty_nothrow): New function.
5147         (isatty): Use it instead of _isatty.
5148         (IsConsoleHandle): Add comment, from Paolo Bonzini.
5149         * lib/poll.c (IsConsoleHandle): Likewise.
5150         * lib/select.c (IsConsoleHandle): Likewise.
5151         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
5152         (gl_PREREQ_ISATTY): New macro.
5153         * modules/isatty (Depends-on): Add msvc-inval.
5154         (configure.ac): Invoke gl_PREREQ_ISATTY.
5155
5156 2012-01-03  Jim Meyering  <meyering@redhat.com>
5157
5158         maint.mk: remove temporary transition aid from over 1.5 years ago
5159         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
5160         purpose was to aid in the transition (avoiding silent malfunction)
5161         from that old name to the new _sc_search_regexp.  This shim was
5162         added by commit 219c504b.
5163
5164         init.sh: do not try to accommodate compare arguments starting with "-"
5165         * tests/init.sh (compare_dev_null_): Do not try to accommodate
5166         compare arguments that start with "-".  Besides, we do not worry
5167         about this when invoking diff or cmp; why start now with sed?
5168         Using "--" to separate options from argument would trigger sed
5169         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
5170         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
5171
5172 2012-01-02  Bruno Haible  <bruno@clisp.org>
5173
5174         Enhance tests for module 'isatty'.
5175         * modules/isatty-tests (Depends-on): Add pipe-posix.
5176         * tests/test-isatty.c: Include <fcntl.h>.
5177         (DEV_NULL): New macro.
5178         (main): Test the resut of isatty() also on regular files, pipes, and
5179         /dev/null.
5180
5181         New module 'isatty'.
5182         * lib/unistd.in.h (isatty): New declaration.
5183         * lib/isatty.c: New file, based on an idea of
5184         Bastien Roucariès <roucaries.bastien@gmail.com>.
5185         * m4/isatty.m4: New file.
5186         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
5187         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
5188         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
5189         REPLACE_ISATTY.
5190         * modules/isatty: New file.
5191         * doc/posix-functions/isatty.texi: Mention the new module.
5192         Suggested by Paolo Bonzini.
5193
5194 2012-01-02  Bruno Haible  <bruno@clisp.org>
5195
5196         canonicalize: Tweak 2011-12-29 commit.
5197         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
5198         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
5199
5200 2012-01-02  Jim Meyering  <meyering@redhat.com>
5201
5202         gitlog-to-changelog: describe input syntax in --help output
5203         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
5204
5205         gitlog-to-changelog: fix typo in --help: show backslash before email @
5206         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
5207         in sources, but not in actual output.
5208
5209 2011-12-30  Jim Meyering  <meyering@redhat.com>
5210
5211         gitlog-to-changelog: don't malfunction when name contains %-directive
5212         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
5213         in a name string cause trouble.  E.g., with a user name of "%s",
5214         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
5215
5216 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
5217
5218         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
5219         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
5220         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
5221         the "  (tiny change)" notation that is appended to the standard
5222         ChangeLog "date  name  email" header line.
5223
5224 2012-01-01  Jim Meyering  <meyering@redhat.com>
5225
5226         test-framework-sh: init.sh: fix "make dist" failure
5227         When using gnulib-tool's --with-tests option and any module that
5228         depends on test-framework-sh, "make dist" would fail due to the
5229         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
5230         in the gltests directory, and not in the gllib/ directory.
5231         One way to work around that is to move the EXTRA_DIST += init.sh
5232         from the primary module to the -tests one:
5233         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
5234         * modules/test-framework-sh (Makefile.am): ...not here.
5235         Reported by Tom G. Christensen in
5236         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
5237
5238         version-etc: update copyright year reported by --version
5239         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
5240
5241 2011-12-31  Pádraig Brady  <P@draigBrady.com>
5242
5243         canonicalize: only stat() if required
5244         * lib/canonicalize.c (canonicalize_filename_mode):
5245         Avoid calling l?stat() when both CAN_MISSING,
5246         and CAN_NOLINKS are set, as we neither need
5247         to resolve symlinks or test component existence.
5248
5249 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
5250
5251         doc: cover st_ino issues once; add OpenVMS etc.
5252         * doc/posix-functions/stat.texi (stat):
5253         * doc/posix-functions/lstat.texi (lstat):
5254         * doc/posix-functions/fstatat.texi (fstatat):
5255         * doc/posix-functions/fstat.texi (fstat):
5256         Move general 'struct stat' stuff to sys_stat.texi,
5257         leaving behind a pointer.
5258         * doc/posix-headers/sys_stat.texi (sys/stat.h):
5259         Merge duplicate info about 'struct stat' problems into here.
5260         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
5261         and suggest partial workarounds.
5262
5263         same-inode: port to OpenVMS
5264         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
5265         three st_ino values.
5266
5267 2011-12-30  Pádraig Brady  <P@draigBrady.com>
5268
5269         canonicalize: fix references to stat() and lstat()
5270         * lib/canonicalize.c (canonicalize_filename_mode):
5271         Ensure references always resolve to a replacement
5272         function if required (even via a macro).
5273
5274 2011-12-30  Jim Meyering  <meyering@redhat.com>
5275
5276         gitlog-to-changelog: remove a little duplication
5277         * build-aux/gitlog-to-changelog (main): Grep @lines once,
5278         rather than twice.
5279
5280 2011-12-29  Pádraig Brady  <P@draigBrady.com>
5281
5282         canonicalize: add support for not resolving symlinks
5283         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
5284         indicate we don't want to follow symlinks.  Also
5285         provide CAN_MODE_MASK to aid setting these existing
5286         mutually exclusive values.
5287         * lib/canonicalize.c (canonicalize_filename_mode):
5288         Extract the flags from can_mode parameter, which
5289         are currently just used to select between stat()
5290         and lstat().  Also ensure that mutually exclusive
5291         values are flagged immediately as invalid.
5292         * tests/test-canonicalize.c: Verify symlinks are
5293         not followed, and that invalid flag combinations
5294         are diagnosed.
5295
5296 2011-12-25  Jim Meyering  <meyering@redhat.com>
5297
5298         gitlog-to-changelog: do not clump multi-paragraph entries
5299         Identical header lines (date,name,email+coauthors) are suppressed,
5300         thus putting all entries with those same characteristics under
5301         a single header.  However, when a log entry consists of two or
5302         more paragraphs, it may not be clear where it starts and ends.
5303         This change makes it so that such an entry is always separated
5304         from others by a header line, even when that header would
5305         otherwise be suppressed.
5306         * build-aux/gitlog-to-changelog: Implement the above.
5307         Inspired by a related request from Stefano Lattarini in
5308         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
5309
5310 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5311
5312         announce-gen: fix `cmd' typo in diagnostic
5313         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
5314         diagnostic: a missing '$' meant that the command was not output.
5315
5316 2011-12-23  Jim Meyering  <meyering@redhat.com>
5317
5318         test-framework-sh: distribute init.sh
5319         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
5320         Otherwise, "make -C gnulib-tests check" (at least in grep) would
5321         fail due to the lack of init.sh.
5322
5323         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
5324         * modules/atexit-tests: Rather than listing tests/init.sh,
5325         now that there's a module for it, simply depend on that new module.
5326         * modules/closein-tests: Likewise.
5327         * modules/exclude-tests: Likewise.
5328         * modules/getcwd-tests: Likewise.
5329         * modules/perror-tests: Likewise.
5330         * modules/pread-tests: Likewise.
5331         * modules/pwrite-tests: Likewise.
5332         * modules/vc-list-files-tests: Likewise.
5333         * modules/verify-tests: Likewise.
5334         * modules/xalloc-die-tests: Likewise.
5335         * modules/xstrtoimax-tests: Likewise.
5336         * modules/xstrtol-tests: Likewise.
5337         * modules/xstrtoll-tests: Likewise.
5338         * modules/xstrtoumax-tests: Likewise.
5339         * modules/yesno-tests: Likewise.
5340
5341 2011-12-22  Jim Meyering  <meyering@redhat.com>
5342
5343         test-framework-sh: add minimal tests of init.sh's compare function
5344         * modules/test-framework-sh-tests: New file.
5345         * tests/test-init.sh: New file.
5346
5347         test-framework-sh: new module
5348         * modules/test-framework-sh: New file.
5349         * MODULES.html.sh (Support for maintaining and releasing projects):
5350         List it.
5351
5352         init.sh: do not emit simulated diff output to stderr
5353         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
5354
5355 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
5356
5357         .gitignore: ignore gnulib.dvi and regex.info
5358         * doc/.gitignore:add gnulib.dvi and regex.info
5359
5360 2011-12-22  Jim Meyering  <meyering@redhat.com>
5361
5362         init.sh: correct previous change
5363         * tests/init.sh (compare): My previous change was wrong.
5364         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
5365
5366         init.sh: avoid unwarranted test failure when using "set -e"
5367         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
5368         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
5369         a use like "compare exp out" would get evoke an unconditional failure.
5370
5371 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
5372
5373         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
5374         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
5375         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
5376         autoreconf that did not.
5377         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
5378         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5379
5380 2011-12-17  Jim Meyering  <meyering@redhat.com>
5381
5382         bootstrap: remove some now-unneeded code
5383         This script arose back when gnulib-tool was young.
5384         Since then, it has seen improvements that render much of this
5385         script unnecessary.  In particular, it can now make symlinks
5386         to the files it uses.  Also, I no longer see as much value in
5387         marking files as read-only via comments.
5388         If you relied on the symlink-creation feature of the preceding
5389         version of this script, you can get most of that functionality
5390         by adding the --symlink option to the definition of
5391         gnulib_tool_option_extras in your bootstrap.conf file.
5392         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
5393         Run autopoint and libtoolize *before* gnulib-tool.
5394         After it, run an abbreviated autoreconf, rather than a loop around
5395         all tools.
5396         (slirp, bt_mark_as_generated): Remove functions.
5397
5398 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5399
5400         ftoastr: fix typo
5401         * lib/ftoastr.h: Fix misspelling in comment.
5402
5403 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
5404
5405         * top/README-release: fix punctuation.
5406
5407 2011-12-17  Jim Meyering  <meyering@redhat.com>
5408
5409         bootstrap: correct the recent buildreq change
5410         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
5411         had no effect.
5412         * build-aux/bootstrap (buildreq): Bracket each search term with
5413         "*...*", so that the shell "case" statement works as intended.
5414         Add comments.
5415
5416 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
5417
5418         build: let bootstrap resort to wget when downloading .po files
5419         * build-aux/bootstrap (download_po_files): Fallback to wget when
5420         downloading the .po files via rsync fails.  This is necessary to
5421         bootstrap from behind a strict firewall.
5422
5423 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5424
5425         stdint: don't assume C++11 when compiling with g++
5426         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
5427         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
5428         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
5429         work also in C++ before C++11, as that improperly inhibits
5430         generating a substitute stdint.h for that case.
5431
5432 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5433
5434         alloca: protect comment from gnulib-tool
5435         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
5436         that gnulib-tool doesn't think it's a license, and munge it to
5437         say "GCC version 3".
5438
5439 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
5440
5441         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
5442         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
5443         $(abs_top_builddir) instead of $(top_builddir).
5444
5445 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
5446
5447         strftime-tests: also test nanoseconds
5448         * tests/test-strftime.c (T): Add a test of %N.
5449
5450 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
5451
5452         inttypes, stdint: add C++11 support
5453         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
5454         when including inttypes.h and stdint.h.  Support this change to
5455         the standard.
5456         * doc/posix-headers/inttypes.texi (inttypes.h):
5457         * doc/posix-headers/stdint.texi (stdint.h): Document this.
5458         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
5459         Define if not defined already, for the benefit of pre-C++11 hosts.
5460         Define the standard format macros (e.g., PRId8) always.
5461         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
5462         Likewise, if __cpluspus.  Define the standard constant and limit
5463         macros (e.g., INT8_C, INT8_MAX) always.
5464         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
5465         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
5466         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
5467         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
5468         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
5469         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
5470         Likewise.
5471
5472 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
5473
5474         nonblocking tests: Fix test failure on Linux/PPC.
5475         Suggested by Prerna Saxena in
5476         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
5477         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
5478         Set to 1100000.
5479
5480 2011-12-12  Jim Meyering  <meyering@redhat.com>
5481
5482         argmatch: don't hard-code `' when listing valid option arguments
5483         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
5484         use the quote function to add quotes.  Use fputs rather than
5485         fprintf for the format string with no format directive.
5486
5487 2011-12-07  Eric Blake  <eblake@redhat.com>
5488
5489         bootstrap: detect tools required by gnulib-tool
5490         * build-aux/bootstrap (buildreq): Provide minimum implicit
5491         dependencies.
5492         * DEPENDENCIES: Mention patch as a prereq.
5493
5494 2011-12-04  Bruno Haible  <bruno@clisp.org>
5495
5496         sethostname: Port to Windows platforms.
5497         * lib/sethostname.c: Provide an alternate implementation for Windows
5498         platforms.
5499         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
5500         (main): Skip the test if sethostname() fails with EPERM. On Windows
5501         platforms, don't check the result of gethostname().
5502
5503 2011-12-04  Bruno Haible  <bruno@clisp.org>
5504             Jim Meyering  <meyering@redhat.com>
5505
5506         tests: Avoid spurious error message on platforms without mktemp program.
5507         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
5508
5509 2011-12-04  Bruno Haible  <bruno@clisp.org>
5510
5511         sethostname: Fix documentation.
5512         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
5513         "not fixed" section.
5514
5515 2011-12-03  Bruno Haible  <bruno@clisp.org>
5516
5517         gnulib-tool: Verify that the License field is present and non-empty.
5518         * gnulib-tool (func_get_license_raw): New function, extracted from
5519         func_get_license.
5520         (func_get_license): Use it. Warn if the module is not a test module and
5521         has no license.
5522         Suggested by Jim Meyering.
5523
5524 2011-12-03  Bruno Haible  <bruno@clisp.org>
5525
5526         sethostname tests: Fix link error on mingw.
5527         * tests/test-sethostname1.c: New file, extracted from
5528         tests/test-sethostname.c.
5529         * tests/test-sethostname2.c: New file, extracted from
5530         tests/test-sethostname.c.
5531         * tests/test-sethostname.c: Remove file.
5532         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
5533         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
5534         (Depends-on): Add gethostname.
5535         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
5536         Link the latter with $(GETHOSTNAME_LIB).
5537
5538         sethostname tests: Fix compilation error on mingw.
5539         * tests/test-sethostname.c: Don't include <sys/types.h>.
5540         (geteuid): Use a dummy value without uid_t.
5541         * modules/sethostname-tests (Depends-on): Remove sys_types.
5542
5543         sethostname tests: Avoid a gcc warning.
5544         * tests/test-sethostname.c (main): Remove an unused variable.
5545
5546         Tweak last commit.
5547         * modules/sethostname-tests (Files): Sort by decreasing importance.
5548         (configure.ac): Check for geteuid.
5549         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
5550         the test when there's nothing to test. Drop an unnecessary cast.
5551         Improve an error message. Verify that the final sethostname() call
5552         succeeds.
5553
5554 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5555
5556         Add a test suite for the sethostname module.
5557         * modules/sethostname-tests: New file.  A test program
5558         for the sethostname module.
5559         * tests/test-sethostname.c: Likewise.
5560
5561 2011-12-03  Bruno Haible  <bruno@clisp.org>
5562
5563         Tweak last commit.
5564         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
5565         Fix preprocessor directives indentation. Fix typos.
5566         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
5567         * modules/unistd (Makefile): Likewise.
5568
5569 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5570
5571         Integrate the sethostname module into unistd.
5572         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
5573         into the unistd.h header.
5574         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
5575         preprocessor directives.
5576         * modules/unistd: Setup the Makefile substitutions of the
5577         SETHOSTNAME preprocessor directives.
5578
5579 2011-12-03  Bruno Haible  <bruno@clisp.org>
5580
5581         Tweak last commit.
5582         * lib/sethostname.c: Don't include <string.h>.
5583         (sethostname): No need to copy the argument string to the stack. Don't
5584         call clearerr. Preserve errno when fprintf failed.
5585         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
5586         Don't invoke AC_REPLACE_FUNCS.
5587         * modules/sethostname (Link): Remove empty section.
5588         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
5589         failure problem.
5590
5591 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5592
5593         New module 'sethostname'.
5594         * lib/sethostname.c (sethostname): New file.  Provide sethostname
5595         for systems that lack it.
5596         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
5597         sethostname declaration and function.
5598         * modules/sethostname: New file.  Define the sethostname module.
5599
5600 2011-12-03  Bruno Haible  <bruno@clisp.org>
5601
5602         Tweak last commit.
5603         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
5604
5605 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5606
5607         Split the HOST_NAME_MAX detection into a separate m4 macro.
5608         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
5609         macro so it can be used by the pending sethostname module.
5610
5611 2011-12-03  Bruno Haible  <bruno@clisp.org>
5612
5613         Fix module descriptions syntax.
5614         * modules/argv-iter (License): Fix syntax.
5615         * modules/di-set (License): Likewise.
5616         * modules/ino-map (License): Likewise.
5617         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
5618
5619 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
5620
5621         stdalign: port to Clang 3.0
5622         Problem reported by Simon Josefsson in
5623         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
5624         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
5625         which has <stdalign.h> but which does not define alignof.
5626         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
5627
5628 2011-12-01  Eric Blake  <eblake@redhat.com>
5629
5630         mktempd: silence dd usage
5631         * build-aux/mktempd (rand_bytes): Silence dd.
5632
5633 2011-11-30  Simon Josefsson  <simon@josefsson.org>
5634
5635         manywarnings: Don't mention gcc version in docstring.
5636         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
5637         Jim Meyering <meyering@redhat.com>.
5638
5639 2011-11-30  Jim Meyering  <meyering@redhat.com>
5640
5641         hash: mark a few floating point constants with "f" suffix
5642         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
5643         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
5644         floating point constants with "f", since they're destined to be
5645         saved/used as "float"s.
5646
5647 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
5648
5649         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
5650         * tests/test-float.c (test_long_double): Correct and re-enable the
5651         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
5652
5653 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
5654
5655         Avoid subtracting two pointers that don't point into the same block.
5656         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
5657         only pointers into the same memory block are subtracted. We cannot
5658         assume that sizeof (ptrdiff_t) == sizeof (void *).
5659
5660 2011-11-29  Eric Blake  <eblake@redhat.com>
5661
5662         maint.mk: add syntax check for use of compare from init.sh
5663         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
5664         moved here from coreutils.
5665
5666         manywarnings: drop -Wunsuffixed-float-constants
5667         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
5668         '1.0D', which is the only way to silence this warning for 'double'.
5669
5670 2011-11-29  Jim Meyering  <meyering@redhat.com>
5671
5672         hash: mark compute_bucket_size with the pure attribute
5673         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
5674
5675         quotearg, propername: correct pragma guard expression
5676         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
5677         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
5678
5679 2011-11-28  Jim Meyering  <meyering@redhat.com>
5680
5681         propername: do not mark proper_name with the const attribute
5682         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
5683         since it examines data pointed to by its parameter.
5684         * lib/propername.c (proper_name): Instead, add a pragma to suppress
5685         the suggestion from -Wsuggest-attribute=const.
5686
5687         propername: mark one more function as const
5688         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
5689
5690 2011-11-27  Jim Meyering  <meyering@redhat.com>
5691
5692         mark functions with const and pure attributes
5693
5694         Mark functions per suggestions from gcc-4.6 when using these options:
5695         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
5696         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
5697         Follow these guidelines: when possible, apply the attribute to
5698         an extern declaration, not to its definition.  Apply it to the
5699         definition only when the definition is static.
5700         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
5701         * lib/argv-iter.h (argv_iter_n_args): Likewise.
5702         * lib/base64.h (isbase64): Likewise.
5703         * lib/basename-lgpl.c (last_component, base_len): Likewise.
5704         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
5705         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
5706         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
5707         (c_tolower, c_toupper): Likewise.
5708         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
5709         * lib/chdir-long.c (find_non_slash): Likewise.
5710         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
5711         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
5712         * lib/file-type.h (file_type): Likewise.
5713         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
5714         * lib/filevercmp.c (verrevcmp): Likewise.
5715         * lib/freadahead.h (freadahead): Likewise.
5716         * lib/fts.c (fts_maxarglen): Likewise.
5717         * lib/hash-pjw.h (hash_pjw): Likewise.
5718         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
5719         * lib/hash.c (is_prime, next_prime): Likewise.
5720         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
5721         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
5722         (hash_table_ok, hash_get_first, hash_string): Likewise.
5723         (compute_bucket_size): Likewise.
5724         * lib/i-ring.h (i_ring_empty): Likewise.
5725         * lib/isnan.c (isnanl): Likewise.
5726         * lib/math.h (isnanl, rpl_isnanl): Likewise.
5727         * lib/memcasecmp.h (memcasecmp): Likewise.
5728         * lib/memchr2.h (memchr2): Likewise.
5729         * lib/memcmp2.h (memcmp2): Likewise.
5730         * lib/parse-datetime.y (lookup_zone): Likewise.
5731         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
5732         [!WINDOWS_SOCKETS]: Likewise.
5733         * lib/strnlen1.h (strnlen1): Likewise.
5734         * lib/uniwidth.in.h (uc_width): Likewise.
5735         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
5736         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
5737         (quoting_options_from_style): Add a comment.
5738         * lib/propername.h (proper_name): Add a comment.
5739
5740 2011-11-27  Bruno Haible  <bruno@clisp.org>
5741
5742         Remove unused macros from !_LIBC code in glibc-borrowed files.
5743         * lib/fnmatch.c (STRCOLL): Remove macro.
5744         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
5745         * lib/glob.c (__stat, __readdir64): Remove macros.
5746         * lib/tempname.c (__open64, __xstat64): Remove macros.
5747         Suggested by Paul Eggert.
5748
5749 2011-11-27  Bruno Haible  <bruno@clisp.org>
5750
5751         getcwd: Fix link error on MSVC 9.
5752         * modules/getcwd (Depends-on): Add readdir, rewinddir.
5753
5754 2011-11-27  Bruno Haible  <bruno@clisp.org>
5755
5756         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
5757         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
5758         HAVE_OPENDIR is 0.
5759         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
5760         HAVE_CLOSEDIR is 0.
5761         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
5762         is 0.
5763         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
5764
5765 2011-11-27  Bruno Haible  <bruno@clisp.org>
5766
5767         getcwd: Fix bug from 2011-08-17.
5768         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
5769         platforms that need it.
5770         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
5771         code of 4 to be a failure, not a success. This ensures that
5772         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
5773
5774 2011-11-27  Bruno Haible  <bruno@clisp.org>
5775
5776         binary-io tests: Avoid test failure on mingw when libtool is used.
5777         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
5778         Don't verify the size of t-bin-out1.tmp here.
5779         * tests/test-binary-io.sh: Verify it here.
5780         Reported by Simon Josefsson.
5781
5782 2011-11-26  Bruno Haible  <bruno@clisp.org>
5783
5784         Fix conflict between two instantiations of module 'unistd'.
5785         * gnulib-tool (func_emit_autoconf_snippet): Substitute
5786         ${include_guard_prefix} also in the autoconf snippet.
5787         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
5788         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
5789         GNULIB_UNISTD_H_GETOPT.
5790         * modules/getopt-posix (configure.ac): Set the
5791         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
5792         * modules/getopt-gnu (configure.ac): Likewise.
5793         * modules/unistd (Makefile.am): Change the substitution value of
5794         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
5795         Reported by Simon Josefsson.
5796
5797 2011-11-25  Bruno Haible  <bruno@clisp.org>
5798
5799         pagealign_alloc: Doc and comments.
5800         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
5801         module.
5802         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
5803
5804 2011-11-25  Jim Meyering  <meyering@redhat.com>
5805
5806         test-update-copyright.sh: avoid false-positive failure
5807         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
5808         around false positive failure on Cygwin/Windows.  The latter was
5809         matching erroneously-created files with names like
5810         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
5811
5812 2011-11-25  Simon Josefsson  <simon@josefsson.org>
5813
5814         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
5815         * m4/valgrind-tests.m4: Check that the parameters that will be
5816         used works, not just a subset of them.  Reported by Bruno Haible
5817         <bruno@clisp.org>.
5818
5819 2011-11-24  Jim Meyering  <meyering@redhat.com>
5820
5821         test-stdalign.c: comment out long double tests
5822         * tests/test-stdalign.c: Don't try to reduce alignment of long double
5823         variables.  That provokes errors like this from gcc-4.7.0 20111124:
5824         error: '_Alignas' specifiers cannot reduce alignment of \
5825         'static_longdouble_alignas'.
5826
5827 2011-11-22  Jim Meyering  <meyering@redhat.com>
5828
5829         init.sh: make "compare /dev/null FILE" output more readable
5830         * tests/init.sh (compare_): Document the preferred order of arguments.
5831         (emit_diff_u_header_): New function.
5832         (compare_dev_null_): Emit a simulated diff, rather than just the
5833         contents of the unexpected file.  Suggestion from Bruno Haible.
5834
5835 2011-11-21  Jim Meyering  <meyering@redhat.com>
5836             Eric Blake  <eblake@redhat.com>
5837
5838         init.sh: work around OSF/1 5.1's mishandling of /dev/null
5839         * tests/init.sh: Make our compare function slightly more portable.
5840         Reported by Bruno Haible in
5841         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
5842
5843 2011-11-21  Simon Josefsson  <simon@josefsson.org>
5844
5845         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
5846         before using it, in code that ends up in config.h.
5847
5848 2011-11-20  Bruno Haible  <bruno@clisp.org>
5849
5850         getcwd: Work around getcwd bug on AIX 5..7.
5851         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
5852         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
5853         Use a different value for gl_cv_func_getcwd_path_max. Move the
5854         definition of HAVE_PARTLY_WORKING_GETCWD from here...
5855         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
5856         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
5857         Define HAVE_MINIMALLY_WORKING_GETCWD.
5858         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
5859         where it is not even minimally working, that is, on AIX.
5860         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
5861         m4/getcwd-path-max.m4.
5862         (main): Update exit code computation.
5863         * doc/posix-functions/getcwd.texi: Mention list of platforms where
5864         getcwd does not handle long file names.
5865
5866 2011-11-20  Bruno Haible  <bruno@clisp.org>
5867
5868         getcwd: Fix bug from 2009-09-10.
5869         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
5870         like "no".
5871
5872 2011-11-20  Simon Josefsson  <simon@josefsson.org>
5873
5874         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
5875
5876 2011-11-20  Bruno Haible  <bruno@clisp.org>
5877
5878         fma tests: Avoid shadowing local variables.
5879         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
5880         expected.
5881
5882 2011-11-20  Bruno Haible  <bruno@clisp.org>
5883
5884         copysignf tests: Fix.
5885         * tests/test-copysignf.c: Fix signature check.
5886
5887 2011-11-20  Bruno Haible  <bruno@clisp.org>
5888
5889         fma: Remove unused code.
5890         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
5891         unused macros.
5892
5893 2011-11-20  Bruno Haible  <bruno@clisp.org>
5894
5895         sethostname: Fix doc about AIX.
5896         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
5897         sethostname; it has it.
5898
5899         sethostname: Mention more portability problems.
5900         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
5901         problem.
5902         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5903
5904 2011-11-19  Bruno Haible  <bruno@clisp.org>
5905
5906         Depend on module fcntl-h when AT_FDCWD is used.
5907         * modules/utimens (Depends-on): Add fcntl-h.
5908         * modules/areadlinkat (Depends-on): Likewise.
5909         * modules/areadlinkat-with-size (Depends-on): Likewise.
5910         * modules/faccessat (Depends-on): Likewise.
5911         * modules/fchmodat (Depends-on): Likewise.
5912         * modules/fchownat (Depends-on): Likewise.
5913         * modules/getcwd (Depends-on): Likewise.
5914         * modules/mkdirat (Depends-on): Likewise.
5915         * modules/mkfifoat (Depends-on): Likewise.
5916         * modules/readlinkat (Depends-on): Likewise.
5917         * modules/symlinkat (Depends-on): Likewise.
5918         * modules/dup2-tests (Depends-on): Likewise.
5919         * modules/fdutimensat-tests (Depends-on): Likewise.
5920         * modules/futimens-tests (Depends-on): Likewise.
5921
5922 2011-11-19  Bruno Haible  <bruno@clisp.org>
5923
5924         euidaccess: Update a comment.
5925         * lib/euidaccess.c: Update comment about platforms with faccessat.
5926
5927 2011-11-19  Bruno Haible  <bruno@clisp.org>
5928
5929         openat: Fix file list.
5930         * modules/openat (Files): Remove lib/at-func.c.
5931
5932 2011-11-19  Bruno Haible  <bruno@clisp.org>
5933
5934         fstatat: Simplify.
5935         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
5936         gnulib should define rpl_fstatat, there is a
5937         "#define fstatat rpl_fstatat" in <sys/stat.h>.
5938
5939 2011-11-19  Bruno Haible  <bruno@clisp.org>
5940
5941         Ensure 'inline' can be used in tests/test-utimens-common.h.
5942         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
5943         * modules/futimens-tests (configure.ac): Likewise.
5944         * modules/utimens-tests (configure.ac): Likewise.
5945         * modules/utimensat-tests (configure.ac): Likewise.
5946
5947 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5948
5949         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
5950         not hash_insert0.
5951         (hash_insert_if_absent): Doc fix.
5952
5953 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5954
5955         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
5956
5957 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5958
5959         test-getcwd: disambiguate exit status
5960         * tests/test-getcwd.c (test_long_name): Return 0..7.
5961         (main): Exit with an unambiguous exit status.  The old
5962         code yielded a mysterious mixture of two failure codes.
5963
5964         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
5965         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
5966         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
5967         rpl_fstatat or fstatat.  This should fix the other problem
5968         reported by Kai Habel in
5969         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5970         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
5971         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
5972         and I reproduced it on a Solaris 8 host we still have in production.
5973
5974 2011-11-18  Jim Meyering  <meyering@redhat.com>
5975
5976         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
5977         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
5978         Add a sentence to the comment.
5979         (hash_insert0): New function that simply calls hash_insert_if_absent.
5980         * lib/hash.h (hash_insert_if_absent): Declare it.
5981         (hash_insert0): Add deprecation attribute.
5982         (_GL_ATTRIBUTE_DEPRECATED): Define.
5983         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
5984         not hash_insert0.
5985         * NEWS: Mention it, even though it's not really an incompatible change.
5986
5987 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
5988
5989         openat: avoid compilation failure due to lack of <errno.h> inclusion
5990         * lib/openat.c: Include <errno.h>.
5991
5992 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
5993
5994         * modules/getcwd (Depends-on): Add fdopendir.
5995         This fixes one of the two problems reported by Kai Habel in
5996         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5997
5998         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
5999         stdalign problem reported by Ian Beckwith in
6000         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
6001         * modules/crypto/gc-arcfour (Depends-on):
6002         Depend conditionally on crypto/arcfour.
6003         * modules/crypto/gc-arctwo (Depends-on):
6004         Depend conditionally on crypto/arctwo.
6005         * modules/crypto/gc-des (Depends-on):
6006         Depend conditionally on crypto/des.
6007         * modules/crypto/gc-hmac-md5 (Depends-on):
6008         Depend conditionally on crypto/hmac-md5.
6009         * modules/crypto/gc-hmac-sha1 (Depends-on):
6010         Depend conditionally on crypto/hmac-sha1.
6011         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
6012         * modules/crypto/gc-md4 (Depends-on):
6013         Depend conditionally on crypto/md4.
6014         * modules/crypto/gc-md5 (Depends-on):
6015         Depend conditionally on crypto/md5.
6016         * modules/crypto/gc-rijndael (Depends-on):
6017         Depend conditionally on crypto/rijndael.
6018         * modules/crypto/gc-sha1 (Depends-on):
6019         Depend conditionally on crypto/sha1.
6020         * modules/crypto/gc-arcfour:
6021         * modules/crypto/gc-arctwo:
6022         * modules/crypto/gc-des:
6023         * modules/crypto/gc-hmac-md5:
6024         * modules/crypto/gc-hmac-sha1:
6025         * modules/crypto/gc-md2:
6026         * modules/crypto/gc-md4:
6027         * modules/crypto/gc-md5:
6028         * modules/crypto/gc-rijndael:
6029         * modules/crypto/gc-sha1:
6030         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
6031         now that the conditional dependencies do the work for us.
6032
6033 2011-11-17  Jim Meyering  <meyering@redhat.com>
6034
6035         tests: factor st_ctime-comparison out of two headers
6036         * tests/test-utimens-common.h (ctime_compare): Define.
6037         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
6038         * tests/test-lutimens.h (test_lutimens): Likewise.
6039         * tests/test-utimens.h (test_utimens): Likewise.
6040
6041         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
6042         Invoke the test program via an init.sh-using wrapper.
6043         * tests/test-getcwd.sh: New file.
6044         * modules/getcwd-tests (Files): Add it.
6045         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
6046
6047 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
6048
6049         gitlog-to-changelog: support multi-author commits.
6050         The FSF cares about keeping track of all authors of patches to its
6051         projects, but Git doesn't provide obvious support for multi-author
6052         changesets. Consensus seems to be forming around the use of extra
6053         Signed-off-by inspired lines in the log message formatted as
6054         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
6055         multi-author commits between version control systems.
6056         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
6057         log message and output in standard ChangeLog multi-author format.
6058         Reported by Peter Rosin <peda@lysator.liu.se>
6059
6060 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
6061             Bruno Haible  <bruno@clisp.org>
6062
6063         Fix some modules' file list.
6064         * modules/fstatat (Files): Add m4/lstat.m4.
6065         * modules/openat (Files): Likewise.
6066         * modules/unlinkat (Files): Likewise.
6067
6068 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
6069
6070         maint.mk: fix tight-scope.mk generation in VPATH builds.
6071         * top/maint.mk (tight-scope.mk): Make sure to prefix file
6072         reference with $(srcdir) so that the file is found correctly even
6073         when running `make syntax-check' in a VPATH build.
6074
6075 2011-11-13  Bruno Haible  <bruno@clisp.org>
6076             Jim Meyering  <meyering@redhat.com>
6077
6078         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
6079         * tests/init.sh (compare): Remove "No differences encountered" or
6080         synonymous output from the 'diff' program.
6081
6082 2011-11-13  Bruno Haible  <bruno@clisp.org>
6083
6084         Makefile: Tweak indentation.
6085         * Makefile: Use tab as first character in every line that contains rule
6086         commands.
6087
6088 2011-11-13  Bruno Haible  <bruno@clisp.org>
6089
6090         Syntax check for copyright statements.
6091         * check-copyright: New file.
6092         * Makefile (sc_check_copyright): New rule.
6093
6094 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6095
6096         * build-aux/git-version-gen: Add --prefix to configure the tag
6097         match string.
6098
6099 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6100
6101         * build-aux/git-version-gen: Add --help and --version.
6102
6103 2011-11-12  Jim Meyering  <meyering@redhat.com>
6104
6105         revamp the other test-exclude?.sh scripts to use init.sh, too
6106         * tests/test-exclude1.sh: Use init.sh.
6107         * tests/test-exclude2.sh: Likewise.
6108         * tests/test-exclude3.sh: Likewise.
6109         * tests/test-exclude4.sh: Likewise.
6110         * tests/test-exclude5.sh: Likewise.
6111         * tests/test-exclude6.sh: Likewise.
6112         * tests/test-exclude7.sh: Likewise.
6113         * tests/test-exclude8.sh: Likewise.
6114         * modules/exclude-tests (Files): List init.sh.
6115
6116         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
6117         These shell scripts ignored failure of the binary test-exclude,
6118         so making the latter return 77 didn't cause them to be skipped.
6119         * tests/test-exclude5.sh: Exit with test-exclude's error status
6120         when that program fails.  Revamp to use init.sh.
6121         * tests/test-exclude2.sh: Likewise.
6122
6123         test-exclude: fix a typo
6124         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
6125
6126 2011-11-11  Bruno Haible  <bruno@clisp.org>
6127
6128         obstack: Fix compilation error on MSVC 9.
6129         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
6130
6131 2011-11-11  Jim Meyering  <meyering@redhat.com>
6132
6133         test-exclude: skip tests rather than failing on deficient systems
6134         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
6135         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
6136         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
6137         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
6138
6139 2011-11-10  Bruno Haible  <bruno@clisp.org>
6140
6141         ptsname_r test: Avoid gcc warning on glibc systems.
6142         * tests/test-ptsname_r.c (null_ptr): New function.
6143         (test_errors): Use it.
6144
6145 2011-11-10  Bruno Haible  <bruno@clisp.org>
6146
6147         ptsname_r: Avoid compilation error on OSF/1 5.1.
6148         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
6149         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
6150         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
6151         function is not declared or incompatibly declared.
6152         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
6153         * modules/ptsname_r (Depends-on, configure.ac): Update.
6154         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
6155
6156 2011-11-10  Bruno Haible  <bruno@clisp.org>
6157
6158         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
6159         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
6160         When cross-compiling, guess yes on all platforms except AIX.
6161         Reported by Ludovic Courtès <ludo@gnu.org>.
6162
6163 2011-11-09  Bruno Haible  <bruno@clisp.org>
6164
6165         ptsname_r tests: Fix bugs.
6166         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
6167         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
6168
6169 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
6170
6171         fstatat: work with cross-compilation
6172         Problem reported by Ludovic Courtès in
6173         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
6174         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
6175         "cross-compiling" and assume the bug is present.  Replace
6176         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
6177         an inverted sense, to be more conservative about our assumptions.
6178         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
6179
6180 2011-11-09  Bruno Haible  <bruno@clisp.org>
6181
6182         Improve MODULES.html output.
6183         * modules/mkfifoat (Description): Use the word "function".
6184         * modules/readlinkat (Description): Likewise.
6185         * modules/symlinkat (Description): Likewise.
6186
6187 2011-11-09  Eric Blake  <eblake@redhat.com>
6188
6189         ptsname_r-tests: new test module
6190         * modules/ptsname_r-tests: New module.
6191         * tests/test-ptsname_r.c: New file.
6192
6193         ptsname_r: new module
6194         * modules/ptsname_r: New module.
6195         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
6196         * lib/ptsname.c (__ptsname_r): Split...
6197         * lib/ptsname_r.c: ...into new file.
6198         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6199         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
6200         * modules/stdlib (Makefile.am): Substitute witnesses.
6201         * lib/stdlib.in.h (ptsname_r): Declare it.
6202         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
6203         * MODULES.html.sh (Misc): Likewise.
6204         * modules/ptsname (Depends-on): Alter dependency.
6205         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
6206
6207 2011-11-09  Jim Meyering  <meyering@redhat.com>
6208
6209         announce-gen: be more concise when there's only one URL+tarball
6210         * build-aux/announce-gen (get_tool_versions): When you distribute
6211         only one type of tarball, combine the first two "Here are..."
6212         sections and make the key-checking grammar independent of
6213         how many tarballs there are.
6214
6215 2011-11-09  Eric Blake  <eblake@redhat.com>
6216
6217         openpty: provide a stub on mingw
6218         * lib/pty.in.h (includes): Provide forward declarations.
6219         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
6220
6221         raise: fix mingw handling of SIGPIPE
6222         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
6223
6224 2011-11-08  Bruno Haible  <bruno@clisp.org>
6225
6226         More conditional dependencies.
6227         * modules/faccessat (Depends-on): Add conditions.
6228         * modules/fchmodat (Depends-on): Likewise.
6229         * modules/fchownat (Depends-on): Likewise.
6230         * modules/fstatat (Depends-on): Likewise.
6231         * modules/mkfifoat (Depends-on): Likewise.
6232         * modules/readlinkat (Depends-on): Likewise.
6233         * modules/symlinkat (Depends-on): Likewise.
6234         * modules/unlinkat (Depends-on): Likewise.
6235         * modules/utimensat (Depends-on): Likewise.
6236         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
6237         * modules/linkat (Depends-on): Refine the conditions.
6238         * modules/renameat (Depends-on): Likewise.
6239
6240 2011-11-08  Bruno Haible  <bruno@clisp.org>
6241
6242         faccessat: Move AC_LIBOBJ invocation to module description.
6243         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
6244         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
6245         invocation from here...
6246         * modules/faccessat (configure.ac): ... to here. Invoke
6247         gl_PREREQ_FACCESSAT.
6248
6249 2011-11-08  Bruno Haible  <bruno@clisp.org>
6250
6251         faccessat: Simplify autoconf macro.
6252         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
6253         gl_FUNC_EUIDACCESS.
6254
6255 2011-11-08  Bruno Haible  <bruno@clisp.org>
6256
6257         renameat: Fix dependencies.
6258         * modules/renameat (Depends-on): Add stdbool.
6259
6260 2011-11-08  Bruno Haible  <bruno@clisp.org>
6261
6262         mkfifoat: Fix module description.
6263         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
6264         not gl_UNISTD_MODULE_INDICATOR.
6265
6266 2011-11-08  Bruno Haible  <bruno@clisp.org>
6267
6268         fstatat: Remove unused dependency.
6269         * modules/fstatat (Depends-on): Remove fstat.
6270
6271 2011-11-08  Simon Josefsson  <simon@josefsson.org>
6272
6273         GNUmakefile: behave when Makefile is missing.
6274         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
6275
6276 2011-11-08  Bruno Haible  <bruno@clisp.org>
6277
6278         openat: Conditionalize dependencies.
6279         * lib/openat.c: Reduce the scope of some #includes.
6280         * modules/openat (Depends-on): Add conditions.
6281
6282 2011-11-07  Jim Meyering  <meyering@redhat.com>
6283
6284         maint.mk: extract GPG key ID without using a temporary file
6285         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
6286         without using a temporary file.  Based on a suggestion from Werner Koch
6287         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
6288
6289 2011-11-07  Eric Blake  <eblake@redhat.com>
6290
6291         grantpt: fix typo
6292         * lib/stdlib.in.h (grantpt): Check correct function.
6293
6294         maint.mk: silence new syntax check
6295         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
6296
6297 2011-11-06  Bruno Haible  <bruno@clisp.org>
6298
6299         Doc about floating-point and math API.
6300         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
6301         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
6302
6303 2011-11-06  Bruno Haible  <bruno@clisp.org>
6304
6305         stdalign tests: Skip the test when compiled by Sun C.
6306         * tests/test-stdalign.c (main): Skip the test on Sun C.
6307
6308 2011-11-06  Bruno Haible  <bruno@clisp.org>
6309
6310         ansi-c++-opt: Complete the 2011-06-05 change.
6311         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
6312         does not support namespaces, set the variable to "no", not to ":".
6313
6314 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
6315
6316         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
6317
6318 2011-11-06  Bruno Haible  <bruno@clisp.org>
6319
6320         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
6321         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
6322         (minus_zerol) [HP-UX]: New macro.
6323         (unary_minus) [HP-UX]: New function.
6324         (copysignl) [HP-UX]: Use unary_minus function.
6325
6326 2011-11-06  Bruno Haible  <bruno@clisp.org>
6327
6328         ldexp, ldexpf, ldexpl: Enhance tests.
6329         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
6330         and tests/test-ldexpl.c.
6331         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
6332         LDEXP, MIN_EXP, MAX_EXP): New macros.
6333         Include test-ldexp.h.
6334         (main): Just call test_function.
6335         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
6336         infinity.h, nan.h.
6337         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6338         MAX_EXP): New macros.
6339         Include test-ldexp.h.
6340         (x, y): Remove variables.
6341         (main): Just call test_function.
6342         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
6343         infinity.h, nan.h.
6344         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6345         MAX_EXP): New macros.
6346         Include test-ldexp.h.
6347         (x, y): Remove variables.
6348         (main): Just call test_function.
6349         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
6350         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
6351         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6352         (Depends-on): Add isnand-nolibm, signbit, float.
6353         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
6354         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6355         (Depends-on): Add isnanf-nolibm, signbit, float.
6356
6357 2011-11-06  Bruno Haible  <bruno@clisp.org>
6358
6359         math tests: Cosmetics.
6360         * tests/test-math-c++.cc: Reorder declarations.
6361
6362 2011-11-05  Bruno Haible  <bruno@clisp.org>
6363
6364         fma*: Simplify test.
6365         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
6366         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
6367
6368         Tests for module 'fmal'.
6369         * modules/fmal-tests: New file.
6370         * tests/test-fmal1.c: New file.
6371         * tests/test-fmal2.c: New file.
6372
6373         New module 'fmal'.
6374         * lib/math.in.h (fmal): New declaration.
6375         * lib/fmal.c: New file.
6376         * m4/fmal.m4: New file.
6377         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
6378         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
6379         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
6380         REPLACE_FMAL.
6381         * modules/fmal: New file.
6382         * doc/posix-functions/fmal.texi: Mention the new module and the various
6383         bugs.
6384
6385         Tests for module 'fmaf'.
6386         * modules/fmaf-tests: New file.
6387         * tests/test-fmaf1.c: New file.
6388         * tests/test-fmaf2.c: New file.
6389
6390         New module 'fmaf'.
6391         * lib/math.in.h (fmaf): New declaration.
6392         * lib/fmaf.c: New file.
6393         * m4/fmaf.m4: New file.
6394         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
6395         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
6396         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
6397         REPLACE_FMAF.
6398         * modules/fmaf: New file.
6399         * doc/posix-functions/fmaf.texi: Mention the new module and the various
6400         bugs.
6401
6402         Tests for module 'fma'.
6403         * modules/fma-tests: New file.
6404         * tests/test-fma1.c: New file.
6405         * tests/test-fma1.h: New file.
6406         * tests/test-fma2.c: New file.
6407         * tests/test-fma2.h: New file.
6408
6409         New module 'fma'.
6410         * lib/math.in.h (fma): New declaration.
6411         * lib/fma.c: New file.
6412         * m4/fma.m4: New file.
6413         * m4/fegetround.m4: New file.
6414         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
6415         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
6416         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
6417         REPLACE_FMA.
6418         * modules/fma: New file.
6419         * doc/posix-functions/fma.texi: Mention the new module and the various
6420         bugs.
6421
6422         Extend gl_MATHFUNC.
6423         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
6424         Support 'void' as argument type.
6425         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
6426
6427 2011-11-05  Jim Meyering  <meyering@redhat.com>
6428
6429         maint.mk: also prohibit inclusion of dirent.h without use
6430         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
6431
6432 2011-11-05  Bruno Haible  <bruno@clisp.org>
6433
6434         ldexpl tests: Avoid test failure on MSVC 9.
6435         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
6436         value. Needed in order to enforce the conversion from a value greater
6437         than LDBL_MAX to Infinity.
6438
6439 2011-11-05  Bruno Haible  <bruno@clisp.org>
6440
6441         New modules 'at-internal', 'openat-h', split off from module 'openat'.
6442         * modules/at-internal: New file, extracted from modules/openat.
6443         * modules/openat-h: New file.
6444         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
6445         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
6446         * modules/openat (Description): Add reference to POSIX function.
6447         (Files): Remove lib/openat.h, lib/openat-proc.c.
6448         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
6449         intprops, unistd.
6450         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
6451         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
6452         gl_FCNTL_MODULE_INDICATOR.
6453         (Include): Remove unistd.h, openat.h.
6454         * modules/areadlinkat (Files): Add lib/at-func.c.
6455         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6456         openat-die, openat-h, save-cwd.
6457         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
6458         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6459         openat-die, openat-h, save-cwd, unistd.
6460         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
6461         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6462         openat-h, save-cwd. Remove fcntl-h, openat.
6463         * modules/fchmodat (Files): Remove lib/openat.h.
6464         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6465         openat, stdbool, unistd.
6466         * modules/fchownat (Files): Remove lib/openat.h.
6467         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6468         openat, stdbool, sys_stat.
6469         * modules/fdopendir (Files): Remove lib/openat-priv.h,
6470         lib/openat-proc.c.
6471         (Depends-on): Add at-internal.
6472         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
6473         * modules/fstatat (Files): Remove lib/openat.h.
6474         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6475         stdbool, unistd.
6476         * modules/fts (Depends-on): Add openat-h.
6477         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
6478         openat.
6479         * modules/mkdirat (Files): Remove lib/openat.h.
6480         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6481         openat, stdbool, sys_stat.
6482         * modules/mkfifoat (Files): Add lib/at-func.c.
6483         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6484         openat-h, save-cwd. Remove fcntl-h, openat.
6485         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
6486         * modules/readlinkat (Files): Add lib/at-func.c.
6487         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6488         openat-h, save-cwd. Remove fcntl-h, openat.
6489         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
6490         openat.
6491         * modules/selinux-at (Files): Add lib/at-func.c.
6492         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6493         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
6494         * modules/symlinkat (Files): Add lib/at-func.c.
6495         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6496         openat-h, save-cwd. Remove fcntl-h, openat.
6497         * modules/unlinkat (Files): Remove lib/openat.h.
6498         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6499         stdbool.
6500         * modules/utimensat (Files): Add lib/at-func.c.
6501         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
6502         openat-die, openat-h, save-cwd.
6503         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
6504         * modules/fdutimensat-tests (Depends-on): Add openat.
6505         * modules/fstatat-tests (Depends-on): Add openat-h.
6506         * modules/readlinkat-tests (Depends-on): Add openat.
6507         * modules/symlinkat-tests (Depends-on): Add openat.
6508
6509 2011-11-05  Bruno Haible  <bruno@clisp.org>
6510
6511         openat: Include <stdbool.h>.
6512         * lib/openat.c: Include <stdbool.h>.
6513
6514 2011-11-04  Bruno Haible  <bruno@clisp.org>
6515
6516         fchownat, renameat, unlinkat: Fix dependencies.
6517         * modules/fchownat (Depends-on): Add fstatat.
6518         * modules/renameat (Depends-on): Likewise.
6519         * modules/unlinkat (Depends-on): Likewise.
6520
6521 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
6522
6523         openat: remove direct dependency on dirent
6524         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
6525         and hasn't been needed ever since fdopendir was split into its own
6526         module on 2009-08-31.
6527         * modules/openat (Depends-on): Remove dirent.
6528
6529 2011-11-04  Bruno Haible  <bruno@clisp.org>
6530
6531         renameat: Optimize code size.
6532         * modules/renameat (configure.ac): Don't compile at-func2.c if
6533         REPLACE_RENAMEAT is 1.
6534
6535 2011-11-04  Bruno Haible  <bruno@clisp.org>
6536
6537         openat tests: Fix file list.
6538         * modules/openat-tests (Files): Add tests/test-open.h.
6539
6540 2011-11-04  Bruno Haible  <bruno@clisp.org>
6541
6542         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
6543         * modules/fchmodat (Depends-on): Add openat-die.
6544         * modules/fchownat (Depends-on): Likewise.
6545         * modules/linkat (Depends-on): Likewise.
6546         * modules/renameat (Depends-on): Likewise.
6547         * modules/openat (Depends-on): Add dirent.
6548
6549 2011-11-04  Jim Meyering  <meyering@redhat.com>
6550
6551         at-func*.c: fix comments
6552         * lib/at-func2.c: Correct/improve first-line comment.
6553         * lib/at-func.c: Correct grammar in first-line comment.
6554
6555 2011-11-04  Bruno Haible  <bruno@clisp.org>
6556
6557         New module 'mkdirat', split off from module 'openat'.
6558         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
6559         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
6560         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
6561         * modules/mkdirat: New file, extracted from modules/openat.
6562         * modules/openat (Files): Remove lib/mkdirat.c.
6563         (Depends-on): Remove mkdir.
6564         (configure.ac): Remove AC_LIBOBJ of mkdirat.
6565         (Include): Remove <sys/stat.h>.
6566         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
6567         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
6568         tests/test-mkdir.h.
6569         (Depends-on): Remove ignore-value.
6570         (Makefile.am): Remove rules for test-mkdirat.
6571         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
6572         of module 'openat'.
6573         * NEWS: Mention the change.
6574
6575 2011-11-04  Bruno Haible  <bruno@clisp.org>
6576
6577         closedir: Avoid warning on mingw.
6578         * lib/closedir.c: Include <unistd.h>.
6579
6580 2011-11-04  Bruno Haible  <bruno@clisp.org>
6581
6582         New module 'fstatat', split off from module 'openat'.
6583         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
6584         defined.
6585         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
6586         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
6587         gl_FUNC_FSTATAT.
6588         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
6589         * modules/fstatat: New file, extracted from modules/openat.
6590         * modules/openat (Files): Remove lib/fstatat.c.
6591         (Depends-on): Remove lstat.
6592         (configure.ac): Remove AC_LIBOBJ of fstatat.
6593         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
6594         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
6595         tests/test-lstat.h, tests/test-stat.h.
6596         (Depends-on): Remove getcwd-lgpl.
6597         (Makefile.am): Remove rules for test-fstatat.
6598         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
6599         of module 'openat'.
6600         * NEWS: Mention the change.
6601         * modules/getcwd (Depends-on): Add fstatat.
6602         * modules/linkat (Depends-on): Likewise.
6603         * modules/mkfifoat-tests (Depends-on): Likewise.
6604         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
6605
6606 2011-11-03  Bruno Haible  <bruno@clisp.org>
6607
6608         New module 'unlinkat', split off from module 'openat'.
6609         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
6610         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
6611         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
6612         * modules/unlinkat: New file, extracted from modules/openat. Correct
6613         the dependency conditions.
6614         * modules/openat (Files): Remove lib/unlinkat.c.
6615         (Depends-on): Remove rmdir, unlink.
6616         (configure.ac): Remove AC_LIBOBJ of unlinkat.
6617         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
6618         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
6619         tests/test-rmdir.h, tests/test-unlink.h.
6620         (Depends-on): Remove unlinkdir.
6621         (Makefile.am): Remove rules for test-unlinkat.
6622         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
6623         of module 'openat'.
6624         * NEWS: Mention the change.
6625         * modules/linkat-tests (Depends-on): Add unlinkat.
6626         * modules/mkfifoat-tests (Depends-on): Likewise.
6627         * modules/readlinkat-tests (Depends-on): Likewise.
6628
6629 2011-11-02  Bruno Haible  <bruno@clisp.org>
6630
6631         New module 'fchmodat', split off from module 'openat'.
6632         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
6633         defined.
6634         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
6635         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
6636         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
6637         * modules/fchmodat: New file, extracted from modules/openat.
6638         * modules/openat (Files): Remove lib/fchmodat.c.
6639         (configure.ac): Remove AC_LIBOBJ of fchmodat.
6640         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
6641         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
6642         (Makefile.am): Remove rules for test-fchmodat.
6643         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
6644         of module 'openat'.
6645         * NEWS: Mention the change.
6646
6647 2011-11-02  Jim Meyering  <meyering@redhat.com>
6648
6649         putenv: indent #definition of "environ" to placate cppi
6650         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
6651
6652         gitlog-to-changelog: provide a ChangeLog-repair mechanism
6653         Git logs are often treated as immutable, because editing them
6654         changes the SHA1 checksums of all descendants.  Thus, errors in
6655         git logs tend to stay there forever.  However, when we generate
6656         a ChangeLog file -- typically for distribution -- from that git log,
6657         we can actually make corrections in the generated file.  The key
6658         lies in recording in machine-readable/applicable form the desired
6659         corrections.  See --help for description and an example.
6660         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
6661         (usage): Describe it; alphabetize option descriptions.
6662         (main): Honor the new option, carefully.
6663
6664 2011-11-01  Jim Meyering  <meyering@redhat.com>
6665
6666         gitlog-to-changelog: avoid an infloop
6667         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
6668         that ends up being empty.
6669
6670 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6671
6672         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
6673         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
6674         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
6675         contains (possibly-quoted) backslashes.  This should avoid
6676         all-too-common shell bugs if COMPLICATED contains backslashes in
6677         the "wrong" places.  Reported by David Evans in
6678         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
6679         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
6680         because we want ASCII ranges.  Is there some reason we don't use
6681         the C locale everywhere in this script?
6682         (func_module, top level): Avoid unwanted pathname expansion when
6683         $repo_url_prefix or $repo_url_suffix_repl contain shell
6684         metacharacters like '?' and '*'.
6685
6686 2011-11-01  Bruno Haible  <bruno@clisp.org>
6687
6688         fchownat: Improve description.
6689         * modules/fchownat (Description): Add link to function.
6690
6691 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6692
6693         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
6694         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
6695         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
6696         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
6697
6698 2011-11-01  Bruno Haible  <bruno@clisp.org>
6699
6700         alignof: Avoid collision with stdalign module.
6701         * lib/alignof.h (alignof): Remove macro.
6702         * NEWS: Mention the change.
6703         Reported by Paul Eggert.
6704
6705 2011-11-01  Bruno Haible  <bruno@clisp.org>
6706
6707         New module 'fchownat', split off from module 'openat'.
6708         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
6709         defined.
6710         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
6711         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
6712         invoke gl_FUNC_FCHOWNAT.
6713         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
6714         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
6715         * modules/fchownat: New file, extracted from modules/openat.
6716         * modules/openat (Files): Remove lib/fchownat.c.
6717         (Depends-on): Remove lchown.
6718         (configure.ac): Remove AC_LIBOBJ of fchownat.
6719         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
6720         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
6721         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
6722         (Depends-on): Remove mgetgroups, usleep, stat-time.
6723         (configure.ac): Remove test for getegid.
6724         (Makefile.am): Remove rules for test-fchownat.
6725         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
6726         of module 'openat'.
6727         * NEWS: Mention the change.
6728
6729 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
6730
6731         stdalign: port better to MSVC and to Sun C 5.11
6732         This fixes some of the problems reported by Bruno Haible in
6733         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
6734         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
6735         shortcomings of MSVC and of Sun C 5.11.
6736         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
6737         around __declspec arg.
6738         * modules/stdalign-tests (Files): Add tests/macros.h.
6739         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
6740         Include macros.h, for ASSERT.
6741         (DECLARE_ALIGNED): Remove.
6742         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
6743         to catch bug), and to 1 if not (simplifies the rest of the code).
6744         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
6745         (CHECK_AUTO): Remove.
6746         (CHECK_ALIGNED): Check only the alignment of the static vars,
6747         since auto var alignment isn't supported by Sun C 5.11.
6748         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
6749         ASSERT failures are easier to diagnose.
6750
6751 2011-10-31  Bruno Haible  <bruno@clisp.org>
6752
6753         doc about some IRIX 5.3 problems.
6754         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
6755         on IRIX 5.3.
6756         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
6757         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
6758         5.3.
6759         * doc/posix-functions/grantpt.texi: Likewise.
6760         * doc/posix-functions/unlockpt.texi: Likewise.
6761         * doc/posix-functions/lgamma.texi: Likewise.
6762         * doc/posix-functions/nextafter.texi: Likewise.
6763         * doc/posix-functions/remainder.texi: Likewise.
6764         * doc/posix-functions/select.texi: Mention misplaced declaration on
6765         IRIX 5.3.
6766         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6767
6768 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
6769
6770         gitlog-to-changelog: fix git-log invocation.
6771         git-log mishandles date strings before 1970-01-01 UTC, and there is
6772         no use to specify --since=1970-01-01 by default anyway.
6773         * build-aux/gitlog-to-changelog: By default, when no --since option
6774         was given, do not specify explicit --since option to git-log.
6775
6776 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
6777
6778         gitlog-to-changelog: new option --append-dot.
6779         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
6780         first non-blank line of each commit message terminated with a dot.
6781
6782 2011-10-30  Bruno Haible  <bruno@clisp.org>
6783
6784         ffsl, ffsll: Avoid compilation error due to 'restrict'.
6785         * lib/ffsl.h: Include <config.h>.
6786         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
6787
6788 2011-10-30  Jim Meyering  <meyering@redhat.com>
6789
6790         GNUmakefile: reenable "make syntax-check" for most projects
6791         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
6792         build-aux variable", "syntax-check" would do nothing but succeed with
6793         the "No version control files detected..." diagnostic (unless you
6794         happened to override _build-aux via cfg.mk).
6795         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
6796         to precede inclusion of maint.mk.  Otherwise, these variables would
6797         be used undefined in any project that does not override the default.
6798
6799 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
6800
6801         gitlog-to-changelog: treat a message with only blank lines as empty.
6802         * build-aux/gitlog-to-changelog: Move the code that removes leading and
6803         trailing blank lines before the code that issues a warning about an
6804         empty commit message.
6805
6806 2011-10-30  Jim Meyering  <meyering@redhat.com>
6807
6808         test-parse-datetime.c: avoid new DST-related false positive test failure
6809         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
6810         based on the time/date we'll convert, not the current time.
6811         Otherwise, the moment we cross a DST boundary like today's in
6812         Europe, (CEST to CET), that offset ends up being one hour off.
6813
6814 2011-10-27  Bruno Haible  <bruno@clisp.org>
6815
6816         fstat: Tweak documentation.
6817         * modules/fstat (Description): More precise description.
6818
6819 2011-10-27  Bruno Haible  <bruno@clisp.org>
6820
6821         Update documentation regarding 'largefile' module.
6822         * doc/posix-functions/fstat.texi: Tweak wording.
6823         * doc/posix-functions/opendir.texi: Mention that the module fixes the
6824         problems with huge directories and/or small ino_t types.
6825         * doc/posix-functions/readdir.texi: Likewise.
6826         * doc/posix-functions/rewinddir.texi: Likewise.
6827
6828 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
6829
6830         maint.mk: don't maintain a second build-aux variable.
6831         * maint.mk (build_aux): Removed.  The maintainer-makefile module
6832         depends on GNUmakefile, which already maintains a cfg.mk
6833         overridable $(_build-aux) for projects with a non-standard
6834         build-aux directory location, although without the $(srcdir)
6835         prefix.  Use that variable consistently instead of introducing a
6836         second one.  Adjust all call sites.
6837
6838 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
6839
6840         Add stdalign module and use it in other modules.
6841         This is based on a previous proposal by Bruno Haible
6842         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
6843
6844         stdalign: new module
6845         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
6846         * modules/stdalign: New files.
6847         * MODULES.html.sh (c1x_core_properties): Add stdalign.
6848         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
6849
6850         stdalign-tests: new module
6851         * modules/stdalign-tests, tests/test-stdalign.c: New files.
6852
6853         argp: use stdalign
6854         * lib/argp-parse.c: Include <stdalign.h>.
6855         (alignof): Remove.
6856         * modules/argp (Depends-on): Add stdalign.
6857
6858         crypto libraries: use stdalign
6859         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
6860         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
6861         Do not include <stdlib.h> twice, in md4.c.
6862         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
6863         because we are accessing a pointer's bit-pattern, not a size.
6864         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
6865         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
6866         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
6867         * modules/crypto/sha512: Likewise.
6868
6869         sys_socket: use stdalign, not alignof
6870         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
6871         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
6872
6873 2011-10-27  Bruno Haible  <bruno@clisp.org>
6874
6875         raise test: Avoid a test failure on Linux/MIPS.
6876         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
6877         because 99 is a valid signal on Linux/MIPS.
6878
6879 2011-10-27  Bruno Haible  <bruno@clisp.org>
6880
6881         nonblocking tests: Fix test failure on Linux/MIPS.
6882         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
6883         Set to 270000.
6884
6885 2011-10-27  Bruno Haible  <bruno@clisp.org>
6886
6887         utimensat: Work around problem on Linux/hppa.
6888         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
6889         values.
6890         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
6891
6892 2011-10-25  Jim Meyering  <meyering@redhat.com>
6893
6894         maint.mk: fix a bug in sc_prohibit_stddef_without_use
6895         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
6896         after symbols like NULL, size_t, etc.
6897         Reported by Alfred M. Szmidt.
6898
6899         maint.mk: exempt ENODATA from a syntax-check rule
6900         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
6901         from the sc_prohibit_always-defined_macros syntax-check rule.
6902         Add a comment.  See this for more details:
6903         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
6904
6905 2011-10-23  Jim Meyering  <meyering@redhat.com>
6906
6907         fts: close parent dir FD before returning from post-traversal fts_read
6908         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
6909         unlink A, even though an FD open on A remained.  This is suboptimal
6910         (holding a file descriptor open longer than needed), but otherwise not
6911         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
6912         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
6913         that represents a real problem: it causes the removal of A to fail
6914         with e.g., "rm: cannot remove `A': Device or resource busy"
6915
6916         fts visits each directory twice and keeps a cache (fts_fd_ring) of
6917         directory file descriptors.  After completing the final, FTS_DP,
6918         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
6919         cache, but then proceeded to add a new FD to it via the subsequent
6920         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
6921         final file descriptor would be closed only via fts_close's call to
6922         fd_ring_clear.  Now, it is usually closed earlier, via the final
6923         FTS_DP-returning fts_read call.
6924         * lib/fts.c (restore_initial_cwd): New function, converted from
6925         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
6926         Update callers.
6927         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
6928         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
6929
6930 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
6931             Bruno Haible  <bruno@clisp.org>
6932             Jim Meyering  <jim@meyering.net>
6933
6934         readme-release: improve safety of release prep instructions.
6935         * README-release: Don't git pull all branches when only master
6936         is needed for the release process.
6937         Run make maintainer-clean before changing trees and merging.
6938         Don't try to run ./configure right after git pull in case files
6939         that influence the bootstrap process have changed, move the
6940         ./configure step to after running ./bootstrap.
6941         Don't bootstrap "one last time"... it's the first time!
6942
6943 2011-10-22  Bruno Haible  <bruno@clisp.org>
6944
6945         errno, strerror-override: Support for MSVC 10.
6946         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
6947         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
6948         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
6949         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
6950         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
6951         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
6952         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
6953         Assign values compatible with MSVC 10.
6954         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
6955         New macros.
6956         (GNULIB_defined_EWINSOCK): New macro.
6957         * lib/strerror-override.c (strerror_override): Update accordingly.
6958         * lib/strerror-override.h: Likewise.
6959         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
6960         longer equal to the corresponding errno value.
6961         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6962
6963 2011-10-22  Bruno Haible  <bruno@clisp.org>
6964
6965         perror: Recognize when test program crashes.
6966         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
6967         strerror, set gl_cv_func_perror_works to no.
6968         Reported by Daniel Richard G. <skunk@iskunk.org>.
6969
6970         perror: Fix indentation.
6971         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
6972
6973 2011-10-22  Bruno Haible  <bruno@clisp.org>
6974
6975         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
6976         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
6977         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
6978         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
6979         functions, not as a macro.
6980         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
6981         macros.
6982         (isfinite, isinf, isnan, signbit): Check overloaded functions and
6983         absence of macro.
6984         Suggested by Eric Blake.
6985         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6986
6987 2011-10-21  Bruno Haible  <bruno@clisp.org>
6988
6989         relocatable-prog-wrapper: Don't leave object files behind.
6990         * build-aux/install-reloc: Re-synchronize list of .o files to be
6991         removed with list of compilation units.
6992
6993 2011-10-20  Bruno Haible  <bruno@clisp.org>
6994
6995         openpty, posix_openpt: Remove code duplication.
6996         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
6997         * lib/openpty.c: Include <stdlib.h>.
6998         (openpty): Use posix_openpt on all platforms except IRIX.
6999         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
7000
7001 2011-10-20  Bruno Haible  <bruno@clisp.org>
7002
7003         unlockpt: Detect invalid argument.
7004         * lib/unlockpt.c: Include <fcntl.h>.
7005         (unlockpt): Check whether fd is valid, using fcntl().
7006         * modules/unlockpt (Depends-on): Add fcntl-h.
7007
7008 2011-10-20  Bruno Haible  <bruno@clisp.org>
7009
7010         openpty: Avoid compilation error on AIX 6.1.
7011         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
7012
7013 2011-10-20  Bruno Haible  <bruno@clisp.org>
7014
7015         posix_openpt: Support for OpenBSD.
7016         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
7017         (posix_openpt) [OpenBSD]: New code.
7018         * lib/grantpt.c: Include <fcntl.h>.
7019         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
7020         * modules/grantpt (Depends-on): Add fcntl-h.
7021
7022 2011-10-20  Bruno Haible  <bruno@clisp.org>
7023
7024         posix_openpt test: Coding style.
7025         * tests/test-posix_openpt.c: Use GNU coding style.
7026
7027 2011-10-20  Bruno Haible  <bruno@clisp.org>
7028
7029         grantpt: Support --avoid=pt_chown.
7030         * modules/grantpt (Files): Add lib/pty-private.h.
7031
7032 2011-10-20  Bruno Haible  <bruno@clisp.org>
7033
7034         posix_openpt: Fix autoconf macro.
7035         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
7036         unneeded check for _getpty.
7037
7038 2011-10-20  Bruno Haible  <bruno@clisp.org>
7039
7040         openpty: Update comments.
7041         * lib/openpty.c: Add comments about Minix.
7042
7043 2011-10-19  Eric Blake  <eblake@redhat.com>
7044
7045         openpty: relax license
7046         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
7047
7048         pt_chown: use configmake to simplify build
7049         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
7050
7051         ptsname and others: relax license
7052         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
7053         * modules/unlockpt (License): Likewise.
7054         * modules/pt_chown (License): Likewise.
7055         * modules/ptsname (License): Likewise.
7056         * modules/ttyname_r (License): Likewise.
7057
7058 2011-10-19  Jim Meyering  <meyering@redhat.com>
7059
7060         posix_openpt: remove spurious #endif
7061         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
7062
7063 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
7064
7065         maint.mk: Respect $(build_aux) in web-manual rule.
7066         * top/maint.mk (web-manual): Find gen-announce script in user's
7067         $(build_aux) directory instead of hard-coding 'build-aux'.
7068
7069 2011-10-19  Bruno Haible  <bruno@clisp.org>
7070
7071         posix_openpt: Fix compilation error.
7072         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
7073         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
7074         Mention the openpty module as an alternative.
7075
7076 2011-10-19  Bruno Haible  <bruno@clisp.org>
7077
7078         Support for old NeXTstep 3.3 frexp().
7079         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
7080         execution time of the test to 5 seconds.
7081         Reported by Daniel Richard G. <skunk@iskunk.org>.
7082
7083 2011-10-19  Bruno Haible  <bruno@clisp.org>
7084
7085         Support for old NeXTstep 3.3 sed.
7086         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
7087         part, use /.../, not \|...|. Escape periods in the header file name.
7088         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
7089         Reported by Daniel Richard G. <skunk@iskunk.org>.
7090
7091 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7092
7093         Support for old NeXTstep 3.3 gcc.
7094         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
7095         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
7096         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
7097         * lib/spawn.in.h (_Restrict_arr_): Likewise.
7098         * lib/regex.h (_Restrict_arr_): Likewise.
7099         * lib/regex_internal.h (re_token_t): Likewise.
7100         * lib/regexec.c (check_node_accept_bytes): Likewise.
7101         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
7102
7103 2011-10-18  Eric Blake  <eblake@redhat.com>
7104
7105         posix_openpt: new module
7106         * modules/posix_openpt: New module.
7107         * m4/posix_openpt.m4: New file.
7108         * lib/posix_openpt.c: Likewise.
7109         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7110         (gl_STDLIB_H_DEFAULTS): Set defaults.
7111         * modules/stdlib (Makefile.am): Substitute macros.
7112         * lib/stdlib.in.h (posix_openpt): Declare.
7113         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
7114         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
7115         * modules/posix_openpt-tests: New test module.
7116         * tests/test-posix_openpt.c: New test.
7117
7118 2011-10-15  Bruno Haible  <bruno@clisp.org>
7119
7120         xstrtoll: Fix compilation failure.
7121         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
7122         from lib/strtol.c.
7123         * doc/posix-headers/limits.texi: Mention missing numerical limits on
7124         some platforms.
7125         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7126
7127 2011-10-15  Bruno Haible  <bruno@clisp.org>
7128
7129         vasnprintf: Optimize bit search operation.
7130         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
7131         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
7132         gl_DOUBLE_EXPONENT_LOCATION.
7133         * modules/vasnprintf (Files): Add m4/exponentd.m4.
7134         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7135         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7136         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7137         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7138         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7139         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7140         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7141         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
7142
7143 2011-10-15  Bruno Haible  <bruno@clisp.org>
7144
7145         vasnprintf: Fix comments.
7146         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
7147
7148 2011-10-14  Bruno Haible  <bruno@clisp.org>
7149
7150         Tests for module 'integer_length_ll'.
7151         * modules/integer_length_ll-tests: New file.
7152         * tests/test-integer_length_ll.c: New file.
7153
7154         New module 'integer_length_ll'.
7155         * lib/integer_length_ll.c: New file.
7156         * modules/integer_length_ll: New file.
7157
7158 2011-10-14  Bruno Haible  <bruno@clisp.org>
7159
7160         Tests for module 'integer_length_l'.
7161         * modules/integer_length_l-tests: New file.
7162         * tests/test-integer_length_l.c: New file.
7163
7164         New module 'integer_length_l'.
7165         * lib/integer_length_l.c: New file.
7166         * modules/integer_length_l: New file.
7167
7168 2011-10-14  Bruno Haible  <bruno@clisp.org>
7169
7170         Tests for module 'integer_length'.
7171         * modules/integer_length-tests: New file.
7172         * tests/test-integer_length.c: New file.
7173
7174         New module 'integer_length'.
7175         * lib/integer_length.h: New file.
7176         * lib/integer_length.c: New file.
7177         * modules/integer_length: New file.
7178
7179 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7180
7181         popen: Fix dependency conditions.
7182         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
7183
7184 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7185
7186         perror: Fix autoconf test.
7187         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
7188         <stdlib.h> and <string.h>.
7189
7190 2011-10-14  Bruno Haible  <bruno@clisp.org>
7191
7192         ffsl: Optimize on 64-bit platforms.
7193         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
7194         unrolling.
7195
7196 2011-10-13  Bruno Haible  <bruno@clisp.org>
7197
7198         ffsl: Optimize on 32-bit platforms.
7199         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
7200         use ffs() without a loop.
7201
7202         ffsl, ffsll: Optimize for GCC.
7203         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
7204         * lib/ffsl.c (GCC_BUILTIN): New macro.
7205         * lib/ffsll.c (GCC_BUILTIN): Likewise.
7206
7207 2011-10-13  Bruno Haible  <bruno@clisp.org>
7208
7209         ffs, bcopy, memset: Support symbol renaming via config.h.
7210         * lib/ffs.c: Include <config.h>.
7211         * lib/bcopy.c: Likewise.
7212         * lib/memset.c: Likewise.
7213
7214 2011-10-10  Bruno Haible  <bruno@clisp.org>
7215
7216         atanl: Simplify for platforms where 'long double' == 'double'.
7217         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7218         alternative implementation.
7219         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7220         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7221         * modules/atanl (Depends-on): Add atan. Update conditions.
7222
7223 2011-10-10  Bruno Haible  <bruno@clisp.org>
7224
7225         acosl: Simplify for platforms where 'long double' == 'double'.
7226         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7227         alternative implementation.
7228         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7229         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7230         * modules/acosl (Depends-on): Add acos. Update conditions.
7231
7232 2011-10-10  Bruno Haible  <bruno@clisp.org>
7233
7234         asinl: Simplify for platforms where 'long double' == 'double'.
7235         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7236         alternative implementation.
7237         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7238         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7239         * modules/asinl (Depends-on): Add asin. Update conditions.
7240
7241 2011-10-10  Bruno Haible  <bruno@clisp.org>
7242
7243         tanl: Simplify for platforms where 'long double' == 'double'.
7244         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7245         implementation.
7246         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7247         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7248         * modules/tanl (Depends-on): Add tan. Update conditions.
7249         (configure.ac): Don't compile trigl.c if
7250         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7251
7252 2011-10-10  Bruno Haible  <bruno@clisp.org>
7253
7254         cosl: Simplify for platforms where 'long double' == 'double'.
7255         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7256         implementation.
7257         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7258         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7259         * modules/cosl (Depends-on): Add cos. Update conditions.
7260         (configure.ac): Don't compile sincosl.c and trigl.c if
7261         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7262
7263 2011-10-10  Bruno Haible  <bruno@clisp.org>
7264
7265         sinl: Simplify for platforms where 'long double' == 'double'.
7266         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7267         implementation.
7268         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7269         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7270         * modules/sinl (Depends-on): Add sin. Update conditions.
7271         (configure.ac): Don't compile sincosl.c and trigl.c if
7272         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7273
7274 2011-10-10  Bruno Haible  <bruno@clisp.org>
7275
7276         logl: Simplify for platforms where 'long double' == 'double'.
7277         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7278         implementation.
7279         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7280         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7281         * modules/logl (Depends-on): Add log. Update conditions.
7282
7283 2011-10-10  Bruno Haible  <bruno@clisp.org>
7284
7285         expl: Simplify for platforms where 'long double' == 'double'.
7286         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7287         implementation.
7288         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7289         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7290         * modules/expl (Depends-on): Add exp. Update conditions.
7291
7292 2011-10-10  Bruno Haible  <bruno@clisp.org>
7293
7294         sqrtl: Simplify for platforms where 'long double' == 'double'.
7295         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7296         alternative implementation.
7297         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7298         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7299         * modules/sqrtl (Depends-on): Update conditions.
7300
7301 2011-10-10  Bruno Haible  <bruno@clisp.org>
7302
7303         ldexpl: Simplify for platforms where 'long double' == 'double'.
7304         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7305         alternative implementation.
7306         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7307         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7308         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
7309
7310 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
7311
7312         ffsll: set correct witness
7313         * modules/ffsll (configure.ac): Fix typo.
7314
7315 2011-10-10  Bruno Haible  <bruno@clisp.org>
7316
7317         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
7318         * lib/printf-frexpl.c: Include <config.h>.
7319         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7320         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
7321         second time.
7322         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
7323         gl_LONG_DOUBLE_VS_DOUBLE.
7324         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
7325         conditions.
7326
7327 2011-10-10  Bruno Haible  <bruno@clisp.org>
7328
7329         frexpl: Simplify for platforms where 'long double' == 'double'.
7330         * lib/frexpl.c: Include <config.h>.
7331         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7332         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7333         time.
7334         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7335         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7336         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
7337         * modules/frexpl (Depends-on): Add frexp. Update conditions.
7338         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
7339         conditions.
7340
7341 2011-10-10  Jim Meyering  <meyering@redhat.com>
7342
7343         test-renameat: don't leave behind a temporary file
7344         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
7345           ERROR: files left in build directory after distclean:
7346           ./gltests/test-renameat.too
7347           make[1]: *** [distcleancheck] Error 1
7348         Reported by Tom G. Christensen.
7349
7350 2011-10-09  Bruno Haible  <bruno@clisp.org>
7351
7352         rint: Determine RINT_LIBM correctly on AIX 7.
7353         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
7354         directly, not only through a function pointer. Also accept an optional
7355         4th argument with extra code.
7356         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
7357         rintf() call by gcc when optimizing.
7358
7359         mathfunc.m4: Refactor.
7360         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
7361         m4 variable.
7362
7363 2011-10-09  Bruno Haible  <bruno@clisp.org>
7364
7365         rintl: Simplify for platforms where 'long double' == 'double'.
7366         * lib/rintl.c: Include <config.h>.
7367         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7368         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7369         time.
7370         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7371         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7372         * modules/rintl (Depends-on): Add rint. Update conditions.
7373
7374 2011-10-09  Bruno Haible  <bruno@clisp.org>
7375
7376         roundl: Simplify for platforms where 'long double' == 'double'.
7377         * lib/roundl.c: Include <config.h>.
7378         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7379         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7380         time.
7381         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7382         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7383         * modules/roundl (Depends-on): Add round. Update conditions.
7384
7385 2011-10-09  Bruno Haible  <bruno@clisp.org>
7386
7387         truncl: Simplify for platforms where 'long double' == 'double'.
7388         * lib/truncl.c: Include <config.h>.
7389         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7390         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7391         time.
7392         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7393         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7394         * modules/truncl (Depends-on): Add trunc. Update conditions.
7395
7396 2011-10-09  Bruno Haible  <bruno@clisp.org>
7397
7398         ceill: Simplify for platforms where 'long double' == 'double'.
7399         * lib/ceill.c: Include <config.h>.
7400         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7401         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7402         time.
7403         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7404         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7405         * modules/ceill (Depends-on): Add ceil. Update conditions.
7406
7407 2011-10-09  Bruno Haible  <bruno@clisp.org>
7408
7409         floorl: Simplify for platforms where 'long double' == 'double'.
7410         * lib/floorl.c: Include <config.h>.
7411         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7412         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7413         time.
7414         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7415         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7416         * modules/floorl (Depends-on): Add floor. Update conditions.
7417
7418 2011-10-09  Bruno Haible  <bruno@clisp.org>
7419
7420         rint: Fix ordering constraints.
7421         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
7422         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7423         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7424
7425 2011-10-09  Bruno Haible  <bruno@clisp.org>
7426
7427         copysignl: Simplify for platforms where 'long double' == 'double'.
7428         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7429         alternative.
7430         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7431         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7432         * modules/copysignl (Depends-on): Add copysign. Update conditions.
7433
7434 2011-10-09  Bruno Haible  <bruno@clisp.org>
7435
7436         Tests for module 'rintl'.
7437         * modules/rintl-tests: New file.
7438         * tests/test-rintl.c: New file.
7439
7440         New module 'rintl'.
7441         * lib/math.in.h (rintl): New declaration.
7442         * lib/rintl.c: New file.
7443         * m4/rintl.m4: New file.
7444         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
7445         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
7446         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
7447         * modules/rintl: New file.
7448         * tests/test-math-c++.cc: Check the declaration of rintl.
7449         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7450         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
7451         * doc/posix-functions/rintl.texi: Mention the new module.
7452
7453 2011-10-09  Bruno Haible  <bruno@clisp.org>
7454
7455         Tests for module 'rintf'.
7456         * modules/rintf-tests: New file.
7457         * tests/test-rintf.c: New file.
7458
7459         New module 'rintf'.
7460         * lib/math.in.h (rintf): New declaration.
7461         * lib/rintf.c: New file.
7462         * m4/rintf.m4: New file.
7463         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
7464         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
7465         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
7466         * modules/rintf: New file.
7467         * tests/test-math-c++.cc: Check the declaration of rintf.
7468         * doc/posix-functions/rintf.texi: Mention the new module.
7469
7470 2011-10-09  Bruno Haible  <bruno@clisp.org>
7471
7472         rint: Support for MSVC.
7473         * lib/math.in.h (rint): New declaration.
7474         * lib/rint.c: New file.
7475         * m4/rint.m4: New file.
7476         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
7477         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
7478         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
7479         * modules/rint (Description): Fix.
7480         (Files): Add lib/rint.c, m4/rint.m4.
7481         (Depends-on): Add math.
7482         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
7483         gl_MATH_MODULE_INDICATOR.
7484         * tests/test-math-c++.cc: Check the declaration of rint.
7485         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7486         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
7487         * doc/posix-functions/rint.texi: Mention the replacement provided by
7488         the module.
7489
7490         rint tests: More tests.
7491         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
7492         minus-zero.h, infinity.h, nan.h.
7493         (main): Skip the test if the current rounding mode is not standard. Add
7494         tests for negative numbers, minus zero, infinity, NaN.
7495         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
7496         tests/nan.h.
7497         (Depends-on): Add isnand-nolibm.
7498
7499 2011-10-09  Bruno Haible  <bruno@clisp.org>
7500
7501         Tests for module 'copysignl'.
7502         * modules/copysignl-tests: New file.
7503         * tests/test-copysignl.c: New file.
7504
7505         New module 'copysignl'.
7506         * lib/math.in.h (copysignl): New declaration.
7507         * lib/copysignl.c: New file.
7508         * m4/copysignl.m4: New file.
7509         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
7510         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
7511         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
7512         HAVE_COPYSIGNL.
7513         * modules/copysignl: New file.
7514         * tests/test-math-c++.cc: Check the declaration of copysignl.
7515         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7516         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
7517         * doc/posix-functions/copysignl.texi: Mention the new module.
7518
7519 2011-10-09  Bruno Haible  <bruno@clisp.org>
7520
7521         Tests for module 'copysignf'.
7522         * modules/copysignf-tests: New file.
7523         * tests/test-copysignf.c: New file.
7524
7525         New module 'copysignf'.
7526         * lib/math.in.h (copysignf): New declaration.
7527         * lib/copysignf.c: New file.
7528         * m4/copysignf.m4: New file.
7529         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
7530         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
7531         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
7532         HAVE_COPYSIGNF.
7533         * modules/copysignf: New file.
7534         * tests/test-math-c++.cc: Check the declaration of copysignf.
7535         * doc/posix-functions/copysignf.texi: Mention the new module.
7536
7537 2011-10-09  Bruno Haible  <bruno@clisp.org>
7538
7539         Ensure that HAVE_* variables are set to 1 before they are set to 0.
7540         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
7541         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
7542         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
7543         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
7544         gl_SIGNAL_H_DEFAULTS.
7545
7546 2011-10-09  Bruno Haible  <bruno@clisp.org>
7547
7548         poll: Make macro safer.
7549         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
7550         ac_cv_header_poll_h is not set.
7551
7552 2011-10-09  Bruno Haible  <bruno@clisp.org>
7553
7554         copysign: Provide replacement.
7555         * lib/math.in.h (copysign): New declaration.
7556         * lib/copysign.c: New file.
7557         * m4/copysign.m4: New file.
7558         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
7559         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
7560         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
7561         HAVE_COPYSIGN.
7562         * modules/copysign (Description): Clarify.
7563         (Files): Add lib/copysign.c, m4/copysign.m4.
7564         (Depends-on): Add math, signbit.
7565         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
7566         gl_MATH_MODULE_INDICATOR.
7567         * tests/test-math-c++.cc: Check the declaration of copysign.
7568         * doc/posix-functions/copysign.texi: Mention the effects of the module
7569         on Minix and MSVC.
7570
7571 2011-10-09  Bruno Haible  <bruno@clisp.org>
7572
7573         isinf: Ensure macro on AIX 5.1.
7574         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
7575         macro.
7576         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
7577
7578 2011-10-09  Bruno Haible  <bruno@clisp.org>
7579
7580         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
7581         * modules/snprintf-posix-tests (configure.ac): Require
7582         gl_LONG_DOUBLE_VS_DOUBLE.
7583         * modules/sprintf-posix-tests (configure.ac): Likewise.
7584         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
7585         * modules/vasprintf-posix-tests (configure.ac): Likewise.
7586         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
7587         * modules/vsprintf-posix-tests (configure.ac): Likewise.
7588         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
7589         tests on platforms where 'long double' is the same as 'double'.
7590         * tests/test-sprintf-posix.h (test_function): Likewise.
7591         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7592         * tests/test-vasprintf-posix.c (test_function): Likewise.
7593
7594         *printf: Fix for platforms where 'long double' == 'double'.
7595         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
7596         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
7597         * modules/dprintf-posix (Files): Add m4/math_h.m4.
7598         * modules/fprintf-posix (Files): Likewise.
7599         * modules/obstack-printf-posix (Files): Likewise.
7600         * modules/snprintf-posix (Files): Likewise.
7601         * modules/sprintf-posix (Files): Likewise.
7602         * modules/vasnprintf (Files): Likewise.
7603         * modules/vasnprintf-posix (Files): Likewise.
7604         * modules/vasprintf-posix (Files): Likewise.
7605         * modules/vdprintf-posix (Files): Likewise.
7606         * modules/vfprintf-posix (Files): Likewise.
7607         * modules/vsnprintf-posix (Files): Likewise.
7608         * modules/vsprintf-posix (Files): Likewise.
7609         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7610         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7611         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7612         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7613         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7614         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7615         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7616
7617         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
7618         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
7619         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7620         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
7621         'long double'.
7622         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
7623
7624         isinf: Fix for platforms where 'long double' == 'double'.
7625         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7626         Don't blindly assume 80-bit 'long double'.
7627
7628         isfinite: Fix for platforms where 'long double' == 'double'.
7629         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7630         Don't blindly assume 80-bit 'long double'.
7631
7632         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
7633         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
7634         * modules/isfinite-tests (configure.ac): Require
7635         gl_LONG_DOUBLE_VS_DOUBLE.
7636         * modules/isinf-tests (configure.ac): Likewise.
7637         * modules/isnan-tests (configure.ac): Likewise.
7638         * modules/isnanl-tests (configure.ac): Likewise.
7639         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
7640         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
7641         tests on platforms where 'long double' is the same as 'double'.
7642         * tests/test-isinf.c (test_isinfl): Likewise.
7643         * tests/test-isnan.c (test_long_double): Likewise.
7644         * tests/test-isnanl.h (main): Likewise.
7645
7646 2011-10-08  Bruno Haible  <bruno@clisp.org>
7647
7648         Tests for module 'tanhf'.
7649         * modules/tanhf-tests: New file.
7650         * tests/test-tanhf.c: New file.
7651
7652         New module 'tanhf'.
7653         * lib/math.in.h (tanhf): New declaration.
7654         * lib/tanhf.c: New file.
7655         * m4/tanhf.m4: New file.
7656         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
7657         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
7658         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
7659         * modules/tanhf: New file.
7660         * tests/test-math-c++.cc: Check the declaration of tanhf.
7661         * doc/posix-functions/tanhf.texi: Mention the new module.
7662
7663         tanh: Use a .m4 file.
7664         * m4/tanh.m4: New file.
7665         * modules/tanh (Files): Add it.
7666         (configure.ac): Just invoke gl_FUNC_TANH.
7667
7668 2011-10-08  Bruno Haible  <bruno@clisp.org>
7669
7670         Tests for module 'coshf'.
7671         * modules/coshf-tests: New file.
7672         * tests/test-coshf.c: New file.
7673
7674         New module 'coshf'.
7675         * lib/math.in.h (coshf): New declaration.
7676         * lib/coshf.c: New file.
7677         * m4/coshf.m4: New file.
7678         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
7679         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
7680         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
7681         * modules/coshf: New file.
7682         * tests/test-math-c++.cc: Check the declaration of coshf.
7683         * doc/posix-functions/coshf.texi: Mention the new module.
7684
7685         cosh: Use a .m4 file.
7686         * m4/cosh.m4: New file.
7687         * modules/cosh (Files): Add it.
7688         (configure.ac): Just invoke gl_FUNC_COSH.
7689
7690 2011-10-08  Bruno Haible  <bruno@clisp.org>
7691
7692         Tests for module 'sinhf'.
7693         * modules/sinhf-tests: New file.
7694         * tests/test-sinhf.c: New file.
7695
7696         New module 'sinhf'.
7697         * lib/math.in.h (sinhf): New declaration.
7698         * lib/sinhf.c: New file.
7699         * m4/sinhf.m4: New file.
7700         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
7701         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
7702         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
7703         * modules/sinhf: New file.
7704         * tests/test-math-c++.cc: Check the declaration of sinhf.
7705         * doc/posix-functions/sinhf.texi: Mention the new module.
7706
7707         sinh: Use a .m4 file.
7708         * m4/sinh.m4: New file.
7709         * modules/sinh (Files): Add it.
7710         (configure.ac): Just invoke gl_FUNC_SINH.
7711
7712 2011-10-08  Bruno Haible  <bruno@clisp.org>
7713
7714         Tests for module 'atan2f'.
7715         * modules/atan2f-tests: New file.
7716         * tests/test-atan2f.c: New file.
7717
7718         New module 'atan2f'.
7719         * lib/math.in.h (atan2f): New declaration.
7720         * lib/atan2f.c: New file.
7721         * m4/atan2f.m4: New file.
7722         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
7723         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
7724         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
7725         * modules/atan2f: New file.
7726         * tests/test-math-c++.cc: Check the declaration of atan2f.
7727         * doc/posix-functions/atan2f.texi: Mention the new module.
7728
7729         atan2: Use a .m4 file.
7730         * m4/atan2.m4: New file.
7731         * modules/atan2 (Files): Add it.
7732         (configure.ac): Just invoke gl_FUNC_ATAN2.
7733
7734 2011-10-08  Bruno Haible  <bruno@clisp.org>
7735
7736         Tests for module 'atanf'.
7737         * modules/atanf-tests: New file.
7738         * tests/test-atanf.c: New file.
7739
7740         New module 'atanf'.
7741         * lib/math.in.h (atanf): New declaration.
7742         * lib/atanf.c: New file.
7743         * m4/atanf.m4: New file.
7744         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
7745         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
7746         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
7747         * modules/atanf: New file.
7748         * tests/test-math-c++.cc: Check the declaration of atanf.
7749         * doc/posix-functions/atanf.texi: Mention the new module.
7750
7751         atan: Use a .m4 file.
7752         * m4/atan.m4: New file.
7753         * modules/atan (Files): Add it.
7754         (configure.ac): Just invoke gl_FUNC_ATAN.
7755
7756 2011-10-08  Bruno Haible  <bruno@clisp.org>
7757
7758         Tests for module 'acosf'.
7759         * modules/acosf-tests: New file.
7760         * tests/test-acosf.c: New file.
7761
7762         New module 'acosf'.
7763         * lib/math.in.h (acosf): New declaration.
7764         * lib/acosf.c: New file.
7765         * m4/acosf.m4: New file.
7766         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
7767         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
7768         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
7769         * modules/acosf: New file.
7770         * tests/test-math-c++.cc: Check the declaration of acosf.
7771         * doc/posix-functions/acosf.texi: Mention the new module.
7772
7773         acos: Use a .m4 file.
7774         * m4/acos.m4: New file.
7775         * modules/acos (Files): Add it.
7776         (configure.ac): Just invoke gl_FUNC_ACOS.
7777
7778 2011-10-08  Bruno Haible  <bruno@clisp.org>
7779
7780         Tests for module 'asinf'.
7781         * modules/asinf-tests: New file.
7782         * tests/test-asinf.c: New file.
7783
7784         New module 'asinf'.
7785         * lib/math.in.h (asinf): New declaration.
7786         * lib/asinf.c: New file.
7787         * m4/asinf.m4: New file.
7788         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
7789         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
7790         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
7791         * modules/asinf: New file.
7792         * tests/test-math-c++.cc: Check the declaration of asinf.
7793         * doc/posix-functions/asinf.texi: Mention the new module.
7794
7795         asin: Use a .m4 file.
7796         * m4/asin.m4: New file.
7797         * modules/asin (Files): Add it.
7798         (configure.ac): Just invoke gl_FUNC_ASIN.
7799
7800 2011-10-08  Bruno Haible  <bruno@clisp.org>
7801
7802         Tests for module 'tanf'.
7803         * modules/tanf-tests: New file.
7804         * tests/test-tanf.c: New file.
7805
7806         New module 'tanf'.
7807         * lib/math.in.h (tanf): New declaration.
7808         * lib/tanf.c: New file.
7809         * m4/tanf.m4: New file.
7810         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
7811         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
7812         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
7813         * modules/tanf: New file.
7814         * tests/test-math-c++.cc: Check the declaration of tanf.
7815         * doc/posix-functions/tanf.texi: Mention the new module.
7816
7817         tan: Use a .m4 file.
7818         * m4/tan.m4: New file.
7819         * modules/tan (Files): Add it.
7820         (configure.ac): Just invoke gl_FUNC_TAN.
7821
7822 2011-10-08  Bruno Haible  <bruno@clisp.org>
7823
7824         Tests for module 'cosf'.
7825         * modules/cosf-tests: New file.
7826         * tests/test-cosf.c: New file.
7827
7828         New module 'cosf'.
7829         * lib/math.in.h (cosf): New declaration.
7830         * lib/cosf.c: New file.
7831         * m4/cosf.m4: New file.
7832         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
7833         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
7834         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
7835         * modules/cosf: New file.
7836         * tests/test-math-c++.cc: Check the declaration of cosf.
7837         * doc/posix-functions/cosf.texi: Mention the new module.
7838
7839         cos: Use a .m4 file.
7840         * m4/cos.m4: New file.
7841         * modules/cos (Files): Add it.
7842         (configure.ac): Just invoke gl_FUNC_COS.
7843
7844 2011-10-08  Bruno Haible  <bruno@clisp.org>
7845
7846         Tests for module 'sinf'.
7847         * modules/sinf-tests: New file.
7848         * tests/test-sinf.c: New file.
7849
7850         New module 'sinf'.
7851         * lib/math.in.h (sinf): New declaration.
7852         * lib/sinf.c: New file.
7853         * m4/sinf.m4: New file.
7854         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
7855         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
7856         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
7857         * modules/sinf: New file.
7858         * tests/test-math-c++.cc: Check the declaration of sinf.
7859         * doc/posix-functions/sinf.texi: Mention the new module.
7860
7861         sin: Use a .m4 file.
7862         * m4/sin.m4: New file.
7863         * modules/sin (Files): Add it.
7864         (configure.ac): Just invoke gl_FUNC_SIN.
7865
7866 2011-10-08  Bruno Haible  <bruno@clisp.org>
7867
7868         Tests for module 'powf'.
7869         * modules/powf-tests: New file.
7870         * tests/test-powf.c: New file.
7871
7872         New module 'powf'.
7873         * lib/math.in.h (powf): New declaration.
7874         * lib/powf.c: New file.
7875         * m4/powf.m4: New file.
7876         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
7877         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
7878         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
7879         * modules/powf: New file.
7880         * tests/test-math-c++.cc: Check the declaration of powf.
7881         * doc/posix-functions/powf.texi: Mention the new module.
7882
7883         pow: Use a .m4 file.
7884         * m4/pow.m4: New file.
7885         * modules/pow (Files): Add it.
7886         (configure.ac): Just invoke gl_FUNC_POW.
7887
7888 2011-10-08  Bruno Haible  <bruno@clisp.org>
7889
7890         Tests for module 'log10f'.
7891         * modules/log10f-tests: New file.
7892         * tests/test-log10f.c: New file.
7893
7894         New module 'log10f'.
7895         * lib/math.in.h (log10f): New declaration.
7896         * lib/log10f.c: New file.
7897         * m4/log10f.m4: New file.
7898         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
7899         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
7900         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
7901         * modules/log10f: New file.
7902         * tests/test-math-c++.cc: Check the declaration of log10f.
7903         * doc/posix-functions/log10f.texi: Mention the new module.
7904
7905         log10: Use a .m4 file.
7906         * m4/log10.m4: New file.
7907         * modules/log10 (Files): Add it.
7908         (configure.ac): Just invoke gl_FUNC_LOG10.
7909
7910 2011-10-08  Bruno Haible  <bruno@clisp.org>
7911
7912         Tests for module 'logf'.
7913         * modules/logf-tests: New file.
7914         * tests/test-logf.c: New file.
7915
7916         New module 'logf'.
7917         * lib/math.in.h (logf): New declaration.
7918         * lib/logf.c: New file.
7919         * m4/logf.m4: New file.
7920         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
7921         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
7922         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
7923         * modules/logf: New file.
7924         * tests/test-math-c++.cc: Check the declaration of logf.
7925         * doc/posix-functions/logf.texi: Mention the new module.
7926
7927         log: Use a .m4 file.
7928         * m4/log.m4: New file.
7929         * modules/log (Files): Add it.
7930         (configure.ac): Just invoke gl_FUNC_LOG.
7931
7932 2011-10-08  Bruno Haible  <bruno@clisp.org>
7933
7934         Tests for module 'expf'.
7935         * modules/expf-tests: New file.
7936         * tests/test-expf.c: New file.
7937
7938         New module 'expf'.
7939         * lib/math.in.h (expf): New declaration.
7940         * lib/expf.c: New file.
7941         * m4/expf.m4: New file.
7942         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
7943         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
7944         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
7945         * modules/expf: New file.
7946         * tests/test-math-c++.cc: Check the declaration of expf.
7947         * doc/posix-functions/expf.texi: Mention the new module.
7948
7949         exp: Use a .m4 file.
7950         * m4/exp.m4: New file.
7951         * modules/exp (Files): Add it.
7952         (configure.ac): Just invoke gl_FUNC_EXP.
7953
7954 2011-10-08  Bruno Haible  <bruno@clisp.org>
7955
7956         Tests for module 'sqrtf'.
7957         * modules/sqrtf-tests: New file.
7958         * tests/test-sqrtf.c: New file.
7959
7960         New module 'sqrtf'.
7961         * lib/math.in.h (sqrtf): New declaration.
7962         * lib/sqrtf.c: New file.
7963         * m4/sqrtf.m4: New file.
7964         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
7965         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
7966         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
7967         * modules/sqrtf: New file.
7968         * tests/test-math-c++.cc: Check the declaration of sqrtf.
7969         * doc/posix-functions/sqrtf.texi: Mention the new module.
7970
7971 2011-10-08  Bruno Haible  <bruno@clisp.org>
7972
7973         Tests: Avoid link failures w.r.t. libintl.
7974         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
7975         $(LIBINTL).
7976         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
7977         $(LIBINTL).
7978         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
7979         against $(LIBINTL).
7980         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
7981         $(LIBINTL).
7982         * modules/openat-tests (Makefile.am): Link test-fchmodat against
7983         $(LIBINTL).
7984         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
7985
7986 2011-10-08  Bruno Haible  <bruno@clisp.org>
7987
7988         pow tests: Defeat compiler optimizations.
7989         * tests/test-pow.c (main): Assign arguments to x and y before use.
7990
7991 2011-10-08  Bruno Haible  <bruno@clisp.org>
7992
7993         gnulib-tool: Improve last commit.
7994         * gnulib-tool (func_modules_transitive_closure): Simplify code.
7995         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
7996         ignore dependencies that are not among the modules list.
7997
7998 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
7999
8000         gnulib-tool: don't follow dependencies to avoided modules
8001         This fixes a bug that is related to the previous one.
8002         * gnulib-tool (func_modules_transitive_closure)
8003         (func_emit_autoconf_snippets):
8004         Check whether a dependency is acceptable before using it.
8005         (--extract-dependencies): Report an error if --avoid is also used,
8006         since this combination of options is not yet supported.
8007
8008         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
8009         Problem reported by Peter Dyballa in
8010         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
8011         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
8012         when echoing "$condition".
8013
8014 2011-10-07  Bruno Haible  <bruno@clisp.org>
8015
8016         Fix documentation about math functions on MacOS X.
8017         * doc/posix-functions/exp2.texi: Don't say the function is missing on
8018         MacOS X 10.5.
8019         * doc/posix-functions/fdim.texi: Likewise.
8020         * doc/posix-functions/feclearexcept.texi: Likewise.
8021         * doc/posix-functions/fegetenv.texi: Likewise.
8022         * doc/posix-functions/fegetround.texi: Likewise.
8023         * doc/posix-functions/feholdexcept.texi: Likewise.
8024         * doc/posix-functions/feraiseexcept.texi: Likewise.
8025         * doc/posix-functions/fesetenv.texi: Likewise.
8026         * doc/posix-functions/fesetround.texi: Likewise.
8027         * doc/posix-functions/fetestexcept.texi: Likewise.
8028         * doc/posix-functions/feupdateenv.texi: Likewise.
8029         * doc/posix-functions/fmax.texi: Likewise.
8030         * doc/posix-functions/fmin.texi: Likewise.
8031         * doc/posix-functions/log2.texi: Likewise.
8032         * doc/posix-functions/modff.texi: Likewise.
8033         * doc/posix-functions/nan.texi: Likewise.
8034         * doc/posix-functions/nanf.texi: Likewise.
8035         * doc/posix-functions/nextafterf.texi: Likewise.
8036         * doc/posix-functions/remquo.texi: Likewise.
8037
8038 2011-10-07  Bruno Haible  <bruno@clisp.org>
8039
8040         modff: Drop assumption about library that defines modff.
8041         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
8042         AC_CHECK_FUNCS.
8043         * modules/modff (Files): Add m4/mathfunc.m4.
8044
8045 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
8046
8047         raise tests: Avoid a GCC warning.
8048         * tests/test-raise.c (handler): Use _Noreturn.
8049
8050 2011-10-07  Bruno Haible  <bruno@clisp.org>
8051
8052         Tests for module 'ldexpf'.
8053         * modules/ldexpf-tests: New file.
8054         * tests/test-ldexpf.c: New file.
8055
8056         New module 'ldexpf'.
8057         * lib/math.in.h (ldexpf): New declaration.
8058         * lib/ldexpf.c: New file.
8059         * m4/ldexpf.m4: New file.
8060         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
8061         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
8062         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
8063         * modules/ldexpf: New file.
8064         * tests/test-math-c++.cc: Check the declaration of ldexpf.
8065         * doc/posix-functions/ldexpf.texi: Mention the new module.
8066
8067 2011-10-06  Bruno Haible  <bruno@clisp.org>
8068
8069         frexpf: Work around problems on IRIX and mingw.
8070         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
8071         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
8072         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
8073         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
8074         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
8075         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
8076         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
8077
8078 2011-10-06  Bruno Haible  <bruno@clisp.org>
8079
8080         fabsf: Drop assumption about library that defines fabsf.
8081         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
8082         AC_CHECK_FUNCS.
8083         * modules/fabsf (Files): Add m4/mathfunc.m4.
8084
8085 2011-10-06  Bruno Haible  <bruno@clisp.org>
8086
8087         frexpf: Drop assumption about library that defines frexpf.
8088         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
8089         'int *', 'float *', 'long double *', 'float', 'long double'.
8090         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
8091         AC_CHECK_FUNCS.
8092         * modules/frexpf (Files): Add m4/mathfunc.m4.
8093
8094         Tests for module 'frexpf'.
8095         * modules/frexpf-tests: New file.
8096         * tests/test-frexpf.c: New file.
8097
8098         New module 'frexpf'.
8099         * lib/math.in.h (frexpf): New declaration.
8100         * lib/frexpf.c: New file.
8101         * m4/frexpf.m4: New file.
8102         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
8103         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
8104         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
8105         * modules/frexpf: New file.
8106         * tests/test-math-c++.cc: Check the declaration of frexpf.
8107         * doc/posix-functions/frexpf.texi: Mention the new module.
8108
8109 2011-10-06  Bruno Haible  <bruno@clisp.org>
8110
8111         math: Sort function declarations of math.in.h.
8112         * lib/math.in.h (frexp, logb): Move declarations.
8113
8114 2011-10-05  Bruno Haible  <bruno@clisp.org>
8115
8116         Tests for module 'modff'.
8117         * modules/modff-tests: New file.
8118         * tests/test-modff.c: New file.
8119
8120         New module 'modff'.
8121         * lib/math.in.h (modff): New declaration.
8122         * lib/modff.c: New file.
8123         * m4/modff.m4: New file.
8124         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
8125         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
8126         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
8127         * modules/modff: New file.
8128         * tests/test-math-c++.cc: Check the declaration of modff.
8129         * doc/posix-functions/modff.texi: Mention the new module.
8130
8131         modf tests: Make test sharper.
8132         * tests/test-modf.c (main): Strengthen upper bound.
8133
8134         modf: Use a .m4 file.
8135         * m4/modf.m4: New file.
8136         * modules/modf (Files): Add it.
8137         (configure.ac): Just invoke gl_FUNC_MODF.
8138
8139 2011-10-05  Bruno Haible  <bruno@clisp.org>
8140
8141         Tests for module 'fmodf'.
8142         * modules/fmodf-tests: New file.
8143         * tests/test-fmodf.c: New file.
8144
8145         New module 'fmodf'.
8146         * lib/math.in.h (fmodf): New declaration.
8147         * lib/fmodf.c: New file.
8148         * m4/fmodf.m4: New file.
8149         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
8150         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
8151         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
8152         * modules/fmodf: New file.
8153         * tests/test-math-c++.cc: Check the declaration of fmodf.
8154         * doc/posix-functions/fmodf.texi: Mention the new module.
8155
8156         fmod: Use a .m4 file.
8157         * m4/fmod.m4: New file.
8158         * modules/fmod (Files): Add it.
8159         (configure.ac): Just invoke gl_FUNC_FMOD.
8160
8161 2011-10-05  Bruno Haible  <bruno@clisp.org>
8162
8163         Tests for module 'fabsf'.
8164         * modules/fabsf-tests: New file.
8165         * tests/test-fabsf.c: New file.
8166
8167         New module 'fabsf'.
8168         * lib/math.in.h (fabsf): New declaration.
8169         * lib/fabsf.c: New file.
8170         * m4/fabsf.m4: New file.
8171         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
8172         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
8173         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
8174         * modules/fabsf: New file.
8175         * tests/test-math-c++.cc: Check the declaration of fabsf.
8176         * doc/posix-functions/fabsf.texi: Mention the new module.
8177
8178         fabs: Use a .m4 file.
8179         * m4/fabs.m4: New file.
8180         * modules/fabs (Files): Add it.
8181         (configure.ac): Just invoke gl_FUNC_FABS.
8182
8183 2011-10-05  Jim Meyering  <meyering@redhat.com>
8184
8185         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
8186         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
8187         ls -lL regression introduced in coreutils-8.12, it does so at the
8188         cost of an additional stat call in the common case.  Besides, now
8189         that the kernel change that prompted commit 95f7c57f has been reverted
8190         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
8191         we have no use for commit 95f7c57f, "file-has-acl: use
8192         acl_extended_file_nofollow if available".
8193
8194 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
8195
8196         file-has-acl: revert unintended change in behavior of ls -L
8197         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
8198         derived from...
8199         (file_has_acl): ...code here.  Call it.
8200         This problem was introduced with 2011-07-22 commit 95f7c57f,
8201         "file-has-acl: use acl_extended_file_nofollow if available".
8202         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
8203
8204 2011-10-03  Bruno Haible  <bruno@clisp.org>
8205
8206         poll: Avoid link errors on MSVC.
8207         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
8208         * modules/poll (Depends-on): Add sockets.
8209         (Link): New section.
8210         * NEWS: Mention the change.
8211         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
8212         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
8213         $(LIB_POLL) instead of $(LIBSOCKET).
8214
8215 2011-10-03  Bruno Haible  <bruno@clisp.org>
8216
8217         sys_select tests: Fix link error on MSVC 9.
8218         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
8219         with $(LIB_SELECT) instead of $(LIBSOCKET).
8220
8221 2011-10-03  Bruno Haible  <bruno@clisp.org>
8222
8223         sys_select: Fix compilation error on mingw.
8224         * lib/sys_select.in.h: On native Windows, include <io.h>.
8225
8226 2011-10-03  Bruno Haible  <bruno@clisp.org>
8227
8228         wmemset: Support for MSVC.
8229         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
8230         whether wmemset() exists.
8231
8232 2011-10-03  Bruno Haible  <bruno@clisp.org>
8233
8234         wmemmove: Support for MSVC.
8235         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
8236         whether wmemmove() exists.
8237
8238 2011-10-03  Bruno Haible  <bruno@clisp.org>
8239
8240         wmemcpy: Support for MSVC.
8241         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
8242         whether wmemcpy() exists.
8243
8244 2011-10-03  Bruno Haible  <bruno@clisp.org>
8245
8246         wmemcmp: Support for MSVC.
8247         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
8248         whether wmemcmp() exists.
8249
8250 2011-10-03  Bruno Haible  <bruno@clisp.org>
8251
8252         wmemchr: Support for MSVC.
8253         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
8254         whether wmemchr() exists.
8255
8256 2011-10-03  Bruno Haible  <bruno@clisp.org>
8257
8258         glthread/*, strsignal: Support for MSVC.
8259         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
8260         including <winsock.h> on MSVC 9.
8261         * lib/glthread/lock.h: Likewise.
8262         * lib/glthread/thread.h: Likewise.
8263         * lib/glthread/tls.h: Likewise.
8264         * lib/glthread/yield.h: Likewise.
8265         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
8266         if HAVE_UNISTD_H is false.
8267         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
8268
8269 2011-10-03  Bruno Haible  <bruno@clisp.org>
8270
8271         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
8272         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
8273         Set to 100000.
8274
8275 2011-10-03  Bruno Haible  <bruno@clisp.org>
8276
8277         acl: Fix specification.
8278         * lib/file-has-acl.c (file_has_acl): Fix specification.
8279
8280 2011-10-03  Bruno Haible  <bruno@clisp.org>
8281
8282         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
8283         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
8284         (compute_curr_prefix, shared_library_fullname,
8285         find_shared_library_fullname, get_shared_library_fullname, relocate):
8286         Use it together with PIC && INSTALLDIR.
8287         Reported by <jojelino@gmail.com>
8288         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
8289
8290 2011-10-01  Jim Meyering  <meyering@redhat.com>
8291
8292         maint.mk: adjust a release-related rule not to require use of gzip
8293         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
8294         Instead, check each file in $(DIST_ARCHIVES).  This is better for
8295         projects that build only .tar.xz files.  Also fix an erroneous test.
8296
8297         test-linkat: don't leave behind a temporary file
8298         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
8299         Otherwise, coreutils' "make distcheck" would fail with this:
8300           Only in /c/cu/tests/torture/coreutils/test/\
8301             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
8302           make[2]: *** [my-distcheck] Error 1
8303
8304         float, math: add omitted file
8305         * lib/itold.c: Add file, required for yesterday's float change.
8306
8307 2011-10-01  Bruno Haible  <bruno@clisp.org>
8308
8309         isinf: Fix for OpenBSD/x86.
8310         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
8311         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
8312         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
8313
8314 2011-10-01  Bruno Haible  <bruno@clisp.org>
8315
8316         isfinite: Fix syntax error in configure test.
8317         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
8318
8319         isfinite: Fix typo.
8320         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
8321         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
8322
8323 2011-10-01  Bruno Haible  <bruno@clisp.org>
8324
8325         nonblocking tests: Fix test failure on Linux/IA-64.
8326         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
8327         Set to 270000.
8328
8329 2011-10-01  Bruno Haible  <bruno@clisp.org>
8330
8331         mkfifoat tests: Fix a test failure on mingw.
8332         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
8333         with error ENOSYS.
8334
8335 2011-09-30  Bruno Haible  <bruno@clisp.org>
8336
8337         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
8338         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
8339         'long double'. Set REPLACE_ITOLD.
8340         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
8341         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
8342         * lib/itold.c: New file.
8343         * modules/float (Files): Add lib/itold.c.
8344         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
8345         (Makefile.am): Substitute REPLACE_ITOLD.
8346         * modules/math (Depends-on): Add float.
8347         (Makefile.am): Substitute REPLACE_ITOLD.
8348         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
8349         * doc/posix-headers/math.texi: Likewise.
8350         * doc/posix-functions/logl.texi: Likewise.
8351
8352 2011-09-30  Bruno Haible  <bruno@clisp.org>
8353
8354         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
8355         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
8356         Set to 140000.
8357
8358 2011-09-30  Bruno Haible  <bruno@clisp.org>
8359
8360         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
8361         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
8362         invocation, say "right after AC_PROG_CC_STDC", not "right after
8363         AC_PROG_CC".
8364         Reported by Gary V. Vaughan <gary@gnu.org>.
8365
8366 2011-09-30  Bruno Haible  <bruno@clisp.org>
8367
8368         Centralize C99 requirement.
8369         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
8370         * modules/stdarg (configure.ac-early): Invoke it instead of
8371         AC_PROG_CC_STDC.
8372         Reported by Gary V. Vaughan and Paul Eggert.
8373
8374 2011-09-29  Bruno Haible  <bruno@clisp.org>
8375
8376         float: Fix LDBL_MAX value on Linux/PowerPC.
8377         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
8378         on Linux/PowerPC.
8379         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
8380         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
8381         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
8382         platform.
8383         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
8384
8385 2011-09-29  Bruno Haible  <bruno@clisp.org>
8386
8387         doc: Improve doc about gl_EARLY.
8388         * doc/gnulib-tool.texi (Initial import): Mention where to place an
8389         AC_PROG_CC_STDC invocation.
8390         Reported by Gary V. Vaughan <gary@gnu.org>.
8391
8392 2011-09-28  Bruno Haible  <bruno@clisp.org>
8393
8394         fgetc, fputc, fread, fwrite tests: Fix link error.
8395         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
8396         on non-MSVC platforms.
8397         * tests/test-fputc.c (main): Likewise.
8398         * tests/test-fread.c (main): Likewise.
8399         * tests/test-fwrite.c (main): Likewise.
8400         Reported by Jim Meyering.
8401
8402 2011-09-27  Bruno Haible  <bruno@clisp.org>
8403
8404         fputc, fwrite tests: Avoid test failure on MSVC.
8405         * tests/test-fgetc.c: Include msvc-inval.h.
8406         (main): Invoke gl_msvc_inval_ensure_handler.
8407         * tests/test-fputc.c: Include msvc-inval.h.
8408         (main): Invoke gl_msvc_inval_ensure_handler.
8409         * tests/test-fread.c: Include msvc-inval.h.
8410         (main): Invoke gl_msvc_inval_ensure_handler.
8411         * tests/test-fwrite.c: Include msvc-inval.h.
8412         (main): Invoke gl_msvc_inval_ensure_handler.
8413         * modules/fgetc-tests (Depends-on): Add msvc-inval.
8414         * modules/fputc-tests (Depends-on): Likewise.
8415         * modules/fread-tests (Depends-on): Likewise.
8416         * modules/fwrite-tests (Depends-on): Likewise.
8417
8418 2011-09-27  Bruno Haible  <bruno@clisp.org>
8419
8420         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
8421         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
8422         (raise): Remove older, duplicated declaration.
8423         (_gl_raise_SIGPIPE): New declaration.
8424         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
8425         (rpl_raise): Remove function.
8426         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
8427         a gnulib-defined SIGPIPE here.
8428         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
8429         'sigprocmask' has detected missing signal-blocking and the module
8430         'sigpipe' is enabled.
8431         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8432
8433 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
8434
8435         base64-tests: avoid memory leak
8436         * tests/test-base64.c (main): Plug memory leak.
8437
8438         base32: new module
8439         * modules/base32: New module.
8440         * lib/base32.c: New file.
8441         * lib/base32.h: Likewise.
8442         * m4/base32.m4: Likewise.
8443         * modules/base32-tests: New test.
8444         * tests/test-base32.c: Likewise.
8445         * MODULES.html.sh (Misc): Mention it.
8446
8447 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
8448
8449         gnulib: use more-standard license notice wording
8450         * gnulib-tool (func_emit_copyright_notice): When emitting a
8451         license notice into a file, use the standard wording as suggested
8452         by the current information for GNU maintainers, except say "file"
8453         rather than "program".  The new wording gives a license version
8454         number, which addresses an issue raised by Glenn Morris in
8455         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
8456         * m4/onceonly.m4: Use that same wording here, too.
8457
8458         dup2: minor simplification
8459         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
8460         as lib/dup2.c no longer uses 'inline'.
8461
8462 2011-09-25  Bruno Haible  <bruno@clisp.org>
8463
8464         strings: Fix compilation error on MSVC.
8465         * lib/strings.in.h: Include <stddef.h> for size_t.
8466
8467 2011-09-25  Bruno Haible  <bruno@clisp.org>
8468
8469         fflush et al.: Document limitation on MSVC.
8470         * doc/posix-functions/fflush.texi: Document possible crash in handling
8471         mode other than DEFAULT_HANDLING.
8472         * doc/posix-functions/fgetc.texi: Likewise.
8473         * doc/posix-functions/fputc.texi: Likewise.
8474         * doc/posix-functions/fread.texi: Likewise.
8475         * doc/posix-functions/fwrite.texi: Likewise.
8476
8477 2011-09-25  Bruno Haible  <bruno@clisp.org>
8478
8479         msvc-inval: Allow three invalid parameter handling modes.
8480         * lib/msvc-inval.h: Don't include <stdlib.h> here.
8481         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
8482         macros.
8483         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
8484         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
8485         SANE_LIBRARY_HANDLING as a no-op.
8486         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
8487         <stdlib.h>.
8488         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
8489
8490 2011-09-25  Bruno Haible  <bruno@clisp.org>
8491
8492         msvc-inval: Make handler multithread-safe.
8493         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
8494         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
8495         declarations.
8496         (gl_msvc_inval_current): New declaration.
8497         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8498         Operate on the structure returned by gl_msvc_inval_current().
8499         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
8500         Remove varaiables.
8501         (tls_index, tls_initialized): New variables.
8502         (not_per_thread): New variable.
8503         (gl_msvc_inval_current): New function.
8504         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
8505         returned by gl_msvc_inval_current().
8506
8507 2011-09-25  Bruno Haible  <bruno@clisp.org>
8508
8509         msvc-inval: Install handler globally.
8510         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
8511         !_MSC_VER.
8512         (gl_msvc_invalid_parameter_handler): Remove declaration.
8513         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
8514         declarations.
8515         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8516         Install the handler globally, don't uninstall it.
8517         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
8518         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
8519         currently valid, call RaiseException instead.
8520         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
8521         for !_MSC_VER.
8522
8523 2011-09-25  Bruno Haible  <bruno@clisp.org>
8524
8525         strerror_r-posix: Fix for MSVC 9.
8526         * lib/strerror_r.c (local_snprintf): New function.
8527         (snprintf): Define to local_snprintf, not to _snprintf.
8528
8529 2011-09-25  Bruno Haible  <bruno@clisp.org>
8530
8531         ftruncate: Support for MSVC 9.
8532         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
8533         (chsize_nothrow): New function.
8534         (chsize): Redefine as a macro.
8535         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
8536         * modules/ftruncate (Depends-on): Add msvc-inval.
8537
8538 2011-09-25  Bruno Haible  <bruno@clisp.org>
8539
8540         New module 'fstat'.
8541         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
8542         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
8543         * lib/fchdir.c (rpl_fstat): Remove function.
8544         * m4/fstat.m4: New file.
8545         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
8546         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
8547         declared.
8548         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
8549         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
8550         * modules/fstat: New file.
8551         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
8552         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
8553         is set.
8554         * doc/posix-functions/fstat.texi: Mention the new module and the
8555         problem on MSVC.
8556         * NEWS: Mention the change.
8557         * modules/acl (Depends-on): Add fstat.
8558         * modules/chdir-safer (Depends-on): Likewise.
8559         * modules/chown (Depends-on): Likewise.
8560         * modules/copy-file (Depends-on): Likewise.
8561         * modules/fchdir (Depends-on): Likewise.
8562         * modules/fdopendir (Depends-on): Likewise.
8563         * modules/fopen (Depends-on): Likewise.
8564         * modules/fts (Depends-on): Likewise.
8565         * modules/getcwd (Depends-on): Likewise.
8566         * modules/isapipe (Depends-on): Likewise.
8567         * modules/linkat (Depends-on): Likewise.
8568         * modules/lseek (Depends-on): Likewise.
8569         * modules/mkdir-p (Depends-on): Likewise.
8570         * modules/open (Depends-on): Likewise.
8571         * modules/openat (Depends-on): Likewise.
8572         * modules/read-file (Depends-on): Likewise.
8573         * modules/renameat (Depends-on): Likewise.
8574         * modules/utimens (Depends-on): Likewise.
8575
8576 2011-09-25  Bruno Haible  <bruno@clisp.org>
8577
8578         linkat: Fix compilation on MSVC 9.
8579         * lib/linkat.c: Don't include <stdint.h>.
8580
8581 2011-09-25  Bruno Haible  <bruno@clisp.org>
8582
8583         fclose: Support for MSVC 9.
8584         * lib/fclose.c: Include msvc-inval.h.
8585         (fclose_nothrow): New function.
8586         (rpl_fclose): Use it.
8587         * modules/fclose (Depends-on): Add msvc-inval.
8588         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
8589
8590 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
8591
8592         dup2: minor simplifications
8593         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
8594         that it's a performance win.
8595         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
8596         ! defined __CYGWIN__)" to "ifdef F_GETFL".
8597
8598 2011-09-24  Jim Meyering  <meyering@redhat.com>
8599
8600         test-futimens: avoid a warning from gcc -Wshadow
8601         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
8602         to avoid a shadowing warning.
8603
8604 2011-09-24  Bruno Haible  <bruno@clisp.org>
8605
8606         fdopen: Support for MSVC 9.
8607         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
8608         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
8609         * lib/fdopen.c: Include msvc-inval.h.
8610         (fdopen_nothrow): New function.
8611         (rpl_fdopen): Use it.
8612         * modules/fdopen (Depends-on): Add msvc-inval.
8613         * modules/fclose-tests (Depends-on): Add fdopen.
8614         * modules/fflush-tests (Depends-on): Likewise.
8615         * modules/fgetc-tests (Depends-on): Likewise.
8616         * modules/fputc-tests (Depends-on): Likewise.
8617         * modules/fread-tests (Depends-on): Likewise.
8618         * modules/freopen-tests (Depends-on): Likewise.
8619         * modules/fseeko-tests (Depends-on): Likewise.
8620         * modules/ftello-tests (Depends-on): Likewise.
8621         * modules/fwrite-tests  (Depends-on): Likewise.
8622         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
8623
8624 2011-09-24  Bruno Haible  <bruno@clisp.org>
8625
8626         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
8627         * modules/fgetc-tests (Depends-on): Add unistd.
8628         * modules/fputc-tests (Depends-on): Likewise.
8629         * modules/fread-tests (Depends-on): Likewise.
8630         * modules/fwrite-tests (Depends-on): Likewise.
8631
8632 2011-09-24  Bruno Haible  <bruno@clisp.org>
8633
8634         dup: Simplify autoconf test.
8635         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
8636         on gl_MSVC_INVAL's result.
8637
8638 2011-09-24  Bruno Haible  <bruno@clisp.org>
8639
8640         Tests for function fwrite().
8641         * modules/fwrite-tests: New file.
8642         * tests/test-fwrite.c: New file.
8643         * modules/stdio-tests (Depends-on): Add fwrite-tests.
8644
8645         Tests for function fread().
8646         * modules/fread-tests: New file.
8647         * tests/test-fread.c: New file.
8648         * modules/stdio-tests (Depends-on): Add fread-tests.
8649
8650         Activate fputc tests.
8651         * modules/stdio-tests (Depends-on): Add fputc-tests.
8652
8653         Enhance fgetc, fputc tests.
8654         * tests/test-fgetc.c (main): Also test the stream's error indicator.
8655         * tests/test-fputc.c (main): Likewise.
8656
8657 2011-09-24  Bruno Haible  <bruno@clisp.org>
8658
8659         write: Support for MSVC 9.
8660         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8661         is not 1.
8662         * lib/write.c (write_nothrow): New function.
8663         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
8664         not 1. Use write_nothrow.
8665         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
8666         invalid parameter handler.
8667         (gl_PREREQ_WRITE): New macro.
8668         * modules/write (Depends-on): Add msvc-inval.
8669         (configure.ac): Invoke gl_PREREQ_WRITE.
8670         * doc/posix-functions/write.texi: Mention the problem on MSVC.
8671
8672 2011-09-24  Bruno Haible  <bruno@clisp.org>
8673
8674         read: Fix last commit.
8675         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
8676
8677 2011-09-24  Bruno Haible  <bruno@clisp.org>
8678
8679         dup2: Fix last commit.
8680         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
8681         (rpl_dup2): Disable fcntl workaround on native Windows.
8682
8683         sigprocmask: Make code safer.
8684         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
8685         section that changes macro definitions for this compilation unit.
8686
8687 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8688
8689         dup2: clarify by coalescing Windows-specific material
8690         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
8691         "msvc-nothrow.h"' to the Windows-specific section, so that the
8692         Emacs source need not contain these include files.
8693         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
8694         Windows-specific fixes into this function rather than just the
8695         nothrow fix, as this shortens and clarifies the code.  Always
8696         define as a function, as that's a bit cleaner than having it be
8697         sometimes a function and sometimes a macro.
8698         (rpl_dup2): Move the Windows-specific stuff out of here and into
8699         ms_windows_dup2.  Don't protect the Haiku-related fix with
8700         "#if !defined __linux__", as the same code also works around
8701         a Linux kernel bug, and it doesn't add any system calls on any
8702         platform.  Add comment about FreeBSD 6.1.
8703
8704         sigprocmask: move #include directive
8705         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
8706         Windows-specific section, so that the Emacs source need not
8707         contain msvc-inval.h.
8708
8709 2011-09-23  Bruno Haible  <bruno@clisp.org>
8710
8711         read: Support for MSVC 9.
8712         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8713         is not 1.
8714         * lib/read.c (read_nothrow): New function.
8715         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
8716         read_nothrow.
8717         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
8718         invalid parameter handler.
8719         (gl_PREREQ_READ): New macro.
8720         * modules/read (Depends-on): Add msvc-inval.
8721         (configure.ac): Invoke gl_PREREQ_READ.
8722         * doc/posix-functions/read.texi: Mention the problem on MSVC.
8723
8724 2011-09-23  Bruno Haible  <bruno@clisp.org>
8725
8726         close: Support for MSVC 9.
8727         * lib/close.c: Include <errno.h>, msvc-inval.h.
8728         (close_nothrow): New function.
8729         (rpl_close): Use it.
8730         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
8731         invalid parameter handler.
8732         * modules/close (Depends-on): Add msvc-inval.
8733         * modules/dup2-tests (Depends-on): Add close.
8734         * modules/dup3-tests (Depends-on): Likewise.
8735         * modules/fcntl-tests (Depends-on): Likewise.
8736         * modules/spawn-pipe-tests (Depends-on): Likewise.
8737         * modules/unistd-safer-tests (Depends-on): Likewise.
8738         * doc/posix-functions/close.texi: Mention the problem on MSVC.
8739
8740 2011-09-23  Bruno Haible  <bruno@clisp.org>
8741
8742         New module 'dup'.
8743         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
8744         Allow replacement.
8745         * lib/dup.c: New file.
8746         * lib/fchdir.c (rpl_dup): Remove function.
8747         * m4/dup.m4: New file.
8748         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
8749         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
8750         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
8751         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
8752         * modules/dup: New file.
8753         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
8754         'dup' module is in use.
8755         * modules/fdopendir (Depends-on): Add dup.
8756         * modules/fdutimensat-tests (Depends-on): Likewise.
8757         * modules/fts (Depends-on): Likewise.
8758         * modules/futimens-tests (Depends-on): Likewise.
8759         * modules/posix_spawnp-tests (Depends-on): Likewise.
8760         * modules/unistd-safer-tests (Depends-on): Likewise.
8761         * modules/utimens-tests (Depends-on): Likewise.
8762         * doc/posix-functions/dup.texi: Mention the new module and the problem
8763         on MSVC.
8764
8765 2011-09-23  Bruno Haible  <bruno@clisp.org>
8766
8767         getdtablesize: Support for MSVC 9.
8768         * lib/getdtablesize.c: Include msvc-inval.h.
8769         (_setmaxstdio_nothrow): New function.
8770         (_setmaxstdio): Redefine it.
8771         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
8772         * modules/getdtablesize (Depends-on): Add msvc-inval.
8773         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
8774
8775 2011-09-23  Bruno Haible  <bruno@clisp.org>
8776
8777         signal-h: Rename from signal.
8778         * modules/signal-h: Renamed from modules/signal.
8779         * modules/pthread_sigmask (Depends-on): Update.
8780         * modules/raise (Depends-on): Likewise.
8781         * modules/sigaction (Depends-on): Likewise.
8782         * modules/sigpipe (Depends-on): Likewise.
8783         * modules/sigprocmask (Depends-on): Likewise.
8784         * modules/sys_select (Depends-on): Likewise.
8785         * modules/signal-h-tests: Renamed from modules/signal-tests.
8786         (Files, Depends-on, Makefile.am): Update.
8787         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
8788         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
8789         (Files, Makefile.am): Update.
8790         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
8791         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
8792         * modules/signal: New placeholder file.
8793         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
8794         * doc/posix-headers/signal.texi: Update.
8795         * NEWS: Mention the change.
8796
8797 2011-09-23  Bruno Haible  <bruno@clisp.org>
8798
8799         sigprocmask: Avoid crashes through signal() on MSVC 9.
8800         * lib/sigprocmask.c: Include msvc-inval.h.
8801         (signal_nothrow): New function.
8802         (signal): Redefine it.
8803         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
8804         * modules/sigprocmask (Depends-on): Add msvc-inval.
8805         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
8806
8807 2011-09-23  Bruno Haible  <bruno@clisp.org>
8808
8809         Tests for module 'raise'.
8810         * modules/raise-tests: New file.
8811         * tests/test-raise.c: New file.
8812
8813         raise: Support for MSVC.
8814         * lib/signal.in.h (raise): New declaration.
8815         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
8816         for native Windows platforms.
8817         * m4/raise.m4: New file.
8818         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
8819         HAVE_RAISE, REPLACE_RAISE.
8820         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
8821         REPLACE_RAISE.
8822         * modules/raise (Status, Notice): Remove fields.
8823         (Files): Add m4/raise.m4.
8824         (Depends-on): Add signal, msvc-inval.
8825         (configure.ac): Use the common idioms.
8826         (Maintainer): Add me.
8827         * tests/test-signal-c++.cc: Check the signature of raise.
8828         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
8829
8830 2011-09-23  Bruno Haible  <bruno@clisp.org>
8831
8832         pipe2: Fix compilation on pre-C99 compilers.
8833         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
8834
8835 2011-09-23  Bruno Haible  <bruno@clisp.org>
8836
8837         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
8838         * lib/msvc-nothrow.h: New file.
8839         * lib/msvc-nothrow.c: New file.
8840         * m4/msvc-nothrow.m4: New file.
8841         * modules/msvc-nothrow: New file.
8842         * lib/dup2.c: Include msvc-nothrow.h.
8843         (rpl_dup2): No need to protect _get_osfhandle call here.
8844         * lib/accept4.c: Include msvc-nothrow.h.
8845         * lib/error.c: Likewise.
8846         * lib/fcntl.c: Likewise.
8847         * lib/lseek.c: Likewise.
8848         * lib/nonblocking.c: Likewise.
8849         * lib/poll.c: Likewise.
8850         * lib/read.c: Likewise.
8851         * lib/select.c: Likewise.
8852         * lib/sockets.h: Likewise.
8853         * lib/sockets.c: Likewise.
8854         * lib/stdio-read.c: Likewise.
8855         * lib/stdio-write.c: Likewise.
8856         * lib/write.c: Likewise.
8857         * lib/w32sock.h: Likewise.
8858         * lib/w32spawn.h: Likewise.
8859         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
8860         * lib/fsync.c: Likewise.
8861         * lib/isapipe.c: Likewise.
8862         * modules/dup2 (Depends-on): Add msvc-nothrow.
8863         * modules/accept4 (Depends-on): Likewise.
8864         * modules/error (Depends-on): Likewise.
8865         * modules/fcntl (Depends-on): Likewise.
8866         * modules/lseek (Depends-on): Likewise.
8867         * modules/nonblocking (Depends-on): Likewise.
8868         * modules/poll (Depends-on): Likewise.
8869         * modules/read (Depends-on): Likewise.
8870         * modules/select (Depends-on): Likewise.
8871         * modules/sockets (Depends-on): Likewise.
8872         * modules/sigpipe (Depends-on): Likewise.
8873         * modules/write (Depends-on): Likewise.
8874         * modules/accept (Depends-on): Likewise.
8875         * modules/bind (Depends-on): Likewise.
8876         * modules/connect (Depends-on): Likewise.
8877         * modules/gethostname (Depends-on): Likewise.
8878         * modules/getpeername (Depends-on): Likewise.
8879         * modules/getsockname (Depends-on): Likewise.
8880         * modules/getsockopt (Depends-on): Likewise.
8881         * modules/ioctl (Depends-on): Likewise.
8882         * modules/listen (Depends-on): Likewise.
8883         * modules/recv (Depends-on): Likewise.
8884         * modules/recvfrom (Depends-on): Likewise.
8885         * modules/send (Depends-on): Likewise.
8886         * modules/sendto (Depends-on): Likewise.
8887         * modules/setsockopt (Depends-on): Likewise.
8888         * modules/shutdown (Depends-on): Likewise.
8889         * modules/socket (Depends-on): Likewise.
8890         * modules/execute (Depends-on): Likewise.
8891         * modules/spawn-pipe (Depends-on): Likewise.
8892         * modules/flock (Depends-on): Likewise.
8893         * modules/fsync (Depends-on): Likewise.
8894         * modules/isapipe (Depends-on): Likewise.
8895         * tests/test-cloexec.c: Include msvc-nothrow.h.
8896         * tests/test-dup-safer.c: Likewise.
8897         * tests/test-dup2.c: Likewise.
8898         * tests/test-dup3.c: Likewise.
8899         * tests/test-fcntl.c: Likewise.
8900         * tests/test-pipe.c: Likewise.
8901         * tests/test-pipe2.c: Likewise.
8902         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
8903         * modules/unistd-safer-tests (Depends-on): Likewise.
8904         * modules/dup2-tests (Depends-on): Likewise.
8905         * modules/dup3-tests (Depends-on): Likewise.
8906         * modules/fcntl-tests (Depends-on): Likewise.
8907         * modules/pipe-posix-tests (Depends-on): Likewise.
8908         * modules/pipe2-tests (Depends-on): Likewise.
8909
8910 2011-09-23  Bruno Haible  <bruno@clisp.org>
8911
8912         dup2: Make code more maintainable.
8913         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
8914         (rpl_dup2): Use it.
8915         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
8916         * modules/dup2 (configure.ac): Invoke it.
8917         Reported by Paul Eggert.
8918
8919 2011-09-23  Bruno Haible  <bruno@clisp.org>
8920
8921         msvc-inval: Fix compilation error.
8922         * lib/msvc-inval.h: Include <excpt.h>.
8923
8924 2011-09-23  Bruno Haible  <bruno@clisp.org>
8925
8926         mkdir: Tweak for MSVC 9.
8927         * lib/sys_stat.in.h: Update comments.
8928         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
8929
8930         Tests for module 'chdir'.
8931         * modules/chdir-tests: New file.
8932         * tests/test-chdir.c: New file.
8933
8934         New module 'chdir'.
8935         * modules/chdir: New file.
8936         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
8937         (chdir): New declaration.
8938         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
8939         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
8940         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
8941         * tests/test-unistd-c++.cc: Check signature of chdir.
8942         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
8943         * modules/chdir-long (Depends-on): Add chdir.
8944         * modules/fchdir (Depends-on): Likewise.
8945         * modules/rename (Depends-on): Likewise.
8946         * modules/savewd (Depends-on): Likewise.
8947
8948         rmdir: Support for mingw, MSVC 9.
8949         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
8950         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
8951
8952         getcwd: Tweak for MSVC 9.
8953         * lib/unistd.in.h: Update comments.
8954         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
8955
8956 2011-09-22  Bruno Haible  <bruno@clisp.org>
8957
8958         strerror_r-posix: Avoid a link error on MSVC.
8959         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
8960         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
8961
8962 2011-09-22  Bruno Haible  <bruno@clisp.org>
8963
8964         select: Avoid link errors on MSVC.
8965         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
8966         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
8967         * modules/pselect (Link): Likewise.
8968         * NEWS: Mention the change.
8969         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
8970         test-select-stdin against $(LIB_SELECT).
8971         * modules/pselect-tests (Makefile.am): Link test-pselect against
8972         $(LIB_SELECT).
8973
8974 2011-09-22  Bruno Haible  <bruno@clisp.org>
8975
8976         select: Avoid compilation error on MSVC.
8977         * lib/select.c: Don't include <stdbool.h>.
8978
8979 2011-09-21  Bruno Haible  <bruno@clisp.org>
8980
8981         Consolidate all uses of PATH_MAX in *.m4 files.
8982         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
8983         macros.
8984         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
8985         and gl_PATHMAX_SNIPPET.
8986         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8987         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8988         * modules/chdir-long (Files): Add m4/pathmax.m4.
8989         * modules/getcwd (Files): Likewise.
8990
8991 2011-09-21  Bruno Haible  <bruno@clisp.org>
8992
8993         ftruncate: Un-deprecate, concentrate on Win32 support.
8994         * modules/ftruncate (Status, Notice): Remove sections.
8995         (Depends-on): Add largefile.
8996         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
8997         non-mingw platforms.
8998         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
8999         include <io.h>.
9000         * modules/perror-tests (Depends-on): Add ftruncate.
9001         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
9002         'ftruncate' module.
9003
9004 2011-09-21  Bruno Haible  <bruno@clisp.org>
9005
9006         Add dependencies to new dirent related modules.
9007         * modules/opendir (Depends-on): Add closedir.
9008         * modules/getcwd (Depends-on): Add opendir, closedir.
9009         * modules/dirent-safer-tests (Depends-on): Likewise.
9010         * modules/fdopendir-tests (Depends-on): Likewise.
9011         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
9012         * modules/renameat-tests (Depends-on): Likewise.
9013
9014 2011-09-21  Bruno Haible  <bruno@clisp.org>
9015
9016         opendir: Avoid compilation error on mingw.
9017         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
9018         * modules/opendir (Depends-on): Add unistd.
9019
9020 2011-09-21  Bruno Haible  <bruno@clisp.org>
9021
9022         ftruncate tests: Avoid a test failure on mingw.
9023         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
9024
9025 2011-09-21  Bruno Haible  <bruno@clisp.org>
9026
9027         select tests: Avoid test failures on OSF/1 5.1 and mingw.
9028         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
9029         native Windows.
9030
9031 2011-09-21  Bruno Haible  <bruno@clisp.org>
9032
9033         New module 'fdopen'.
9034         * lib/stdio.in.h (fdopen): New declaration.
9035         * lib/fdopen.c: New file.
9036         * m4/fdopen.m4: New file.
9037         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
9038         REPLACE_FDOPEN.
9039         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
9040         REPLACE_FDOPEN.
9041         * modules/fdopen: New file.
9042         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
9043         * tests/test-stdio-c++.cc: Check signature of fdopen.
9044         * doc/posix-functions/fdopen.texi: Mention the new module.
9045
9046 2011-09-21  Bruno Haible  <bruno@clisp.org>
9047
9048         unlockpt tests: Avoid test failure on NetBSD 5.1.
9049         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
9050         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
9051
9052 2011-09-21  Bruno Haible  <bruno@clisp.org>
9053
9054         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
9055         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
9056         * tests/test-getlogin_r.c (main): Likewise.
9057
9058 2011-09-20  Bruno Haible  <bruno@clisp.org>
9059
9060         time tests: Don't require pid_t.
9061         * doc/posix-headers/time.texi: Revert last change.
9062         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
9063         * tests/test-time.c: Comment out the check for pid_t.
9064
9065 2011-09-20  Bruno Haible  <bruno@clisp.org>
9066
9067         fsync tests: Avoid a test failure on mingw.
9068         * tests/test-fsync.c (main): Allow a failure with EIO.
9069
9070 2011-09-20  Bruno Haible  <bruno@clisp.org>
9071
9072         euidaccess: Update comments.
9073         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
9074
9075 2011-09-20  Bruno Haible  <bruno@clisp.org>
9076
9077         Ensure EBADF returns for socket functions on mingw.
9078         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
9079         descriptor is invalid.
9080         * lib/bind.c (rpl_bind): Likewise.
9081         * lib/connect.c (rpl_connect): Likewise.
9082         * lib/getpeername.c (rpl_getpeername): Likewise.
9083         * lib/getsockname.c (rpl_getsockname): Likewise.
9084         * lib/getsockopt.c (rpl_getsockopt): Likewise.
9085         * lib/listen.c (rpl_listen): Likewise.
9086         * lib/recv.c (rpl_recv): Likewise.
9087         * lib/recvfrom.c (rpl_recvfrom): Likewise.
9088         * lib/send.c (rpl_send): Likewise.
9089         * lib/sendto.c (rpl_sendto): Likewise.
9090         * lib/setsockopt.c (rpl_setsockopt): Likewise.
9091         * lib/shutdown.c (rpl_shutdown): Likewise.
9092
9093 2011-09-20  Bruno Haible  <bruno@clisp.org>
9094
9095         select tests: EBADF tests.
9096         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
9097         test_bad_fd): New functions.
9098         (test_function): Invoke also test_bad_fd.
9099
9100 2011-09-20  Bruno Haible  <bruno@clisp.org>
9101
9102         Tests for module 'posix_spawn_file_actions_addopen.
9103         * modules/posix_spawn_file_actions_addopen-tests: New file.
9104         * tests/test-posix_spawn_file_actions_addopen.c: New file.
9105
9106         Tests for module 'posix_spawn_file_actions_adddup2'.
9107         * modules/posix_spawn_file_actions_adddup2-tests: New file.
9108         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
9109
9110         Tests for module 'posix_spawn_file_actions_addclose'.
9111         * modules/posix_spawn_file_actions_addclose-tests: New file.
9112         * tests/test-posix_spawn_file_actions_addclose.c: New file.
9113
9114 2011-09-20  Bruno Haible  <bruno@clisp.org>
9115
9116         Tests for module 'unlockpt'.
9117         * modules/unlockpt-tests: New file.
9118         * tests/test-unlockpt.c: New file.
9119         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
9120
9121         Tests for module 'grantpt'.
9122         * modules/grantpt-tests: New file.
9123         * tests/test-grantpt.c: New file.
9124         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
9125
9126 2011-09-20  Bruno Haible  <bruno@clisp.org>
9127
9128         freopen tests: EBADF tests.
9129         * tests/test-freopen.c: Include errno.h, unistd.h.
9130         (main): Add tests for EBADF, commented out for the moment.
9131
9132         fclose tests: EBADF tests.
9133         * tests/test-fclose.c (main): Add tests for EBADF.
9134
9135         fflush tests: EBADF tests.
9136         * tests/test-fflush.c: Include errno.h, macros.h.
9137         (main): Add tests for EBADF.
9138
9139         ftello tests: EBADF tests.
9140         * tests/test-ftello4.sh: New file.
9141         * tests/test-ftello4.c: New file.
9142         * modules/ftello-tests (Files): Add them.
9143         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
9144
9145         fseeko tests: EBADF tests.
9146         * tests/test-fseeko4.sh: New file.
9147         * tests/test-fseeko4.c: New file.
9148         * modules/fseeko-tests (Files): Add them.
9149         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
9150
9151         Tests for function fputc().
9152         * modules/fputc-tests: New file.
9153         * tests/test-fputc.c: New file.
9154         * modules/stdio-tests (Depends-on): Add fputc-tests.
9155
9156         Tests for function fgetc().
9157         * modules/fgetc-tests: New file.
9158         * tests/test-fgetc.c: New file.
9159         * modules/stdio-tests (Depends-on): Add fgetc-tests.
9160
9161         Tests for function fdopen().
9162         * modules/fdopen-tests: New file.
9163         * tests/test-fdopen.c: New file.
9164         * modules/stdio-tests (Depends-on): Add fdopen-tests.
9165
9166         Tests for module 'vdprintf'.
9167         * modules/vdprintf-tests: New file.
9168         * tests/test-vdprintf.c: New file.
9169
9170         Tests for module 'dprintf'.
9171         * modules/dprintf-tests: New file.
9172         * tests/test-dprintf.c: New file.
9173
9174 2011-09-20  Bruno Haible  <bruno@clisp.org>
9175
9176         Tests for module 'ioctl'.
9177         * modules/ioctl-tests: New file.
9178         * tests/test-ioctl.c: New file.
9179
9180 2011-09-20  Bruno Haible  <bruno@clisp.org>
9181
9182         fcntl tests: EBADF tests.
9183         * tests/test-fcntl.c (main): Add more tests for EBADF.
9184
9185 2011-09-20  Bruno Haible  <bruno@clisp.org>
9186
9187         utimensat tests: EBADF tests.
9188         * tests/test-utimensat.c (main): Add tests for EBADF.
9189
9190         renameat tests: EBADF tests.
9191         * tests/test-renameat.c (main): Add tests for EBADF.
9192
9193         mkfifoat tests: EBADF tests.
9194         * tests/test-mkfifoat.c (main): Add tests for EBADF.
9195
9196         readlinkat tests: EBADF tests.
9197         * tests/test-readlinkat.c (main): Add tests for EBADF.
9198
9199         symlinkat tests: EBADF tests.
9200         * tests/test-symlinkat.c (main): Add tests for EBADF.
9201
9202         linkat tests: EBADF tests.
9203         * tests/test-linkat.c (main): Add tests for EBADF.
9204
9205         Tests for module 'faccessat'.
9206         * modules/faccessat-tests: New file.
9207         * tests/test-faccessat.c: New file.
9208
9209         fdopendir tests: EBADF tests.
9210         * tests/test-fdopendir.c (main): Add more tests for EBADF.
9211
9212         openat tests: EBADF tests.
9213         * tests/test-fchownat.c (main): Add tests for EBADF.
9214         * tests/test-fstatat.c (main): Likewise.
9215         * tests/test-mkdirat.c (main): Likewise.
9216         * tests/test-openat.c (main): Likewise.
9217         * tests/test-unlinkat.c (main): Likewise.
9218         * tests/test-fchmodat.c: New file.
9219         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
9220         (Makefile.am): Also run 'test-fchmodat'.
9221
9222 2011-09-20  Bruno Haible  <bruno@clisp.org>
9223
9224         utimens, futimens, fdutimensat tests: EBADF tests.
9225         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
9226
9227         Tests for function fstat().
9228         * modules/fstat-tests: New file.
9229         * tests/test-fstat.c: New file.
9230         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
9231
9232 2011-09-20  Bruno Haible  <bruno@clisp.org>
9233
9234         test-ttyname_r tests: EBADF tests.
9235         * tests/test-ttyname_r.c (main): Add tests for EBADF.
9236
9237         Tests for module 'isatty'.
9238         * modules/isatty-tests: New file.
9239         * tests/test-isatty.c: New file.
9240
9241         Tests for module 'write'.
9242         * modules/write-tests: New file.
9243         * tests/test-write.c: New file.
9244
9245         Tests for module 'read'.
9246         * modules/read-tests: New file.
9247         * tests/test-read.c: New file.
9248
9249         pwrite tests: EBADF tests.
9250         * tests/test-pwrite.c (main): Add tests for EBADF.
9251
9252         pread tests: EBADF tests.
9253         * tests/test-pread.c (main): Add tests for EBADF.
9254
9255         lseek tests: EBADF tests.
9256         * tests/test-lseek.c (main): Add more tests for EBADF.
9257
9258         Tests for module 'ftruncate'.
9259         * modules/ftruncate-tests: New file.
9260         * tests/test-ftruncate.sh: New file.
9261         * tests/test-ftruncate.c: New file.
9262
9263         fsync tests: EBADF tests.
9264         * tests/test-fsync.c (main): Add more tests for EBADF.
9265
9266         fdatasync tests: EBADF tests.
9267         * tests/test-fdatasync.c (main): Add more tests for EBADF.
9268
9269         Tests for module 'fchown'.
9270         * modules/fchown-tests: New file.
9271         * tests/test-fchown.c: New file.
9272
9273         Tests for module 'fchmod'.
9274         * modules/fchmod-tests: New file.
9275         * tests/test-fchmod.c: New file.
9276
9277         fchdir tests: EBADF tests.
9278         * tests/test-fchdir.c (main): Add more tests for EBADF.
9279
9280         dup2 tests: EBADF tests.
9281         * tests/test-dup2.c (main): Add more tests for EBADF.
9282
9283         Tests for module 'dup'.
9284         * modules/dup-tests: New file.
9285         * tests/test-dup.c: New file.
9286
9287         Tests for module 'close'.
9288         * modules/close-tests: New file.
9289         * tests/test-close.c: New file.
9290
9291 2011-09-20  Bruno Haible  <bruno@clisp.org>
9292
9293         Tests for module 'shutdown'.
9294         * modules/shutdown-tests: New file.
9295         * tests/test-shutdown.c: New file.
9296
9297         Tests for module 'setsockopt'.
9298         * modules/setsockopt-tests: New file.
9299         * tests/test-setsockopt.c: New file.
9300
9301         Tests for module 'sendto'.
9302         * modules/sendto-tests: New file.
9303         * tests/test-sendto.c: New file.
9304
9305         Tests for module 'send'.
9306         * modules/send-tests: New file.
9307         * tests/test-send.c: New file.
9308
9309         Tests for module 'recvfrom'.
9310         * modules/recvfrom-tests: New file.
9311         * tests/test-recvfrom.c: New file.
9312
9313         Tests for module 'recv'.
9314         * modules/recv-tests: New file.
9315         * tests/test-recv.c: New file.
9316
9317         Tests for module 'listen'.
9318         * modules/listen-tests: New file.
9319         * tests/test-listen.c: New file.
9320
9321         Tests for module 'getsockopt'.
9322         * modules/getsockopt-tests: New file.
9323         * tests/test-getsockopt.c: New file.
9324
9325         Tests for module 'getsockname'.
9326         * modules/getsockname-tests: New file.
9327         * tests/test-getsockname.c: New file.
9328
9329         Tests for module 'getpeername'.
9330         * modules/getpeername-tests: New file.
9331         * tests/test-getpeername.c: New file.
9332
9333         Tests for module 'connect'.
9334         * modules/connect-tests: New file.
9335         * tests/test-connect.c: New file.
9336
9337         Tests for module 'bind'.
9338         * modules/bind-tests: New file.
9339         * tests/test-bind.c: New file.
9340
9341         accept4 tests: Fix for native Windows.
9342         * tests/test-accept4.c: Include sockets.h.
9343         (main): Invoke gl_sockets_startup.
9344         * modules/accept4-tests (Depends-on): Add sockets.
9345
9346         accept tests: Fix for native Windows.
9347         * tests/test-accept.c: Include sockets.h.
9348         (main): Invoke gl_sockets_startup.
9349         * modules/accept-tests (Depends-on): Add sockets.
9350
9351 2011-09-19  Bruno Haible  <bruno@clisp.org>
9352
9353         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
9354         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
9355         do...while(0).
9356         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
9357         Suggested by Paul Eggert.
9358
9359 2011-09-19  Bruno Haible  <bruno@clisp.org>
9360
9361         sched: Ensure pid_t is defined.
9362         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
9363         not define pid_t.
9364         * lib/sched.in.h: Include <sys/types.h>.
9365         * doc/posix-headers/sched.texi: Mention the pid_t problem.
9366         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9367
9368 2011-09-19  Bruno Haible  <bruno@clisp.org>
9369
9370         msvc-inval: Ensure the entire expansion is a single statement.
9371         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
9372         of braces.
9373
9374 2011-09-19  Jim Meyering  <meyering@redhat.com>
9375
9376         tests: use printf, not echo in init.sh's warn_ function
9377         * tests/init.sh (warn_): Use printf, not echo.  The latter would
9378         misbehave when given strings containing a backslash or starting
9379         with e.g., -n.  James Youngman suggested setting IFS.
9380
9381 2011-09-19  Eric Blake  <eblake@redhat.com>
9382
9383         futimens: enhance test
9384         * tests/test-futimens.h (test_futimens): Also check for EBADF on
9385         closed non-negative fd.
9386
9387         date: accept 'hence' as opposite of 'ago'
9388         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
9389         * tests/test-parse-datetime.c (main): Enhance test.
9390         Suggested by Jesse Wilson.
9391
9392 2011-09-19  Jim Meyering  <meyering@redhat.com>
9393
9394         getcwd: don't fail in a deep directory on a system without openat
9395         Before this change, getcwd would fail when called from a directory
9396         of depth PATH_MAX / 3 or greater.  That was due to the fact that
9397         the non-openat implementation used "..", "../..", "../../..", etc.
9398         to access ancestor directories.  With too many, that string would
9399         be longer than PATH_MAX.
9400         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
9401         using gnulib's openat replacement.
9402         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
9403         we're using the replacement function.
9404
9405 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
9406
9407         maint.mk: avoid warnings from perl about missing files
9408         * top/maint.mk (def_sym_regex): Ignore files listed in
9409         $(gl_other_headers_) that do not exist, say because a project
9410         does not use a corresponding module.
9411
9412 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9413
9414         stat: use pathmax.h only if needed
9415         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
9416         This is better for Emacs, which does not have a mingw port and
9417         therefore can avoid the pathmax module.
9418
9419         utimens: remove dependency on dup2
9420         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
9421         to work around the Linux kernel bug.
9422         * modules/utimens (Depends-on): Remove dup2.
9423
9424 2011-09-18  Bruno Haible  <bruno@clisp.org>
9425
9426         inet_ntop, inet_pton: Look for it also in libresolv.
9427         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
9428         libnsl, search for it in libresolv.
9429         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9430         Needed on Solaris 7.
9431
9432 2011-09-18  Bruno Haible  <bruno@clisp.org>
9433
9434         accept, accept4 tests: Avoid link error on Solaris.
9435         * modules/accept-tests (Makefile.am): Link test-accept against
9436         $(LIBSOCKET).
9437         * modules/accept4-tests (Makefile.am): Link test-accept4 against
9438         $(LIBSOCKET).
9439
9440         accept4: Avoid link error on Solaris.
9441         * modules/accept4 (Link): New section.
9442
9443         socket functions: Avoid link errors on Solaris.
9444         * modules/accept (Depends-on): Add socketlib.
9445         (Link): New section.
9446         * modules/bind (Depends-on): Add socketlib.
9447         (Link): New section.
9448         * modules/connect (Depends-on): Add socketlib.
9449         (Link): New section.
9450         * modules/getpeername (Depends-on): Add socketlib.
9451         (Link): New section.
9452         * modules/getsockname (Depends-on): Add socketlib.
9453         (Link): New section.
9454         * modules/getsockopt (Depends-on): Add socketlib.
9455         (Link): New section.
9456         * modules/listen (Depends-on): Add socketlib.
9457         (Link): New section.
9458         * modules/recv (Depends-on): Add socketlib.
9459         (Link): New section.
9460         * modules/recvfrom (Depends-on): Add socketlib.
9461         (Link): New section.
9462         * modules/send (Depends-on): Add socketlib.
9463         (Link): New section.
9464         * modules/sendto (Depends-on): Add socketlib.
9465         (Link): New section.
9466         * modules/setsockopt (Depends-on): Add socketlib.
9467         (Link): New section.
9468         * modules/shutdown (Depends-on): Add socketlib.
9469         (Link): New section.
9470         * modules/socket (Depends-on): Add socketlib.
9471         (Link): New section.
9472
9473 2011-09-18  Bruno Haible  <bruno@clisp.org>
9474
9475         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
9476         * tests/test-ptsname.c (main): Terminate the test if it takes longer
9477         than 5 seconds.
9478         * modules/ptsname-tests (configure.ac): Test for alarm.
9479
9480 2011-09-18  Bruno Haible  <bruno@clisp.org>
9481
9482         posix_spawn_file_actions_add*: Fix module dependencies.
9483         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
9484         posix_spawn_file_actions_init.
9485         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
9486         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
9487
9488 2011-09-18  Bruno Haible  <bruno@clisp.org>
9489
9490         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
9491         * tests/test-rename.h (test_rename): Allow error code EEXIST.
9492         * tests/test-renameat.c (main): Likewise.
9493
9494 2011-09-18  Bruno Haible  <bruno@clisp.org>
9495
9496         Tests for module 'accept4'.
9497         * modules/accept4-tests: New file.
9498         * tests/test-accept4.c: New file.
9499
9500 2011-09-18  Bruno Haible  <bruno@clisp.org>
9501
9502         Tests for module 'accept'.
9503         * modules/accept-tests: New file.
9504         * tests/test-accept.c: New file.
9505
9506 2011-09-18  Bruno Haible  <bruno@clisp.org>
9507
9508         dup2: Support for MSVC.
9509         * lib/dup2.c: Include msvc-inval.h.
9510         (rpl_dup2): Handle invalid parameter notifications during dup2 and
9511         _get_osfhandle calls.
9512         * modules/dup2 (Depends-on): Add msvc-inval.
9513         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
9514
9515         New module 'msvc-inval'.
9516         * lib/msvc-inval.h: New file.
9517         * lib/msvc-inval.c: New file.
9518         * m4/msvc-inval.m4: New file.
9519         * modules/msvc-inval: New file.
9520
9521 2011-09-17  Bruno Haible  <bruno@clisp.org>
9522
9523         Tests for module 'pclose'.
9524         * modules/pclose-tests: New file.
9525
9526         New module 'pclose'.
9527         * lib/stdio.in.h (pclose): New declaration.
9528         * lib/pclose.c: New file.
9529         * m4/pclose.m4: New file.
9530         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
9531         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
9532         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
9533         * modules/pclose: New file.
9534         * modules/popen-tests (Depends-on): Add pclose.
9535         * modules/popen-safer-tests (Depends-on): Likewise.
9536         * doc/posix-functions/pclose.texi: Mention the new module.
9537
9538 2011-09-17  Bruno Haible  <bruno@clisp.org>
9539
9540         popen: Support for MSVC.
9541         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
9542         * lib/popen.c (popen): Provide alternate definition for native Windows.
9543         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
9544         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
9545         * modules/popen (Depends-on, configure.ac): Update condition.
9546         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
9547         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
9548         fixed.
9549
9550 2011-09-17  Bruno Haible  <bruno@clisp.org>
9551
9552         isnanl, isnand, isnanf: Work around MSVC bug.
9553         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
9554
9555 2011-09-17  Bruno Haible  <bruno@clisp.org>
9556
9557         sys_socket tests: Fix recent mistake.
9558         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
9559
9560 2011-09-17  Bruno Haible  <bruno@clisp.org>
9561
9562         putenv: Support for MSVC.
9563         * modules/putenv (Depends-on): Add environ.
9564         * lib/putenv.c (environ): Disable declaration.
9565         * lib/unistd.in.h: Update comment.
9566
9567 2011-09-17  Bruno Haible  <bruno@clisp.org>
9568
9569         math: Avoid macro redefinition warnings on MSVC.
9570         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
9571         Undefine before redefining.
9572
9573 2011-09-17  Bruno Haible  <bruno@clisp.org>
9574
9575         doc: Mention functions which are declared as macros.
9576         * doc/posix-functions/*[fl].texi: Mention that some functions are
9577         defined as macros with arguments only.
9578
9579 2011-09-17  Bruno Haible  <bruno@clisp.org>
9580
9581         Add dependencies to new dirent related modules.
9582         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
9583         * modules/fts (Depends-on): Likewise.
9584         * modules/glob (Depends-on): Likewise.
9585         * modules/savedir (Depends-on): Likewise.
9586         * modules/scandir (Depends-on): Likewise.
9587         * modules/dirent-safer (Depends-on): Add opendir, closedir.
9588         * modules/fdopendir (Depends-on): Add opendir.
9589
9590 2011-09-17  Bruno Haible  <bruno@clisp.org>
9591
9592         inet_pton: Support for MSVC on Windows Vista or newer.
9593         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
9594         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
9595         HAVE_DECL_INET_PTON is defined.
9596         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9597         On platforms with <winsock2.h>, test whether inet_pton is declared in
9598         <ws2tcpip.h>. If so, arrange to replace it.
9599         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9600         REPLACE_INET_PTON.
9601         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
9602         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
9603         (Depends-on, configure.ac): Update condition.
9604         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
9605
9606 2011-09-17  Bruno Haible  <bruno@clisp.org>
9607
9608         inet_ntop: Support for MSVC on Windows Vista or newer.
9609         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
9610         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
9611         HAVE_DECL_INET_NTOP is defined.
9612         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9613         On platforms with <winsock2.h>, test whether inet_ntop is declared in
9614         <ws2tcpip.h>. If so, arrange to replace it.
9615         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9616         REPLACE_INET_NTOP.
9617         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
9618         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
9619         (Depends-on, configure.ac): Update condition.
9620         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
9621
9622 2011-09-16  Eric Blake  <eblake@redhat.com>
9623
9624         test-fsync: yet another enhancement
9625         * tests/test-fsync.c (main): Also test behavior on read-only text
9626         file.
9627
9628 2011-09-16  Bruno Haible  <bruno@clisp.org>
9629
9630         Enhance fsync, fdatasync tests.
9631         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
9632         * tests/test-fdatasync.c (main): Likewise.
9633
9634 2011-09-16  Bruno Haible  <bruno@clisp.org>
9635
9636         Support for MSVC compiler: Ensure mode_t gets defined.
9637         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
9638         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9639         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9640         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
9641         * tests/test-fcntl-h.c: Check that mode_t is defined.
9642         * tests/test-sys_stat.c: Likewise.
9643         * tests/test-sys_types.c: Likewise.
9644         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
9645         * doc/posix-headers/sys_stat.texi: Likewise.
9646         * doc/posix-headers/sys_types.texi: Likewise.
9647
9648 2011-09-16  Bruno Haible  <bruno@clisp.org>
9649
9650         sys_stat: Support for MSVC.
9651         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
9652         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
9653         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
9654         MSVC.
9655
9656 2011-09-16  Bruno Haible  <bruno@clisp.org>
9657
9658         Support for MSVC compiler: Ensure off_t gets defined.
9659         * lib/unistd.in.h: Include <sys/types.h>.
9660         * tests/test-fcntl-h.c: Check that off_t is defined.
9661         * tests/test-sys_stat.c: Likewise.
9662         * tests/test-sys_types.c: Likewise.
9663
9664 2011-09-16  Eric Blake  <eblake@redhat.com>
9665
9666         fdatasync: port to Solaris
9667         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
9668         * modules/fdatasync (Link): Document it.
9669         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
9670
9671         fdatasync: port to MacOS X 10.7
9672         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
9673         declared.
9674         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
9675         * modules/unistd (Makefile.am): Substitute it.
9676         * lib/unistd.in.h (fdatasync): Declare on MacOS.
9677         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
9678
9679         fdatasync: minor improvements
9680         * modules/fdatasync (Depends-on): Add condition for fsync.
9681         * lib/fdatasync.c (fdatasync): Add comment.
9682         * tests/test-unistd-c++.cc: Test fdatasync.
9683
9684         unistd: update refs to newer POSIX
9685         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
9686         Suggested by Bruno Haible.
9687
9688         fdatasync: new module
9689         * modules/fsync (Description): Document difference to fdatasync.
9690         * modules/fdatasync: New module.
9691         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
9692         * lib/fdatasync.c (fdatasync): Likewise.
9693         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
9694         defaults.
9695         * modules/unistd (Makefile.am): Set witnesses.
9696         * lib/unistd.in.h (fdatasync): Declare.
9697         * MODULES.html.sh: Document it.
9698         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
9699         * modules/fdatasync-tests: New test.
9700         * tests/test-fdatasync.c: Likewise.
9701
9702 2011-09-16  Eric Blake  <eblake@redhat.com>
9703
9704         test-fsync: enhance tests
9705         * modules/fsync-tests (Depends-on): Add errno, for mingw.
9706         * tests/test-fsync.c (main): Enhance test.
9707
9708 2011-09-15  Bruno Haible  <bruno@clisp.org>
9709
9710         Support for MSVC compiler: Ensure ssize_t gets defined.
9711         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
9712         * doc/posix-headers/stdio.texi: Likewise.
9713         * modules/stdio (Depends-on): Add ssize_t.
9714         * modules/sys_socket (Depends-on): Likewise.
9715         * modules/sys_types (Depends-on): Likewise.
9716         * modules/sys_uio (Depends-on): Likewise.
9717         * modules/unistd (Depends-on): Likewise.
9718         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
9719         * tests/test-sys_types.c: Check that ssize_t is defined.
9720
9721 2011-09-14  Bruno Haible  <bruno@clisp.org>
9722
9723         Avoid using #, the m4 comment starter character, near brackets.
9724         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
9725         delimiter character in sed expressions.
9726         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9727         Suggested by Eric Blake.
9728
9729         Properly quote AC_CHECK_DECLS' 4th argument.
9730         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
9731         argument.
9732         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9733         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9734         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9735         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9736         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9737         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
9738         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
9739         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
9740         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
9741         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
9742         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
9743         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9744         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9745         * m4/isinf.m4 (gl_ISINF): Likewise.
9746         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9747         * m4/readutmp.m4 (gl_READUTMP): Likewise.
9748         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9749         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9750         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9751         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9752         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9753         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9754         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
9755         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9756         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9757         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9758         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
9759         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9760         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9761         Reported by Eric Blake.
9762
9763         Properly quote AC_CHECK_DECL's 4th argument.
9764         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
9765         argument.
9766         * m4/argp.m4 (gl_ARGP): Likewise.
9767         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9768         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9769         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9770         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9771         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
9772         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
9773         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
9774         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9775         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9776         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9777         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9778         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9779         Reported by Eric Blake.
9780
9781 2011-09-14  Eric Blake  <eblake@redhat.com>
9782
9783         opendir: avoid compile warning
9784         * lib/opendir.c (includes): Always include errno.h.
9785         Reported by Tatsuro MATSUOKA.
9786
9787 2011-09-14  Jim Meyering  <meyering@redhat.com>
9788
9789         maint.mk: sc_tight_scope: propagate failure from sub-make
9790         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
9791         Reported by Martin von Gagern.
9792
9793 2011-09-13  Bruno Haible  <bruno@clisp.org>
9794
9795         tempname: Support for MSVC.
9796         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
9797         MSVC.
9798         * modules/tempname (Depends-on): Add fcntl-h.
9799
9800 2011-09-13  Bruno Haible  <bruno@clisp.org>
9801
9802         sys_time: Support for MSVC.
9803         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
9804         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
9805         include <winsock2.h>.
9806         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
9807         function declarations that collide with POSIX.
9808         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
9809         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9810
9811 2011-09-13  Bruno Haible  <bruno@clisp.org>
9812
9813         stat: Support for MSVC.
9814         * lib/stat.c: Include pathmax.h.
9815         * modules/stat (Depends-on): Add pathmax.
9816
9817         pathmax: Support for native Windows.
9818         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
9819
9820 2011-09-12  Bruno Haible  <bruno@clisp.org>
9821
9822         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
9823         * lib/dirent.in.h (struct dirent): New type.
9824         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
9825         DT_WHT): New macros.
9826         (DIR): New type.
9827         (opendir, closedir): Declare only if the module 'opendir' is enabled.
9828         (readdir, rewinddir): New declarations.
9829         * lib/dirent-private.h: New file.
9830         * lib/opendir.c: New file.
9831         * lib/readdir.c: New file.
9832         * lib/rewinddir.c: New file.
9833         * lib/closedir.c: New file.
9834         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
9835         * m4/opendir.m4: New file.
9836         * m4/readdir.m4: New file.
9837         * m4/rewinddir.m4: New file.
9838         * m4/closedir.m4: New file.
9839         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
9840         REPLACE_CLOSEDIR here.
9841         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
9842         readdir, rewinddir are declared.
9843         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
9844         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
9845         HAVE_REWINDDIR, HAVE_CLOSEDIR.
9846         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
9847         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
9848         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
9849         * modules/opendir: New file.
9850         * modules/readdir: New file.
9851         * modules/rewinddir: New file.
9852         * modules/closedir: New file.
9853         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
9854         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
9855         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
9856         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
9857         * NEWS: Mention the 'fchdir' change.
9858
9859 2011-09-11  Bruno Haible  <bruno@clisp.org>
9860
9861         asm-underscore.m4: Support for MSVC.
9862         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
9863         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
9864
9865 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
9866
9867         Doc about crypt functions.
9868         * doc/posix-functions/crypt.texi: Expand range of glibc versions
9869         needing for _GNU_SOURCE to get crypt.
9870         * doc/posix-functions/encrypt.texi: Likewise.
9871         * doc/posix-functions/setkey.texi: Likewise.
9872
9873 2011-09-11  Bruno Haible  <bruno@clisp.org>
9874
9875         doc: Update regarding MSVC 9.
9876         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
9877         tested".
9878         * doc/posix-functions/*.texi: Update with info about MSVC 9.
9879         * doc/posix-headers/*.texi: Likewise.
9880         * doc/pastposix-functions/*.texi: Likewise.
9881         * doc/glibc-functions/*.texi: Likewise.
9882         * doc/glibc-headers/*.texi: Likewise.
9883
9884 2011-09-11  Bruno Haible  <bruno@clisp.org>
9885
9886         unistd et al.: Don't assume <unistd.h> exists.
9887         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
9888         does not exist.
9889         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
9890         exist. But include <stdlib.h>.
9891         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
9892         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
9893         symlink() does not exist.
9894         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
9895         include <io.h> instead.
9896         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
9897         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
9898         include <direct.h> instead.
9899         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9900         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9901         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
9902         <io.h> instead.
9903         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
9904         correctly if the system does not have hard links.
9905         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
9906         <direct.h> instead.
9907         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
9908         it when looking for function declarations.
9909         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
9910         <direct.h> and <io.h> instead.
9911         * doc/posix-headers/unistd.texi: More details about MSVC problem.
9912
9913 2011-09-11  Bruno Haible  <bruno@clisp.org>
9914
9915         strcase: Support for MSVC.
9916         * modules/strcase (Status, Notice): Remove obsoletion mark.
9917         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
9918         * doc/posix-functions/strncasecmp.texi: Likewise.
9919
9920         strings: Don't assume <strings.h> exists.
9921         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
9922         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
9923         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
9924         * doc/posix-headers/strings.texi: Mention the MSVC problem.
9925
9926 2011-09-11  Bruno Haible  <bruno@clisp.org>
9927
9928         dirent: Don't assume <dirent.h> exists.
9929         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
9930         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
9931         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
9932         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
9933
9934 2011-09-11  Bruno Haible  <bruno@clisp.org>
9935
9936         Fix wint_t on MSVC.
9937         * lib/wchar.in.h (wint_t): On MSVC, override it.
9938         * lib/wctype.in.h (wint_t): Likewise.
9939         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
9940         MSVC.
9941         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
9942         * doc/posix-headers/wctype.texi: Likewise.
9943
9944 2011-09-11  Bruno Haible  <bruno@clisp.org>
9945
9946         sys_types: Fix typo.
9947         * lib/sys_types.in.h: Fix typo in comment.
9948         Reported by Paul Eggert.
9949
9950         Support for MSVC compiler: Ensure size_t gets defined.
9951         * modules/strings (Depends-on): Add 'sys_types'.
9952         * modules/sys_uio (Depends-on): Likewise.
9953         * lib/sys_uio.in.h: Update comment.
9954
9955         C++ tests for module 'sys_types'.
9956         * modules/sys_types-c++-tests: New file.
9957         * tests/test-sys_types-c++.cc: New file.
9958
9959         Tests for module 'sys_types'.
9960         * modules/sys_types-tests: New file.
9961         * tests/test-sys_types.c: New file.
9962
9963         New module 'sys_types'.
9964         * lib/sys_types.in.h: New file.
9965         * m4/sys_types_h.m4: New file.
9966         * modules/sys_types: New file.
9967         * doc/posix-headers/sys_types.texi: Mention the new module and the
9968         size_t problem on MSVC 9.
9969
9970 2011-09-11  Bruno Haible  <bruno@clisp.org>
9971
9972         Support for MSVC compiler: Avoid division by a literal 0.
9973         * lib/math.in.h (NAN): Define through a function call also on MSVC.
9974         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
9975         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
9976         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
9977         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
9978         * tests/infinity.h: New file.
9979         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
9980         on MSVC.
9981         * tests/test-ceilf1.c: Include infinity.h.
9982         (main): Use Infinityf.
9983         * tests/test-ceil1.c: Include infinity.h.
9984         (main): Use Infinityd.
9985         * tests/test-ceill.c: Include infinity.h.
9986         (main): Use Infinityl.
9987         * tests/test-dprintf-posix.c: Include infinity.h.
9988         (test_function): Use Infinityd.
9989         * tests/test-floorf1.c: Include infinity.h.
9990         (main): Use Infinityf.
9991         * tests/test-floor1.c: Include infinity.h.
9992         (main): Use Infinityd.
9993         * tests/test-floorl.c: Include infinity.h.
9994         (main): Use Infinityl.
9995         * tests/test-fprintf-posix.c: Include infinity.h.
9996         (test_function): Use Infinityd.
9997         * tests/test-frexp.c: Include infinity.h.
9998         (main): Use Infinityd.
9999         * tests/test-frexpl.c: Include infinity.h.
10000         (main): Use Infinityl.
10001         * tests/test-isfinite.c: Include infinity.h.
10002         (test_isfinitef): Use Infinityf.
10003         (test_isfinited): Use Infinityd.
10004         (test_isfinitel): Use Infinityl.
10005         * tests/test-isinf.c: Include infinity.h.
10006         (test_isinff): Use Infinityf.
10007         (test_isinfd): Use Infinityd.
10008         (test_isinfl): Use Infinityl.
10009         * tests/test-isnan.c: Include infinity.h.
10010         (test_float): Use Infinityf.
10011         (test_double): Use Infinityd.
10012         (test_long_double): Use Infinityl.
10013         * tests/test-isnanf.h: Include infinity.h.
10014         (main): Use Infinityf.
10015         * tests/test-isnand.h: Include infinity.h.
10016         (main): Use Infinityd.
10017         * tests/test-isnanl.h: Include infinity.h.
10018         (main): Use Infinityl.
10019         * tests/test-ldexpl.c: Include infinity.h.
10020         (main): Use Infinityl.
10021         * tests/test-printf-posix.h: Include infinity.h.
10022         (test_function): Use Infinityd.
10023         * tests/test-roundf1.c: Include infinity.h.
10024         (main): Use Infinityf.
10025         * tests/test-round1.c: Include infinity.h.
10026         (main): Use Infinityd.
10027         * tests/test-roundl.c: Include infinity.h.
10028         (main): Use Infinityl.
10029         * tests/test-signbit.c: Include infinity.h.
10030         (test_signbitf): Use Infinityf.
10031         (test_signbitd): Use Infinityd.
10032         (test_signbitl): Use Infinityl.
10033         * tests/test-snprintf-posix.h: Include infinity.h.
10034         (test_function): Use Infinityd, Infinityl.
10035         * tests/test-sprintf-posix.h: Include infinity.h.
10036         (test_function): Use Infinityd, Infinityl.
10037         * tests/test-truncf1.c: Include infinity.h.
10038         (main): Use Infinityf.
10039         * tests/test-trunc1.c: Include infinity.h.
10040         (main): Use Infinityd.
10041         * tests/test-truncl.c: Include infinity.h.
10042         (main): Use Infinityl.
10043         * tests/test-vasnprintf-posix.c: Include infinity.h.
10044         (test_function): Use Infinityd, Infinityl.
10045         * tests/test-vasprintf-posix.c: Include infinity.h.
10046         (test_function): Use Infinityd, Infinityl.
10047         * modules/ceilf-tests (Files): Add tests/infinity.h.
10048         * modules/ceil-tests (Files): Likewise.
10049         * modules/ceill-tests (Files): Likewise.
10050         * modules/dprintf-posix-tests (Files): Likewise.
10051         * modules/floorf-tests (Files): Likewise.
10052         * modules/floor-tests (Files): Likewise.
10053         * modules/floorl-tests (Files): Likewise.
10054         * modules/fprintf-posix-tests (Files): Likewise.
10055         * modules/frexp-tests (Files): Likewise.
10056         * modules/frexp-nolibm-tests (Files): Likewise.
10057         * modules/frexpl-tests (Files): Likewise.
10058         * modules/frexpl-nolibm-tests (Files): Likewise.
10059         * modules/isfinite-tests (Files): Likewise.
10060         * modules/isinf-tests (Files): Likewise.
10061         * modules/isnan-tests (Files): Likewise.
10062         * modules/isnanf-tests (Files): Likewise.
10063         * modules/isnanf-nolibm-tests (Files): Likewise.
10064         * modules/isnand-tests (Files): Likewise.
10065         * modules/isnand-nolibm-tests (Files): Likewise.
10066         * modules/isnanl-tests (Files): Likewise.
10067         * modules/isnanl-nolibm-tests (Files): Likewise.
10068         * modules/ldexpl-tests (Files): Likewise.
10069         * modules/printf-posix-tests (Files): Likewise.
10070         * modules/roundf-tests (Files): Likewise.
10071         * modules/round-tests (Files): Likewise.
10072         * modules/roundl-tests (Files): Likewise.
10073         * modules/signbit-tests (Files): Likewise.
10074         * modules/snprintf-posix-tests (Files): Likewise.
10075         * modules/sprintf-posix-tests (Files): Likewise.
10076         * modules/truncf-tests (Files): Likewise.
10077         * modules/trunc-tests (Files): Likewise.
10078         * modules/truncl-tests (Files): Likewise.
10079         * modules/vasnprintf-posix-tests (Files): Likewise.
10080         * modules/vasprintf-posix-tests (Files): Likewise.
10081         * modules/vdprintf-posix-tests (Files): Likewise.
10082         * modules/vfprintf-posix-tests (Files): Likewise.
10083         * modules/vprintf-posix-tests (Files): Likewise.
10084         * modules/vsnprintf-posix-tests (Files): Likewise.
10085         * modules/vsprintf-posix-tests (Files): Likewise.
10086         * modules/xprintf-posix-tests (Files): Likewise.
10087
10088 2011-09-11  Bruno Haible  <bruno@clisp.org>
10089
10090         Ensure pid_t gets defined.
10091         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
10092         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
10093         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
10094         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10095         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
10096         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
10097         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
10098         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10099         * tests/test-fcntl-h.c: Check that pid_t is defined.
10100         * tests/test-sched.c: Likewise.
10101         * tests/test-termios.c: Likewise.
10102         * tests/test-time.c: Likewise.
10103         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
10104         * doc/posix-headers/signal.texi: Likewise.
10105         * doc/posix-headers/sys_types.texi: Likewise.
10106         * doc/posix-headers/time.texi: Likewise.
10107
10108 2011-09-11  Bruno Haible  <bruno@clisp.org>
10109
10110         acl: Fix compilation on Solaris 10 (older version).
10111         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
10112         of ACE_EVERYONE.
10113         * lib/set-mode-acl.c (qset_acl): Likewise.
10114         Reported by Christian Jullien <eligis@orange.fr>.
10115
10116 2011-09-10  Bruno Haible  <bruno@clisp.org>
10117
10118         iconv, unsetenv: Add support for MSVC compiler.
10119         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
10120         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
10121
10122 2011-09-10  Bruno Haible  <bruno@clisp.org>
10123
10124         *printf: Add support for MSVC compiler.
10125         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
10126         handles the exception caused by the %n directive. When cross-compiling,
10127         guess no on native Windows.
10128         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10129         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
10130         emulate it through vsnprintf.
10131         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
10132         * doc/posix-functions/dprintf.texi: Update documentation regarding
10133         MSVC 9.
10134         * doc/posix-functions/fprintf.texi: Likewise.
10135         * doc/posix-functions/printf.texi: Likewise.
10136         * doc/posix-functions/snprintf.texi: Likewise.
10137         * doc/posix-functions/sprintf.texi: Likewise.
10138         * doc/posix-functions/swprintf.texi: Likewise.
10139         * doc/posix-functions/vdprintf.texi: Likewise.
10140         * doc/posix-functions/vfprintf.texi: Likewise.
10141         * doc/posix-functions/vprintf.texi: Likewise.
10142         * doc/posix-functions/vsnprintf.texi: Likewise.
10143         * doc/posix-functions/vsprintf.texi: Likewise.
10144         * doc/glibc-functions/asprintf.texi: Likewise.
10145         * doc/glibc-functions/obstack_printf.texi: Likewise.
10146         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10147         * doc/glibc-functions/vasprintf.texi: Likewise.
10148
10149 2011-09-10  Bruno Haible  <bruno@clisp.org>
10150
10151         nocrash: Add support for native Windows.
10152         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
10153
10154 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
10155             Bruno Haible  <bruno@clisp.org>
10156
10157         absolute-header, include-next: Add support for MSVC compiler.
10158         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
10159         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
10160         directory separator in #line directives.
10161         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
10162         recognize also backslash as directory separator in #line directives.
10163
10164 2011-09-08  Jim Meyering  <meyering@redhat.com>
10165
10166         maint.mk: mark the post-release commit log with "maint: " prefix
10167         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
10168         one-line commit-log summary.
10169
10170 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
10171             Bruno Haible  <bruno@clisp.org>
10172
10173         Doc about crypt functions.
10174         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
10175         systems.
10176         * doc/posix-functions/encrypt.texi: Likewise.
10177         * doc/posix-functions/setkey.texi: Likewise.
10178
10179 2011-09-08  Simon Josefsson  <simon@josefsson.org>
10180
10181         * lib/gc.h: Fix copyright header.
10182
10183 2011-09-07  Bruno Haible  <bruno@clisp.org>
10184
10185         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
10186         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
10187         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
10188
10189 2011-09-07  Bruno Haible  <bruno@clisp.org>
10190
10191         openat: Work around compilation error with OSF/1 5.1 DTK cc.
10192         * lib/fopen.c: Use different syntax for include of <stdio.h>.
10193         * lib/freopen.c: Likewise.
10194         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
10195         * lib/lstat.c: Likewise.
10196         * lib/stat.c: Likewise.
10197         * lib/open.c: Use different syntax for include of <fcntl.h>.
10198         * lib/openat.c: Include fcntl.h again, explicitly.
10199
10200 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
10201
10202         parse-datetime: document the newly accepted format
10203         * doc/parse-datetime.texi (Combined date and time of day items):
10204         New section.
10205
10206 2011-09-06  Bruno Haible  <bruno@clisp.org>
10207
10208         acl: Fix a test failure on newer Solaris 10 with ZFS.
10209         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
10210         ENOSYS as no ACL.
10211         Reported by Jim Meyering.
10212
10213 2011-09-06  Bruno Haible  <bruno@clisp.org>
10214
10215         acl: Update for AIX >= 5.3 with NFS.
10216         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
10217         ENOSYS as no ACL.
10218
10219         acl: Fix a test failure on AIX >= 5.3 with NFS.
10220         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
10221         as no ACL.
10222
10223 2011-09-06  Bruno Haible  <bruno@clisp.org>
10224
10225         acl: Fix a test failure on IRIX 6.5 with NFS.
10226         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
10227         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
10228         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
10229         * lib/copy-acl.c (qcopy_acl): Likewise.
10230
10231 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
10232
10233         openat: port to AIX 7.1 with large files
10234         AIX 7.1 does a "#define openat open64at" if large files are in use,
10235         so we can't simply #undef openat.  Use the orig_openat trick (similar
10236         to orig_open in lib/open.c) to work around the problem.  Problem
10237         reported by Kevin Brott for GNU tar, in the thread containing
10238         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
10239         * lib/openat.c (__need_system_fcntl_h): Define first.
10240         Include <fcntl.h> and <sys/types.h> before undefining.
10241         (orig_openat) [HAVE_OPENAT]: New inline function.
10242         (openat) [HAVE_OPENAT]: Do not undef.
10243         (rpl_openat): Use orig_openat, not openat.
10244
10245 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10246             Bruno Haible  <bruno@clisp.org>
10247
10248         acl: Avoid errors on NonStop Kernel.
10249         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
10250         ENOTSUP errors.
10251
10252 2011-09-05  Bruno Haible  <bruno@clisp.org>
10253
10254         acl: Clean up Solaris code.
10255         * lib/acl-internal.h: Remove no-op #if.
10256         * lib/file-has-acl.c: Likewise.
10257         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
10258         * lib/copy-acl.c (qcopy_acl): Likewise.
10259
10260 2011-09-05  Bruno Haible  <bruno@clisp.org>
10261
10262         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
10263         binaries built on the original Solaris 10.
10264         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
10265         trivial.
10266
10267 2011-09-05  Bruno Haible  <bruno@clisp.org>
10268
10269         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10270         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
10271         10.
10272         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
10273         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
10274         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
10275         instead of acl_get, facl_get, acl_set, facl_set.
10276
10277 2011-09-05  Bruno Haible  <bruno@clisp.org>
10278
10279         copy-file: Try unit tests on more file systems.
10280         * tests/test-copy-file-1.sh: New file.
10281         * tests/test-copy-file-2.sh: New file.
10282         * modules/copy-file-tests (Files): Add them.
10283         (Makefile.am): Add them to TESTS.
10284
10285         acl: Try unit tests on more file systems.
10286         * tests/test-file-has-acl-1.sh: New file.
10287         * tests/test-file-has-acl-2.sh: New file.
10288         * tests/test-set-mode-acl-1.sh: New file.
10289         * tests/test-set-mode-acl-2.sh: New file.
10290         * tests/test-copy-acl-1.sh: New file.
10291         * tests/test-copy-acl-2.sh: New file.
10292         * modules/acl-tests (Files): Add them.
10293         (Makefile.am): Add them to TESTS.
10294
10295 2011-09-04  Bruno Haible  <bruno@clisp.org>
10296
10297         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10298         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
10299         10.
10300         (OLD_ALLOW, OLD_DENY): New macros.
10301         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
10302         ACE_ACCESS_ALLOWED_ACE_TYPE.
10303         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
10304         ACE_ACCESS_DENIED_ACE_TYPE.
10305         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
10306         (NEW_ACE_EXECUTE): Fix value.
10307         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
10308         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
10309         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
10310         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
10311         NEW_ACE_SYNCHRONIZE): New macros.
10312         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
10313         instead of acl_fromtext, acl_set, facl_set.
10314         Fixes a coreutils/tests/cp/perm failure.
10315
10316 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
10317
10318         openat: test for fstatat (..., 0) bug
10319         Further testing with tar suggests that fstatat (..., 0)
10320         does not work in general, on AIX 7.1; see
10321         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
10322         So, give up entirely on AIX 7.1's fstatat, and fall back on our
10323         replacement fstatat (which is what older AIX releases were using
10324         anyway).
10325         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
10326         use is now changed to orig_fstatat.  This was probably the right
10327         thing to do anyway.
10328         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
10329         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
10330         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
10331         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
10332         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
10333         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
10334         if the bug is found.
10335
10336         openat: test for fstatat (AT_FDCWD, ..., 0) bug
10337         This tests for another fstatat bug on AIX 7.1:
10338         fstatat (AT_FDCWD, ..., 0) does not work.  See
10339         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
10340         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
10341         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
10342         (rpl_fstatat): Adjust so that it works around either (or both)
10343         bugs if present.
10344         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
10345
10346 2011-09-03  Karl Berry  <karl@gnu.org>
10347
10348         * doc/regex.texi (Character Class Operators): Avoid literal ":"
10349         in index entries.
10350
10351 2011-09-02  Bruno Haible  <bruno@clisp.org>
10352
10353         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
10354         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
10355         values of AR, ARFLAGS, RANLIB.
10356         Reported by John W. Eaton <jwe@gnu.org> for Octave.
10357
10358 2011-09-02  Bruno Haible  <bruno@clisp.org>
10359
10360         Find 'ar' program that fits with --host argument.
10361         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
10362
10363 2011-09-02  Bruno Haible  <bruno@clisp.org>
10364
10365         tests: init.sh: Support any non-GNU diff.
10366         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
10367         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
10368         Solaris 8.
10369
10370 2011-09-02  Bruno Haible  <bruno@clisp.org>
10371
10372         tests: init.sh: work also with any non-GNU diff that supports -u
10373         * tests/init.sh: Relax check for diff -u support.
10374         Rather than checking for GNU diff via --version, simply check
10375         for support for -u itself.  Useful at least on OpenBSD 4.9,
10376         AIX 7.1, IRIX 6.5, and Solaris 10.
10377
10378 2011-09-01  Bruno Haible  <bruno@clisp.org>
10379
10380         strtoimax, strtoumax: Document problem on HP-UX 11.
10381         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
10382         * doc/posix-functions/strtoumax.texi: Likewise.
10383
10384 2011-09-01  Bruno Haible  <bruno@clisp.org>
10385
10386         strtoumax: Avoid link error on OSF/1 with DTK cc.
10387         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
10388         defined as a function.
10389         * modules/strtoumax (Depends-on, configure.ac): Test only whether
10390         strtoumax is defined, not whether it is declared.
10391
10392 2011-09-01  Bruno Haible  <bruno@clisp.org>
10393
10394         strtoimax: Avoid link error on OSF/1 with DTK cc.
10395         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
10396         defined as a function.
10397         * modules/strtoimax (Depends-on, configure.ac): Test only whether
10398         strtoimax is defined, not whether it is declared.
10399
10400 2011-09-01  Bruno Haible  <bruno@clisp.org>
10401
10402         imaxdiv: Avoid link error on OSF/1 with DTK cc.
10403         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
10404         as a function.
10405         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
10406         whether it is declared.
10407
10408 2011-09-01  Bruno Haible  <bruno@clisp.org>
10409
10410         imaxabs: Avoid link error on OSF/1 with DTK cc.
10411         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
10412         as a function.
10413         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
10414         whether it is declared.
10415
10416 2011-09-01  Bruno Haible  <bruno@clisp.org>
10417
10418         Tests for module 'strtoumax'.
10419         * modules/strtoumax-tests: New file.
10420         * tests/test-strtoumax.c: New file.
10421
10422         Tests for module 'strtoimax'.
10423         * modules/strtoimax-tests: New file.
10424         * tests/test-strtoimax.c: New file.
10425
10426         Tests for module 'imaxdiv'.
10427         * modules/imaxdiv-tests: New file.
10428         * tests/test-imaxdiv.c: New file.
10429
10430         Tests for module 'imaxabs'.
10431         * modules/imaxabs-tests: New file.
10432         * tests/test-imaxabs.c: New file.
10433
10434 2011-09-01  Bruno Haible  <bruno@clisp.org>
10435
10436         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
10437         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
10438         pthread_create.
10439
10440 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10441
10442         openat: work around AIX 7.1 fstatat issue
10443         This should fix the problem that was not properly fixed
10444         in the previous change, dated 2011-08-30.
10445         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
10446         __need_system_stat_h defined.
10447         (orig_fstatat) [HAVE_FSTATAT]: New function.
10448         (rpl_fstatat): Go back to the old way of doing things,
10449         except call orig_fstatat instead of fstatat.
10450         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
10451         Remove unnecessary check whether fstatat fills in st_size etc.
10452
10453 2011-09-01  Bruno Haible  <bruno@clisp.org>
10454
10455         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
10456         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
10457         just include the system's header.
10458
10459 2011-08-31  Jim Meyering  <meyering@redhat.com>
10460
10461         tests: avoid spurious assertion failure in test-float.c on ppc64
10462         * tests/test-float.c (test_long_double): Comment out an assertion,
10463         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
10464         with gcc-4.4.4.
10465
10466         maint: indent with spaces, not TABs
10467         I need to get in the habit of running gnulib's "make check".
10468         Both of these would have been caught.
10469         * m4/largefile.m4: Indent with spaces, not TABs.
10470         * lib/parse-datetime.y (iso_8601_time): Likewise.
10471         Spotted by Pádraig Brady.
10472
10473         test-parse-datetime.c: accommodate a relatively strict gcc warning
10474         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
10475         to avoid a warning from gcc's -Werror=missing-declarations.
10476         Insert a few spaces-before-funcall-parenthesis.
10477
10478 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
10479
10480         parse-datetime: accept ISO 8601 date and time rep with "T" separator
10481         The parser now accepts ISO 8601 date-time strings with "T" as the
10482         separator.  It has long parsed dates like "2004-02-29 16:21:42"
10483         with a space between the date and time strings.  Now it also parses
10484         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
10485         variants like "2004-02-29T16:21:42.333-07:00"
10486         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
10487         of day representation using the 'T' separator character.
10488         * doc/parse-datetime.texi (General date syntax): replace use of
10489         deprecated --iso-8601 option with --rfc-3339 in example of date
10490         command output formats that can be parsed.
10491         * tests/test-parse-datetime.c (tm_diff): New function, taken from
10492         lib/parse-datetime.y.
10493         (gmt_offset): New function.
10494         (main): Add additional test cases to validate ISO8601 extended
10495         date and time of day parsing.
10496
10497 2011-08-31  Bruno Haible  <bruno@clisp.org>
10498
10499         freopen: Documentation.
10500         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
10501         name.
10502         Reported by Claudio Bley <claudio.bley@gmail.com>.
10503
10504 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
10505
10506         freopen: Don't crash if the filename argument is NULL.
10507         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
10508         NULL.
10509
10510 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10511
10512         openat: work around AIX 7.1 fstatat bug
10513         Problem reported by Kevin Brott for GNU tar, in the thread containing
10514         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
10515         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
10516         FSTATAT_ST_SIZE_ETC_BROKEN.
10517         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
10518         rpl_fstatat.
10519         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
10520         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
10521         AC_CHECK_FUNCS_ONCE for fstatat.
10522         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
10523         fchmodat, mkdirat, openat and unlinkat.
10524
10525 2011-08-30  Bruno Haible  <bruno@clisp.org>
10526
10527         Avoid endless recursions if config.h includes some header files.
10528         * lib/fopen.c (__need_FILE): Define already before including config.h.
10529         * lib/freopen.c (__need_FILE): Likewise.
10530         * lib/open.c (__need_system_fcntl_h): Likewise.
10531         * lib/stat.c (__need_system_sys_stat_h): Likewise.
10532         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
10533         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10534
10535 2011-08-25  Karl Berry  <karl@gnu.org>
10536
10537         * config/srclist.txt (ylwrap): new try.
10538         * build-aux/ylwrap: new file.
10539
10540 2011-08-23  Bruno Haible  <bruno@clisp.org>
10541
10542         tmpdir: Use a good default directory on native Windows.
10543         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
10544         (P_tmpdir): Default to _P_tmpdir on native Windows.
10545         (path_search): On native Windows, try the value returned by GetTempPath
10546         before trying P_tmpdir.
10547         * modules/tmpdir (Depends-on): Add pathmax.
10548         Suggested by John Darrington <john@darrington.wattle.id.au>.
10549
10550 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
10551
10552         doc: fix typo in README-release
10553         * top/README-release: Capitalize first word of a sentence.
10554
10555 2011-08-19  Jim Meyering  <meyering@redhat.com>
10556
10557         fts: do not exhaust memory when processing million-entry directories
10558         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
10559         directory would require about 256*N bytes of memory.  Thus, it was
10560         easy to construct a directory too large to be processed by any of
10561         those tools.  With this change, fts' maximum memory utilization is
10562         now limited to around 30MB.
10563         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
10564         (fts_read): When we've processed the final entry (i.e., when
10565         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
10566         using the parent entry to read any remaining entries.  Dispatch
10567         depending on what fts_build returns:
10568         - NULL+stop, aka failure: stop
10569         - NULL otherwise: move up in the dir hierarchy
10570         - non-NULL: handle this new entry
10571         (fts_build): Declare and use new local, continue_readdir.
10572         Prepare to be called from fts_read, when the entries
10573         from a partially-read directory have just been exhausted.
10574         In that case, we'll skip the opendir and instead use the parent's
10575         fts_dirp and derive dir_fd from that.
10576         Finally, in the readdir loop, if we read max_entries entries,
10577         exit the loop ensuring *not* to call closedir.  This is required
10578         so that fts_dirp can be reused on a subsequent call.
10579         Prompted by Ben England's report of memory exhaustion in find
10580         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
10581
10582         maint: fts: move decl of `dp' down into while loop; split a long line
10583         * lib/fts.c (fts_build): No semantic change.
10584
10585         fts: add/use new struct member, fts_dirp
10586         We are about to use this to manage any directory with
10587         too many entries to read all of them into memory at once.
10588         To do that, we'll need to save the DIR* pointer in each
10589         affected FTSENT struct.
10590         * lib/fts_.h: Include <dirent.h>.
10591         (struct FTSENT) [fts_dirp]: New member.
10592         * lib/fts.c (closedir_and_clear): Define.
10593         Use it in place of closedir so that we are sure to
10594         clear the new fts_dirp member when done with it.
10595         (fts_alloc): Initialize the new member.
10596         (fts_lfree): Free, if needed.
10597
10598         maint: fts: give __opendir2 a new parameter and rename
10599         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
10600         than surreptitiously using sole caller's "dir_fd".
10601         (fts_opendir): Rename from __opendir2.
10602
10603         maint: fts.c: remove __opendir2's now-unused parameter, oflag
10604         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
10605
10606         maint: fts.c: correct off-by-one indentation
10607         * lib/fts.c (fts_build): Correct indentation, change style
10608         of a couple of block comments, and bracing style.
10609
10610         maint: fts.c: move __opendir2 #define "up" out of function body
10611         * lib/fts.c (__opendir2): Move "up".  No semantic change.
10612
10613         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
10614         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
10615         out for a long time and besides was useful only on BSD systems.
10616
10617 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
10618
10619         regex: port to Stratus OpenVOS
10620         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
10621         define to empty, rather than attempting nonportable optimizations.
10622         Problem reported by Paul Green in:
10623         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
10624         and fix suggested by Eric Blake in:
10625         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
10626
10627 2011-08-17  Eric Blake  <eblake@redhat.com>
10628
10629         getcwd: fix test failures on mingw
10630         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
10631         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
10632         test if long directory cannot be created, and allow mingw errno.
10633
10634         getcwd-lgpl: fix m4 to match relaxed test for BSD
10635         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
10636         (gl_FUNC_GETCWD_SIGNATURE): New macro.
10637         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
10638         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
10639         signature problem.
10640
10641         getcwd: fix compilation on mingw64
10642         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
10643         getcwd.
10644         Reported by Marc-André Lureau.
10645
10646         pipe2: silence compiler warning
10647         * lib/pipe2.c (pipe2): Hide label if it is not used.
10648
10649 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
10650
10651         relocatable-prog: fix link error
10652         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
10653         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
10654         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
10655         into modules/relocatable-lib without noticing that
10656         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
10657         also needs to build relocatable.c.
10658
10659 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
10660
10661         getaddrinfo: fix sh typo in gai_strerrorA decl checking
10662         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
10663         shell code: it contained a 'break' that was not in a loop.
10664         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
10665         via a shell-language loop; this may have been true in old Autoconf
10666         versions, but it's not true in Autoconf 2.68.  I found this bug
10667         when testing coreutils git on Solaris 8, whose shell complains
10668         about the syntax error.
10669
10670 2011-08-12  Simon Josefsson  <simon@josefsson.org>
10671
10672         * lib/base64.c: Fix comment to reference RFC 4648.
10673         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
10674         <gvtulder@gmail.com>.
10675
10676 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
10677
10678         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
10679
10680         po/Makefile.in.in: fix make -q problem
10681         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
10682         rule, since there's no file named 'check-macro-version' and its
10683         use as a file breaks make -q.
10684         (all): Don't depend on check-macro-version.
10685         (CHECK_MACRO_VERSION): New macro.
10686         (stamp-po): Use it.
10687
10688         configmake: fix make -q problem
10689         * modules/configmake (configmake.h): Update configmake.h's time stamp
10690         even if the file does not change.  Otherwise, 'make -q' fails.
10691         Problem reported by Simon Josefsson in
10692         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
10693
10694 2011-08-11  Jim Meyering  <meyering@redhat.com>
10695
10696         git-version-gen: correct the advice in a comment
10697         * build-aux/git-version-gen: Correct comment.
10698         Don't recommend to list .tarball-version in .gitignore.
10699
10700 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10701
10702         base64: fix off-by-one buffer size bug
10703         Problem and (trivial) fix reported by Gijs van Tulder in
10704         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
10705         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
10706         * tests/test-base64.c (main): Catch the bug.
10707
10708 2011-08-10  Eric Blake  <eblake@redhat.com>
10709
10710         closein: correct comments
10711         * lib/closein.c (close_stdin): Improve comments.
10712
10713 2011-08-09  Bruno Haible  <bruno@clisp.org>
10714
10715         More tests for 'fseeko'.
10716         * tests/test-fseeko3.c: New file, from Eric Blake.
10717         * tests/test-fseeko3.sh: New file.
10718         * modules/fseeko-tests (Files): Add them.
10719         (TESTS): Add test-fseeko3.sh.
10720         (check_PROGRAMS): Add test-fseeko3.
10721
10722 2011-08-09  Eric Blake  <eblake@redhat.com>
10723
10724         fseeko: remove unneeded hack
10725         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
10726
10727         fseeko: fix bug on glibc
10728         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
10729         Reported by John W. Eaton.
10730
10731 2011-08-08  Bruno Haible  <bruno@clisp.org>
10732
10733         unictype/base: Fix interoperability with preinstalled libunistring.
10734         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
10735         Reported by Simon Josefsson.
10736
10737 2011-08-08  Bruno Haible  <bruno@clisp.org>
10738
10739         iswblank: Detect declaration correctly.
10740         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
10741         AC_CHECK_DECLS invocation.
10742
10743 2011-08-08  Bruno Haible  <bruno@clisp.org>
10744
10745         tcgetsid: Detect declaration correctly.
10746         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
10747         AC_CHECK_DECLS invocation.
10748         Reported by Simon Josefsson.
10749
10750 2011-08-08  Eric Blake  <eblake@redhat.com>
10751
10752         largefile: fix typo that regressed large file support
10753         * modules/largefile (configure.ac-early): Fix section name.
10754
10755 2011-08-06  Karl Berry  <karl@gnu.org>
10756
10757         * MODULES.html.sh (func_all_files): _Noreturn is no longer
10758         a separate module.
10759
10760 2011-08-05  Simon Josefsson  <simon@josefsson.org>
10761
10762         openat: Fix warnings and commens when building unlinkat.c on Hurd.
10763         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
10764         get prototype for free.
10765
10766 2011-08-04  Bruno Haible  <bruno@clisp.org>
10767
10768         Tests for module 'pathmax'.
10769         * modules/pathmax-tests: New file.
10770         * tests/test-pathmax.c: New file.
10771
10772         canonicalize-lgpl: Support larger filenames on the Hurd.
10773         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
10774         Reported by Paul Eggert.
10775
10776         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
10777         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
10778         * lib/chdir-long.h: Include pathmax.h.
10779         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
10780         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
10781         (PATH_MAX): Remove code that is done by pathmax.h.
10782         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
10783         * lib/tmpfile.c: Add a comment.
10784         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
10785         * modules/chdir-long (Depends-on): Add pathmax.
10786         * modules/getcwd (Depends-on): Add pathmax.
10787         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
10788         is not defined.
10789         * doc/posix-headers/limits.texi: Mention the pathmax module.
10790         * NEWS: Mention the change.
10791
10792 2011-08-02  Bruno Haible  <bruno@clisp.org>
10793
10794         pthread_sigmask: Actually use results of gl_THREADLIB.
10795         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
10796         gl_THREADLIB, not gl_[]THREADLIB.
10797         Reported by Eric Blake.
10798
10799 2011-08-02  Jim Meyering  <meyering@redhat.com>
10800
10801         maint.mk: relax the default _gl_TS_function_match regexp
10802         * top/maint.mk (_gl_TS_function_match): Don't require at least one
10803         space between function name and "(" in an "extern" declaration.
10804         That would fail to match a decl with no space there: extern void foo();
10805
10806 2011-07-31  Iain Nicol  <iain@thenicols.net>
10807
10808         git-version-gen: document that EXTRA_DIST must include .version
10809         * build-aux/git-version-gen: In the how-to-use comment, document
10810         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
10811         will fail when run from an unpacked distribution tarball.
10812
10813 2011-08-01  Bruno Haible  <bruno@clisp.org>
10814
10815         wctype-h: Fix last change.
10816         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
10817         REPLACE_TOWLOWER to 0.
10818         Reported by Sam Steingold <sds@gnu.org>.
10819
10820 2011-07-31  Bruno Haible  <bruno@clisp.org>
10821
10822         frexpl: Update autoconf test.
10823         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
10824         according to changes of 2011-06-20.
10825
10826 2011-07-31  Bruno Haible  <bruno@clisp.org>
10827
10828         sys_utsname: Add support for Minix.
10829         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
10830         <sys/utsname.h>.
10831         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10832         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
10833
10834 2011-07-31  Bruno Haible  <bruno@clisp.org>
10835
10836         strings: Add support for Minix.
10837         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
10838         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10839         * doc/posix-headers/strings.texi: Document the Minix problem.
10840
10841 2011-07-31  Bruno Haible  <bruno@clisp.org>
10842
10843         wctype-h: Add support for Minix.
10844         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
10845         REPLACE_TOWLOWER.
10846         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
10847         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
10848         REPLACE_ISWCNTRL.
10849
10850 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
10851
10852         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
10853         This is a performance improvement for 64-bit hosts: it causes the
10854         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
10855
10856 2011-07-31  Bruno Haible  <bruno@clisp.org>
10857
10858         stdioext: Add support for Minix.
10859         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
10860         * lib/fpurge.c (fpurge): Likewise.
10861         * lib/freadahead.c (freadahead): Likewise.
10862         * lib/freadable.c (freadable): Likewise.
10863         * lib/freading.c (freading): Likewise.
10864         * lib/freadptr.c (freadptr): Likewise.
10865         * lib/freadseek.c (freadptrinc): Likewise.
10866         * lib/fseeko.c (rpl_fseeko): Likewise.
10867         * lib/fseterr.c (fseterr): Likewise.
10868         * lib/fwritable.c (fwritable): Likewise.
10869         * lib/fwriting.c (fwriting): Likewise.
10870         * lib/fflush.c (clear_ungetc_buffer): Update comment.
10871         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
10872
10873 2011-07-31  Bruno Haible  <bruno@clisp.org>
10874
10875         errno: Port to Minix.
10876         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
10877         ECONNABORTED are defined.
10878         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
10879         GNULIB_defined_ECONNABORTED): New macros.
10880         * lib/strerror-override.h (strerror_override): Test also
10881         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
10882         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
10883         ECONNABORTED.
10884         * doc/posix-headers/errno.texi: Mention the Minix problem.
10885
10886 2011-07-31  Bruno Haible  <bruno@clisp.org>
10887
10888         Work around declaration collisions on Minix.
10889         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
10890         defined, set REPLACE_MBSINIT.
10891         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
10892         defined, set REPLACE_MBRTOWC.
10893         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
10894         set REPLACE_MBRLEN.
10895         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
10896         defined, set REPLACE_MBSRTOWCS.
10897         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
10898         defined, set REPLACE_WCRTOMB.
10899         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
10900         defined, set REPLACE_WCSRTOMBS.
10901
10902 2011-07-31  Bruno Haible  <bruno@clisp.org>
10903
10904         Add support for Minix with ACK compiler.
10905         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
10906         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
10907         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
10908
10909 2011-07-31  Bruno Haible  <bruno@clisp.org>
10910
10911         Documentation about Minix.
10912         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
10913         * doc/glibc-headers/*.texi: Likewise.
10914         * doc/posix-functions/*.texi: Likewise.
10915         * doc/glibc-functions/*.texi: Likewise.
10916
10917 2011-07-31  Bruno Haible  <bruno@clisp.org>
10918
10919         snippet/warn-on-use: Fix indentation.
10920         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
10921
10922 2011-07-25  Jim Meyering  <meyering@redhat.com>
10923
10924         tests: test-update-copyright.sh: remove unnecessary "rm" commands
10925         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
10926         commands.
10927
10928 2011-07-27  Jim Meyering  <meyering@redhat.com>
10929
10930         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
10931         * top/maint.mk (gl_extract_significant_defines_): Now that
10932         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
10933         gnulib/lib/signal.in.h, and now that we recommend to
10934         define-if-undefined those two symbols in application code,
10935         we must filter them out of the "significant" list.
10936         This avoids a "make syntax-check" failure in coreutils.
10937
10938 2011-07-26  Eric Blake  <eblake@redhat.com>
10939
10940         warnings: add comments about previous patch
10941         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
10942         * m4/include_next.m4: Likewise.
10943         * m4/warn-on-use.m4: Likewise.
10944         * m4/warnings.m4: Likewise, and simplify use.
10945         Suggested by Stefano Lattarini.
10946
10947         include-next, warnings: support older autoconf
10948         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
10949         AS_VAR_PUSHDEF in a way that works with older autoconf.
10950         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
10951         Reported by Daniel P. Berrange.
10952
10953 2011-07-25  Bruno Haible  <bruno@clisp.org>
10954
10955         fseek, ftell: Fix doc.
10956         * doc/posix-functions/fseek.texi: Reword statement about
10957         AC_SYS_LARGEFILE.
10958         * doc/posix-functions/ftell.texi: Likewise.
10959
10960 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10961             Bruno Haible  <bruno@clisp.org>
10962
10963         Add dependencies to the 'largefile' module.
10964         * modules/fopen (Depends-on): Add 'largefile'.
10965         * modules/freopen (Depends-on): Likewise.
10966         * modules/fseeko (Depends-on): Likewise.
10967         * modules/ftello (Depends-on): Likewise.
10968         * modules/glob (Depends-on): Likewise.
10969         * modules/lseek (Depends-on): Likewise.
10970         * modules/lstat (Depends-on): Likewise.
10971         * modules/mkostemp (Depends-on): Likewise.
10972         * modules/mkostemps (Depends-on): Likewise.
10973         * modules/mkstemp (Depends-on): Likewise.
10974         * modules/mkstemps (Depends-on): Likewise.
10975         * modules/open (Depends-on): Likewise.
10976         * modules/openat (Depends-on): Likewise.
10977         * modules/pread (Depends-on): Likewise.
10978         * modules/pwrite (Depends-on): Likewise.
10979         * modules/scandir (Depends-on): Likewise.
10980         * modules/stat (Depends-on): Likewise.
10981         * modules/tmpfile (Depends-on): Likewise.
10982         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
10983         since the containing module now depends on the largefile module.
10984         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
10985         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
10986         off_t is fixed by gnulib.
10987         * doc/posix-functions/freopen.texi: Likewise.
10988         * doc/posix-functions/fseeko.texi: Likewise.
10989         * doc/posix-functions/fstatat.texi: Likewise.
10990         * doc/posix-functions/ftello.texi: Likewise.
10991         * doc/posix-functions/glob.texi: Likewise.
10992         * doc/posix-functions/lseek.texi: Likewise.
10993         * doc/posix-functions/lstat.texi: Likewise.
10994         * doc/posix-functions/mkstemp.texi: Likewise.
10995         * doc/posix-functions/open.texi: Likewise.
10996         * doc/posix-functions/openat.texi: Likewise.
10997         * doc/posix-functions/pread.texi: Likewise.
10998         * doc/posix-functions/pwrite.texi: Likewise.
10999         * doc/posix-functions/scandir.texi: Likewise.
11000         * doc/posix-functions/stat.texi: Likewise.
11001         * doc/posix-functions/tmpfile.texi: Likewise.
11002         * doc/glibc-functions/mkostemp.texi: Likewise.
11003         * doc/glibc-functions/mkostemps.texi: Likewise.
11004         * doc/glibc-functions/mkstemps.texi: Likewise.
11005
11006 2011-07-25  Bruno Haible  <bruno@clisp.org>
11007
11008         fcntl: Move AC_LIBOBJ invocation to module description.
11009         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
11010         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
11011
11012         fcntl: Remove call-in from fchdir.m4.
11013         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
11014         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
11015
11016         dup3: Remove potential call-in from fchdir.m4.
11017         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
11018         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
11019
11020         dup2: Move AC_LIBOBJ invocation to module description.
11021         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
11022         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
11023         Don't invoke AC_LIBOBJ.
11024         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
11025
11026         dup2: Remove call-in from fchdir.m4.
11027         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
11028         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
11029
11030         fclose: Move AC_LIBOBJ invocation to module description.
11031         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
11032         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
11033         to 1.
11034         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
11035
11036         fclose: Remove call-in from close.m4.
11037         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
11038         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
11039
11040         close: Move AC_LIBOBJ invocation to module description.
11041         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
11042         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
11043         1.
11044         * modules/close (configure.ac): Invoke AC_LIBOBJ.
11045
11046         close: Remove call-in from fchdir.m4.
11047         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
11048         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
11049
11050         open: Move AC_LIBOBJ invocation to module description.
11051         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
11052         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
11053         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
11054
11055         open: Remove call-in from fchdir.m4.
11056         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
11057         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
11058
11059         fchdir: Start to remove gl_REPLACE_* idiom.
11060         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
11061         (gl_FUNC_FCHDIR): Invoke it.
11062
11063 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11064
11065         * lib/ftell.c (ftell): Comment out cast.
11066
11067         close: use gl_REPLACE_FCLOSE only if defined
11068         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
11069         is defined.  The close module doesn't depend on the fclose module
11070         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
11071         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
11072         I reproduced the problem with "./gnulib-tool --test close sys_socket".
11073
11074 2011-07-24  Jim Meyering  <meyering@redhat.com>
11075
11076         test-select.h: avoid warning when using gcc's -Wmissing-declarations
11077         * tests/test-select.h (test_function): Declare as "static".
11078
11079 2011-07-24  Bruno Haible  <bruno@clisp.org>
11080
11081         doc: Mention the effects of AC_SYS_LARGEFILE.
11082         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
11083         on this function.
11084         * doc/posix-functions/aio_error.texi: Likewise.
11085         * doc/posix-functions/aio_fsync.texi: Likewise.
11086         * doc/posix-functions/aio_read.texi: Likewise.
11087         * doc/posix-functions/aio_return.texi: Likewise.
11088         * doc/posix-functions/aio_suspend.texi: Likewise.
11089         * doc/posix-functions/aio_write.texi: Likewise.
11090         * doc/posix-functions/fgetpos.texi: Likewise.
11091         * doc/posix-functions/fopen.texi: Likewise.
11092         * doc/posix-functions/freopen.texi: Likewise.
11093         * doc/posix-functions/fsetpos.texi: Likewise.
11094         * doc/posix-functions/fstatvfs.texi: Likewise.
11095         * doc/posix-functions/ftruncate.texi: Likewise.
11096         * doc/posix-functions/ftw.texi: Likewise.
11097         * doc/posix-functions/getrlimit.texi: Likewise.
11098         * doc/posix-functions/glob.texi: Likewise.
11099         * doc/posix-functions/lio_listio.texi: Likewise.
11100         * doc/posix-functions/lockf.texi: Likewise.
11101         * doc/posix-functions/mkstemp.texi: Likewise.
11102         * doc/posix-functions/mmap.texi: Likewise.
11103         * doc/posix-functions/nftw.texi: Likewise.
11104         * doc/posix-functions/openat.texi: Likewise.
11105         * doc/posix-functions/opendir.texi: Likewise.
11106         * doc/posix-functions/posix_fadvise.texi: Likewise.
11107         * doc/posix-functions/posix_fallocate.texi: Likewise.
11108         * doc/posix-functions/pread.texi: Likewise.
11109         * doc/posix-functions/pwrite.texi: Likewise.
11110         * doc/posix-functions/readdir.texi: Likewise.
11111         * doc/posix-functions/readdir_r.texi: Likewise.
11112         * doc/posix-functions/rewinddir.texi: Likewise.
11113         * doc/posix-functions/scandir.texi: Likewise.
11114         * doc/posix-functions/seekdir.texi: Likewise.
11115         * doc/posix-functions/setrlimit.texi: Likewise.
11116         * doc/posix-functions/statvfs.texi: Likewise.
11117         * doc/posix-functions/telldir.texi: Likewise.
11118         * doc/posix-functions/tmpfile.texi: Likewise.
11119         * doc/posix-functions/truncate.texi: Likewise.
11120         * doc/glibc-functions/fallocate.texi: Likewise.
11121         * doc/glibc-functions/fstatfs.texi: Likewise.
11122         * doc/glibc-functions/fts_children.texi: Likewise.
11123         * doc/glibc-functions/fts_read.texi: Likewise.
11124         * doc/glibc-functions/getdirentries.texi: Likewise.
11125         * doc/glibc-functions/mkostemp.texi: Likewise.
11126         * doc/glibc-functions/mkostemps.texi: Likewise.
11127         * doc/glibc-functions/mkstemps.texi: Likewise.
11128         * doc/glibc-functions/preadv.texi: Likewise.
11129         * doc/glibc-functions/pwritev.texi: Likewise.
11130         * doc/glibc-functions/sendfile.texi: Likewise.
11131         * doc/glibc-functions/statfs.texi: Likewise.
11132
11133 2011-07-24  Bruno Haible  <bruno@clisp.org>
11134
11135         doc: Fix typo.
11136         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
11137
11138 2011-07-24  Bruno Haible  <bruno@clisp.org>
11139
11140         doc: Mention fsusage.
11141         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
11142
11143 2011-07-24  Bruno Haible  <bruno@clisp.org>
11144
11145         doc: Mention new glibc headers and functions.
11146         * doc/glibc-headers/gshadow.texi: New file.
11147         * doc/glibc-functions/endsgent.texi: New file.
11148         * doc/glibc-functions/fgetsgent.texi: New file.
11149         * doc/glibc-functions/fgetsgent_r.texi: New file.
11150         * doc/glibc-functions/getsgent.texi: New file.
11151         * doc/glibc-functions/getsgent_r.texi: New file.
11152         * doc/glibc-functions/getsgnam.texi: New file.
11153         * doc/glibc-functions/getsgnam_r.texi: New file.
11154         * doc/glibc-functions/putsgent.texi: New file.
11155         * doc/glibc-functions/setsgent.texi: New file.
11156         * doc/glibc-functions/sgetsgent.texi: New file.
11157         * doc/glibc-functions/sgetsgent_r.texi: New file.
11158         * doc/glibc-functions/malloc_info.texi: New file.
11159         * doc/glibc-functions/preadv.texi: New file.
11160         * doc/glibc-functions/pwritev.texi: New file.
11161         * doc/glibc-functions/register_printf_modifier.texi: New file.
11162         * doc/glibc-functions/register_printf_specifier.texi: New file.
11163         * doc/glibc-functions/register_printf_type.texi: New file.
11164         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
11165         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
11166         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
11167         * doc/glibc-functions/pthread_getname_np.texi: New file.
11168         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
11169         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
11170         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
11171         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
11172         * doc/glibc-functions/pthread_setname_np.texi: New file.
11173         * doc/glibc-functions/pthread_sigqueue.texi: New file.
11174         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
11175         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
11176         * doc/glibc-functions/qsort_r.texi: New file.
11177         * doc/glibc-functions/quick_exit.texi: New file.
11178         * doc/glibc-functions/syncfs.texi: New file.
11179         * doc/gnulib.texi: Include them.
11180         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
11181         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
11182         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
11183         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
11184         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
11185         * doc/glibc-functions/execvpe.texi: Likewise.
11186
11187 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11188
11189         ftell: don't include <unistd.h>
11190         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
11191         guaranteed to define off_t, and the ftell module depends on the
11192         stdio module.
11193
11194         ftell: do not assume wraparound signed arithmetic
11195         * lib/ftell.c: Include <limits.h>.
11196         (ftell): Don't assume wraparound signed arithmetic.
11197
11198 2011-07-24  Bruno Haible  <bruno@clisp.org>
11199
11200         close: No longer depend on module 'fclose'.
11201         * modules/close (Depends-on): Remove fclose.
11202         * NEWS: Mention the change.
11203         Suggested by Sam Steingold <sds@gnu.org>.
11204
11205 2011-07-24  Bruno Haible  <bruno@clisp.org>
11206
11207         fsusage: Enable large volume support on AIX >= 5.2.
11208         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
11209         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
11210         instead of STAT_STATVFS.
11211         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
11212
11213         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
11214         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
11215         f_blocks field only on MacOS X.
11216
11217         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
11218         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
11219         * modules/fsusage (Depends-on): Add largefile.
11220
11221 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11222
11223         * README: Modernize discussion of signed integers.
11224         Assuming overflow wraparound is no longer safe.
11225         Mention ones' complement and signed magnitude.
11226
11227 2011-07-22  Bruno Haible  <bruno@clisp.org>
11228
11229         select tests, pselect tests: Refactor.
11230         * tests/test-select.h: New file, extracted from tests/test-select.c.
11231         (select_fn): New type.
11232         (test, do_select, do_select_nowait, do_select_wait, test_tty,
11233         test_connect_first, test_accept_first, test_pair, test_socket_pair,
11234         test_pipe): Add my_select argument.
11235         (test_function): Renamed from main. Add my_select argument.
11236         * tests/test-select.c: Move most code to tests/test-select.h. Include
11237         test-select.h.
11238         * modules/select-tests (Files): Add tests/test-select.h.
11239         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
11240         (my_select, main): New functions.
11241         * modules/pselect-tests (Files): Add tests/test-select.h,
11242         tests/macros.h, tests/signature.h.
11243         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
11244         (configure.ac): Check for <sys/wait.h>.
11245
11246 2011-07-22  Bruno Haible  <bruno@clisp.org>
11247
11248         sys_select tests: Check the signature of FD_*.
11249         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
11250         signature tests from here...
11251         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
11252         here.
11253         * modules/sys_select-tests (Files): Add tests/signature.h.
11254
11255 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
11256
11257         largefile: new module, replacing large-inode
11258         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
11259         * MODULES.html.sh: Add largefile, remove large-inode.
11260         * modules/largefile, m4/largefile.m4: New files.
11261         * modules/large-inode, m4/large-inode.m4: Remove.
11262
11263         fsusage: port to MacOS X 10.7 with 4 TiB file systems
11264         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
11265         implementations that use only 32 bits to count blocks.
11266         On typical hosts with 1024-byte blocks, this fails with file
11267         systems as small as 4 TiB.  Problem reported by Herb Wartens
11268         <http://debbugs.gnu.org/9140> and this should also fix a similar
11269         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
11270
11271         large-inode: New module
11272         * MODULES.html.sh: Add it.
11273         * modules/large-inode, m4/large-inode.m4: New files.
11274
11275         extensions: Enable extensions on MacOS X 10.5 and later.
11276         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
11277
11278 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
11279
11280         file-has-acl: use acl_extended_file_nofollow if available
11281         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
11282         (acl_extended_file): New macro.
11283         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
11284         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
11285
11286 2011-07-21  Bruno Haible  <bruno@clisp.org>
11287
11288         Declare system functions in a way that works with C++.
11289         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
11290         declare fdopendir as extern "C".
11291         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
11292         declare frexpl as extern "C".
11293         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
11294         declare gai_strerror as extern "C".
11295         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
11296         programs, declare gai_strerror as extern "C".
11297         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
11298         declare getlogin_r as extern "C".
11299         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
11300         as extern "C".
11301         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
11302         declare ldexpl as extern "C".
11303         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
11304         as extern "C".
11305         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
11306         program, declare getmntinfo as extern "C".
11307         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
11308         stpncpy as extern "C".
11309         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
11310         program, declare __xpg_strerror_r as extern "C".
11311         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
11312         strndup as extern "C".
11313         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
11314         declare memset and bzero as extern "C".
11315         Reported by Sam Steingold <sds@gnu.org>.
11316
11317 2011-07-12  Jim Meyering  <meyering@redhat.com>
11318
11319         maint.mk: prohibit inclusion of "verify.h" without use
11320         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
11321
11322 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11323
11324         timer-time: A new module to check for timer_settime()
11325         * m4/timer_time.m4: Check for the posix function.
11326         * modules/timer-time: Add the new module.
11327         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
11328         Mention it.
11329
11330 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
11331             Bruno Haible  <bruno@clisp.org>
11332
11333         pthread_sigmask: assume POSIX threads if --avoid=threadlib
11334         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
11335         not defined, assume POSIX threads and look for pthread_sigmask in
11336         $LIBS, without changing $CPPFLAGS.
11337
11338 2011-07-19  Bruno Haible  <bruno@clisp.org>
11339
11340         strstr: Update cross-compilation guess.
11341         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
11342         CPUs, guess no, in view of glibc
11343         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
11344         Suggested by Eric Blake. Reported by Reuben Thomas.
11345
11346 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11347
11348         getopt-gnu: suppress core dumps from detection code
11349         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
11350         to suppress core dumps that may well occur on glibc systems.
11351         * modules/getopt-gnu: Depend on nocrash.
11352
11353 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
11354
11355         pthread_sigmask: ensure usleep is declared
11356         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
11357         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
11358
11359 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11360
11361         doc: Document NonStop portability issues.
11362         * doc/posix-functions/sigaction.texi (sigaction):
11363         * doc/posix-headers/signal.texi (signal.h):
11364         Document NonStop.  See Joachim Schmitz in
11365         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
11366
11367 2011-07-15  Bruno Haible  <bruno@clisp.org>
11368
11369         ffsl, ffsll: Avoid unportable behaviour.
11370         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
11371
11372 2011-07-15  Bruno Haible  <bruno@clisp.org>
11373
11374         ffs: More tests.
11375         * tests/test-ffs.c (NBITS): New macro.
11376         (main): Add more tests.
11377         * tests/test-ffsl.c (NBITS): New macro.
11378         (main): Add more tests.
11379         * tests/test-ffsll.c (NBITS): New macro.
11380         (main): Add more tests.
11381
11382 2011-07-15  Eric Blake  <eblake@redhat.com>
11383
11384         ffsl, ffsll: new modules
11385         * modules/ffsl: New file.
11386         * modules/ffsll: Likewise.
11387         * m4/ffsl.m4: Likewise.
11388         * m4/ffsll.m4: Likewise.
11389         * lib/ffsl.c: Likewise.
11390         * lib/ffsl.h: Likewise.
11391         * lib/ffsll.c: Likewise.
11392         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
11393         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
11394         * modules/string (Makefile.am): Substitute witnesses.
11395         * lib/strings.in.h (ffsl, ffsll): Declare.
11396         * modules/ffsl-tests: New test file.
11397         * modules/ffsll-tests: Likewise.
11398         * tests/test-ffsl.c: Likewise.
11399         * tests/test-ffsll.c: Likewise.
11400         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11401         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
11402         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
11403
11404         ffs: fix m4 prerequisite
11405         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
11406
11407         ffs: avoid undefined behavior
11408         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
11409         * tests/test-ffs.c (naive, main): Avoid signed shifts.
11410         Reported by Bruno Haible.
11411
11412 2011-07-12  Bruno Haible  <bruno@clisp.org>
11413
11414         pthread_sigmask: Rely on module 'threadlib'.
11415         * modules/pthread_sigmask (Depends-on): Add threadlib.
11416         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
11417         is defined.
11418
11419 2011-07-12  Bruno Haible  <bruno@clisp.org>
11420
11421         regex: Depend on module 'strcase'.
11422         * modules/regex (Depends-on): Add strcase, for strcasecmp().
11423
11424 2011-07-12  Jim Meyering  <meyering@redhat.com>
11425
11426         warn-on-use: fix typo in file name
11427         * modules/snippet/warn-on-use (Files): Correct file name:
11428         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
11429
11430 2011-07-12  Bruno Haible  <bruno@clisp.org>
11431
11432         strings: Document module.
11433         * doc/posix-headers/strings.texi: Mention module 'strings'.
11434
11435 2011-07-12  Bruno Haible  <bruno@clisp.org>
11436
11437         Rename module '_Noreturn' to 'snippet/_Noreturn'.
11438         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
11439         (Files, Makefile.am): Update.
11440         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
11441         * modules/stdlib (Depends-on): Update.
11442
11443 2011-07-12  Bruno Haible  <bruno@clisp.org>
11444
11445         * NEWS: Mention the changes.
11446
11447         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
11448         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
11449         (Files, Makefile.am): Update.
11450         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
11451         * modules/arpa_inet (Depends-on): Update.
11452         * modules/ctype (Depends-on): Update.
11453         * modules/dirent (Depends-on): Update.
11454         * modules/fcntl-h (Depends-on): Update.
11455         * modules/glob (Depends-on): Update.
11456         * modules/iconv-h (Depends-on): Update.
11457         * modules/inttypes-incomplete (Depends-on): Update.
11458         * modules/langinfo (Depends-on): Update.
11459         * modules/locale (Depends-on): Update.
11460         * modules/math (Depends-on): Update.
11461         * modules/netdb (Depends-on): Update.
11462         * modules/poll-h (Depends-on): Update.
11463         * modules/pty (Depends-on): Update.
11464         * modules/search (Depends-on): Update.
11465         * modules/signal (Depends-on): Update.
11466         * modules/spawn (Depends-on): Update.
11467         * modules/stdio (Depends-on): Update.
11468         * modules/stdlib (Depends-on): Update.
11469         * modules/string (Depends-on): Update.
11470         * modules/strings (Depends-on): Update.
11471         * modules/sys_file (Depends-on): Update.
11472         * modules/sys_ioctl (Depends-on): Update.
11473         * modules/sys_select (Depends-on): Update.
11474         * modules/sys_socket (Depends-on): Update.
11475         * modules/sys_stat (Depends-on): Update.
11476         * modules/sys_time (Depends-on): Update.
11477         * modules/sys_times (Depends-on): Update.
11478         * modules/sys_utsname (Depends-on): Update.
11479         * modules/sys_wait (Depends-on): Update.
11480         * modules/termios (Depends-on): Update.
11481         * modules/time (Depends-on): Update.
11482         * modules/unistd (Depends-on): Update.
11483         * modules/wchar (Depends-on): Update.
11484         * modules/wctype-h (Depends-on): Update.
11485         * MODULES.html.sh (Support for building libraries and executables):
11486         Update.
11487
11488         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
11489         * modules/snippet/unused-parameter: Renamed from
11490         modules/unused-parameter.
11491         (Files, Makefile.am): Update.
11492         * build-aux/snippet/unused-parameter.h: Renamed from
11493         build-aux/unused-parameter.h.
11494         * modules/selinux-h (Depends-on): Update.
11495         * modules/unistr/base (Depends-on): Update.
11496         * MODULES.html.sh (Core language properties): Update.
11497
11498         Rename module 'link-warning' to 'snippet/link-warning'.
11499         * modules/snippet/link-warning: Renamed from modules/link-warning.
11500         (Files, Makefile.am): Update.
11501         * build-aux/snippet/link-warning.h: Renamed from
11502         build-aux/link-warning.h.
11503         * MODULES.html.sh (Support for building libraries and executables):
11504         Update.
11505
11506         Rename module 'c++defs' to 'snippet/c++defs'.
11507         * modules/snippet/c++defs: Renamed from modules/c++defs.
11508         (Files, Makefile.am): Update.
11509         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
11510         * modules/arpa_inet (Depends-on): Update.
11511         * modules/ctype (Depends-on): Update.
11512         * modules/dirent (Depends-on): Update.
11513         * modules/fcntl-h (Depends-on): Update.
11514         * modules/glob (Depends-on): Update.
11515         * modules/iconv-h (Depends-on): Update.
11516         * modules/langinfo (Depends-on): Update.
11517         * modules/locale (Depends-on): Update.
11518         * modules/math (Depends-on): Update.
11519         * modules/netdb (Depends-on): Update.
11520         * modules/poll-h (Depends-on): Update.
11521         * modules/pty (Depends-on): Update.
11522         * modules/search (Depends-on): Update.
11523         * modules/signal (Depends-on): Update.
11524         * modules/spawn (Depends-on): Update.
11525         * modules/stdio (Depends-on): Update.
11526         * modules/stdlib (Depends-on): Update.
11527         * modules/string (Depends-on): Update.
11528         * modules/strings (Depends-on): Update.
11529         * modules/sys_ioctl (Depends-on): Update.
11530         * modules/sys_select (Depends-on): Update.
11531         * modules/sys_socket (Depends-on): Update.
11532         * modules/sys_stat (Depends-on): Update.
11533         * modules/sys_time (Depends-on): Update.
11534         * modules/sys_wait (Depends-on): Update.
11535         * modules/termios (Depends-on): Update.
11536         * modules/time (Depends-on): Update.
11537         * modules/unistd (Depends-on): Update.
11538         * modules/wchar (Depends-on): Update.
11539         * modules/wctype-h (Depends-on): Update.
11540
11541         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
11542         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
11543         (Files, Makefile.am): Update.
11544         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
11545         * modules/argv-iter (Depends-on): Update.
11546         * modules/arpa_inet (Depends-on): Update.
11547         * modules/dirent (Depends-on): Update.
11548         * modules/fcntl-h (Depends-on): Update.
11549         * modules/fnmatch (Depends-on): Update.
11550         * modules/getopt-posix (Depends-on): Update.
11551         * modules/glob (Depends-on): Update.
11552         * modules/iconv-h (Depends-on): Update.
11553         * modules/inttypes-incomplete (Depends-on): Update.
11554         * modules/locale (Depends-on): Update.
11555         * modules/math (Depends-on): Update.
11556         * modules/netdb (Depends-on): Update.
11557         * modules/search (Depends-on): Update.
11558         * modules/signal (Depends-on): Update.
11559         * modules/spawn (Depends-on): Update.
11560         * modules/stdio (Depends-on): Update.
11561         * modules/stdlib (Depends-on): Update.
11562         * modules/string (Depends-on): Update.
11563         * modules/strings (Depends-on): Update.
11564         * modules/sys_socket (Depends-on): Update.
11565         * modules/sys_stat (Depends-on): Update.
11566         * modules/sys_time (Depends-on): Update.
11567         * modules/sys_times (Depends-on): Update.
11568         * modules/sys_utsname (Depends-on): Update.
11569         * modules/time (Depends-on): Update.
11570         * modules/unistd (Depends-on): Update.
11571         * modules/wchar (Depends-on): Update.
11572         * MODULES.html.sh (Support for building libraries and executables):
11573         Update.
11574
11575 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11576
11577         Improvements on _Noreturn and related modules.
11578
11579         modules/_Exit-tests: test _Noreturn too
11580         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
11581         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
11582         (main): Use them.
11583
11584         stdnoreturn, stdnoreturn-tests: remove modules
11585         They're not needed here and a bit premature for use elsewhere.  See
11586         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
11587         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
11588         * tests/test-stdnoreturn.c: Remove files.
11589         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
11590         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
11591         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
11592         and using noreturn.
11593         * modules/openat, modules/sigpipe-die, modules/xalloc:
11594         * modules/xmemdup0, modules/xstrtol:
11595         Remove dependency on stdnoreturn.
11596
11597         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
11598         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
11599         Reparenthesize to avoid GCC warning.
11600         Support Microsoft's syntax.
11601         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
11602
11603         _Noreturn-tests: remove module
11604         * modules/_Noreturn-tests: Remove.
11605         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
11606         * tests/test-_Noreturn.c: Remove.
11607         * tests/test-stdnoreturn.c: Merge from the old
11608         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
11609
11610 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11611
11612         _Noreturn, stdnoreturn, and related modules.
11613
11614         * top/maint.mk: Adjust to new noreturn support.
11615         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
11616         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
11617
11618         xalloc: use stdnoreturn.h
11619         * lib/xalloc.h: Include <stdnoreturn.h>.
11620         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11621         * modules/xalloc (Depends-on): Add stdnoreturn.
11622
11623         xstrtol: use stdnoreturn.h
11624         * lib/xstrtol.h: Include <stdnoreturn.h>.
11625         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11626         * modules/xstrtol (Depends-on): Add stdnoreturn.
11627
11628         xmemdup0: use stdnoreturn.h
11629         * lib/xmemdup0.h: Include <stdnoreturn.h>.
11630         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11631         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
11632
11633         sigpipe-die: use stdnoreturn.h
11634         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
11635         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11636         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
11637
11638         openat: use stdnoreturn.h
11639         * lib/openat.h: Include <stdnoreturn.h>.
11640         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11641         * modules/openat (Depends-on): Add stdnoreturn.
11642
11643         * lib/openat-die.c (openat_save_fail): Modernize comment.
11644
11645         * lib/xalloc-die.c (xalloc_die): Modernize comment.
11646
11647         * lib/glthread/thread.h: Modernize comment.
11648
11649         obstack: use _Noreturn
11650         * lib/obstack.c (__attribute__): Remove macro.
11651         (print_and_abort): Use _Noreturn.
11652
11653         c-stack: use _Noreturn
11654         * lib/c-stack.c (die, overflow_handler, segv_handler):
11655         Use _Noreturn rather than __attribute__((noreturn)).
11656
11657         argmatch-tests, exclude_tests: use _Noreturn
11658         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
11659         Remove.
11660         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
11661
11662         stdlib: use _Noreturn
11663         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
11664         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
11665         * modules/stdlib (Depends-on): Add _Noreturn.
11666         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
11667
11668         stdnoreturn-tests: new module
11669         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
11670
11671         stdnoreturn: new module
11672         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
11673         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
11674
11675         _Noreturn-tests: new module
11676         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
11677
11678         _Noreturn: new module
11679         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
11680         New section, mentioning it.
11681         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
11682
11683         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
11684
11685 2011-07-11  Eric Blake  <eblake@redhat.com>
11686
11687         ffs: new module
11688         * modules/ffs: New file.
11689         * m4/ffs.m4: Likewise.
11690         * lib/ffs.c: Likewise.
11691         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
11692         * modules/strings (Makefile.am): Substitute witness.
11693         (Depends-on): Add c++defs.
11694         * lib/strings.in.h (ffs): Declare.
11695         * modules/ffs-tests: New test file.
11696         * tests/test-ffs.c: Test new module.
11697         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11698         * doc/posix-functions/ffs.texi (ffs): Likewise.
11699
11700         regex: avoid compiler warning
11701         * lib/regex.c (includes): Include <strings.h>, for use of
11702         strcasecmp in regcomp.c.
11703         Reported by Joachim Schmitz.
11704
11705 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
11706
11707         stdint: respect system's intmax_t if INTMAX_MAX
11708         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
11709         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
11710         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
11711         long but int64_t is long long, and where we will clash with the
11712         system intmax_t if we override it.  See
11713         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
11714         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
11715         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
11716         similarly for UINTMAX_C.
11717
11718 2011-07-08  Bruno Haible  <bruno@clisp.org>
11719
11720         pthread_sigmask tests: Avoid a compiler warning.
11721         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
11722         non-zero.
11723
11724         sigprocmask tests: A better way to avoid a compiler warning.
11725         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
11726         (main): Complain if system() returns non-zero.
11727         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
11728
11729 2011-07-08  Bruno Haible  <bruno@clisp.org>
11730
11731         pthread_sigmask: Work around IRIX bug.
11732         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
11733         bug.
11734         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
11735         there may be unblocked pending signals.
11736         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
11737
11738 2011-07-08  Bruno Haible  <bruno@clisp.org>
11739
11740         pthread_sigmask: Work around Cygwin bug.
11741         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
11742         bug.
11743         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
11744         the system's pthread_sigmask function.
11745         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
11746
11747 2011-07-08  Bruno Haible  <bruno@clisp.org>
11748
11749         pthread_sigmask: Work around bug in single-threaded implementation.
11750         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
11751         FreeBSD, HP-UX, Solaris bug.
11752         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
11753         * lib/pthread_sigmask.c: Include <stddef.h>.
11754         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
11755         the system's pthread_sigmask function.
11756         * modules/pthread_sigmask (configure.ac): Invoke
11757         gl_PREREQ_PTHREAD_SIGMASK.
11758         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
11759         HP-UX, Solaris.
11760
11761 2011-07-08  Eric Blake  <eblake@redhat.com>
11762
11763         test-sigprocmask: avoid compiler warning
11764         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
11765         * tests/test-sigprocmask.c (main): Use it to silence warning.
11766         Reported by Jim Meyering.
11767
11768         test-snprintf: avoid compiler warning
11769         * tests/test-snprintf.c (main): Avoid shadowed declaration.
11770         * tests/test-vsnprintf.c (main): Likewise.
11771         Reported by Jim Meyering.
11772
11773 2011-07-08  Bruno Haible  <bruno@clisp.org>
11774
11775         Tests for module 'pthread_sigmask'.
11776         * modules/pthread_sigmask-tests: New file.
11777         * tests/test-pthread_sigmask1.c: New file, based on
11778         tests/test-sigprocmask.c.
11779         * tests/test-pthread_sigmask2.c: New file.
11780
11781 2011-07-08  Jim Meyering  <meyering@redhat.com>
11782
11783         test-getopt.h: avoid warning about an unused variable
11784         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
11785
11786 2011-07-07  Jim Meyering  <meyering@redhat.com>
11787
11788         maint: reduce list of files exempt from sc_prohibit_leading_TABs
11789         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
11790         now that it no longer contains leading TABs.
11791         Remove unused "url=FIXME" statement.
11792
11793 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11794
11795         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
11796         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11797         When gl_THREADLIB is not in use, assume that the POSIX sematics
11798         are desired.  This is better for Emacs, which uses POSIX semantics
11799         on GNUish and/or POSIXish platforms, and does not use threads at
11800         all otherwise.
11801
11802         pthread_sigmask: fix typo when testing for libraries
11803         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11804         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
11805
11806 2011-07-08  Eric Blake  <eblake@redhat.com>
11807
11808         fts: introduce FTS_NOATIME
11809         * lib/fts_.h (FTS_NOATIME): New bit flag.
11810         (FTS_OPTIONMASK): Adjust.
11811         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
11812         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
11813
11814 2011-07-08  Bruno Haible  <bruno@clisp.org>
11815
11816         Tests for module 'thread'.
11817         * modules/thread-tests: New file.
11818         * tests/test-thread_self.c: New file.
11819         * tests/test-thread_create.cc: New file.
11820
11821 2011-07-08  Bruno Haible  <bruno@clisp.org>
11822
11823         thread: Avoid gcc warnings when using gl_thread_self().
11824         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
11825         'void *'.
11826         (gl_thread_self_pointer): Update.
11827
11828 2011-07-07  Bruno Haible  <bruno@clisp.org>
11829
11830         signal-c++-tests: Check declaration of pthread_sigmask.
11831         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
11832         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
11833         $(LIB_PTHREAD_SIGMASK).
11834
11835 2011-07-07  Bruno Haible  <bruno@clisp.org>
11836
11837         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
11838         * lib/signal.in.h (pthread_sigmask): Override if
11839         REPLACE_PTHREAD_SIGMASK is 1.
11840         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11841         REPLACE_PTHREAD_SIGMASK.
11842         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
11843         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
11844         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
11845         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11846         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
11847
11848 2011-07-07  Bruno Haible  <bruno@clisp.org>
11849
11850         pthread_sigmask: Ensure declaration in <signal.h>.
11851         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
11852         include <pthread.h>.
11853         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
11854         problem.
11855
11856 2011-07-07  Bruno Haible  <bruno@clisp.org>
11857
11858         pthread_sigmask: Document the module.
11859         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
11860
11861 2011-07-07  Bruno Haible  <bruno@clisp.org>
11862
11863         pthread_sigmask: Follow gnulib conventions.
11864         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
11865         gl_PTHREAD_SIGMASK.
11866         * modules/pthread_sigmask (configure.ac): Update.
11867
11868 2011-07-07  Bruno Haible  <bruno@clisp.org>
11869
11870         pthread_sigmask: Make declaration C++ safe.
11871         * lib/signal.in.h: In two special conditions, just do an #include_next.
11872         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11873         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
11874         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11875         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11876         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
11877         not REPLACE_PTHREAD_MASK.
11878         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
11879         not REPLACE_PTHREAD_MASK.
11880         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11881
11882 2011-07-07  Bruno Haible  <bruno@clisp.org>
11883
11884         pthread_sigmask: Fix return value.
11885         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
11886         * lib/pthread_sigmask.c: New file.
11887         * modules/pthread_sigmask (Files): Add it.
11888         (configure.ac): Invoke AC_LIBOBJ.
11889
11890 2011-07-07  Eric Blake  <eblake@redhat.com>
11891
11892         getopt: more portable argv creation
11893         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
11894         const, use char arrays rather than strings.
11895         Suggested by Paul Eggert.
11896
11897 2011-07-07  Bruno Haible  <bruno@clisp.org>
11898
11899         Tests for module 'sigprocmask'.
11900         * modules/sigprocmask-tests: New file.
11901         * tests/test-sigprocmask.c: New file.
11902
11903 2011-07-07  Bruno Haible  <bruno@clisp.org>
11904
11905         float tests: Tweak.
11906         * tests/test-float.c (main): Tweak skip message.
11907
11908 2011-07-07  Eric Blake  <eblake@redhat.com>
11909
11910         getopt: avoid compiler warning during configure
11911         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
11912         assigning string literals to non-const pointer.
11913
11914         getopt-gnu: avoid crash in glibc getopt
11915         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
11916         * tests/test-getopt.h (test_getopt): Enhance test.
11917         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11918         * doc/posix-functions/getopt.texi (getopt): Document it.
11919         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11920         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11921         Likewise.
11922
11923 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11924
11925         getopt: handle W; without long options in getopt [BZ #12922]
11926         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
11927         but no long options are defined, just return 'W'.
11928
11929 2011-07-07  Bruno Haible  <bruno@clisp.org>
11930
11931         Avoid literal tabs.
11932         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
11933         variable containing a tab instead of a literal tab.
11934         Reported by Jim Meyering.
11935
11936 2011-07-07  Bruno Haible  <bruno@clisp.org>
11937
11938         Comments.
11939         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
11940
11941 2011-07-06  Bruno Haible  <bruno@clisp.org>
11942
11943         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
11944         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
11945         <winsock2.h>.
11946         (rpl_fd_isset, FD_ISSET): New definitions, copied from
11947         lib/sys_socket.in.h.
11948         (close, gethostname): Hide declarations from <winsock2.h>.
11949         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11950         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
11951         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
11952         (select): Don't override if gnulib's <sys/select.h> was already
11953         included.
11954         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
11955         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
11956         setsockopt, shutdown, select): Tweak indentation.
11957
11958 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11959
11960         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
11961         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
11962         in an application that does not use the sys_select module.
11963
11964 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
11965
11966         poll: do not return 0 on timeout=-1
11967         * lib/poll.c: Loop with yield if no events occured
11968
11969 2011-07-06  Eric Blake  <eblake@redhat.com>
11970
11971         pthread_sigmask: always replace when not using pthread
11972         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
11973         replacement when using some threading other than pthread.  Fix
11974         logic bug.
11975
11976 2011-07-06  Bruno Haible  <bruno@clisp.org>
11977
11978         Comments.
11979         * m4/printf.m4: Update comments about mingw.
11980
11981 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11982
11983         sys_select: define sigset_t more portably
11984         * lib/sys_select.in.h: Always include <sys/types.h>, since
11985         we now need sigset_t and mingw defines it there.
11986         Include <signal.h> before split inclusion guard, to avoid
11987         mishaps on Solaris, whose <signal.h> eventually includes us.
11988         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
11989         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
11990         which come from ...
11991         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
11992         gl_CHECK_TYPE_SIGSET_T.
11993         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
11994         does the real work.
11995         * modules/sys_select (Depends-on): Add 'signal'.
11996
11997         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
11998         Suggested by Bruno Haible.
11999
12000         pselect: Use pthread_sigmask, not sigprocmask.
12001         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
12002         multithreaded apps better than sigprocmask does.
12003         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
12004         sigprocmask directly.
12005
12006 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12007
12008         * lib/pselect.c (pselect): Use plain name, without "rpl_".
12009         Don't #undef,  since we don't need any underlying pselect.
12010         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
12011         (Depends-on): Add select.
12012         (Link): Add $(LIBSOCKET).
12013         These changes suggested by Bruno Haible.
12014
12015         pselect: document better
12016         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12017         * doc/posix-functions/pselect.texi (pselect): Document new module.
12018
12019         pthread_sigmask: new module
12020         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12021         * doc/posix-functions/pthread_sigmask.texi: Document new module.
12022         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
12023         This is done only as a macro; I don't know how well that'll
12024         work for C++.  Move <sys/types.h> include before the include_next,
12025         to avoid mishap on Solaris.
12026         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
12027         * modules/signal (Makefile.am): Substitute the check's results.
12028         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
12029
12030         test-pselect: new module
12031         * modules/pselect-tests, tests/test-pselect.c: New files.
12032         * tests/test-select.c, tests/test-sys_select-c++.cc:
12033         If TEST_PSELECT is defined, test pselect instead of testing select.
12034
12035         * tests/test-sys_select.c (sigset_t): Test for it, too.
12036         Suggested by Bruno Haible.
12037
12038 2011-07-05  Eric Blake  <eblake@redhat.com>
12039
12040         snprintf: guarantee %1$d, for libintl
12041         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
12042         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
12043         * doc/posix-functions/snprintf.texi (snprintf): Update.
12044         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12045         * tests/test-snprintf.c (main): Enhance test.
12046         * tests/test-vsnprintf.c (main): Likewise.
12047
12048 2011-07-05  Jim Meyering  <meyering@redhat.com>
12049
12050         maint: exempt stdio-read.c and stdio-write.c from the cppi check
12051         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
12052         per Bruno's request, to accommodate this idiom (no space after "#")
12053         even when the function is inside an #if block:
12054         char *
12055         gets (char *s)
12056         #undef gets
12057         {
12058           ...
12059         }
12060
12061 2011-07-04  Jim Meyering  <meyering@redhat.com>
12062
12063         maint: indent with spaces, not TABs, and add a rule to check this
12064         * tests/test-userspec.c: Indent with spaces, not TABs.
12065         * tests/test-argp.c: Likewise.
12066         * tests/test-c-stack2.sh: Likewise.
12067         * tests/test-parse-duration.sh: Likewise
12068         * m4/strtod.m4: Likewise.
12069         * m4/alloca.m4: Likewise.
12070         * m4/pselect.m4: Likewise.
12071         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
12072
12073 2011-07-03  Jim Meyering  <meyering@redhat.com>
12074
12075         maint.mk: correct omissions in prohibit_argmatch_without_use check
12076         This rule would mistakenly report that argmatch.h is included without
12077         use even when both the argmatch and invalid_arg macro were used.
12078         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
12079         of argmatch and invalid_arg.
12080
12081 2011-07-03  Bruno Haible  <bruno@clisp.org>
12082
12083         Comments about EINTR.
12084         * lib/safe-read.h: Explain the purpose of this module.
12085         * lib/safe-write.h: Likewise.
12086         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
12087         module.
12088         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
12089         module.
12090         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12091
12092 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
12093
12094         xnanosleep: Rewrite to use new dtotimespec module.
12095         It has the conversion code that used to be in xnanosleep.
12096         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
12097         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
12098         (TIME_T_MAX): Remove.
12099         (xnanosleep): Rewrite in terms of dtotimespec.
12100         * modules/xnanosleep (Depends-on): Add dtotimespec.
12101         Remove intprops, stdbool.
12102
12103         timespec-add, timespec-sub: new modules
12104         * lib/timespec.h (timespec_add, timespec_sub): New decls.
12105         * lib/timespec-add.c, lib/timespec-sub.c:
12106         * modules/timespec-add, modules/timespec-sub: New files.
12107
12108         dtotimespec: new module
12109         * lib/timespec.h (dtotimespec): New decl.
12110         * lib/dtotimespec.c, modules/dtotimespec: New files.
12111
12112         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
12113
12114         pselect: new module
12115         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
12116         (pselect): New decls.
12117         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
12118         since the standard pselect decl uses 'restrict'.
12119         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
12120         HAVE_PSELECT, REPLACE_PSELECT.
12121         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
12122         HAVE_PSELECT, REPLACE_PSELECT.
12123         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
12124
12125         sys_select: don't depend on sys_socket
12126         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
12127         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
12128         This fix works on GNU and GNU-like platforms, but has not been tested
12129         on native Windows.
12130         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
12131         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
12132         gl_HEADER_SYS_SOCKET.
12133         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
12134         gl_PREREQ_SYS_H_WINSOCK2.
12135
12136 2011-06-29  Eric Blake  <eblake@redhat.com>
12137
12138         pipe2: fix C89 compile problem
12139         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
12140         Reported by Bruno Haible.
12141
12142         pipe, pipe2: don't corrupt fd on error
12143         * lib/pipe.c (pipe): Leave fd unchanged on error.
12144         * lib/pipe2.c (pipe2): Likewise.
12145         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
12146         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
12147
12148 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
12149
12150         mmap-anon: do not use regular expressions inadvertently
12151         * m4/mmap-anon.m4: Remove trailing period from strings sought
12152         in the output.
12153
12154 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
12155
12156         nanosleep: fix integer overflow problem
12157         * lib/nanosleep.c (my_usleep): Don't assume signed integer
12158         arithmetic wraps around on overflow.
12159
12160         nanosleep: simplify carrying
12161         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
12162         first call to the underyling nanosleep, not for the last one.
12163         This doesn't fix any bugs, but it simplifies the computation of
12164         the remaining delay.  Found while auditing integer overflow issues.
12165
12166         dup2: remove test for existence of fcntl
12167         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
12168         "#if HAVE_FCNTL", in the configure-time test program.
12169         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
12170         and therefore speeds up "configure" a bit.  Found while
12171         adding the dup2 module to Emacs.
12172
12173 2011-06-24  Eric Blake  <eblake@redhat.com>
12174
12175         maint.mk: enhance useless header checks
12176         * top/maint.mk (_sc_header_without_use): Check both include
12177         styles.
12178         (sc_prohibit_assert_without_use)
12179         (sc_prohibit_close_stream_without_use)
12180         (sc_prohibit_getopt_without_use)
12181         (sc_prohibit_quotearg_without_use)
12182         (sc_prohibit_quote_without_use)
12183         (sc_prohibit_long_options_without_use)
12184         (sc_prohibit_inttostr_without_use)
12185         (sc_prohibit_ignore_value_without_use)
12186         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
12187         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
12188         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
12189         (sc_prohibit_hash_pjw_without_use)
12190         (sc_prohibit_safe_read_without_use)
12191         (sc_prohibit_argmatch_without_use)
12192         (sc_prohibit_canonicalize_without_use)
12193         (sc_prohibit_root_dev_ino_without_use)
12194         (sc_prohibit_openat_without_use)
12195         (sc_prohibit_c_ctype_without_use)
12196         (sc_prohibit_signal_without_use)
12197         (sc_prohibit_stdio--_without_use)
12198         (sc_prohibit_stdio-safer_without_use)
12199         (sc_prohibit_strings_without_use)
12200         (sc_prohibit_intprops_without_use)
12201         (sc_prohibit_stddef_without_use)
12202         (sc_prohibit_xfreopen_without_use): Update clients.
12203
12204 2011-06-24  Jim Meyering  <meyering@redhat.com>
12205
12206         syntax-check: keep one maint.mk rule in sync with its header
12207         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
12208         of the bug Eric has just fixed, with today's commit 25e4c2ec.
12209         I prefer to avoid temporary files here, so use <(...), but that
12210         is not supported by /bin/sh, so...
12211         (SHELL): Define to /bin/bash.
12212
12213 2011-06-24  Eric Blake  <eblake@redhat.com>
12214
12215         maint.mk: update sc_prohibit_intprops_without_use
12216         * top/maint.mk (_intprops_names): Match recent changes.
12217
12218 2011-06-24  Bruno Haible  <bruno@clisp.org>
12219
12220         strerror-override: No-op tweak.
12221         * lib/strerror-override.h (strerror_override): Reorder conditions,
12222         for consistency with lib/strerror-override.c.
12223
12224 2011-06-23  Eric Blake  <eblake@redhat.com>
12225
12226         maint.mk: test further PATH_MAX issues
12227         * top/maint.mk (sc_prohibit_path_max_array): Rename...
12228         (sc_prohibit_path_max_allocation): ...and also test alloca.
12229         Suggested by Jim Meyering.
12230
12231 2011-06-22  Eric Blake  <eblake@redhat.com>
12232
12233         maint.mk: add syntax-check to avoid char[PATH_MAX]
12234         * top/maint.mk (sc_prohibit_path_max_array): New rule.
12235
12236         stat: be robust to PATH_MAX definition
12237         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
12238         * modules/stat (Depends-on): Add verify.
12239
12240         link: work around IRIX bug
12241         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
12242         * lib/link.c (rpl_link): Work around it.
12243         * tests/test-link.h (test_link): Enhance test.
12244         * doc/posix-functions/link.texi (link): Document the bug.
12245
12246         getopt: silence clang warning
12247         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
12248         dereference.
12249         Reported by Gustavo Martin Domato.
12250
12251 2011-06-22  Jim Meyering  <meyering@redhat.com>
12252
12253         bootstrap: do not insert a blank line into each .gitignore file
12254         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
12255
12256 2011-06-21  Eric Blake  <eblake@redhat.com>
12257
12258         perror: test for output mismatch
12259         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
12260         perror on IRIX.
12261
12262         strerror_r: fix OpenBSD behavior on out-of-range
12263         * lib/strerror_r.c (strerror_r): Always use maximal string.
12264         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12265
12266         strerror_r: fix OpenBSD behavior on 0
12267         * lib/strerror-override.c (strerror_override): Also override 0
12268         when needed.
12269         * lib/strerror-override.h (strerror_override): Likewise.
12270         * lib/strerror.c (strerror): Simplify, now that 0 override is done
12271         earlier.
12272         * lib/strerror_r.c (strerror_r): Likewise.
12273         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
12274         behavior...
12275         (gl_FUNC_STRERROR_0): ...into new macro.
12276         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
12277         is overridden.
12278         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
12279         * modules/strerror-override (Files): Add strerror.m4.
12280         (configure.ac): Also provide override for 0 when needed.
12281         * doc/posix-functions/strerror.texi (strerror): Document this.
12282         * doc/posix-functions/perror.texi (perror): Likewise.
12283
12284         perror: adjust array size
12285         * modules/perror (Depends-on): Add strerror-override.
12286         * lib/perror.c (perror): Use it to avoid magic number.
12287
12288         strerror-override: reduce size
12289         * lib/strerror-override.c (strerror_override): Use fewer lines.
12290
12291 2011-06-20  Bruno Haible  <bruno@clisp.org>
12292
12293         pathmax: Ensure correct value for PATH_MAX on HP-UX.
12294         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
12295
12296 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
12297
12298         alloca: port to compilers that can optimize like GCC 4.6.0
12299         * lib/alloca.c (find_stack_direction): New signature, taken from
12300         Autoconf git.  This works with GCC 4.6.0.  This code should never
12301         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
12302         be used with other compilers that optimize as well as GCC 4.6.0 does.
12303         (alloca): Adjust to new signature.
12304         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
12305         New macro, which patches Autoconf in a similar way.
12306
12307         c-stack: stop worrying about stack direction
12308         * lib/c-stack.c (find_stack_direction): Remove.
12309         (segv_handler): Don't worry about stack direction growth, as it's
12310         too much of a pain to configure this correctly, given how compilers
12311         are optimizing-away our stack-growth detection code.  Instead, assume
12312         that any access to just before or just after the stack is OK.
12313         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
12314         Don't require AC_FUNC_ALLOCA; no longer needed.
12315
12316 2011-06-20  Eric Blake  <eblake@redhat.com>
12317
12318         test-stat: don't allocate PATH_MAX bytes
12319         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
12320         PATH_MAX-sized buffer.
12321         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
12322         * modules/stat-tests (Depends-on): Likewise.
12323         * tests/test-fstatat.c (includes): Drop pathmax.h.
12324         * tests/test-stat.c (includes): Likewise.
12325         Reported by Bruno Haible.
12326
12327 2011-06-20  Bruno Haible  <bruno@clisp.org>
12328
12329         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
12330         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
12331         * lib/float.c: New file.
12332         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
12333         REPLACE_FLOAT_LDBL.
12334         * modules/float (Files): Add lib/float.c.
12335         (configure.ac): Invoke AC_LIBOBJ.
12336         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
12337
12338 2011-06-20  Bruno Haible  <bruno@clisp.org>
12339
12340         Tests for module 'float'.
12341         * modules/float-tests: New file.
12342         * tests/test-float.c: New file.
12343
12344 2011-06-19  Bruno Haible  <bruno@clisp.org>
12345
12346         isinf: Coding style.
12347         * lib/isinf.c: Use GNU coding style.
12348
12349 2011-06-19  Bruno Haible  <bruno@clisp.org>
12350
12351         linkat test: Avoid test failure on AIX 7.1.
12352         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
12353         * tests/test-link.h (test_link): Likewise.
12354
12355 2011-06-19  Bruno Haible  <bruno@clisp.org>
12356
12357         pread test: Avoid test failure on OpenBSD 4.9.
12358         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
12359
12360 2011-06-19  Bruno Haible  <bruno@clisp.org>
12361
12362         sprintf-posix: Fix test failure on AIX 7.1.
12363         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
12364         * doc/posix-functions/dprintf.texi: Mention limited precision problem
12365         on AIX.
12366         * doc/posix-functions/fprintf.texi: Likewise.
12367         * doc/posix-functions/printf.texi: Likewise.
12368         * doc/posix-functions/snprintf.texi: Likewise.
12369         * doc/posix-functions/sprintf.texi: Likewise.
12370         * doc/posix-functions/vdprintf.texi: Likewise.
12371         * doc/posix-functions/vfprintf.texi: Likewise.
12372         * doc/posix-functions/vprintf.texi: Likewise.
12373         * doc/posix-functions/vsnprintf.texi: Likewise.
12374         * doc/posix-functions/vsprintf.texi: Likewise.
12375
12376 2011-06-19  Bruno Haible  <bruno@clisp.org>
12377
12378         roundl-ieee: Fix test failure on AIX 7.1.
12379         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
12380         * doc/posix-functions/roundl.texi: Mention problem with negative
12381         arguments.
12382
12383 2011-06-19  Bruno Haible  <bruno@clisp.org>
12384
12385         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12386         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
12387         * doc/posix-functions/round.texi: Mention problem with negative
12388         arguments.
12389         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
12390
12391 2011-06-19  Bruno Haible  <bruno@clisp.org>
12392
12393         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12394         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
12395         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
12396         * doc/posix-functions/roundf.texi: Mention problem with negative
12397         arguments.
12398         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
12399
12400 2011-06-19  Bruno Haible  <bruno@clisp.org>
12401
12402         ceilf-ieee: Work around bug on MacOS X 10.5.
12403         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
12404
12405         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
12406         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
12407         IEEE compliant, avoid compiler optimizations.
12408         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
12409         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12410         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
12411         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12412         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12413         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12414         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12415         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12416         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12417         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12418
12419 2011-06-19  Bruno Haible  <bruno@clisp.org>
12420
12421         ceilf-ieee: Work around bug on AIX 7.1.
12422         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
12423         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
12424
12425 2011-06-19  Bruno Haible  <bruno@clisp.org>
12426
12427         ceil-ieee: Work around bug on AIX 7.1.
12428         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
12429         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
12430
12431 2011-06-18  Bruno Haible  <bruno@clisp.org>
12432
12433         fsync test: Avoid test failure on MacOS X and AIX.
12434         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
12435         EINVAL.
12436
12437 2011-06-18  Bruno Haible  <bruno@clisp.org>
12438
12439         openat, fdopendir tests: Fix link errors.
12440         * modules/openat-tests (Depends-on): Add progname.
12441         * modules/fdopendir-tests (Depends-on): Likewise.
12442         * tests/test-fchownat.c: Include progname.h.
12443         (main): Call set_program_name.
12444         * tests/test-fstatat.c: Include progname.h.
12445         (main): Call set_program_name.
12446         * tests/test-mkdirat.c: Include progname.h.
12447         (main): Call set_program_name.
12448         * tests/test-openat.c: Include progname.h.
12449         (main): Call set_program_name.
12450         * tests/test-unlinkat.c: Include progname.h.
12451         (main): Call set_program_name.
12452         * tests/test-fdopendir.c: Include progname.h.
12453         (main): Call set_program_name.
12454
12455 2011-06-18  Bruno Haible  <bruno@clisp.org>
12456
12457         Doc update.
12458         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
12459         HP-UX.
12460         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
12461
12462 2011-06-18  Bruno Haible  <bruno@clisp.org>
12463
12464         getcwd tests: Avoid compilation error on HP-UX 11.31.
12465         * modules/getcwd-tests (Depends-on): Add pathmax.
12466         * tests/test-getcwd.c: Include pathmax.h.
12467
12468 2011-06-18  Bruno Haible  <bruno@clisp.org>
12469
12470         isfinite, isinf: Fix link error on AIX 6 and 7.
12471         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
12472         needed, also test the macro with a 'float' argument.
12473         * m4/isinf.m4 (gl_ISINF): Likewise.
12474
12475 2011-06-18  Bruno Haible  <bruno@clisp.org>
12476
12477         getloadavg: Don't clobber LIBS. Regression from previous commit.
12478         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
12479         AC_CHECK_LIB from here...
12480         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
12481         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
12482         gl_func_getloadavg_done.
12483         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12484
12485 2011-06-18  Bruno Haible  <bruno@clisp.org>
12486
12487         clean-temp: Improve documentation.
12488         * lib/clean-temp.h: Explain better how to use this module.
12489         Reported by John Darrington <john@darrington.wattle.id.au>.
12490
12491 2011-06-17  Bruno Haible  <bruno@clisp.org>
12492
12493         pread, pwrite: Avoid cc warning on AIX.
12494         * lib/unistd.in.h (pread): Undefine before defining as a macro.
12495         (pwrite): Likewise.
12496
12497 2011-06-17  Bruno Haible  <bruno@clisp.org>
12498
12499         spawn-pipe tests: Fix link error.
12500         * tests/test-spawn-pipe-child.c: Undefine fprintf.
12501         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12502
12503 2011-06-17  Bruno Haible  <bruno@clisp.org>
12504
12505         Tests: Remove unnecessary dependency.
12506         * modules/canonicalize-tests (Depends-on): Remove progname.
12507         * modules/chown-tests (Depends-on): Likewise.
12508         * modules/dirname-tests (Depends-on): Likewise.
12509         * modules/fdopendir-tests (Depends-on): Likewise.
12510         * modules/fdutimensat-tests (Depends-on): Likewise.
12511         * modules/hash-tests (Depends-on): Likewise.
12512         * modules/lchown-tests (Depends-on): Likewise.
12513         * modules/linkat-tests (Depends-on): Likewise.
12514         * modules/renameat-tests (Depends-on): Likewise.
12515         * modules/spawn-pipe-tests (Depends-on): Likewise.
12516         * modules/utimensat-tests (Depends-on): Likewise.
12517
12518 2011-06-17  Bruno Haible  <bruno@clisp.org>
12519
12520         spawn-pipe tests: Fix link error.
12521         * tests/test-spawn-pipe-child.c: Undefine fflush.
12522
12523 2011-06-17  Bruno Haible  <bruno@clisp.org>
12524
12525         Fix tests link errors.
12526         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
12527         * modules/chown-tests (Makefile.am): Don't link test-chown with
12528         LIBINTL.
12529         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
12530         LIBINTL.
12531         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
12532         LIBINTL.
12533         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
12534         LIBINTL.
12535
12536 2011-06-16  Bruno Haible  <bruno@clisp.org>
12537
12538         crypto/gc-sha1: Fix recent regression.
12539         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
12540         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
12541
12542         crypto/gc-md5: Fix recent regression.
12543         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
12544
12545         crypto/gc-md4: Fix recent regression.
12546         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
12547         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
12548
12549         crypto/gc-arctwo: Fix recent regression.
12550         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
12551         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
12552
12553         crypto/gc-rijndael: Fix recent regression.
12554         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
12555         (configure.ac): Invoke AC_LIBOBJ here.
12556         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
12557         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12558
12559         crypto/gc-hmac-sha1: Fix recent regression.
12560         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
12561         (configure.ac): Invoke AC_LIBOBJ here.
12562         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
12563         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12564
12565         crypto/gc-hmac-md5: Fix recent regression.
12566         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
12567         (configure.ac): Invoke AC_LIBOBJ here.
12568         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
12569         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12570
12571         crypto/gc-des: Fix recent regression.
12572         * modules/crypto/gc-des (Files): Remove m4/des.m4.
12573         (configure.ac): Invoke AC_LIBOBJ here.
12574         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
12575         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12576
12577         crypto/gc-arcfour: Fix recent regression.
12578         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
12579         (configure.ac): Invoke AC_LIBOBJ here.
12580         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
12581         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12582
12583 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
12584
12585         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
12586         After the 2011-05-21 change, this macro requires
12587         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
12588         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12589
12590 2011-06-16  Bruno Haible  <bruno@clisp.org>
12591
12592         fprintftime: Move AC_LIBOBJ invocations to module description.
12593         * m4/fprintftime.m4: Remove file.
12594         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
12595         (configure.ac): Remove gl_FPRINTFTIME call.
12596         (Makefile.am): Augment lib_SOURCES.
12597         Reported by Jim Meyering.
12598
12599 2011-06-16  Bruno Haible  <bruno@clisp.org>
12600
12601         tmpfile-safer: Finish 2011-05-23 commit.
12602         * m4/stdio-safer.m4: Really remove file.
12603         Reported by Jim Meyering.
12604
12605 2011-06-16  Bruno Haible  <bruno@clisp.org>
12606
12607         syntax-check: Fix typo.
12608         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
12609         printf-posix.m4.
12610         Reported by Jim Meyering.
12611
12612 2011-06-13  Jim Meyering  <meyering@redhat.com>
12613
12614         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
12615         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
12616
12617 2011-05-23  Bruno Haible  <bruno@clisp.org>
12618
12619         yesno: Move AC_LIBOBJ invocations to module description.
12620         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
12621         * modules/yesno (Makefile.am): Augment lib_SOURCES.
12622
12623 2011-05-23  Bruno Haible  <bruno@clisp.org>
12624
12625         xstrtol: Move AC_LIBOBJ invocations to module description.
12626         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
12627         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
12628
12629 2011-05-23  Bruno Haible  <bruno@clisp.org>
12630
12631         xstrtold: Move AC_LIBOBJ invocations to module description.
12632         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
12633         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
12634
12635 2011-05-23  Bruno Haible  <bruno@clisp.org>
12636
12637         xstrtod: Move AC_LIBOBJ invocations to module description.
12638         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
12639         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
12640
12641 2011-05-23  Bruno Haible  <bruno@clisp.org>
12642
12643         xnanosleep: Move AC_LIBOBJ invocations to module description.
12644         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
12645         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
12646
12647 2011-05-23  Bruno Haible  <bruno@clisp.org>
12648
12649         xgetcwd: Move AC_LIBOBJ invocations to module description.
12650         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
12651         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
12652
12653 2011-05-23  Bruno Haible  <bruno@clisp.org>
12654
12655         xalloc: Move AC_LIBOBJ invocations to module description.
12656         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
12657         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
12658
12659 2011-05-23  Bruno Haible  <bruno@clisp.org>
12660
12661         write-any-file: Move AC_LIBOBJ invocations to module description.
12662         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
12663         invocation.
12664         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
12665
12666 2011-05-23  Bruno Haible  <bruno@clisp.org>
12667
12668         utimens: Move AC_LIBOBJ invocations to module description.
12669         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
12670         * modules/utimens (Makefile.am): Augment lib_SOURCES.
12671
12672 2011-05-23  Bruno Haible  <bruno@clisp.org>
12673
12674         utimecmp: Move AC_LIBOBJ invocations to module description.
12675         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
12676         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
12677
12678 2011-05-23  Bruno Haible  <bruno@clisp.org>
12679
12680         userspec: Move AC_LIBOBJ invocations to module description.
12681         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
12682         * modules/userspec (Makefile.am): Augment lib_SOURCES.
12683
12684 2011-05-23  Bruno Haible  <bruno@clisp.org>
12685
12686         unlinkdir: Move AC_LIBOBJ invocations to module description.
12687         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
12688         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
12689
12690 2011-05-23  Bruno Haible  <bruno@clisp.org>
12691
12692         unistd-safer: Move AC_LIBOBJ invocations to module description.
12693         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
12694         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
12695
12696 2011-05-23  Bruno Haible  <bruno@clisp.org>
12697
12698         tempname: Move AC_LIBOBJ invocations to module description.
12699         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
12700         * modules/tempname (Makefile.am): Augment lib_SOURCES.
12701
12702 2011-05-23  Bruno Haible  <bruno@clisp.org>
12703
12704         strftime: Move AC_LIBOBJ invocations to module description.
12705         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
12706         * modules/strftime (Makefile.am): Augment lib_SOURCES.
12707
12708 2011-05-23  Bruno Haible  <bruno@clisp.org>
12709
12710         stdlib-safer: Move AC_LIBOBJ invocations to module description.
12711         * m4/stdlib-safer.m4: Remove file.
12712         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
12713         (configure.ac): Remove gl_STDLIB_SAFER call.
12714         (Makefile.am): Augment lib_SOURCES.
12715
12716 2011-05-23  Bruno Haible  <bruno@clisp.org>
12717
12718         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
12719         * m4/stdio-safer.m4: Remove file.
12720         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
12721         (configure.ac): Remove gl_TMPFILE_SAFER call.
12722         (Makefile.am): Augment lib_SOURCES.
12723
12724 2011-05-23  Bruno Haible  <bruno@clisp.org>
12725
12726         popen-safer: Move AC_LIBOBJ invocations to module description.
12727         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
12728         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
12729         (configure.ac): Remove gl_POPEN_SAFER call.
12730         (Makefile.am): Augment lib_SOURCES.
12731
12732 2011-05-23  Bruno Haible  <bruno@clisp.org>
12733
12734         freopen-safer: Move AC_LIBOBJ invocations to module description.
12735         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
12736         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
12737         (configure.ac): Remove gl_FREOPEN_SAFER call.
12738         (Makefile.am): Augment lib_SOURCES.
12739
12740 2011-05-23  Bruno Haible  <bruno@clisp.org>
12741
12742         fopen-safer: Move AC_LIBOBJ invocations to module description.
12743         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
12744         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
12745         (configure.ac): Remove gl_FOPEN_SAFER call.
12746         (Makefile.am): Augment lib_SOURCES.
12747
12748 2011-05-23  Bruno Haible  <bruno@clisp.org>
12749
12750         crypto/sha512: Move AC_LIBOBJ invocations to module description.
12751         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
12752         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
12753
12754 2011-05-23  Bruno Haible  <bruno@clisp.org>
12755
12756         crypto/sha256: Move AC_LIBOBJ invocations to module description.
12757         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
12758         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
12759
12760 2011-05-23  Bruno Haible  <bruno@clisp.org>
12761
12762         crypto/sha1: Move AC_LIBOBJ invocations to module description.
12763         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
12764         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
12765
12766 2011-05-23  Bruno Haible  <bruno@clisp.org>
12767
12768         settime: Move AC_LIBOBJ invocations to module description.
12769         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
12770         * modules/settime (Makefile.am): Augment lib_SOURCES.
12771
12772 2011-05-23  Bruno Haible  <bruno@clisp.org>
12773
12774         savedir: Move AC_LIBOBJ invocations to module description.
12775         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
12776         * modules/savedir (Makefile.am): Augment lib_SOURCES.
12777
12778 2011-05-23  Bruno Haible  <bruno@clisp.org>
12779
12780         save-cwd: Move AC_LIBOBJ invocations to module description.
12781         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
12782         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
12783
12784 2011-05-23  Bruno Haible  <bruno@clisp.org>
12785
12786         same: Move AC_LIBOBJ invocations to module description.
12787         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
12788         * modules/same (Makefile.am): Augment lib_SOURCES.
12789
12790 2011-05-23  Bruno Haible  <bruno@clisp.org>
12791
12792         safe-write: Move AC_LIBOBJ invocations to module description.
12793         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
12794         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
12795         instead of gl_SAFE_WRITE.
12796         (Makefile.am): Augment lib_SOURCES.
12797
12798 2011-05-23  Bruno Haible  <bruno@clisp.org>
12799
12800         safe-read: Move AC_LIBOBJ invocations to module description.
12801         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
12802         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
12803         of gl_SAFE_READ.
12804         (Makefile.am): Augment lib_SOURCES.
12805
12806 2011-05-23  Bruno Haible  <bruno@clisp.org>
12807
12808         safe-alloc: Move AC_LIBOBJ invocations to module description.
12809         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
12810         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
12811
12812 2011-05-23  Bruno Haible  <bruno@clisp.org>
12813
12814         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
12815         * m4/rijndael.m4: Remove file.
12816         * modules/crypto/rijndael (Files): Remove it.
12817         (configure.ac): Remove gl_RIJNDAEL call.
12818         (Makefile.am): Augment lib_SOURCES.
12819
12820 2011-05-23  Bruno Haible  <bruno@clisp.org>
12821
12822         readtokens: Move AC_LIBOBJ invocations to module description.
12823         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
12824         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
12825
12826 2011-05-23  Bruno Haible  <bruno@clisp.org>
12827
12828         read-file: Move AC_LIBOBJ invocations to module description.
12829         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
12830         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
12831         of gl_FUNC_READ_FILE.
12832         (Makefile.am): Augment lib_SOURCES.
12833
12834 2011-05-23  Bruno Haible  <bruno@clisp.org>
12835
12836         quotearg: Move AC_LIBOBJ invocations to module description.
12837         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
12838         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
12839
12840 2011-05-23  Bruno Haible  <bruno@clisp.org>
12841
12842         quote: Move AC_LIBOBJ invocations to module description.
12843         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
12844         * modules/quote (Makefile.am): Augment lib_SOURCES.
12845
12846 2011-05-23  Bruno Haible  <bruno@clisp.org>
12847
12848         posixver: Move AC_LIBOBJ invocations to module description.
12849         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
12850         * modules/posixver (Makefile.am): Augment lib_SOURCES.
12851
12852 2011-05-23  Bruno Haible  <bruno@clisp.org>
12853
12854         posixtm: Move AC_LIBOBJ invocations to module description.
12855         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
12856         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
12857
12858 2011-05-23  Bruno Haible  <bruno@clisp.org>
12859
12860         physmem: Move AC_LIBOBJ invocations to module description.
12861         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
12862         * modules/physmem (Makefile.am): Augment lib_SOURCES.
12863
12864 2011-05-23  Bruno Haible  <bruno@clisp.org>
12865
12866         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
12867         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
12868         invocation.
12869         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
12870
12871 2011-05-23  Bruno Haible  <bruno@clisp.org>
12872
12873         mpsort: Move AC_LIBOBJ invocations to module description.
12874         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
12875         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
12876
12877 2011-05-23  Bruno Haible  <bruno@clisp.org>
12878
12879         modechange: Move AC_LIBOBJ invocations to module description.
12880         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
12881         * modules/modechange (Makefile.am): Augment lib_SOURCES.
12882
12883 2011-05-23  Bruno Haible  <bruno@clisp.org>
12884
12885         mkdir-p: Move AC_LIBOBJ invocations to module description.
12886         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
12887         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
12888
12889 2011-05-23  Bruno Haible  <bruno@clisp.org>
12890
12891         mkancesdirs: Move AC_LIBOBJ invocations to module description.
12892         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
12893         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
12894
12895 2011-05-23  Bruno Haible  <bruno@clisp.org>
12896
12897         mgetgroups: Move AC_LIBOBJ invocations to module description.
12898         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
12899         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
12900
12901 2011-05-23  Bruno Haible  <bruno@clisp.org>
12902
12903         memxor: Move AC_LIBOBJ invocations to module description.
12904         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
12905         * modules/memxor (Makefile.am): Augment lib_SOURCES.
12906
12907 2011-05-23  Bruno Haible  <bruno@clisp.org>
12908
12909         memcoll: Move AC_LIBOBJ invocations to module description.
12910         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
12911         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
12912
12913 2011-05-23  Bruno Haible  <bruno@clisp.org>
12914
12915         memcasecmp: Move AC_LIBOBJ invocations to module description.
12916         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
12917         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
12918
12919 2011-05-23  Bruno Haible  <bruno@clisp.org>
12920
12921         crypto/md5: Move AC_LIBOBJ invocations to module description.
12922         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
12923         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
12924
12925 2011-05-23  Bruno Haible  <bruno@clisp.org>
12926
12927         crypto/md4: Move AC_LIBOBJ invocations to module description.
12928         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
12929         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
12930
12931 2011-05-23  Bruno Haible  <bruno@clisp.org>
12932
12933         crypto/md2: Move AC_LIBOBJ invocations to module description.
12934         * m4/md2.m4: Remove file.
12935         * modules/crypto/md2 (Files): Remove it.
12936         (configure.ac): Remove gl_MD2 call.
12937         (Makefile.am): Augment lib_SOURCES.
12938
12939 2011-05-23  Bruno Haible  <bruno@clisp.org>
12940
12941         long-options: Move AC_LIBOBJ invocations to module description.
12942         * m4/long-options.m4: Remove file.
12943         * modules/long-options (Files): Remove it.
12944         (configure.ac): Remove gl_LONG_OPTIONS call.
12945         (Makefile.am): Augment lib_SOURCES.
12946
12947 2011-05-23  Bruno Haible  <bruno@clisp.org>
12948
12949         i-ring: Move AC_LIBOBJ invocations to module description.
12950         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
12951         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
12952
12953 2011-05-23  Bruno Haible  <bruno@clisp.org>
12954
12955         idcache: Move AC_LIBOBJ invocations to module description.
12956         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
12957         * modules/idcache (Makefile.am): Augment lib_SOURCES.
12958
12959 2011-05-23  Bruno Haible  <bruno@clisp.org>
12960
12961         human: Move AC_LIBOBJ invocations to module description.
12962         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
12963         * modules/human (Makefile.am): Augment lib_SOURCES.
12964
12965 2011-05-23  Bruno Haible  <bruno@clisp.org>
12966
12967         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
12968         * m4/hmac-sha1.m4: Remove file.
12969         * modules/crypto/hmac-sha1 (Files): Remove it.
12970         (configure.ac): Remove gl_HMAC_SHA1 call.
12971         (Makefile.am): Augment lib_SOURCES.
12972
12973 2011-05-23  Bruno Haible  <bruno@clisp.org>
12974
12975         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
12976         * m4/hmac-md5.m4: Remove file.
12977         * modules/crypto/hmac-md5 (Files): Remove it.
12978         (configure.ac): Remove gl_HMAC_MD5 call.
12979         (Makefile.am): Augment lib_SOURCES.
12980
12981 2011-05-23  Bruno Haible  <bruno@clisp.org>
12982
12983         hash: Move AC_LIBOBJ invocations to module description.
12984         * m4/hash.m4: Remove file.
12985         * modules/hash (Files): Remove it.
12986         (configure.ac): Remove gl_HASH call.
12987         (Makefile.am): Augment lib_SOURCES.
12988
12989 2011-05-23  Bruno Haible  <bruno@clisp.org>
12990
12991         hard-locale: Move AC_LIBOBJ invocations to module description.
12992         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
12993         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
12994
12995 2011-05-23  Bruno Haible  <bruno@clisp.org>
12996
12997         getugroups: Move AC_LIBOBJ invocations to module description.
12998         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
12999         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
13000
13001 2011-05-23  Bruno Haible  <bruno@clisp.org>
13002
13003         gettime: Move AC_LIBOBJ invocations to module description.
13004         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
13005         * modules/gettime (Makefile.am): Augment lib_SOURCES.
13006
13007 2011-05-23  Bruno Haible  <bruno@clisp.org>
13008
13009         getndelim2: Move AC_LIBOBJ invocations to module description.
13010         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
13011         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
13012
13013 2011-05-23  Bruno Haible  <bruno@clisp.org>
13014
13015         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
13016         * m4/gc-pbkdf2-sha1.m4: Remove file.
13017         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
13018         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
13019         (Makefile.am): Augment lib_SOURCES.
13020
13021 2011-05-23  Bruno Haible  <bruno@clisp.org>
13022
13023         fts: Move AC_LIBOBJ invocations to module description.
13024         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
13025         * modules/fts (configure.ac): ... to here.
13026
13027 2011-05-23  Bruno Haible  <bruno@clisp.org>
13028
13029         file-type: Move AC_LIBOBJ invocations to module description.
13030         * m4/file-type.m4: Remove file.
13031         * modules/file-type (Files): Remove it.
13032         (configure.ac): Remove gl_FILE_TYPE call.
13033         (Makefile.am): Augment lib_SOURCES.
13034
13035 2011-05-23  Bruno Haible  <bruno@clisp.org>
13036
13037         filenamecat*: Respect rules for use of AC_LIBOBJ.
13038         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
13039         Remove AC_LIBOBJ invocation.
13040         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
13041         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
13042
13043 2011-05-23  Bruno Haible  <bruno@clisp.org>
13044
13045         filemode: Move AC_LIBOBJ invocations to module description.
13046         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
13047         * modules/filemode (Makefile.am): Augment lib_SOURCES.
13048
13049 2011-05-23  Bruno Haible  <bruno@clisp.org>
13050
13051         openat-safer: Move AC_LIBOBJ invocations to module description.
13052         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
13053         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
13054
13055 2011-05-23  Bruno Haible  <bruno@clisp.org>
13056
13057         fcntl-safer: Move AC_LIBOBJ invocations to module description.
13058         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
13059         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
13060
13061 2011-05-23  Bruno Haible  <bruno@clisp.org>
13062
13063         exclude: Move AC_LIBOBJ invocations to module description.
13064         * m4/exclude.m4: Remove file.
13065         * modules/exclude (Files): Remove it.
13066         (configure.ac): Remove gl_EXCLUDE call.
13067         (Makefile.am): Augment lib_SOURCES.
13068
13069 2011-05-23  Bruno Haible  <bruno@clisp.org>
13070
13071         dirname*: Respect rules for use of AC_LIBOBJ.
13072         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
13073         invocations.
13074         * modules/dirname (Makefile.am): Augment lib_SOURCES.
13075         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
13076
13077 2011-05-23  Bruno Haible  <bruno@clisp.org>
13078
13079         dirent-safer: Move AC_LIBOBJ invocations to module description.
13080         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
13081         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
13082
13083 2011-05-23  Bruno Haible  <bruno@clisp.org>
13084
13085         crypto/des: Move AC_LIBOBJ invocations to module description.
13086         * m4/des.m4: Remove file.
13087         * modules/crypto/des (Files): Remove it.
13088         (configure.ac): Remove gl_DES call.
13089         (Makefile.am): Augment lib_SOURCES.
13090
13091 2011-05-23  Bruno Haible  <bruno@clisp.org>
13092
13093         cycle-check: Move AC_LIBOBJ invocations to module description.
13094         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
13095         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
13096
13097 2011-05-23  Bruno Haible  <bruno@clisp.org>
13098
13099         c-strtold: Move AC_LIBOBJ invocations to module description.
13100         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
13101         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
13102
13103 2011-05-23  Bruno Haible  <bruno@clisp.org>
13104
13105         c-strtod: Move AC_LIBOBJ invocations to module description.
13106         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
13107         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
13108
13109 2011-05-23  Bruno Haible  <bruno@clisp.org>
13110
13111         crc: Move AC_LIBOBJ invocations to module description.
13112         * m4/crc.m4: Remove file.
13113         * modules/crc (Files): Remove it.
13114         (configure.ac): Remove gl_CRC call.
13115         (Makefile.am): Augment lib_SOURCES.
13116
13117 2011-05-23  Bruno Haible  <bruno@clisp.org>
13118
13119         close-stream: Move AC_LIBOBJ invocations to module description.
13120         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
13121         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
13122
13123 2011-05-23  Bruno Haible  <bruno@clisp.org>
13124
13125         closeout: Move AC_LIBOBJ invocations to module description.
13126         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
13127         * modules/closeout (Makefile.am): Augment lib_SOURCES.
13128
13129 2011-05-23  Bruno Haible  <bruno@clisp.org>
13130
13131         closein: Move AC_LIBOBJ invocations to module description.
13132         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
13133         * modules/closein (Makefile.am): Augment lib_SOURCES.
13134
13135 2011-05-23  Bruno Haible  <bruno@clisp.org>
13136
13137         cloexec: Move AC_LIBOBJ invocations to module description.
13138         * m4/cloexec.m4: Remove file.
13139         * modules/cloexec (Files): Remove it.
13140         (configure.ac): Remove gl_CLOEXEC call.
13141         (Makefile.am): Augment lib_SOURCES.
13142
13143 2011-05-23  Bruno Haible  <bruno@clisp.org>
13144
13145         check-version: Move AC_LIBOBJ invocations to module description.
13146         * m4/check-version.m4: Remove file.
13147         * modules/check-version (Files): Remove it.
13148         (configure.ac): Remove gl_CHECK_VERSION call.
13149         (Makefile.am): Augment lib_SOURCES.
13150
13151 2011-05-23  Bruno Haible  <bruno@clisp.org>
13152
13153         chdir-safer: Move AC_LIBOBJ invocations to module description.
13154         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
13155         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
13156
13157 2011-05-23  Bruno Haible  <bruno@clisp.org>
13158
13159         canonicalize: Move AC_LIBOBJ invocations to module description.
13160         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
13161         AC_LIBOBJ invocation.
13162         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
13163
13164 2011-05-23  Bruno Haible  <bruno@clisp.org>
13165
13166         canon-host: Move AC_LIBOBJ invocations to module description.
13167         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
13168         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
13169         instead of gl_CANON_HOST.
13170         (Makefile.am): Augment lib_SOURCES.
13171
13172 2011-05-23  Bruno Haible  <bruno@clisp.org>
13173
13174         backupfile: Move AC_LIBOBJ invocations to module description.
13175         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
13176         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
13177
13178 2011-05-23  Bruno Haible  <bruno@clisp.org>
13179
13180         argmatch: Move AC_LIBOBJ invocations to module description.
13181         * m4/argmatch.m4: Remove file.
13182         * modules/argmatch (Files): Remove it.
13183         (configure.ac): Remove gl_ARGMATCH call.
13184         (Makefile.am): Augment lib_SOURCES.
13185
13186 2011-05-23  Bruno Haible  <bruno@clisp.org>
13187
13188         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
13189         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
13190         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
13191
13192 2011-05-23  Bruno Haible  <bruno@clisp.org>
13193
13194         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
13195         * m4/arcfour.m4: Remove file.
13196         * modules/crypto/arcfour (Files): Remove it.
13197         (configure.ac): Remove gl_ARCFOUR call.
13198         (Makefile.am): Augment lib_SOURCES.
13199
13200 2011-05-22  Bruno Haible  <bruno@clisp.org>
13201
13202         write: Move AC_LIBOBJ invocations to module description.
13203         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
13204         * modules/write (configure.ac): ... to here.
13205
13206 2011-05-22  Bruno Haible  <bruno@clisp.org>
13207
13208         wmemset: Move AC_LIBOBJ invocations to module description.
13209         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
13210         here...
13211         * modules/wmemset (configure.ac): ... to here.
13212
13213 2011-05-22  Bruno Haible  <bruno@clisp.org>
13214
13215         wmemmove: Move AC_LIBOBJ invocations to module description.
13216         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
13217         here...
13218         * modules/wmemmove (configure.ac): ... to here.
13219
13220 2011-05-22  Bruno Haible  <bruno@clisp.org>
13221
13222         wmemcpy: Move AC_LIBOBJ invocations to module description.
13223         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
13224         here...
13225         * modules/wmemcpy (configure.ac): ... to here.
13226
13227 2011-05-22  Bruno Haible  <bruno@clisp.org>
13228
13229         wmemcmp: Move AC_LIBOBJ invocations to module description.
13230         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
13231         here...
13232         * modules/wmemcmp (configure.ac): ... to here.
13233
13234 2011-05-22  Bruno Haible  <bruno@clisp.org>
13235
13236         wmemchr: Move AC_LIBOBJ invocations to module description.
13237         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
13238         here...
13239         * modules/wmemchr (configure.ac): ... to here.
13240
13241 2011-05-22  Bruno Haible  <bruno@clisp.org>
13242
13243         wcswidth: Move AC_LIBOBJ invocations to module description.
13244         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
13245         here...
13246         * modules/wcswidth (configure.ac): ... to here.
13247
13248 2011-05-22  Bruno Haible  <bruno@clisp.org>
13249
13250         wcwidth: Respect rules for use of AC_LIBOBJ.
13251         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
13252         invocation from here...
13253         * modules/wcwidth (configure.ac): ... to here.
13254         (Depends-on): Update conditions.
13255
13256 2011-05-22  Bruno Haible  <bruno@clisp.org>
13257
13258         wctype: Move AC_LIBOBJ invocations to module description.
13259         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
13260         invocation from here...
13261         * modules/wctype (configure.ac): ... to here.
13262         (Depends-on): Update conditions.
13263
13264 2011-05-22  Bruno Haible  <bruno@clisp.org>
13265
13266         wctrans: Move AC_LIBOBJ invocations to module description.
13267         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
13268         invocation from here...
13269         * modules/wctrans (configure.ac): ... to here.
13270
13271 2011-05-22  Bruno Haible  <bruno@clisp.org>
13272
13273         wctomb: Move AC_LIBOBJ invocations to module description.
13274         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
13275         invocations from here...
13276         * modules/wctomb (configure.ac): ... to here.
13277
13278 2011-05-22  Bruno Haible  <bruno@clisp.org>
13279
13280         wctob: Move AC_LIBOBJ invocations to module description.
13281         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
13282         gl_PREREQ_WCTOB invocations from here...
13283         * modules/wctob (configure.ac): ... to here.
13284         (Depends-on): Update conditions.
13285
13286 2011-05-22  Bruno Haible  <bruno@clisp.org>
13287
13288         wcsxfrm: Move AC_LIBOBJ invocations to module description.
13289         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
13290         here...
13291         * modules/wcsxfrm (configure.ac): ... to here.
13292
13293 2011-05-22  Bruno Haible  <bruno@clisp.org>
13294
13295         wcstok: Move AC_LIBOBJ invocations to module description.
13296         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
13297         * modules/wcstok (configure.ac): ... to here.
13298
13299 2011-05-22  Bruno Haible  <bruno@clisp.org>
13300
13301         wcsstr: Move AC_LIBOBJ invocations to module description.
13302         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
13303         * modules/wcsstr (configure.ac): ... to here.
13304
13305 2011-05-22  Bruno Haible  <bruno@clisp.org>
13306
13307         wcsspn: Move AC_LIBOBJ invocations to module description.
13308         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
13309         * modules/wcsspn (configure.ac): ... to here.
13310
13311 2011-05-22  Bruno Haible  <bruno@clisp.org>
13312
13313         wcsrtombs: Move AC_LIBOBJ invocations to module description.
13314         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
13315         gl_PREREQ_WCSRTOMBS invocations from here...
13316         * modules/wcsrtombs (configure.ac): ... to here.
13317
13318 2011-05-22  Bruno Haible  <bruno@clisp.org>
13319
13320         wcsrchr: Move AC_LIBOBJ invocations to module description.
13321         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
13322         here...
13323         * modules/wcsrchr (configure.ac): ... to here.
13324
13325 2011-05-22  Bruno Haible  <bruno@clisp.org>
13326
13327         wcspbrk: Move AC_LIBOBJ invocations to module description.
13328         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
13329         here...
13330         * modules/wcspbrk (configure.ac): ... to here.
13331
13332 2011-05-22  Bruno Haible  <bruno@clisp.org>
13333
13334         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
13335         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
13336         gl_PREREQ_WCSNRTOMBS invocations from here...
13337         * modules/wcsnrtombs (configure.ac): ... to here.
13338
13339 2011-05-22  Bruno Haible  <bruno@clisp.org>
13340
13341         wcsnlen: Move AC_LIBOBJ invocations to module description.
13342         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
13343         here...
13344         * modules/wcsnlen (configure.ac): ... to here.
13345
13346 2011-05-22  Bruno Haible  <bruno@clisp.org>
13347
13348         wcsncpy: Move AC_LIBOBJ invocations to module description.
13349         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
13350         here...
13351         * modules/wcsncpy (configure.ac): ... to here.
13352
13353 2011-05-22  Bruno Haible  <bruno@clisp.org>
13354
13355         wcsncmp: Move AC_LIBOBJ invocations to module description.
13356         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
13357         here...
13358         * modules/wcsncmp (configure.ac): ... to here.
13359
13360 2011-05-22  Bruno Haible  <bruno@clisp.org>
13361
13362         wcsncat: Move AC_LIBOBJ invocations to module description.
13363         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
13364         here...
13365         * modules/wcsncat (configure.ac): ... to here.
13366
13367 2011-05-22  Bruno Haible  <bruno@clisp.org>
13368
13369         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
13370         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
13371         from here...
13372         * modules/wcsncasecmp (configure.ac): ... to here.
13373
13374 2011-05-22  Bruno Haible  <bruno@clisp.org>
13375
13376         wcslen: Move AC_LIBOBJ invocations to module description.
13377         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
13378         * modules/wcslen (configure.ac): ... to here.
13379
13380 2011-05-22  Bruno Haible  <bruno@clisp.org>
13381
13382         wcsdup: Move AC_LIBOBJ invocations to module description.
13383         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
13384         * modules/wcsdup (configure.ac): ... to here.
13385
13386 2011-05-22  Bruno Haible  <bruno@clisp.org>
13387
13388         wcscspn: Move AC_LIBOBJ invocations to module description.
13389         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
13390         here...
13391         * modules/wcscspn (configure.ac): ... to here.
13392
13393 2011-05-22  Bruno Haible  <bruno@clisp.org>
13394
13395         wcscpy: Move AC_LIBOBJ invocations to module description.
13396         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
13397         * modules/wcscpy (configure.ac): ... to here.
13398
13399 2011-05-22  Bruno Haible  <bruno@clisp.org>
13400
13401         wcscoll: Move AC_LIBOBJ invocations to module description.
13402         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
13403         here...
13404         * modules/wcscoll (configure.ac): ... to here.
13405
13406 2011-05-22  Bruno Haible  <bruno@clisp.org>
13407
13408         wcscmp: Move AC_LIBOBJ invocations to module description.
13409         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
13410         * modules/wcscmp (configure.ac): ... to here.
13411
13412 2011-05-22  Bruno Haible  <bruno@clisp.org>
13413
13414         wcschr: Move AC_LIBOBJ invocations to module description.
13415         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
13416         * modules/wcschr (configure.ac): ... to here.
13417
13418 2011-05-22  Bruno Haible  <bruno@clisp.org>
13419
13420         wcscat: Move AC_LIBOBJ invocations to module description.
13421         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
13422         * modules/wcscat (configure.ac): ... to here.
13423
13424 2011-05-22  Bruno Haible  <bruno@clisp.org>
13425
13426         wcscasecmp: Move AC_LIBOBJ invocations to module description.
13427         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
13428         here...
13429         * modules/wcscasecmp (configure.ac): ... to here.
13430
13431 2011-05-22  Bruno Haible  <bruno@clisp.org>
13432
13433         wcrtomb: Move AC_LIBOBJ invocations to module description.
13434         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
13435         invocations from here...
13436         * modules/wcrtomb (configure.ac): ... to here.
13437
13438 2011-05-22  Bruno Haible  <bruno@clisp.org>
13439
13440         wcpncpy: Move AC_LIBOBJ invocations to module description.
13441         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
13442         here...
13443         * modules/wcpncpy (configure.ac): ... to here.
13444
13445 2011-05-22  Bruno Haible  <bruno@clisp.org>
13446
13447         wcpcpy: Move AC_LIBOBJ invocations to module description.
13448         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
13449         * modules/wcpcpy (configure.ac): ... to here.
13450
13451 2011-05-22  Bruno Haible  <bruno@clisp.org>
13452
13453         waitpid: Move AC_LIBOBJ invocations to module description.
13454         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
13455         invocation from here...
13456         * modules/waitpid (configure.ac): ... to here.
13457
13458 2011-05-22  Bruno Haible  <bruno@clisp.org>
13459
13460         utimensat: Move AC_LIBOBJ invocations to module description.
13461         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
13462         here...
13463         * modules/utimensat (configure.ac): ... to here.
13464
13465 2011-05-22  Bruno Haible  <bruno@clisp.org>
13466
13467         usleep: Move AC_LIBOBJ invocations to module description.
13468         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
13469         here...
13470         * modules/usleep (configure.ac): ... to here.
13471
13472 2011-05-22  Bruno Haible  <bruno@clisp.org>
13473
13474         unlockpt: Move AC_LIBOBJ invocations to module description.
13475         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
13476         gl_PREREQ_UNLOCKPT invocations from here...
13477         * modules/unlockpt (configure.ac): ... to here.
13478
13479 2011-05-22  Bruno Haible  <bruno@clisp.org>
13480
13481         unlink: Respect rules for use of AC_LIBOBJ.
13482         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
13483         * modules/unlink (configure.ac): ... to here.
13484
13485 2011-05-22  Bruno Haible  <bruno@clisp.org>
13486
13487         uname: Move AC_LIBOBJ invocations to module description.
13488         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
13489         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
13490         here...
13491         * modules/uname (configure.ac): ... to here.
13492
13493 2011-05-22  Bruno Haible  <bruno@clisp.org>
13494
13495         ttyname_r: Move AC_LIBOBJ invocations to module description.
13496         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
13497         gl_PREREQ_TTYNAME_R invocations from here...
13498         * modules/ttyname_r (configure.ac): ... to here.
13499
13500 2011-05-22  Bruno Haible  <bruno@clisp.org>
13501
13502         tsearch: Move AC_LIBOBJ invocations to module description.
13503         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
13504         invocations from here...
13505         * modules/tsearch (configure.ac): ... to here.
13506
13507 2011-05-22  Bruno Haible  <bruno@clisp.org>
13508
13509         towctrans: Move AC_LIBOBJ invocations to module description.
13510         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
13511         AC_LIBOBJ invocation from here...
13512         * modules/towctrans (configure.ac): ... to here.
13513
13514 2011-05-22  Bruno Haible  <bruno@clisp.org>
13515
13516         tmpfile: Move AC_LIBOBJ invocations to module description.
13517         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
13518         invocations from here...
13519         * modules/tmpfile (configure.ac): ... to here.
13520
13521 2011-05-22  Bruno Haible  <bruno@clisp.org>
13522
13523         times: Move AC_LIBOBJ invocations to module description.
13524         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
13525         * modules/times (configure.ac): ... to here.
13526
13527 2011-05-22  Bruno Haible  <bruno@clisp.org>
13528
13529         time_r: Move AC_LIBOBJ invocations to module description.
13530         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
13531         invocations from here...
13532         * modules/time_r (configure.ac): ... to here.
13533
13534 2011-05-22  Bruno Haible  <bruno@clisp.org>
13535
13536         timegm: Move AC_LIBOBJ invocations to module description.
13537         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
13538         invocations from here...
13539         * modules/timegm (configure.ac): ... to here.
13540
13541 2011-05-22  Bruno Haible  <bruno@clisp.org>
13542
13543         tcgetsid: Move AC_LIBOBJ invocations to module description.
13544         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
13545         and gl_PREREQ_TCGETSID invocations from here...
13546         * modules/tcgetsid (configure.ac): ... to here.
13547         (Depends-on): Update conditions.
13548
13549 2011-05-22  Bruno Haible  <bruno@clisp.org>
13550
13551         symlinkat: Move AC_LIBOBJ invocations to module description.
13552         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
13553         here...
13554         * modules/symlinkat (configure.ac): ... to here.
13555
13556 2011-05-22  Bruno Haible  <bruno@clisp.org>
13557
13558         symlink: Move AC_LIBOBJ invocations to module description.
13559         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
13560         here...
13561         * modules/symlink (configure.ac): ... to here.
13562
13563 2011-05-22  Bruno Haible  <bruno@clisp.org>
13564
13565         strverscmp: Move AC_LIBOBJ invocations to module description.
13566         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
13567         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
13568         from here...
13569         * modules/strverscmp (configure.ac): ... to here.
13570
13571 2011-05-22  Bruno Haible  <bruno@clisp.org>
13572
13573         strtok_r: Move AC_LIBOBJ invocations to module description.
13574         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
13575         and gl_PREREQ_STRTOK_R invocations from here...
13576         * modules/strtok_r (configure.ac): ... to here.
13577         (Depends-on): Update conditions.
13578
13579 2011-05-22  Bruno Haible  <bruno@clisp.org>
13580
13581         strtoumax: Move AC_LIBOBJ invocations to module description.
13582         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
13583         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
13584         from here...
13585         * modules/strtoumax (configure.ac): ... to here.
13586
13587 2011-05-22  Bruno Haible  <bruno@clisp.org>
13588
13589         strtoimax: Move AC_LIBOBJ invocations to module description.
13590         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
13591         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
13592         from here...
13593         * modules/strtoimax (configure.ac): ... to here.
13594
13595 2011-05-22  Bruno Haible  <bruno@clisp.org>
13596
13597         strtoull: Move AC_LIBOBJ invocations to module description.
13598         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
13599         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
13600         from here...
13601         * modules/strtoull (configure.ac): ... to here.
13602
13603 2011-05-22  Bruno Haible  <bruno@clisp.org>
13604
13605         strtoll: Move AC_LIBOBJ invocations to module description.
13606         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
13607         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
13608         here...
13609         * modules/strtoll (configure.ac): ... to here.
13610
13611 2011-05-22  Bruno Haible  <bruno@clisp.org>
13612
13613         strtoul: Move AC_LIBOBJ invocations to module description.
13614         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
13615         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13616         * modules/strtoul (configure.ac): ... to here.
13617
13618 2011-05-22  Bruno Haible  <bruno@clisp.org>
13619
13620         strtol: Move AC_LIBOBJ invocations to module description.
13621         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
13622         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13623         * modules/strtol (configure.ac): ... to here.
13624
13625 2011-05-22  Bruno Haible  <bruno@clisp.org>
13626
13627         strtod: Move AC_LIBOBJ invocations to module description.
13628         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
13629         invocations from here...
13630         * modules/strtod (configure.ac): ... to here.
13631
13632 2011-05-22  Bruno Haible  <bruno@clisp.org>
13633
13634         strstr*: Move AC_LIBOBJ invocations to module description.
13635         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
13636         invocations from here...
13637         * modules/strstr-simple (configure.ac): ... to here.
13638         * modules/strstr (configure.ac): ... and here.
13639
13640 2011-05-22  Bruno Haible  <bruno@clisp.org>
13641
13642         strsignal: Move AC_LIBOBJ invocations to module description.
13643         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
13644         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
13645         * modules/strsignal (configure.ac): ... to here.
13646         (Depends-on): Update conditions.
13647
13648 2011-05-22  Bruno Haible  <bruno@clisp.org>
13649
13650         strsep: Move AC_LIBOBJ invocations to module description.
13651         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
13652         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
13653         here...
13654         * modules/strsep (configure.ac): ... to here.
13655
13656 2011-05-22  Bruno Haible  <bruno@clisp.org>
13657
13658         strptime: Move AC_LIBOBJ invocations to module description.
13659         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
13660         gl_PREREQ_STRPTIME invocations from here...
13661         * modules/strptime (configure.ac): ... to here.
13662
13663 2011-05-22  Bruno Haible  <bruno@clisp.org>
13664
13665         strpbrk: Move AC_LIBOBJ invocations to module description.
13666         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
13667         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
13668         here...
13669         * modules/strpbrk (configure.ac): ... to here.
13670
13671 2011-05-22  Bruno Haible  <bruno@clisp.org>
13672
13673         strnlen: Move AC_LIBOBJ invocations to module description.
13674         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
13675         invocations from here...
13676         * modules/strnlen (configure.ac): ... to here.
13677
13678 2011-05-22  Bruno Haible  <bruno@clisp.org>
13679
13680         strndup: Move AC_LIBOBJ invocations to module description.
13681         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
13682         invocations from here...
13683         * modules/strndup (configure.ac): ... to here.
13684         (Depends-on): Update conditions.
13685
13686 2011-05-22  Bruno Haible  <bruno@clisp.org>
13687
13688         strncat: Move AC_LIBOBJ invocations to module description.
13689         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
13690         invocations from here...
13691         * modules/strncat (configure.ac): ... to here.
13692
13693 2011-05-22  Bruno Haible  <bruno@clisp.org>
13694
13695         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
13696         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
13697         invocations from here...
13698         * modules/strdup (configure.ac): ... to here.
13699         * modules/strdup-posix (configure.ac): ... and here.
13700
13701 2011-05-22  Bruno Haible  <bruno@clisp.org>
13702
13703         strcspn: Move AC_LIBOBJ invocations to module description.
13704         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
13705         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
13706         here...
13707         * modules/strcspn (configure.ac): ... to here.
13708
13709 2011-05-22  Bruno Haible  <bruno@clisp.org>
13710
13711         strchrnul: Move AC_LIBOBJ invocations to module description.
13712         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
13713         gl_PREREQ_STRCHRNUL invocations from here...
13714         * modules/strchrnul (configure.ac): ... to here.
13715
13716 2011-05-22  Bruno Haible  <bruno@clisp.org>
13717
13718         strcasestr*: Move AC_LIBOBJ invocations to module description.
13719         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
13720         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
13721         * modules/strcasestr-simple (configure.ac): ... to here.
13722         * modules/strcasestr (configure.ac): ... and here.
13723
13724 2011-05-22  Bruno Haible  <bruno@clisp.org>
13725
13726         strcase: Move AC_LIBOBJ invocations to module description.
13727         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
13728         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
13729         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
13730         gl_PREREQ_STRNCASECMP invocations from here...
13731         * modules/strcase (configure.ac): ... to here.
13732
13733 2011-05-22  Bruno Haible  <bruno@clisp.org>
13734
13735         stpncpy: Move AC_LIBOBJ invocations to module description.
13736         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
13737         here...
13738         * modules/stpncpy (configure.ac): ... to here.
13739
13740 2011-05-22  Bruno Haible  <bruno@clisp.org>
13741
13742         stpcpy: Move AC_LIBOBJ invocations to module description.
13743         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
13744         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
13745         here...
13746         * modules/stpcpy (configure.ac): ... to here.
13747
13748 2011-05-21  Bruno Haible  <bruno@clisp.org>
13749
13750         stat: Move AC_LIBOBJ invocations to module description.
13751         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
13752         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
13753         here...
13754         * modules/stat (configure.ac): ... to here.
13755
13756 2011-05-21  Bruno Haible  <bruno@clisp.org>
13757
13758         sleep: Move AC_LIBOBJ invocations to module description.
13759         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
13760         * modules/sleep (configure.ac): ... to here.
13761
13762 2011-05-21  Bruno Haible  <bruno@clisp.org>
13763
13764         signbit: Move AC_LIBOBJ invocations to module description.
13765         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
13766         * modules/signbit (configure.ac): ... to here.
13767
13768 2011-05-21  Bruno Haible  <bruno@clisp.org>
13769
13770         sigprocmask: Move AC_LIBOBJ invocations to module description.
13771         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
13772         gl_PREREQ_SIGPROMASK invocations from here...
13773         * modules/sigprocmask (configure.ac): ... to here.
13774
13775 2011-05-21  Bruno Haible  <bruno@clisp.org>
13776
13777         sigaction: Move AC_LIBOBJ invocations to module description.
13778         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
13779         gl_PREREQ_SIGACTION invocations from here...
13780         * modules/sigaction (configure.ac): ... to here.
13781
13782 2011-05-21  Bruno Haible  <bruno@clisp.org>
13783
13784         sig2str: Move AC_LIBOBJ invocations to module description.
13785         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
13786         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
13787         here...
13788         * modules/sig2str (configure.ac): ... to here.
13789
13790 2011-05-21  Bruno Haible  <bruno@clisp.org>
13791
13792         setlocale: Move AC_LIBOBJ invocations to module description.
13793         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
13794         gl_PREREQ_SETLOCALE invocations from here...
13795         * modules/setlocale (configure.ac): ... to here.
13796
13797 2011-05-21  Bruno Haible  <bruno@clisp.org>
13798
13799         unsetenv: Move AC_LIBOBJ invocations to module description.
13800         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
13801         and gl_PREREQ_UNSETENV invocations from here...
13802         * modules/unsetenv (configure.ac): ... to here.
13803         (Depends-on): Update.
13804
13805 2011-05-21  Bruno Haible  <bruno@clisp.org>
13806
13807         setenv: Move AC_LIBOBJ invocations to module description.
13808         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
13809         here...
13810         * modules/setenv (configure.ac): ... to here.
13811
13812 2011-05-21  Bruno Haible  <bruno@clisp.org>
13813
13814         selinux-h: Move AC_LIBOBJ invocations to module description.
13815         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
13816         AC_LIBOBJ invocation from here...
13817         * modules/selinux-h (configure.ac): ... to here.
13818
13819 2011-05-21  Bruno Haible  <bruno@clisp.org>
13820
13821         select: Respect rules for use of AC_LIBOBJ.
13822         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
13823         here...
13824         * modules/select (configure.ac): ... to here.
13825
13826 2011-05-21  Bruno Haible  <bruno@clisp.org>
13827
13828         scandir: Move AC_LIBOBJ invocations to module description.
13829         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
13830         invocations from here...
13831         * modules/scandir (configure.ac): ... to here.
13832
13833 2011-05-21  Bruno Haible  <bruno@clisp.org>
13834
13835         rpmatch: Move AC_LIBOBJ invocations to module description.
13836         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
13837         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
13838         here...
13839         * modules/rpmatch (configure.ac): ... to here.
13840
13841 2011-05-21  Bruno Haible  <bruno@clisp.org>
13842
13843         rmdir: Respect rules for use of AC_LIBOBJ.
13844         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
13845         * modules/rmdir (configure.ac): ... to here.
13846
13847 2011-05-21  Bruno Haible  <bruno@clisp.org>
13848
13849         renameat: Move AC_LIBOBJ invocations to module description.
13850         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
13851         here...
13852         * modules/renameat (configure.ac): ... to here.
13853
13854 2011-05-21  Bruno Haible  <bruno@clisp.org>
13855
13856         rename: Respect rules for use of AC_LIBOBJ.
13857         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
13858         here...
13859         * modules/rename (configure.ac): ... to here.
13860
13861 2011-05-21  Bruno Haible  <bruno@clisp.org>
13862
13863         remove: Move AC_LIBOBJ invocations to module description.
13864         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
13865         here...
13866         * modules/remove (configure.ac): ... to here.
13867
13868 2011-05-21  Bruno Haible  <bruno@clisp.org>
13869
13870         relocatable-lib: Move AC_LIBOBJ invocations to module description.
13871         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
13872         macro.
13873         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
13874         * modules/relocatable-lib (configure.ac): ... to here.
13875         * modules/relocatable-prog-wrapper (configure.ac): Invoke
13876         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
13877
13878 2011-05-21  Bruno Haible  <bruno@clisp.org>
13879
13880         relocatable-prog: Move AC_LIBOBJ invocations to module description.
13881         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
13882         here...
13883         * modules/relocatable-prog (configure.ac): ... to here.
13884
13885 2011-05-21  Bruno Haible  <bruno@clisp.org>
13886
13887         regex: Move AC_LIBOBJ invocations to module description.
13888         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
13889         invocations from here...
13890         * modules/regex (configure.ac): ... to here.
13891
13892 2011-05-21  Bruno Haible  <bruno@clisp.org>
13893
13894         realloc-*: Move AC_LIBOBJ invocations to module description.
13895         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
13896         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
13897         AC_LIBOBJ invocations from here...
13898         * modules/realloc-gnu (configure.ac): ... to here.
13899         * modules/realloc-posix (configure.ac): ... and here.
13900
13901 2011-05-21  Bruno Haible  <bruno@clisp.org>
13902
13903         readutmp: Move AC_LIBOBJ invocations to module description.
13904         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
13905         * modules/readutmp (configure.ac): ... to here.
13906
13907 2011-05-21  Bruno Haible  <bruno@clisp.org>
13908
13909         readlinkat: Move AC_LIBOBJ invocations to module description.
13910         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
13911         here...
13912         * modules/readlinkat (configure.ac): ... to here.
13913
13914 2011-05-21  Bruno Haible  <bruno@clisp.org>
13915
13916         readlink: Move AC_LIBOBJ invocations to module description.
13917         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
13918         gl_PREREQ_READLINK invocations from here...
13919         * modules/readlink (configure.ac): ... to here.
13920
13921 2011-05-21  Bruno Haible  <bruno@clisp.org>
13922
13923         readline: Move AC_LIBOBJ invocations to module description.
13924         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
13925         gl_PREREQ_READLINE invocations from here...
13926         * modules/readline (configure.ac): ... to here.
13927
13928 2011-05-21  Bruno Haible  <bruno@clisp.org>
13929
13930         read: Move AC_LIBOBJ invocations to module description.
13931         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
13932         * modules/read (configure.ac): ... to here.
13933
13934 2011-05-21  Bruno Haible  <bruno@clisp.org>
13935
13936         rawmemchr: Move AC_LIBOBJ invocations to module description.
13937         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
13938         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
13939         from here...
13940         * modules/rawmemchr (configure.ac): ... to here.
13941
13942 2011-05-21  Bruno Haible  <bruno@clisp.org>
13943
13944         random_r: Move AC_LIBOBJ invocations to module description.
13945         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
13946         gl_PREREQ_RANDOM_R invocations from here...
13947         * modules/random_r (configure.ac): ... to here.
13948
13949 2011-05-21  Bruno Haible  <bruno@clisp.org>
13950
13951         pwrite: Move AC_LIBOBJ invocations to module description.
13952         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
13953         * modules/pwrite (configure.ac): ... to here.
13954
13955 2011-05-21  Bruno Haible  <bruno@clisp.org>
13956
13957         putenv: Move AC_LIBOBJ invocations to module description.
13958         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
13959         * modules/putenv (configure.ac): ... to here.
13960
13961 2011-05-21  Bruno Haible  <bruno@clisp.org>
13962
13963         login_tty: Move AC_LIBOBJ invocations to module description.
13964         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
13965         * modules/login_tty (configure.ac): ... to here.
13966
13967 2011-05-21  Bruno Haible  <bruno@clisp.org>
13968
13969         openpty: Move AC_LIBOBJ invocations to module description.
13970         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
13971         * modules/openpty (configure.ac): ... to here.
13972
13973 2011-05-21  Bruno Haible  <bruno@clisp.org>
13974
13975         forkpty: Move AC_LIBOBJ invocations to module description.
13976         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
13977         * modules/forkpty (configure.ac): ... to here.
13978
13979 2011-05-21  Bruno Haible  <bruno@clisp.org>
13980
13981         ptsname: Move AC_LIBOBJ invocations to module description.
13982         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
13983         invocations from here...
13984         * modules/ptsname (configure.ac): ... to here.
13985
13986 2011-05-21  Bruno Haible  <bruno@clisp.org>
13987
13988         pread: Move AC_LIBOBJ invocations to module description.
13989         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
13990         * modules/pread (configure.ac): ... to here.
13991
13992 2011-05-21  Bruno Haible  <bruno@clisp.org>
13993
13994         posix_spawn*: Move AC_LIBOBJ invocations to module description.
13995         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
13996         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
13997         * modules/posix_spawn (configure.ac): ... to here.
13998         * modules/posix_spawnp (configure.ac): ... and here.
13999
14000 2011-05-21  Bruno Haible  <bruno@clisp.org>
14001
14002         popen: Move AC_LIBOBJ invocations to module description.
14003         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
14004         invocations from here...
14005         * modules/popen (configure.ac): ... to here.
14006
14007 2011-05-21  Bruno Haible  <bruno@clisp.org>
14008
14009         poll: Move AC_LIBOBJ invocations to module description.
14010         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
14011         invocations from here...
14012         * modules/poll (configure.ac): ... to here.
14013
14014 2011-05-21  Bruno Haible  <bruno@clisp.org>
14015
14016         pipe-posix: Move AC_LIBOBJ invocations to module description.
14017         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
14018         * modules/pipe-posix (configure.ac): ... to here.
14019
14020 2011-05-21  Bruno Haible  <bruno@clisp.org>
14021
14022         openat: Respect rules for use of AC_LIBOBJ.
14023         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
14024         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14025         * modules/openat (configure.ac): ... to here.
14026
14027 2011-05-21  Bruno Haible  <bruno@clisp.org>
14028
14029         obstack-printf*: Move AC_LIBOBJ invocations to module description.
14030         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
14031         invocation from here...
14032         * modules/obstack-printf (configure.ac): ... to here.
14033         * modules/obstack-printf-posix (configure.ac): ... and here.
14034
14035 2011-05-21  Bruno Haible  <bruno@clisp.org>
14036
14037         nl_langinfo: Move AC_LIBOBJ invocations to module description.
14038         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
14039         from here...
14040         * modules/nl_langinfo (configure.ac): ... to here.
14041
14042 2011-05-21  Bruno Haible  <bruno@clisp.org>
14043
14044         nanosleep: Move AC_LIBOBJ invocations to module description.
14045         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
14046         gl_PREREQ_NANOSLEEP invocations from here...
14047         * modules/nanosleep (configure.ac): ... to here.
14048
14049 2011-05-21  Bruno Haible  <bruno@clisp.org>
14050
14051         mountlist: Move AC_LIBOBJ invocations to module description.
14052         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
14053         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
14054         * modules/mountlist (configure.ac): ... to here.
14055
14056 2011-05-21  Bruno Haible  <bruno@clisp.org>
14057
14058         mktime: Respect rules for use of AC_LIBOBJ.
14059         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
14060         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
14061         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
14062         (gl_FUNC_MKTIME_INTERNAL): ... and here...
14063         * modules/mktime (configure.ac): ... to here.
14064         * modules/mktime-internal (configure.ac): ... and here.
14065         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
14066
14067 2011-05-21  Bruno Haible  <bruno@clisp.org>
14068
14069         mkstemps: Move AC_LIBOBJ invocations to module description.
14070         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
14071         here...
14072         * modules/mkstemps (configure.ac): ... to here.
14073
14074 2011-05-21  Bruno Haible  <bruno@clisp.org>
14075
14076         mkstemp: Move AC_LIBOBJ invocations to module description.
14077         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
14078         gl_PREREQ_MKSTEMP invocations from here...
14079         * modules/mkstemp (configure.ac): ... to here.
14080
14081 2011-05-21  Bruno Haible  <bruno@clisp.org>
14082
14083         mkostemps: Move AC_LIBOBJ invocations to module description.
14084         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
14085         here...
14086         * modules/mkostemps (configure.ac): ... to here.
14087
14088 2011-05-21  Bruno Haible  <bruno@clisp.org>
14089
14090         mkostemp: Move AC_LIBOBJ invocations to module description.
14091         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
14092         gl_PREREQ_MKOSTEMP invocations from here...
14093         * modules/mkostemp (configure.ac): ... to here.
14094
14095 2011-05-21  Bruno Haible  <bruno@clisp.org>
14096
14097         mknod: Move AC_LIBOBJ invocations to module description.
14098         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
14099         * modules/mknod (configure.ac): ... to here.
14100
14101 2011-05-21  Bruno Haible  <bruno@clisp.org>
14102
14103         mkfifoat: Move AC_LIBOBJ invocations to module description.
14104         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
14105         here...
14106         * modules/mkfifoat (configure.ac): ... to here.
14107
14108 2011-05-21  Bruno Haible  <bruno@clisp.org>
14109
14110         mkfifo: Respect rules for use of AC_LIBOBJ.
14111         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
14112         here...
14113         * modules/mkfifo (configure.ac): ... to here.
14114
14115 2011-05-21  Bruno Haible  <bruno@clisp.org>
14116
14117         mkdtemp: Move AC_LIBOBJ invocations to module description.
14118         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
14119         invocations from here...
14120         * modules/mkdtemp (configure.ac): ... to here.
14121
14122 2011-05-21  Bruno Haible  <bruno@clisp.org>
14123
14124         mkdir: Move AC_LIBOBJ invocations to module description.
14125         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
14126         * modules/mkdir (configure.ac): ... to here.
14127
14128 2011-05-21  Bruno Haible  <bruno@clisp.org>
14129
14130         memset: Move AC_LIBOBJ invocations to module description.
14131         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
14132         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
14133         here...
14134         * modules/memset (configure.ac): ... to here.
14135
14136 2011-05-21  Bruno Haible  <bruno@clisp.org>
14137
14138         memrchr: Move AC_LIBOBJ invocations to module description.
14139         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
14140         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
14141         here...
14142         * modules/memrchr (configure.ac): ... to here.
14143
14144 2011-05-21  Bruno Haible  <bruno@clisp.org>
14145
14146         mempcpy: Move AC_LIBOBJ invocations to module description.
14147         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
14148         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
14149         here...
14150         * modules/mempcpy (configure.ac): ... to here.
14151
14152 2011-05-21  Bruno Haible  <bruno@clisp.org>
14153
14154         memmove: Move AC_LIBOBJ invocations to module description.
14155         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
14156         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
14157         here...
14158         * modules/memmove (configure.ac): ... to here.
14159
14160 2011-05-21  Bruno Haible  <bruno@clisp.org>
14161
14162         memmem*: Move AC_LIBOBJ invocations to module description.
14163         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
14164         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
14165         here...
14166         (gl_FUNC_MEMMEM): ... and here...
14167         * modules/memmem-simple (configure.ac): ... to here.
14168         * modules/memmem (configure.ac): ... and here.
14169
14170 2011-05-21  Bruno Haible  <bruno@clisp.org>
14171
14172         memcpy: Move AC_LIBOBJ invocations to module description.
14173         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
14174         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
14175         here...
14176         * modules/memcpy (configure.ac): ... to here.
14177
14178 2011-05-21  Bruno Haible  <bruno@clisp.org>
14179
14180         memcmp: Simplify autoconf macro.
14181         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
14182         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
14183         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
14184
14185 2011-05-21  Bruno Haible  <bruno@clisp.org>
14186
14187         memcmp: Move AC_LIBOBJ invocations to module description.
14188         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
14189         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
14190         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
14191         * modules/memcmp (configure.ac): ... to here.
14192         (Depends-on): Update conditions.
14193
14194 2011-05-21  Bruno Haible  <bruno@clisp.org>
14195
14196         memchr: Respect rules for use of AC_LIBOBJ.
14197         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
14198         invocations from here...
14199         * modules/memchr (configure.ac): ... to here.
14200
14201 2011-05-21  Bruno Haible  <bruno@clisp.org>
14202
14203         mbtowc: Move AC_LIBOBJ invocations to module description.
14204         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
14205         invocations from here...
14206         * modules/mbtowc (configure.ac): ... to here.
14207
14208 2011-05-21  Bruno Haible  <bruno@clisp.org>
14209
14210         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
14211         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
14212         gl_PREREQ_MBSRTOWCS invocations from here...
14213         * modules/mbsrtowcs (configure.ac): ... to here.
14214
14215 2011-05-21  Bruno Haible  <bruno@clisp.org>
14216
14217         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
14218         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
14219         gl_PREREQ_MBSNRTOWCS invocations from here...
14220         * modules/mbsnrtowcs (configure.ac): ... to here.
14221
14222 2011-05-21  Bruno Haible  <bruno@clisp.org>
14223
14224         mbsinit: Move AC_LIBOBJ invocations to module description.
14225         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
14226         invocations from here...
14227         * modules/mbsinit (configure.ac): ... to here.
14228
14229 2011-05-21  Bruno Haible  <bruno@clisp.org>
14230
14231         mbrlen: Move AC_LIBOBJ invocations to module description.
14232         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
14233         invocations from here...
14234         * modules/mbrlen (configure.ac): ... to here.
14235
14236 2011-05-21  Bruno Haible  <bruno@clisp.org>
14237
14238         mbrtowc: Respect rules for use of AC_LIBOBJ.
14239         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
14240         invocations from here...
14241         * modules/mbrtowc (configure.ac): ... to here.
14242
14243 2011-05-21  Bruno Haible  <bruno@clisp.org>
14244
14245         malloc-*: Move AC_LIBOBJ invocations to module description.
14246         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
14247         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
14248         AC_LIBOBJ invocations from here...
14249         * modules/malloc-gnu (configure.ac): ... to here.
14250         * modules/malloc-posix (configure.ac): ... and here.
14251
14252 2011-05-21  Bruno Haible  <bruno@clisp.org>
14253
14254         lstat, openat: Respect rules for use of AC_LIBOBJ.
14255         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
14256         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
14257         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
14258         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
14259         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
14260         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
14261         here.
14262         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
14263
14264 2011-05-21  Bruno Haible  <bruno@clisp.org>
14265
14266         lseek: Move AC_LIBOBJ invocations to module description.
14267         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
14268         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14269         * modules/lseek (configure.ac): ... to here.
14270
14271 2011-05-21  Bruno Haible  <bruno@clisp.org>
14272
14273         linkat: Move AC_LIBOBJ invocations to module description.
14274         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
14275         here...
14276         * modules/linkat (configure.ac): ... to here.
14277
14278 2011-05-21  Bruno Haible  <bruno@clisp.org>
14279
14280         link: Respect rules for use of AC_LIBOBJ.
14281         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
14282         * modules/link (configure.ac): ... to here.
14283
14284 2011-05-21  Bruno Haible  <bruno@clisp.org>
14285
14286         lchown: Move AC_LIBOBJ invocations to module description.
14287         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14288         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14289         * modules/lchown (configure.ac): ... to here.
14290
14291 2011-05-21  Bruno Haible  <bruno@clisp.org>
14292
14293         iswctype: Move AC_LIBOBJ invocations to module description.
14294         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
14295         here...
14296         * modules/iswctype (configure.ac): ... to here.
14297
14298 2011-05-21  Bruno Haible  <bruno@clisp.org>
14299
14300         iswblank: Move AC_LIBOBJ invocations to module description.
14301         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
14302         here...
14303         * modules/iswblank (configure.ac): ... to here.
14304
14305 2011-05-21  Bruno Haible  <bruno@clisp.org>
14306
14307         atanl: Move AC_LIBOBJ invocations to module description.
14308         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
14309         * modules/atanl (configure.ac): ... to here.
14310
14311 2011-05-21  Bruno Haible  <bruno@clisp.org>
14312
14313         acosl: Move AC_LIBOBJ invocations to module description.
14314         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
14315         * modules/acosl (configure.ac): ... to here.
14316
14317 2011-05-21  Bruno Haible  <bruno@clisp.org>
14318
14319         asinl: Respect rules for use of AC_LIBOBJ.
14320         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
14321         * modules/asinl (configure.ac): ... to here.
14322
14323 2011-05-21  Bruno Haible  <bruno@clisp.org>
14324
14325         tanl: Move AC_LIBOBJ invocations to module description.
14326         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
14327         * modules/tanl (configure.ac): ... to here.
14328
14329 2011-05-21  Bruno Haible  <bruno@clisp.org>
14330
14331         cosl: Move AC_LIBOBJ invocations to module description.
14332         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
14333         * modules/cosl (configure.ac): ... to here.
14334
14335 2011-05-21  Bruno Haible  <bruno@clisp.org>
14336
14337         sinl: Move AC_LIBOBJ invocations to module description.
14338         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
14339         * modules/sinl (configure.ac): ... to here.
14340
14341 2011-05-21  Bruno Haible  <bruno@clisp.org>
14342
14343         logl: Move AC_LIBOBJ invocations to module description.
14344         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
14345         * modules/logl (configure.ac): ... to here.
14346
14347 2011-05-21  Bruno Haible  <bruno@clisp.org>
14348
14349         expl: Move AC_LIBOBJ invocations to module description.
14350         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
14351         * modules/expl (configure.ac): ... to here.
14352
14353 2011-05-21  Bruno Haible  <bruno@clisp.org>
14354
14355         roundl: Move AC_LIBOBJ invocations to module description.
14356         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
14357         * modules/roundl (configure.ac): ... to here.
14358
14359 2011-05-21  Bruno Haible  <bruno@clisp.org>
14360
14361         round: Move AC_LIBOBJ invocations to module description.
14362         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
14363         * modules/round (configure.ac): ... to here.
14364
14365 2011-05-21  Bruno Haible  <bruno@clisp.org>
14366
14367         roundf: Move AC_LIBOBJ invocations to module description.
14368         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
14369         * modules/roundf (configure.ac): ... to here.
14370
14371 2011-05-21  Bruno Haible  <bruno@clisp.org>
14372
14373         truncl: Move AC_LIBOBJ invocations to module description.
14374         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
14375         * modules/truncl (configure.ac): ... to here.
14376
14377 2011-05-21  Bruno Haible  <bruno@clisp.org>
14378
14379         trunc: Move AC_LIBOBJ invocations to module description.
14380         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
14381         * modules/trunc (configure.ac): ... to here.
14382
14383 2011-05-21  Bruno Haible  <bruno@clisp.org>
14384
14385         truncf: Move AC_LIBOBJ invocations to module description.
14386         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
14387         * modules/truncf (configure.ac): ... to here.
14388
14389 2011-05-21  Bruno Haible  <bruno@clisp.org>
14390
14391         ceill: Move AC_LIBOBJ invocations to module description.
14392         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
14393         * modules/ceill (configure.ac): ... to here.
14394
14395 2011-05-21  Bruno Haible  <bruno@clisp.org>
14396
14397         ceil: Move AC_LIBOBJ invocations to module description.
14398         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
14399         * modules/ceil (configure.ac): ... to here.
14400
14401 2011-05-21  Bruno Haible  <bruno@clisp.org>
14402
14403         ceilf: Move AC_LIBOBJ invocations to module description.
14404         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
14405         * modules/ceilf (configure.ac): ... to here.
14406
14407 2011-05-21  Bruno Haible  <bruno@clisp.org>
14408
14409         floorl: Respect rules for use of AC_LIBOBJ.
14410         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
14411         * modules/floorl (configure.ac): ... to here.
14412
14413 2011-05-21  Bruno Haible  <bruno@clisp.org>
14414
14415         floor: Respect rules for use of AC_LIBOBJ.
14416         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
14417         * modules/floor (configure.ac): ... to here.
14418
14419 2011-05-21  Bruno Haible  <bruno@clisp.org>
14420
14421         floorf: Move AC_LIBOBJ invocations to module description.
14422         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
14423         * modules/floorf (configure.ac): ... to here.
14424
14425 2011-05-20  Bruno Haible  <bruno@clisp.org>
14426
14427         sqrtl: Respect rules for use of AC_LIBOBJ.
14428         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
14429         * modules/sqrtl (configure.ac): ... to here.
14430
14431 2011-05-20  Bruno Haible  <bruno@clisp.org>
14432
14433         ldexpl: Respect rules for use of AC_LIBOBJ.
14434         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
14435         * modules/ldexpl (configure.ac): ... to here.
14436
14437 2011-05-20  Bruno Haible  <bruno@clisp.org>
14438
14439         frexpl*: Respect rules for use of AC_LIBOBJ.
14440         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
14441         invocation from here...
14442         * modules/frexpl (configure.ac): ... to here.
14443         * modules/frexpl-nolibm (configure.ac): ... and here.
14444
14445 2011-05-20  Bruno Haible  <bruno@clisp.org>
14446
14447         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
14448         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
14449         invocation from here...
14450         * modules/frexp (configure.ac): ... to here.
14451         * modules/frexp-nolibm (configure.ac): ... and here.
14452
14453 2011-05-20  Bruno Haible  <bruno@clisp.org>
14454
14455         isnan: Respect rules for use of AC_LIBOBJ.
14456         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
14457         invocations here.
14458         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
14459         REPLACE_ISNAN.
14460         * modules/isnand (configure.ac): Likewise.
14461         * modules/isnanl (configure.ac): Likewise.
14462
14463 2011-05-20  Bruno Haible  <bruno@clisp.org>
14464
14465         isnanl*: Respect rules for use of AC_LIBOBJ.
14466         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
14467         invocation from here...
14468         * modules/isnanl (configure.ac): ... to here.
14469         * modules/isnanl-nolibm (configure.ac): ... and here.
14470
14471 2011-05-20  Bruno Haible  <bruno@clisp.org>
14472
14473         isnand*: Move AC_LIBOBJ invocations to module description.
14474         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
14475         invocation from here...
14476         * modules/isnand (configure.ac): ... to here.
14477         * modules/isnand-nolibm (configure.ac): ... and here.
14478
14479 2011-05-20  Bruno Haible  <bruno@clisp.org>
14480
14481         isnanf*: Move AC_LIBOBJ invocations to module description.
14482         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
14483         invocation from here...
14484         * modules/isnanf (configure.ac): ... to here.
14485         * modules/isnanf-nolibm (configure.ac): ... and here.
14486
14487 2011-05-20  Bruno Haible  <bruno@clisp.org>
14488
14489         isnan*: Separate the AC_LIBOBJ invocations.
14490         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
14491         AC_LIBOBJ invocation.
14492         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
14493         here.
14494         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
14495         AC_LIBOBJ invocation.
14496         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
14497         here.
14498         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
14499         AC_LIBOBJ invocation.
14500         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
14501         here.
14502         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
14503
14504 2011-05-08  Bruno Haible  <bruno@clisp.org>
14505
14506         isinf: Move AC_LIBOBJ invocations to module description.
14507         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
14508         * modules/isinf (configure.ac): ... to here.
14509
14510 2011-05-08  Bruno Haible  <bruno@clisp.org>
14511
14512         isfinite: Move AC_LIBOBJ invocations to module description.
14513         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
14514         * modules/isfinite (configure.ac): ... to here.
14515
14516 2011-05-08  Bruno Haible  <bruno@clisp.org>
14517
14518         isblank: Move AC_LIBOBJ invocations to module description.
14519         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
14520         here...
14521         * modules/isblank (configure.ac): ... to here.
14522
14523 2011-05-08  Bruno Haible  <bruno@clisp.org>
14524
14525         isapipe: Move AC_LIBOBJ invocations to module description.
14526         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
14527         gl_PREREQ_ISAPIPE invocations from here...
14528         * modules/isapipe (configure.ac): ... to here.
14529         (Depends-on): Update condition.
14530
14531 2011-05-08  Bruno Haible  <bruno@clisp.org>
14532
14533         ioctl: Move AC_LIBOBJ invocations to module description.
14534         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
14535         invocations from here...
14536         * modules/ioctl (configure.ac): ... to here.
14537         (Depends-on): Update condition.
14538
14539 2011-05-08  Bruno Haible  <bruno@clisp.org>
14540
14541         imaxdiv: Move AC_LIBOBJ invocations to module description.
14542         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
14543         invocations from here...
14544         * modules/imaxdiv (configure.ac): ... to here.
14545
14546 2011-05-08  Bruno Haible  <bruno@clisp.org>
14547
14548         imaxabs: Move AC_LIBOBJ invocations to module description.
14549         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
14550         invocations from here...
14551         * modules/imaxabs (configure.ac): ... to here.
14552
14553 2011-05-08  Bruno Haible  <bruno@clisp.org>
14554
14555         getaddrinfo: Move AC_LIBOBJ invocations to module description.
14556         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
14557         AC_LIBOBJ invocations from here...
14558         * modules/getaddrinfo (configure.ac): ... to here.
14559         (Depends-on): Add conditions.
14560
14561 2011-05-08  Bruno Haible  <bruno@clisp.org>
14562
14563         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14564         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
14565         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14566         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
14567         (gl_PREREQ_INET_PTON): ... from here.
14568         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
14569         gl_PREREQ_INET_PTON here.
14570         (Depends-on): Update condition.
14571
14572 2011-05-08  Bruno Haible  <bruno@clisp.org>
14573
14574         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14575         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
14576         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14577         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
14578         (gl_PREREQ_INET_NTOP): ... from here.
14579         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
14580         gl_PREREQ_INET_NTOP here.
14581         (Depends-on): Update condition.
14582
14583 2011-05-08  Bruno Haible  <bruno@clisp.org>
14584
14585         iconv_open: Move AC_LIBOBJ invocations to module description.
14586         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
14587         AC_LIBOBJ invocations from here...
14588         * modules/iconv_open (configure.ac): ... to here.
14589
14590 2011-05-08  Bruno Haible  <bruno@clisp.org>
14591
14592         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
14593         If module 'iconv_open' is among the main modules and module
14594         'iconv_open-utf' is among the tests dependencies, then
14595         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
14596         return the special iconv_t values. Therefore iconv() and iconv_close()
14597         must support these special iconv_t values, already in lib, not only in
14598         tests.
14599         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
14600         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
14601         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
14602         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
14603         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
14604         (Depends-on): Add the dependencies of iconv_open-utf.
14605         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
14606         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
14607         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
14608
14609 2011-05-08  Bruno Haible  <bruno@clisp.org>
14610
14611         group-member: Move AC_LIBOBJ invocations to module description.
14612         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
14613         gl_PREREQ_GROUP_MEMBER invocations from here...
14614         * modules/group-member (configure.ac): ... to here.
14615
14616 2011-05-08  Bruno Haible  <bruno@clisp.org>
14617
14618         grantpt: Move AC_LIBOBJ invocations to module description.
14619         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
14620         invocations from here...
14621         * modules/grantpt (configure.ac): ... to here.
14622
14623 2011-05-08  Bruno Haible  <bruno@clisp.org>
14624
14625         glob: Move AC_LIBOBJ invocations to module description.
14626         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
14627         from here...
14628         * modules/glob (configure.ac): ... to here.
14629
14630 2011-05-08  Bruno Haible  <bruno@clisp.org>
14631
14632         getusershell: Move AC_LIBOBJ invocations to module description.
14633         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
14634         Move AC_LIBOBJ invocation from here...
14635         * modules/getusershell (configure.ac): ... to here.
14636         (Depends-on): Update condition.
14637
14638 2011-05-08  Bruno Haible  <bruno@clisp.org>
14639
14640         gettimeofday: Move AC_LIBOBJ invocations to module description.
14641         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
14642         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
14643         gl_PREREQ_GETTIMEOFDAY invocations from here...
14644         * modules/gettimeofday (configure.ac): ... to here.
14645
14646 2011-05-08  Bruno Haible  <bruno@clisp.org>
14647
14648         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
14649         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
14650         just gl_FUNC_TZSET.
14651         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
14652         (gl_FUNC_TZSET_CLOBBER): Remove actions.
14653         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
14654         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
14655
14656 2011-05-08  Bruno Haible  <bruno@clisp.org>
14657
14658         getsubopt: Move AC_LIBOBJ invocations to module description.
14659         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
14660         gl_PREREQ_GETSUBOPT invocations from here...
14661         * modules/getsubopt (configure.ac): ... to here.
14662
14663 2011-05-08  Bruno Haible  <bruno@clisp.org>
14664
14665         getpass-gnu: Move AC_LIBOBJ invocations to module description.
14666         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
14667         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
14668         * modules/getpass-gnu (configure.ac): ... to here.
14669
14670 2011-05-08  Bruno Haible  <bruno@clisp.org>
14671
14672         getpass: Move AC_LIBOBJ invocations to module description.
14673         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
14674         gl_PREREQ_GETPASS invocations from here...
14675         * modules/getpass (configure.ac): ... to here.
14676
14677 2011-05-08  Bruno Haible  <bruno@clisp.org>
14678
14679         getpagesize: Move AC_LIBOBJ invocations to module description.
14680         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
14681         from here...
14682         * modules/getpagesize (configure.ac): ... to here.
14683
14684 2011-05-08  Bruno Haible  <bruno@clisp.org>
14685
14686         getopt: Move AC_LIBOBJ invocations to module description.
14687         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
14688         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
14689         invocations from here...
14690         * modules/getopt-gnu (configure.ac): ... to here.
14691         * modules/getopt-posix (configure.ac): ... and here.
14692         (Depends-on): Update condition.
14693
14694 2011-05-08  Bruno Haible  <bruno@clisp.org>
14695
14696         getopt, argp: Respect rules for use of AC_LIBOBJ.
14697         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
14698         (gl_REPLACE_GETOPT_ALWAYS): New macro.
14699         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
14700         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
14701
14702 2011-05-08  Bruno Haible  <bruno@clisp.org>
14703
14704         getlogin_r: Move AC_LIBOBJ invocations to module description.
14705         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
14706         gl_PREREQ_GETLOGIN_R invocations from here...
14707         * modules/getlogin_r (configure.ac): ... to here.
14708
14709 2011-05-08  Bruno Haible  <bruno@clisp.org>
14710
14711         getlogin: Move AC_LIBOBJ invocations to module description.
14712         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
14713         here...
14714         * modules/getlogin (configure.ac): ... to here.
14715
14716 2011-05-08  Bruno Haible  <bruno@clisp.org>
14717
14718         getloadavg: Move AC_LIBOBJ invocations to module description.
14719         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
14720         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
14721         * modules/getloadavg (configure.ac): ... to here.
14722
14723 2011-05-08  Bruno Haible  <bruno@clisp.org>
14724
14725         gethrxtime: Move AC_LIBOBJ invocations to module description.
14726         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
14727         LIB_GETHRXTIME from here...
14728         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
14729         invocations from here...
14730         * modules/gethrxtime (configure.ac): ... to here.
14731
14732 2011-05-08  Bruno Haible  <bruno@clisp.org>
14733
14734         gethostname: Move AC_LIBOBJ invocations to module description.
14735         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
14736         gl_PREREQ_GETHOSTNAME invocations from here...
14737         * modules/gethostname (configure.ac): ... to here.
14738
14739 2011-05-08  Bruno Haible  <bruno@clisp.org>
14740
14741         getgroups: Move AC_LIBOBJ invocations to module description.
14742         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
14743         here...
14744         * modules/getgroups (configure.ac): ... to here.
14745
14746 2011-05-08  Bruno Haible  <bruno@clisp.org>
14747
14748         getdtablesize: Move AC_LIBOBJ invocations to module description.
14749         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
14750         invocation from here...
14751         * modules/getdtablesize (configure.ac): ... to here.
14752
14753 2011-05-08  Bruno Haible  <bruno@clisp.org>
14754
14755         getdomainname: Move AC_LIBOBJ invocations to module description.
14756         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
14757         gl_PREREQ_GETDOMAINNAME invocations from here...
14758         * modules/getdomainname (configure.ac): ... to here.
14759
14760 2011-05-08  Bruno Haible  <bruno@clisp.org>
14761
14762         getline: Move AC_LIBOBJ invocations to module description.
14763         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
14764         invocations from here...
14765         * modules/getline (configure.ac): ... to here.
14766
14767 2011-05-08  Bruno Haible  <bruno@clisp.org>
14768
14769         getline: Simplify.
14770         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
14771         It's already handled through the module dependency.
14772
14773 2011-05-08  Bruno Haible  <bruno@clisp.org>
14774
14775         getdelim: Move AC_LIBOBJ invocations to module description.
14776         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
14777         and gl_PREREQ_GETDELIM invocations from here...
14778         * modules/getdelim (configure.ac): ... to here.
14779         (Depends-on): Fix condition.
14780
14781 2011-05-08  Bruno Haible  <bruno@clisp.org>
14782
14783         getcwd: Move AC_LIBOBJ invocations to module description.
14784         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
14785         invocations from here...
14786         * modules/getcwd (configure.ac): ... to here.
14787
14788 2011-05-08  Bruno Haible  <bruno@clisp.org>
14789
14790         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
14791         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
14792         here...
14793         * modules/getcwd-lgpl (configure.ac): ... to here.
14794
14795 2011-05-07  Bruno Haible  <bruno@clisp.org>
14796
14797         crypto/gc: Move AC_LIBOBJ invocations to module description.
14798         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
14799         * modules/crypto/gc (configure.ac): ... to here.
14800
14801 2011-05-07  Bruno Haible  <bruno@clisp.org>
14802
14803         fwriting: Move AC_LIBOBJ invocations to module description.
14804         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
14805         here...
14806         * modules/fwriting (configure.ac): ... to here.
14807
14808 2011-05-07  Bruno Haible  <bruno@clisp.org>
14809
14810         fwritable: Move AC_LIBOBJ invocations to module description.
14811         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
14812         here...
14813         * modules/fwritable (configure.ac): ... to here.
14814
14815 2011-05-07  Bruno Haible  <bruno@clisp.org>
14816
14817         futimens: Move AC_LIBOBJ invocations to module description.
14818         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
14819         here...
14820         * modules/futimens (configure.ac): ... to here.
14821
14822 2011-05-07  Bruno Haible  <bruno@clisp.org>
14823
14824         ftruncate: Move AC_LIBOBJ invocations to module description.
14825         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
14826         gl_PREREQ_FTRUNCATE invocations from here...
14827         * modules/ftruncate (configure.ac): ... to here.
14828
14829 2011-05-07  Bruno Haible  <bruno@clisp.org>
14830
14831         fsync: Move AC_LIBOBJ invocations to module description.
14832         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
14833         invocations from here...
14834         * modules/fsync (configure.ac): ... to here.
14835
14836 2011-05-07  Bruno Haible  <bruno@clisp.org>
14837
14838         fsusage: Move AC_LIBOBJ invocations to module description.
14839         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
14840         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
14841         * modules/fsusage (configure.ac): ... to here.
14842
14843 2011-05-07  Bruno Haible  <bruno@clisp.org>
14844
14845         freopen: Move AC_LIBOBJ invocations to module description.
14846         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
14847         invocations from here...
14848         * modules/freopen (configure.ac): ... to here.
14849
14850 2011-05-07  Bruno Haible  <bruno@clisp.org>
14851
14852         free: Move AC_LIBOBJ invocations to module description.
14853         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
14854         invocations from here...
14855         * modules/free (configure.ac): ... to here.
14856
14857 2011-05-07  Bruno Haible  <bruno@clisp.org>
14858
14859         freadable: Move AC_LIBOBJ invocations to module description.
14860         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
14861         here...
14862         * modules/freadable (configure.ac): ... to here.
14863
14864 2011-05-07  Bruno Haible  <bruno@clisp.org>
14865
14866         fpurge: Move AC_LIBOBJ invocations to module description.
14867         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
14868         invocations from here...
14869         * modules/fpurge (configure.ac): ... to here.
14870
14871 2011-05-07  Bruno Haible  <bruno@clisp.org>
14872
14873         fpending: Move AC_LIBOBJ invocations to module description.
14874         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
14875         gl_FUNC_FPENDING.
14876         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
14877         invocations from here...
14878         * modules/fpending (configure.ac): ... to here.
14879
14880 2011-05-07  Bruno Haible  <bruno@clisp.org>
14881
14882         fopen: Move AC_LIBOBJ invocations to module description.
14883         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
14884         invocations from here...
14885         * modules/fopen (configure.ac): ... to here.
14886
14887 2011-05-07  Bruno Haible  <bruno@clisp.org>
14888
14889         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
14890         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
14891         gl_FUNC_FNMATCH_POSIX.
14892         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
14893         invocations from here...
14894         * modules/fnmatch (configure.ac): ... to here.
14895         * modules/fnmatch-gnu (configure.ac): ... and here.
14896
14897 2011-05-07  Bruno Haible  <bruno@clisp.org>
14898
14899         flock: Move AC_LIBOBJ invocations to module description.
14900         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
14901         invocations from here...
14902         * modules/flock (configure.ac): ... to here.
14903
14904 2011-05-07  Bruno Haible  <bruno@clisp.org>
14905
14906         fileblocks: Move AC_LIBOBJ invocations to module description.
14907         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
14908         gl_PREREQ_FILEBLOCKS invocations from here...
14909         * modules/fileblocks (configure.ac): ... to here.
14910
14911 2011-05-06  Bruno Haible  <bruno@clisp.org>
14912
14913         fflush: Move AC_LIBOBJ invocations to module description.
14914         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
14915         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
14916         invocations from here...
14917         * modules/fflush (configure.ac): ... to here.
14918
14919 2011-05-06  Bruno Haible  <bruno@clisp.org>
14920
14921         fdopendir: Move AC_LIBOBJ invocations to module description.
14922         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
14923         here...
14924         * modules/fdopendir (configure.ac): ... to here.
14925         (Depends-on): Improve conditions.
14926
14927 2011-05-06  Bruno Haible  <bruno@clisp.org>
14928
14929         _Exit: Move AC_LIBOBJ invocations to module description.
14930         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
14931         invocations from here...
14932         * modules/_Exit (configure.ac): ... to here.
14933
14934 2011-05-21  Bruno Haible  <bruno@clisp.org>
14935
14936         euidaccess: Respect rules for use of AC_LIBOBJ.
14937         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14938         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
14939         from here...
14940         * modules/euidaccess (configure.ac): ... to here.
14941
14942 2011-05-06  Bruno Haible  <bruno@clisp.org>
14943
14944         error: Move AC_LIBOBJ invocations to module description.
14945         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
14946         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
14947         invocations from here...
14948         * modules/error (configure.ac): ... to here.
14949
14950 2011-05-06  Bruno Haible  <bruno@clisp.org>
14951
14952         duplocale: Move AC_LIBOBJ invocations to module description.
14953         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
14954         gl_PREREQ_DUPLOCALE invocations from here...
14955         * modules/duplocale (configure.ac): ... to here.
14956
14957 2011-05-05  Bruno Haible  <bruno@clisp.org>
14958
14959         dirfd: Move AC_LIBOBJ invocations to module description.
14960         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
14961         gl_FUNC_DIRFD.
14962         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
14963         here...
14964         * modules/dirfd (configure.ac): ... to here.
14965         (Depends-on): Fix condition.
14966
14967 2011-05-05  Bruno Haible  <bruno@clisp.org>
14968
14969         chown: Respect rules for use of AC_LIBOBJ.
14970         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
14971         * modules/chown (configure.ac): ... to here.
14972
14973 2011-05-05  Bruno Haible  <bruno@clisp.org>
14974
14975         chdir-long: Move AC_LIBOBJ invocations to module description.
14976         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
14977         gl_PREREQ_CHDIR_LONG invocations from here...
14978         * modules/chdir-long (configure.ac): ... to here.
14979
14980 2011-05-05  Bruno Haible  <bruno@clisp.org>
14981
14982         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
14983         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
14984         from here...
14985         * modules/canonicalize-lgpl (configure.ac): ... to here.
14986
14987 2011-05-05  Bruno Haible  <bruno@clisp.org>
14988
14989         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
14990         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
14991         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
14992         REPLACE_CALLOC.
14993         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
14994         * modules/calloc-gnu (configure.ac): Likewise.
14995
14996 2011-05-05  Bruno Haible  <bruno@clisp.org>
14997
14998         btowc: Move AC_LIBOBJ invocations to module description.
14999         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
15000         invocations from here...
15001         * modules/btowc (configure.ac): ... to here.
15002
15003 2011-05-21  Bruno Haible  <bruno@clisp.org>
15004
15005         atexit: Move AC_LIBOBJ invocations to module description.
15006         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
15007         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
15008         here...
15009         * modules/atexit (configure.ac): ... to here.
15010
15011 2011-05-05  Bruno Haible  <bruno@clisp.org>
15012
15013         atoll: Move AC_LIBOBJ invocations to module description.
15014         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
15015         invocations from here...
15016         * modules/atoll (configure.ac): ... to here.
15017
15018 2011-05-05  Bruno Haible  <bruno@clisp.org>
15019
15020         argz: Move AC_LIBOBJ invocations to module description.
15021         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
15022         * modules/argz (configure.ac): ... to here.
15023
15024 2011-05-05  Bruno Haible  <bruno@clisp.org>
15025
15026         alphasort: Move AC_LIBOBJ invocations to module description.
15027         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
15028         gl_PREREQ_ALPHASORT invocations from here...
15029         * modules/alphasort (configure.ac): ... to here.
15030
15031 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
15032
15033         verify: new macro verify_expr; verify_true deprecated
15034         * NEWS: Mention this.
15035         * doc/verify.texi (Compile-time Assertions): Document this.
15036         * lib/verify.h (verify_true): Deprecate.
15037         (verify_expr): New macro.
15038         * tests/test-verify.c (function): Test verify_expr.
15039
15040 2011-06-14  Jim Meyering  <meyering@redhat.com>
15041
15042         init.sh: give more portable redirection-related advice in a comment
15043         * tests/init.sh (stderr_fileno_): Update the advice in comments.
15044         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
15045         for lots of discussion.  Stefano Lattarini suggested the solution
15046         of putting "9>&2" after the command.  Reported by Bruno Haible.
15047
15048 2011-06-13  Bruno Haible  <bruno@clisp.org>
15049
15050         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
15051         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
15052         'none'.
15053
15054 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
15055
15056         ftoastr: use strtof only if HAVE_STRTOF
15057         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
15058         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
15059         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
15060         * modules/ftoastr (configure.ac): Check for strtof.
15061
15062 2011-06-13  Bruno Haible  <bruno@clisp.org>
15063
15064         gnulib-tool: Addendum to 2011-06-08 commit.
15065         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
15066         and --witness-c-macro have been given, augment AM_CPPFLAGS.
15067
15068 2011-06-13  Bruno Haible  <bruno@clisp.org>
15069
15070         fseeko: Provide a non-inline replacement of fseek().
15071         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
15072         * modules/fseeko (Depends-on): Add fseek.
15073         * modules/fseek (License): Change to LGPLv2+.
15074
15075 2011-06-13  Bruno Haible  <bruno@clisp.org>
15076
15077         ftello: Provide a non-inline replacement of ftell().
15078         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
15079         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
15080         not have ftello() (such as on mingw).
15081         * modules/ftello (Depends-on): Add ftell.
15082         * modules/ftell (License): Change to LGPLv2+.
15083
15084 2011-05-07  Bruno Haible  <bruno@clisp.org>
15085
15086         ftell: Move AC_LIBOBJ invocations to module description.
15087         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
15088         * modules/ftell (configure.ac): ... to here.
15089
15090 2011-05-07  Bruno Haible  <bruno@clisp.org>
15091
15092         ftello: Respect rules for use of AC_LIBOBJ.
15093         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
15094         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
15095         here...
15096         * modules/ftello (configure.ac): ... to here.
15097
15098 2011-05-07  Bruno Haible  <bruno@clisp.org>
15099
15100         fseeko: Simplify.
15101         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
15102         (gl_FUNC_FSEEKO): Inline it here.
15103
15104 2011-05-07  Bruno Haible  <bruno@clisp.org>
15105
15106         fseek: Move AC_LIBOBJ invocations to module description.
15107         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
15108         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15109         * modules/fseek (configure.ac): ... to here.
15110
15111 2011-05-07  Bruno Haible  <bruno@clisp.org>
15112
15113         fseek: Respect rules for use of AC_LIBOBJ.
15114         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
15115         here...
15116         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
15117
15118 2011-05-07  Bruno Haible  <bruno@clisp.org>
15119
15120         fseeko: Respect rules for use of AC_LIBOBJ.
15121         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
15122         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
15123         here...
15124         * modules/fseeko (configure.ac): ... to here.
15125
15126 2011-06-13  Bruno Haible  <bruno@clisp.org>
15127
15128         gnulib-tool: Allow comments in the 'Depends-on' section.
15129         * doc/gnulib.texi (Module description): Mention comment syntax in the
15130         Depends-on section.
15131         * gnulib-tool (func_get_dependencies): Filter out comment lines.
15132
15133 2011-06-13  Bruno Haible  <bruno@clisp.org>
15134
15135         file-set.h: guard __attibute__ use, now that it's not always defined
15136         * lib/file-set.h (record_file): Use __attribute__ only with compiler
15137         versions that support it.  This fixes a coreutils build failure with
15138         the vendor cc on HP-UX 11.31.
15139
15140 2011-06-12  Bruno Haible  <bruno@clisp.org>
15141
15142         acl: Add support for HP-UX >= 11.11 JFS ACLs.
15143         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
15144         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
15145         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
15146         (acl, aclsort): New declarations.
15147         (aclv_nontrivial): New declaration.
15148         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
15149         (file_has_acl): Read also the second kind of HP-UX ACLs.
15150         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
15151         kind of HP-UX ACLs if the first kind fails.
15152         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
15153         second kind of HP-UX ACLs.
15154         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
15155         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
15156         agree.
15157         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15158         hpuxjfs.
15159         Handle hpuxjfs.
15160         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15161         hpuxjfs.
15162         Handle hpuxjfs.
15163         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15164         (func_test_same_acls): Use both lsacl and getacl.
15165         Handle hpuxjfs.
15166         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15167         (func_test_same_acls): Use both lsacl and getacl.
15168         Handle hpuxjfs.
15169
15170 2011-06-12  Bruno Haible  <bruno@clisp.org>
15171
15172         acl: Complete the 2010-08-10 fix.
15173         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
15174         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
15175         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
15176         explicitly.
15177         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
15178         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
15179
15180 2011-06-12  Bruno Haible  <bruno@clisp.org>
15181
15182         spawn-pipe tests: Comments.
15183         * tests/test-spawn-pipe-child.c (main): Update comment.
15184         Reported by James Youngman <jay@gnu.org>.
15185
15186 2011-06-11  James Youngman  <jay@gnu.org>
15187
15188         New module 'stat-size'.
15189         * modules/stat-size: New module.  Provides macros for accessing
15190         file size information in instances of struct stat.  Depends on the
15191         fileblocks module because it calls st_blocks.
15192         * lib/stat-size.h: New file, adapted from coreutils' system.h.
15193         * doc/gnulib.texi: Include stat-size.texi.
15194         * doc/stat-size.texi: Documentation for this module.
15195         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
15196         * m4/fileblocks.m4: Mention that stat-size depends on the call to
15197         AC_STRUCT_ST_BLOCKS.
15198
15199 2011-06-09  Bruno Haible  <bruno@clisp.org>
15200
15201         thread: Support pthreads-win32.
15202         * lib/glthread/thread.h (gl_thread_self): Define differently on
15203         pthreads-win32.
15204         (gl_null_thread): New declaration.
15205         (gl_thread_self_pointer): New macro.
15206         * lib/glthread/thread.c (gl_null_thread): New constant.
15207         * tests/test-lock.c: Use gl_thread_self_pointer instead of
15208         gl_thread_self.
15209         * tests/test-tls.c: Likewise.
15210         Suggested by Paul Eggert. Reported by Eric Blake.
15211
15212 2011-06-09  Bruno Haible  <bruno@clisp.org>
15213
15214         thread: Fix confusion between NULL and 0.
15215         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
15216         Reported by Paul Eggert.
15217
15218 2011-06-09  Bruno Haible  <bruno@clisp.org>
15219
15220         spawn-pipe tests: Avoid test failure on HP-UX 11.
15221         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
15222         is closed.
15223
15224 2011-06-09  Bruno Haible  <bruno@clisp.org>
15225
15226         acl tests: Fix compilation error on HP-UX 11.
15227         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
15228
15229 2011-06-09  Bruno Haible  <bruno@clisp.org>
15230
15231         rmdir: Avoid test failure on HP-UX 10.20.
15232         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
15233         EEXIST.
15234
15235 2011-06-08  Eric Blake  <eblake@redhat.com>
15236
15237         perror: fix test on mingw
15238         * modules/perror-tests (Depends-on): Add dup2.
15239
15240         strerror_r-posix: fix on MacOS
15241         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
15242         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
15243         logic bug.
15244         * lib/strerror_r.c (strerror_r): Fix the bug.
15245         * lib/strerror.c (strerror): Likewise.
15246         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15247         problem.
15248         * doc/posix-functions/strerror.texi (strerror): Likewise.
15249         * doc/posix-functions/perror.texi (perror): Likewise.
15250         * tests/test-strerror.c (main): Enhance test.
15251         * tests/test-strerror_r.c (main): Likewise.
15252
15253 2011-06-08  Bruno Haible  <bruno@clisp.org>
15254
15255         gnulib-tool: Better isolation between different gnulib-tool invocations.
15256         * gnulib-tool: New option --witness-c-macro.
15257         (witness_c_macro): New variable.
15258         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
15259         AM_CPPFLAGS define it as a C macro.
15260         (func_emit_tests_Makefile_am): Likewise.
15261         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
15262         read it from there.
15263         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
15264         m4_define, not AC_DEFUN.
15265         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
15266         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
15267         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
15268         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
15269         s|...|...|, to substitute the values of the GNULIB_* module indicator
15270         variables.
15271         * modules/dirent (Makefile.am): Likewise.
15272         * modules/fcntl-h (Makefile.am): Likewise.
15273         * modules/iconv-h (Makefile.am): Likewise.
15274         * modules/langinfo (Makefile.am): Likewise.
15275         * modules/locale (Makefile.am): Likewise.
15276         * modules/math (Makefile.am): Likewise.
15277         * modules/netdb (Makefile.am): Likewise.
15278         * modules/poll-h (Makefile.am): Likewise.
15279         * modules/pty (Makefile.am): Likewise.
15280         * modules/search (Makefile.am): Likewise.
15281         * modules/signal (Makefile.am): Likewise.
15282         * modules/spawn (Makefile.am): Likewise.
15283         * modules/stdio (Makefile.am): Likewise.
15284         * modules/stdlib (Makefile.am): Likewise.
15285         * modules/string (Makefile.am): Likewise.
15286         * modules/sys_ioctl (Makefile.am): Likewise.
15287         * modules/sys_select (Makefile.am): Likewise.
15288         * modules/sys_socket (Makefile.am): Likewise.
15289         * modules/sys_stat (Makefile.am): Likewise.
15290         * modules/sys_times (Makefile.am): Likewise.
15291         * modules/sys_utsname (Makefile.am): Likewise.
15292         * modules/sys_wait (Makefile.am): Likewise.
15293         * modules/termios (Makefile.am): Likewise.
15294         * modules/time (Makefile.am): Likewise.
15295         * modules/unistd (Makefile.am): Likewise.
15296         * modules/wchar (Makefile.am): Likewise.
15297
15298 2011-06-08  Eric Blake  <eblake@redhat.com>
15299
15300         strerror: simplify replacement
15301         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
15302         * modules/strerror (configure.ac): No prereqs needed here...
15303         * modules/strerror-override (configure.ac): ...but this needs it.
15304         (Files): Add file for needed prereq macro.
15305
15306 2011-06-08  Bruno Haible  <bruno@clisp.org>
15307
15308         strerror_r-posix: Tweaks.
15309         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
15310         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
15311         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
15312         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
15313         (gl_FUNC_STRERROR_R): ... to here.
15314         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
15315
15316 2011-06-07  Eric Blake  <eblake@redhat.com>
15317
15318         perror: document fixed bugs
15319         * doc/posix-functions/perror.texi (perror): Document recent
15320         patches.
15321
15322 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
15323
15324         stat-time: get_stat_birthtime failure is better-defined
15325         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
15326         return a timestamp whose tv_sec and tv_nsec values are both -1.
15327         Previously, the spec said only that the tv_nsec value was negative.
15328         This upward-compatible change simplifies GNU tar a bit.
15329
15330 2011-06-07  Eric Blake  <eblake@redhat.com>
15331
15332         strerror_r-posix: work around cygwin 1.7.9
15333         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
15334         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
15335         bug without replacing strerror_r.
15336         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
15337         strerror_r is buggy, but without requiring strerror_r compilation.
15338         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
15339
15340         test-perror: relax test to ignore cygwin bug
15341         * tests/test-perror2.c (main): Relax test on requiring detection
15342         of stream errors, and use unbuffered stream.
15343         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
15344         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
15345         * doc/posix-functions/fputc.texi (fputc): Likewise.
15346         * doc/posix-functions/fputs.texi (fputs): Likewise.
15347         * doc/posix-functions/fputws.texi (fputws): Likewise.
15348         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
15349         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
15350         * doc/posix-functions/getopt.texi (getopt): Likewise.
15351         * doc/posix-functions/perror.texi (perror): Likewise.
15352         * doc/posix-functions/printf.texi (printf): Likewise.
15353         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
15354         * doc/posix-functions/psignal.texi (psignal): Likewise.
15355         * doc/posix-functions/putc.texi (putc): Likewise.
15356         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
15357         Likewise.
15358         * doc/posix-functions/putchar.texi (putchar): Likewise.
15359         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
15360         Likewise.
15361         * doc/posix-functions/puts.texi (puts): Likewise.
15362         * doc/posix-functions/putwc.texi (putwc): Likewise.
15363         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15364         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15365         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15366         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
15367         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15368         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15369         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
15370         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
15371
15372 2011-05-22  Bruno Haible  <bruno@clisp.org>
15373
15374         strerror: Move AC_LIBOBJ invocations to module description.
15375         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
15376         gl_PREREQ_STRERROR invocations from here...
15377         * modules/strerror (configure.ac): ... to here.
15378
15379 2011-05-21  Bruno Haible  <bruno@clisp.org>
15380
15381         perror: Use common idiom.
15382         * modules/perror (configure.ac): Reorder statements.
15383
15384 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15385
15386         tests: fix usage message in 'mktempd_'
15387         * tests/init.sh (mktempd_): In the usage message, use literal
15388         'mktempd_', not '$ME' (which is even undefined), as the name of
15389         the subroutine.
15390
15391 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15392
15393         tests init: new function 'fatal_', for hard errors
15394         Before this patch, the only way offered by tests/init.sh to
15395         properly signal a hard error was the `framework_failure_'
15396         function.  But the error message issued by that function,
15397         as its name would suggest, refers to a set-up failure in the
15398         testsuite, while hard errors can obviously also be due to
15399         other reasons.  The best way to fix this inconsistency is to
15400         introduce a new function with a more general error message.
15401         * tests/init.sh (fatal_): New function.
15402
15403 2011-06-06  Eric Blake  <eblake@redhat.com>
15404
15405         canonicalize-lgpl: use common idiom
15406         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
15407         over newer POSIX -Rf.
15408         Reported by Bruno Haible.
15409
15410         canonicalize-lgpl: work around AIX realpath bug
15411         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
15412         * doc/posix-functions/realpath.texi (realpath): Document it.
15413         Reported by Bruno Haible.
15414
15415         strerror: work around FreeBSD bug
15416         * lib/strerror.c (strerror): Special case 0.
15417         Reported by Bruno Haible.
15418
15419         strerror-override: avoid bloating errno module
15420         * modules/errno (Files, configure.ac): Move replacement strings...
15421         * modules/strerror-override: ...to new module.
15422         * modules/strerror (Depends-on): Add strerror-override.
15423         * modules/strerror_r-posix (Depends-on): Likewise.
15424         * MODULES.html.sh: Document new module.
15425         Reported by Bruno Haible.
15426
15427 2011-06-06  Bruno Haible  <bruno@clisp.org>
15428
15429         spawn-pipe tests: Rename program.
15430         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
15431         * tests/test-spawn-pipe-child.c: Update comment.
15432         * tests/test-spawn-pipe.sh: Update.
15433         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
15434
15435         spawn-pipe tests: Link the child program only against libc.
15436         * tests/test-spawn-pipe-child.c: New file, extracted from
15437         tests/test-spawn-pipe.c.
15438         (main): Expect only one argument.
15439         (is_open): New function, copied from tests/test-pipe.c.
15440         * tests/test-spawn-pipe.c: Don't include <errno.h>.
15441         (child_main): Remove function.
15442         (test_pipe): Pass only one argument to the child program.
15443         (main): Remove child process code. Expect the child program's name as
15444         first argument.
15445         * tests/test-spawn-pipe.sh: Pass the child program's name as first
15446         argument.
15447         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
15448         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
15449         test-spawn-pipe-child against no libraries.
15450
15451 2011-06-06  Bruno Haible  <bruno@clisp.org>
15452
15453         careadlinkat: Avoid mismatch between ssize_t and int.
15454         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
15455         * lib/careadlinkat.c (careadlinkatcwd): Define always.
15456
15457 2011-06-06  Jim Meyering  <meyering@redhat.com>
15458
15459         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
15460         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
15461         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
15462
15463 2011-06-05  Bruno Haible  <bruno@clisp.org>
15464
15465         ansi-c++-opt: Interoperability with libtool.
15466         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
15467         set the variable to "no", not to ":".
15468         * NEWS: Mention the change.
15469
15470 2011-06-05  Bruno Haible  <bruno@clisp.org>
15471
15472         acl: Fix test failure on AIX 7.
15473         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
15474         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
15475
15476 2011-06-05  Bruno Haible  <bruno@clisp.org>
15477
15478         pipe-filter-ii: Fix test failure on AIX and IRIX.
15479         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
15480         with EAGAIN, retry with a smaller buffer size.
15481
15482 2011-06-05  Bruno Haible  <bruno@clisp.org>
15483
15484         localename: Fix link dependencies.
15485         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
15486         * modules/localename-tests (Makefile.am): Link test-localename with
15487         $(LIBTHREAD).
15488
15489 2011-06-05  Bruno Haible  <bruno@clisp.org>
15490
15491         error: Avoid gcc warning.
15492         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
15493
15494 2011-06-05  Bruno Haible  <bruno@clisp.org>
15495
15496         unsetenv: Avoid gcc warning.
15497         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
15498
15499 2011-06-05  Bruno Haible  <bruno@clisp.org>
15500
15501         setenv: Avoid gcc warning.
15502         * lib/setenv.c (setenv): Provide declaration if system lacks it.
15503
15504 2011-06-05  Bruno Haible  <bruno@clisp.org>
15505
15506         sys_select: Ensure memset is declared also on AIX 7.
15507         * lib/sys_select.in.h: Include <string.h> also on AIX.
15508         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
15509         self-contained also on AIX 7.1.
15510
15511 2011-06-04  Jim Meyering  <meyering@redhat.com>
15512
15513         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
15514         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
15515         function name, "error".
15516         (_gl_translatable_diag_func_re): New configurable variable.
15517
15518 2011-06-04  Bruno Haible  <bruno@clisp.org>
15519
15520         getopt: Avoid gcc warning.
15521         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
15522
15523 2011-06-04  Bruno Haible  <bruno@clisp.org>
15524
15525         strerror_r: Fix comments.
15526         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
15527         commit.
15528
15529 2011-06-04  Bruno Haible  <bruno@clisp.org>
15530
15531         perror: Fix compilation error.
15532         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
15533         Undefine fprintf, not sprintf.
15534         * modules/perror (Depends-on): Remove intprops, verify.
15535
15536 2011-06-04  Bruno Haible  <bruno@clisp.org>
15537
15538         setlocale: Enable replacement on Cygwin 1.5.
15539         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
15540         Cygwin 1.5.x.
15541         * doc/posix-functions/setlocale.texi: Mention that the problem with the
15542         LC_CTYPE category also exists on Cygwin 1.5.x.
15543
15544 2011-06-04  Bruno Haible  <bruno@clisp.org>
15545
15546         strerror-override: Don't disable symbol renamings.
15547         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
15548         * lib/strerror-override.c: Include config.h.
15549         (strerror_override): Don't undefine.
15550
15551 2011-06-03  Bruno Haible  <bruno@clisp.org>
15552
15553         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
15554         * lib/localename.h: Update copyright header.
15555         * lib/localename.c: Likewise.
15556         * lib/relocatable.h: Likewise.
15557         * lib/relocatable.c: Likewise.
15558
15559 2011-06-02  Bruno Haible  <bruno@clisp.org>
15560
15561         doc: Fix a module name.
15562         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
15563
15564 2011-06-02  Bruno Haible  <bruno@clisp.org>
15565
15566         pipe2: Remove dependency on 'nonblocking' module.
15567         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
15568         O_NONBLOCK is defined by gnulib.
15569         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
15570         is zero.
15571         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
15572         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
15573         defined by gnulib.
15574         (get_nonblocking_flag): New function.
15575         (main): Test O_NONBLOCK flag only if it is nonzero.
15576         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
15577
15578 2011-06-03  Jim Meyering  <meyering@redhat.com>
15579
15580         maint: three new prohibit-header-without-use rules
15581         Prohibit use of cloexec.h, posixver.h, same.h without use.
15582         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
15583         (sc_prohibit_posixver_without_use): Likewise.
15584         (sc_prohibit_same_without_use): Likewise.
15585
15586 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
15587
15588         allocator: 'die' routine is now given requested size
15589         * lib/allocator.h (struct allocator.die): New size arg.
15590         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
15591         If the actual problem is an ssize_t limitation, not a size_t or
15592         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
15593
15594 2011-06-01  Eric Blake  <eblake@redhat.com>
15595
15596         strerror: drop strerror_r dependency
15597         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
15598         * lib/strerror-override.c (strerror_override): ...to new file.
15599         * lib/strerror-override.h: Add prototype.
15600         * lib/strerror-impl.h: Delete.
15601         * lib/strerror.c (strerror): New implementation.
15602         * modules/errno (Files): Add new files.
15603         (configure.ac): Compile new file as appropriate.
15604         * modules/strerror (Files): Drop unused file.
15605         (Depends-on): Drop strerror_r-posix.
15606         * MODULES.html.sh: Document strerror_r-posix.
15607         Requested by Sam Steingold.
15608
15609         perror: call strerror_r directly
15610         * modules/perror (Files): Drop strerror-impl.h.
15611         * lib/perror.c (perror): Use our own stack buffer, rather than
15612         calling a wrapper that uses static storage.
15613         * doc/posix-functions/perror.texi (perror): Document a limitation
15614         of our replacement.
15615
15616         strerror_r: fix includes for FreeBSD
15617         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
15618         since we use abort on some platforms.
15619         Reported by Matthias Bolte.
15620
15621 2011-05-31  Bruno Haible  <bruno@clisp.org>
15622
15623         Fix link errors in tests: openat-die uses gettext-h.
15624         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
15625         against $(LIBINTL).
15626         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
15627         against $(LIBINTL).
15628         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
15629         $(LIBINTL).
15630         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
15631         against $(LIBINTL).
15632         * modules/linkat-tests (Makefile.am): Link test-linkat against
15633         $(LIBINTL).
15634         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
15635         $(LIBINTL).
15636         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
15637         against $(LIBINTL).
15638         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
15639         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
15640         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
15641         $(LIBINTL).
15642         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
15643         $(LIBINTL).
15644         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
15645         $(LIBINTL).
15646         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15647
15648 2011-05-31  Bruno Haible  <bruno@clisp.org>
15649
15650         Fix link errors in tests: wait-process uses gettext-h.
15651         * modules/nonblocking-pipe-tests (Makefile.am): Set
15652         test_nonblocking_pipe_main_LDADD.
15653         * modules/nonblocking-socket-tests (Makefile.am): Link
15654         test-nonblocking-socket-main against $(LIBINTL).
15655         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15656
15657 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15658
15659         assert-h: work around 'verify' incompatibility
15660         * lib/verify.h: Use @...@ directives, not ifdef.
15661         * modules/assert-h (assert.h): Implement the directives.
15662         (assert.h): Substitute the symbol-prefix more consistently.
15663
15664 2011-05-29  Jim Meyering  <meyering@redhat.com>
15665
15666         trim: remove three superfluous assignments
15667         * lib/trim.c (trim2): Remove three superfluous assignments
15668         and correct brace positioning.
15669
15670 2011-05-29  Bruno Haible  <bruno@clisp.org>
15671
15672         wctype-h: Avoid namespace pollution on Solaris 2.6.
15673         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
15674         identifiers.
15675         * doc/posix-headers/wctype.texi: Mention the problem.
15676         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15677
15678 2011-05-28  Jim Meyering  <meyering@redhat.com>
15679
15680         parse-datetime.y: accommodate -Wstrict-overflow
15681         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
15682         placate -Wstrict-overflow.
15683
15684         trim: avoid a warning from -O2 -Wstrict-overflow
15685         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
15686
15687 2011-05-29  Bruno Haible  <bruno@clisp.org>
15688
15689         gnulib-tool: Fix bug in yesterday's commit.
15690         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
15691         twice.
15692
15693 2011-05-29  Bruno Haible  <bruno@clisp.org>
15694
15695         Allow multiple gnulib generated include files to be combined.
15696         * gnulib-tool (func_compute_include_guard_prefix): New function.
15697         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
15698         ${gl_include_guard_prefix} references.
15699         (func_import, func_create_testdir): Invoke
15700         func_compute_include_guard_prefix.
15701         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
15702         * lib/ctype.in.h: Likewise.
15703         * lib/dirent.in.h: Likewise.
15704         * lib/errno.in.h: Likewise.
15705         * lib/fcntl.in.h: Likewise.
15706         * lib/float.in.h: Likewise.
15707         * lib/getopt.in.h: Likewise.
15708         * lib/iconv.in.h: Likewise.
15709         * lib/langinfo.in.h: Likewise.
15710         * lib/locale.in.h: Likewise.
15711         * lib/math.in.h: Likewise.
15712         * lib/netdb.in.h: Likewise.
15713         * lib/netinet_in.in.h: Likewise.
15714         * lib/poll.in.h: Likewise.
15715         * lib/pthread.in.h: Likewise.
15716         * lib/pty.in.h: Likewise.
15717         * lib/sched.in.h: Likewise.
15718         * lib/se-selinux.in.h: Likewise.
15719         * lib/search.in.h: Likewise.
15720         * lib/signal.in.h: Likewise.
15721         * lib/spawn.in.h: Likewise.
15722         * lib/stdarg.in.h: Likewise.
15723         * lib/stddef.in.h: Likewise.
15724         * lib/stdint.in.h: Likewise.
15725         * lib/stdio.in.h: Likewise.
15726         * lib/stdlib.in.h: Likewise.
15727         * lib/string.in.h: Likewise.
15728         * lib/strings.in.h: Likewise.
15729         * lib/sys_file.in.h: Likewise.
15730         * lib/sys_ioctl.in.h: Likewise.
15731         * lib/sys_select.in.h: Likewise.
15732         * lib/sys_socket.in.h: Likewise.
15733         * lib/sys_stat.in.h: Likewise.
15734         * lib/sys_time.in.h: Likewise.
15735         * lib/sys_times.in.h: Likewise.
15736         * lib/sys_uio.in.h: Likewise.
15737         * lib/sys_utsname.in.h: Likewise.
15738         * lib/sys_wait.in.h: Likewise.
15739         * lib/sysexits.in.h: Likewise.
15740         * lib/termios.in.h: Likewise.
15741         * lib/time.in.h: Likewise.
15742         * lib/unistd.in.h: Likewise.
15743         * lib/wchar.in.h: Likewise.
15744         * lib/wctype.in.h: Likewise.
15745         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
15746         * modules/ctype (Makefile.am): Likewise.
15747         * modules/dirent (Makefile.am): Likewise.
15748         * modules/errno (Makefile.am): Likewise.
15749         * modules/fcntl-h (Makefile.am): Likewise.
15750         * modules/float (Makefile.am): Likewise.
15751         * modules/getopt-posix (Makefile.am): Likewise.
15752         * modules/iconv-h (Makefile.am): Likewise.
15753         * modules/langinfo (Makefile.am): Likewise.
15754         * modules/locale (Makefile.am): Likewise.
15755         * modules/math (Makefile.am): Likewise.
15756         * modules/netdb (Makefile.am): Likewise.
15757         * modules/netinet_in (Makefile.am): Likewise.
15758         * modules/poll-h (Makefile.am): Likewise.
15759         * modules/pthread (Makefile.am): Likewise.
15760         * modules/pty (Makefile.am): Likewise.
15761         * modules/sched (Makefile.am): Likewise.
15762         * modules/search (Makefile.am): Likewise.
15763         * modules/selinux-h (Makefile.am): Likewise.
15764         * modules/signal (Makefile.am): Likewise.
15765         * modules/spawn (Makefile.am): Likewise.
15766         * modules/stdarg (Makefile.am): Likewise.
15767         * modules/stddef (Makefile.am): Likewise.
15768         * modules/stdint (Makefile.am): Likewise.
15769         * modules/stdio (Makefile.am): Likewise.
15770         * modules/stdlib (Makefile.am): Likewise.
15771         * modules/string (Makefile.am): Likewise.
15772         * modules/strings (Makefile.am): Likewise.
15773         * modules/sys_file (Makefile.am): Likewise.
15774         * modules/sys_ioctl (Makefile.am): Likewise.
15775         * modules/sys_select (Makefile.am): Likewise.
15776         * modules/sys_socket (Makefile.am): Likewise.
15777         * modules/sys_stat (Makefile.am): Likewise.
15778         * modules/sys_time (Makefile.am): Likewise.
15779         * modules/sys_times (Makefile.am): Likewise.
15780         * modules/sys_uio (Makefile.am): Likewise.
15781         * modules/sys_utsname (Makefile.am): Likewise.
15782         * modules/sys_wait (Makefile.am): Likewise.
15783         * modules/sysexits (Makefile.am): Likewise.
15784         * modules/termios (Makefile.am): Likewise.
15785         * modules/time (Makefile.am): Likewise.
15786         * modules/unistd (Makefile.am): Likewise.
15787         * modules/wchar (Makefile.am): Likewise.
15788         * modules/wctype-h (Makefile.am): Likewise.
15789         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
15790
15791 2011-05-29  Bruno Haible  <bruno@clisp.org>
15792
15793         assert-h: Allow multiple gnulib generated replacements to coexist.
15794         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
15795
15796 2011-05-29  Bruno Haible  <bruno@clisp.org>
15797
15798         argp: Allow coexistence with strerror_r-posix module.
15799         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
15800         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
15801         by gnulib's <string.h> replacement), assume it has the POSIX signature,
15802         not the glibc signature.
15803
15804 2011-05-28  Bruno Haible  <bruno@clisp.org>
15805
15806         gnulib-tool: Alternative structure of testdirs, similar to --import.
15807         * gnulib-tool: New option --single-configure.
15808         (func_usage): Document it.
15809         (single_configure): New variable.
15810         (func_modules_transitive_closure_separately,
15811         func_modules_transitive_closure_separately,
15812         func_determine_use_libtests, func_modules_add_dummy_separately,
15813         func_modules_to_filelist_separately): New functions, extracted from
15814         func_import.
15815         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
15816         (func_import): Use the new functions.
15817         (func_create_testdir): Set final_modules. Handle $single_configure =
15818         true case.
15819
15820 2011-05-28  Bruno Haible  <bruno@clisp.org>
15821
15822         getloadavg: Remove an unreliable safety check.
15823         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
15824         getloadavg.c is in place.
15825         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
15826         Reported by Sam Steingold <sds@gnu.org>.
15827
15828 2011-05-28  Bruno Haible  <bruno@clisp.org>
15829
15830         doc: Cleanup yet another file produced by texinfo.tex.
15831         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
15832
15833 2011-05-28  Bruno Haible  <bruno@clisp.org>
15834
15835         Finish the conditional dependencies mechanism.
15836         * gnulib-tool: New option --no-conditional-dependencies.
15837         (func_usage): Document it. Don't mark --conditional-dependencies as
15838         experimental.
15839         (cond_dependencies): The possible values can now be true, false, empty.
15840         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
15841         (func_import): Store setting in gnulib-cache.m4 and read it from there.
15842         * doc/gnulib-tool.texi (Conditional dependencies): New section.
15843
15844 2011-05-28  Bruno Haible  <bruno@clisp.org>
15845
15846         doc: Use a recent texinfo.tex.
15847         * doc/Makefile (tex_opts): New variable.
15848         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
15849
15850 2011-05-28  Jim Meyering  <meyering@redhat.com>
15851
15852         intprops.h: adjust comment to match code change
15853         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
15854         only once, it *may* have side effects.  Also fix an unrelated typo.
15855         (_GL_INT_SIGNED): Likewise.
15856
15857 2011-05-26  Simon Josefsson  <simon@josefsson.org>
15858
15859         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
15860
15861 2011-05-26  Bruno Haible  <bruno@clisp.org>
15862
15863         mbsrchr: Avoid collision with system function on Interix.
15864         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
15865         Reported by Markus Duft <mduft@gentoo.org>.
15866
15867 2011-05-15  James Youngman  <jay@gnu.org>
15868
15869         getopt: for ambiguous options, enumerate the possibilities.
15870         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
15871         the ambiguous options when an ambiguous prefix is given. This was
15872         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
15873         glibc change was
15874         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
15875
15876 2011-05-25  Eric Blake  <eblake@redhat.com>
15877
15878         getcwd: work around mingw bug
15879         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
15880         * doc/posix-functions/getcwd.texi (getcwd): Document it.
15881         Reported by Matthias Bolte.
15882
15883 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
15884
15885         test-intprops: disable -Wtype-limits diagnostics
15886         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
15887         diagnostics.  Otherwise, the integer overflow macros generate many
15888         diagnostics.  Reported by Jim Meyering in
15889         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15890
15891         intprops: shorten, to pacify gcc -Woverlength-strings
15892         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
15893         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
15894         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
15895         likely to run afoul of C compiler limits for string constant lengths.
15896         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15897
15898 2011-05-24  Eric Blake  <eblake@redhat.com>
15899
15900         docs: document recently fixed glibc printf bug
15901         * doc/posix-functions/fprintf.texi (fprintf): Document it.
15902         * doc/posix-functions/printf.texi (printf): Likewise.
15903         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15904         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15905
15906         closein-tests: convert to init.sh
15907         * modules/closein-tests (Files): Add init.sh
15908         * tests/test-closein.sh Use it.
15909
15910         yesno-tests: convert to init.sh
15911         * modules/yesno-tests (Files): Add init.sh.
15912         * tests/test-yesno.sh: Use it.
15913
15914         atexit-tests: ensure reliable exit status
15915         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
15916         Reported by Bruno Haible.
15917
15918 2011-05-24  Bruno Haible  <bruno@clisp.org>
15919
15920         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
15921         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
15922         gl_PREREQ_STRERROR_R invocations from here...
15923         * modules/strerror_r-posix (configure.ac): ... to here.
15924
15925 2011-05-24  Eric Blake  <eblake@redhat.com>
15926
15927         strerror_r: fix missing header
15928         * lib/strerror_r.c: Avoid compiler warning about snprintf.
15929
15930         strerror_r: fix AIX test failures
15931         * lib/strerror_r.c (strerror_r): Convert silent truncation to
15932         ERANGE failure.
15933
15934         strerror_r: fix Solaris test failures
15935         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
15936         failures.
15937         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15938
15939         strerror_r: enforce POSIX recommendations
15940         * lib/strerror_r.c (safe_copy): New helper method.
15941         (strerror_r): Guarantee a non-empty string.
15942         * tests/test-strerror_r.c (main): Enhance tests to incorporate
15943         recent POSIX rulings and to match our strerror guarantees.
15944         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15945
15946 2011-05-24  Jim Meyering  <meyering@redhat.com>
15947
15948         test-perror2.c: avoid warning about unused variable
15949         * tests/test-perror2.c (main): Remove declaration of unused "fp".
15950
15951 2011-05-24  Eric Blake  <eblake@redhat.com>
15952
15953         perror: avoid spurious test failure on HP-UX
15954         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
15955
15956         tests: fix logic bug in init.sh
15957         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
15958         shell.
15959
15960 2011-05-24  Jim Meyering  <meyering@redhat.com>
15961
15962         utimensat: do not reference an out-of-scope buffer
15963         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
15964         declared in an inner scope, yet "times" would be dereferenced outside
15965         the scope in which "ts" was valid.
15966         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
15967         of ts[2] "out/up", so that the use of aliased "times" (via
15968         "times = ts;") does not end up referencing an out-of-scope "ts"
15969
15970         opendir-safer.c: don't clobber errno; don't close negative FD
15971         * lib/opendir-safer.c (opendir_safer):
15972         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
15973         file descriptor, and more importantly, don't clobber the
15974         offending errno value with EINVAL.  Before, upon failure
15975         of dup_safer, we would pass the negative file descriptor to
15976         fdopendir, which would clobber errno.
15977
15978 2011-05-23  Bruno Haible  <bruno@clisp.org>
15979
15980         idcache: Fix module description.
15981         * modules/idcache (Include): Set to "idcache.h".
15982
15983 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
15984
15985         gnulib-tool: fix portability problem with MacOS sed
15986         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
15987         before the "}".  Problem reported by Leo in
15988         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
15989         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
15990         sed_extract_condition1, sed_extract_condition2.
15991
15992 2011-05-23  Bruno Haible  <bruno@clisp.org>
15993
15994         hash: Simplify autoconf macro.
15995         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
15996
15997 2011-05-23  Bruno Haible  <bruno@clisp.org>
15998
15999         getugroups: Fix module description.
16000         * modules/getugroups (Include): Set to "getugroups.h".
16001
16002 2011-05-23  Bruno Haible  <bruno@clisp.org>
16003
16004         linkat: Simplify autoconf macro.
16005         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
16006
16007 2011-05-23  Bruno Haible  <bruno@clisp.org>
16008             Eric Blake  <eblake@redhat.com>
16009
16010         linkat, renameat: Update dependencies.
16011         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
16012         * modules/linkat (Depends-on): Likewise. Remove also readlink,
16013         symlinkat.
16014
16015 2011-05-23  Jim Meyering  <meyering@redhat.com>
16016
16017         maint.mk: more tight_scope improvements
16018         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
16019         (_gl_TS_headers): Define only in if-0'd block.
16020         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
16021         sometimes we must *not* use it.  Adjust uses accordingly.
16022         (sc_tight_scope): Use much simpler grep-based test to determine
16023         whether we skip this rule.
16024
16025         maint.mk: generalize/improve the tight-scope rule
16026         * top/maint.mk: Emit a warning when the test is skipped.
16027         (_gl_TS_dir): Add $(srcdir)/ prefix.
16028         (_gl_TS_function_match): Simplify, rather than trying
16029         to enumerate common types.  Otherwise, it would fail to match an
16030         "extern unsigned char const *" declaration in idutils.
16031         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
16032         a way to support use of that type of macro.
16033         (_gl_TS_var_match): Simplify regexp.
16034         (_gl_TS_obj_files): New configurable variable.
16035         (_gl_TS_headers): Likewise.
16036
16037 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
16038
16039         verify: fix bug when gnulib <assert.h> is also included
16040         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
16041         is defined, not if _GL_STATIC_ASSERT_H is not defined.
16042         Perhaps there's a better way, but this fixes the immediate problem.
16043         Problem reported by Bruno Haible in
16044         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
16045
16046 2011-05-22  Bruno Haible  <bruno@clisp.org>
16047
16048         xgetcwd: Simplify autoconf macro.
16049         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
16050
16051 2011-05-22  Bruno Haible  <bruno@clisp.org>
16052
16053         New module 'mktime-internal'.
16054         * modules/mktime-internal: New file.
16055         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
16056         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
16057         mktime_internal as a C macro if libc has __mktime_internal.
16058         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
16059         conditions.
16060         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
16061
16062 2011-05-22  Bruno Haible  <bruno@clisp.org>
16063
16064         timegm: Correct mktime replacement statements.
16065         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
16066         defining mktime as a C macro. This completes a 2009-07-28 commit.
16067
16068 2011-05-22  Bruno Haible  <bruno@clisp.org>
16069
16070         timegm: Simplify autoconf macro.
16071         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
16072
16073 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
16074
16075         clock-time: change to LGPLv2+.
16076         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
16077         BSD-like but we have no mark for that; this is good enough for now.
16078
16079 2011-05-21  Bruno Haible  <bruno@clisp.org>
16080
16081         strerror_r: Fix comments.
16082         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
16083
16084 2011-05-21  Bruno Haible  <bruno@clisp.org>
16085
16086         relocatable-prog-wrapper: Fix possible link error.
16087         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
16088         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
16089         (gl_FUNC_SETENV): ... to here.
16090         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
16091         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
16092
16093 2011-05-21  Bruno Haible  <bruno@clisp.org>
16094
16095         relocatable-prog-wrapper: Assume strerror() exists.
16096         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
16097         m4/strerror.m4.
16098         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
16099         * lib/relocwrapper.c: Remove mention of strerror module.
16100         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
16101         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
16102         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
16103         C macro.
16104
16105 2011-05-21  Bruno Haible  <bruno@clisp.org>
16106
16107         select: Simplify replacement idiom.
16108         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
16109         Win32 platforms.
16110         * lib/sys_select.in.h (select): Simplify accordingly.
16111         * modules/select (Depends-on): Likewise.
16112
16113 2011-05-21  Bruno Haible  <bruno@clisp.org>
16114
16115         mkdir-p: Simplify autoconf macro.
16116         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
16117         gl_FUNC_LCHOWN.
16118
16119 2011-05-21  Eric Blake  <eblake@redhat.com>
16120
16121         strerror_r: avoid clobbering strerror on cygwin
16122         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
16123         fall back instead to sys_errlist.
16124         * modules/strerror (configure.ac): Add witness.
16125         * tests/test-strerror_r.c (main): Enhance test.
16126         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16127         * tests/test-perror2.c (main): Free memory before exit.
16128
16129 2011-05-21  Bruno Haible  <bruno@clisp.org>
16130
16131         mkdtemp: Use gnulib naming conventions.
16132         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
16133         * modules/mkdtemp (configure.ac): Update.
16134
16135 2011-05-20  Eric Blake  <eblake@redhat.com>
16136
16137         strerror_r: avoid corrupting errno on Solaris
16138         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
16139         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16140
16141         strerror_r: avoid compiler warning
16142         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
16143
16144         strerror_r: simplify AIX code
16145         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
16146
16147         test-perror: avoid spurious failure on FreeBSD
16148         * modules/perror-tests (Depends-on): Add strerror, now that
16149         strerror_r no longer pulls it in.
16150
16151 2011-05-20  Bruno Haible  <bruno@clisp.org>
16152
16153         strerror_r-posix: Remove unused dependencies.
16154         * modules/strerror_r-posix (Depends-on): Remove strerror.
16155         Reported by Eric Blake.
16156
16157 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
16158
16159         intprops: remove assumption about A|B representation
16160         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
16161         is a valid integer if both A and B are.  Although this is true for
16162         all known practical hosts, the C standard doesn't guarantee it,
16163         and the code need not assume it.  Also, this change may work around
16164         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
16165         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
16166
16167 2011-05-20  Eric Blake  <eblake@redhat.com>
16168
16169         perror: work around FreeBSD bug
16170         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
16171         is broken.  Move AC_LIBOBJ...
16172         * modules/perror (configure.ac): Here.
16173         * doc/posix-functions/perror.texi (perror): Document this.
16174         * tests/test-perror2.c (main): Enhance test.
16175
16176         test-perror: check for strerror interactions
16177         * tests/macros.h (STREQ): Add macro.
16178         * modules/perror-tests (Files): Add second test.
16179         * tests/test-perror2.c (main): New file.
16180         * doc/posix-functions/perror.texi (perror): Document glibc bug.
16181
16182         test-perror: rewrite to use init script
16183         * modules/perror-tests (Files): Add init.sh.
16184         * tests/test-perror.sh: Use temporary directory.
16185
16186 2011-05-20  Jim Meyering  <meyering@redhat.com>
16187
16188         maint: replace misused "a" with "an"
16189         * doc/intprops.texi: "a integer"
16190         * doc/regex.texi: "a explanation"
16191         * lib/alignof.h: "a object"
16192         * lib/argmatch.h: "a explanation"
16193         * lib/argp-help.c: "a option" and "a OPTION_DOC"
16194         * lib/stdint.in.h: "a integer"
16195         * lib/userspec.c: "a owner"
16196         * doc/gnulib.texi: Fix "a idea", and reword.
16197
16198 2011-05-19  Jim Meyering  <meyering@redhat.com>
16199
16200         maint: correct misuse of "a" and "an"
16201         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
16202         * lib/argp-help.c: "an docum...": s/an/a/
16203         * lib/argp-parse.c: "An vector": s/An/A/
16204         * lib/execute.c: "an native": s/an/a/
16205         * lib/spawn-pipe.c: Likewise.
16206         * lib/gc.h: "an Gc_rc": s/an/a/
16207         * lib/unigbrk.in.h: "an grapheme": s/an/a/
16208         * lib/fts.c: "an stat.st_dev": s/an/a/
16209
16210 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16211
16212         intprops-tests: work around HP-UX 11.23 cc bug with constants
16213         * tests/test-intprops.c (VERIFY): New macro.
16214         (main): Use it, instead of verify, to work around the compiler bug; see
16215         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16216
16217         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
16218         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
16219         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
16220         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
16221         (_GL_REMAINDER_OVERFLOW): Use it.
16222
16223         intprops-tests: revert unsigned part of previous change
16224         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
16225         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
16226         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
16227         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
16228
16229 2011-05-19  Bruno Haible  <bruno@clisp.org>
16230
16231         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
16232         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
16233         strerror_r() returned without filling the buffer.
16234         Reported by Eric Blake.
16235
16236 2011-05-19  Eric Blake  <eblake@redhat.com>
16237
16238         strerror_r: guarantee unchanged errno
16239         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
16240         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
16241         failure.
16242         * tests/test-strerror_r.c (main): Enhance test.
16243
16244 2011-05-19  Bruno Haible  <bruno@clisp.org>
16245
16246         strerror_r: Reorder #if blocks.
16247         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
16248         for consistency with the previous commit.
16249
16250 2011-05-19  Bruno Haible  <bruno@clisp.org>
16251
16252         perror: Avoid clobbering the strerror buffer when possible.
16253         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
16254         * lib/strerror.c: Include it.
16255         * modules/strerror (Files): Add lib/strerror-impl.h.
16256         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
16257         (my_strerror): New function, defined through lib/strerror-impl.h.
16258         (perror): Use it instead of strerror.
16259         * modules/perror (Files): Add lib/strerror-impl.h.
16260         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
16261
16262 2011-05-19  Eric Blake  <eblake@redhat.com>
16263
16264         strerror_r: fix on newer cygwin
16265         * lib/strerror_r.c (strerror_r): Cygwin now has
16266         __xpg_strerror_r, use it.
16267
16268 2011-05-19  Bruno Haible  <bruno@clisp.org>
16269
16270         strerror_r: Avoid clobbering the strerror buffer when possible.
16271         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
16272         (sys_nerr, sys_errlist): New declarations.
16273         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
16274         HP-UX, native Win32, IRIX, and 32-bit Solaris.
16275         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
16276
16277 2011-05-19  Bruno Haible  <bruno@clisp.org>
16278
16279         strerror_r: Fix test failure on mingw.
16280         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
16281         EXTEND_STRERROR_R.
16282         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
16283         macros from errno.in.h instead.
16284
16285 2011-05-19  Eric Blake  <eblake@redhat.com>
16286
16287         strerror: relax test for Solaris
16288         * tests/test-strerror.c (main): Permit Solaris behavior.
16289         * tests/test-strerror_r.c (main): Likewise.
16290
16291         strerror: enforce POSIX ruling on strerror(0)
16292         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
16293         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
16294         * lib/strerror_r.c (rpl_strerror_r): Work around it.
16295         * doc/posix-functions/strerror.texi (strerror): Document it.
16296         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
16297         * tests/test-strerror.c (main): Strengthen test.
16298         * tests/test-strerror_r.c (main): Likewise.
16299
16300 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16301
16302         intprop-tests: port to older and more-pedantic compilers
16303         * modules/intprops-tests (Files): Add tests/macros.h.
16304         * tests/test-intprops.c: Include macros.h.
16305         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
16306         it's no longer documented to expand to an integer constant expression.
16307         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
16308         argument is floating point, as it's no longer documented to expand
16309         to an integer constant expression in that case.
16310         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
16311         compiler bugs reported by Bruno Haible.  See
16312         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16313         (U0, U1): New constants, to work around the same bugs.  Also,
16314         in tests, use e.g., "(unsigned int) 39" rather than "39u".
16315
16316         intprops: work around C compiler bugs
16317         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
16318         bug in Sun C 5.11 2010/08/13 and other compilers; see
16319         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16320
16321         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
16322         * doc/intprops.texi (Integer Type Determination): Fix
16323         documentation for TYPE_IS_INTEGER: it returns an constant
16324         expression, not an integer constant expression.  Fix doc for
16325         TYPE_SIGNED: it returns an integer constant expression only if its
16326         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
16327         hardly worth documented that way....)
16328
16329 2011-05-18  Bruno Haible  <bruno@clisp.org>
16330
16331         strerror_r: Avoid clobbering the strerror buffer when possible.
16332         * lib/strerror_r.c (strerror_r): Merge the three implementations.
16333         Handle gnulib defined errno values here. When strerror() returns NULL
16334         or an empty string, return EINVAL.
16335         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
16336         gnulib defined errno values here.
16337         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
16338
16339 2011-05-18  Eric Blake  <eblake@redhat.com>
16340
16341         fnmatch: avoid compiler warning
16342         * lib/fnmatch_loop.c (FCT): Use correct type.
16343         Reported by Matthias Bolte.
16344
16345 2011-05-13  Jim Meyering  <meyering@redhat.com>
16346
16347         maint.mk: three new prohibit_<HDR>_without_use rules
16348         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
16349         (sc_prohibit_stdio-safer_without_use): Likewise.
16350         (sc_prohibit_xfreopen_without_use): Likewise.
16351
16352 2011-05-17  Jim Meyering  <meyering@redhat.com>
16353
16354         announce-gen: fail if the NEWS delta is empty
16355         If there's nothing noteworthy in NEWS, then either you forgot
16356         or you shouldn't be releasing.
16357         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
16358
16359 2011-05-17  Pádraig Brady <P@draigBrady.com>
16360
16361         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
16362         reserved symbols starting with double underscore from the check.
16363
16364 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16365
16366         intprops: add doc
16367         * doc/intprops.texi: New file, documenting intprops.
16368         * doc/gnulib.texi (Particular Modules): Include it.
16369
16370         verify: add doc to gnulib manual and fix example
16371         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
16372         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
16373         (Compile-time Assertions): Fix example so it can't overflow.
16374
16375 2011-05-17  Jim Meyering  <meyering@redhat.com>
16376
16377         warnings.m4: don't usurp save_CPPFLAGS variable name
16378         * m4/warnings.m4: Prefix local temporary variable name with gl_.
16379
16380         doc: fix typo
16381         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
16382
16383 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16384             Bruno Haible  <bruno@clisp.org>
16385
16386         doc: Tweak recent change.
16387         * README (Portability guidelines): Tweak new text.
16388         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
16389         Interix 6.1.
16390
16391 2011-05-16  Eric Blake  <eblake@redhat.com>
16392
16393         inttypes: avoid autoconf warning
16394         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
16395         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16396
16397 2011-05-16  Sam Steingold <sds@gnu.org>
16398         and Eric Blake  <eblake@redhat.com>
16399
16400         vc-list-files: accept multiple directory operands
16401         * build-aux/vc-list-files: Iterate over all remaining operands.
16402
16403 2011-05-16  Bruno Haible  <bruno@clisp.org>
16404
16405         Fix confusion regarding deprecated modules.
16406         * modules/calloc (Status, Notice): Mark module as deprecated, not
16407         obsolete.
16408         * modules/fnmatch-posix (Status, Notice): Likewise.
16409         * modules/getdate (Status, Notice): Likewise.
16410         * modules/getopt (Status, Notice): Likewise.
16411         * modules/malloc (Status, Notice): Likewise.
16412         * modules/pipe (Status, Notice): Likewise.
16413         * modules/realloc (Status, Notice): Likewise.
16414         * modules/rename-dest-slash (Status, Notice): Likewise.
16415         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
16416         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
16417         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
16418         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
16419         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
16420
16421 2011-05-16  Bruno Haible  <bruno@clisp.org>
16422
16423         doc: List the target platforms.
16424         * doc/gnulib-intro.texi (Target Platforms): New section.
16425         * doc/gnulib.texi (Introduction): Update menu.
16426         * README (Portability guidelines): Refer to the new section. Update
16427         statement about oldest supported environment. Remove rationale why
16428         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
16429         unportable C89 function.
16430         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
16431         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
16432
16433 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16434
16435         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
16436
16437 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16438
16439         intprops-tests: new module
16440         * modules/intprops-tests, tests/test-intprops.c: New files.
16441
16442         intprops: add safe, portable integer overflow checking
16443         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
16444         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
16445         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
16446         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
16447         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
16448         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
16449         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
16450         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
16451         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
16452         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
16453         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
16454
16455 2011-05-12  James Youngman  <jay@gnu.org>
16456
16457         Add a test for glibc's Bugzilla bug #12378.
16458         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
16459         doesn't allow the literal matching of a lone "[" (which is
16460         required by POSIX).
16461         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
16462
16463 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
16464
16465         Sync glibc change fixing Bugzilla bug #12378.
16466         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
16467         beginning and fall back to matching as normal character if the
16468         string ends before the matching ']' is found.  This is what POSIX
16469         requires.
16470
16471 2011-05-13  Eric Blake  <eblake@redhat.com>
16472
16473         getcwd-lgpl: relax test for FreeBSD
16474         * doc/posix-functions/getcwd.texi (getcwd): Document portability
16475         issue.
16476         * tests/test-getcwd-lgpl.c (main): Relax test.
16477         Reported by Matthias Bolte.
16478
16479 2011-05-11  Eric Blake  <eblake@redhat.com>
16480
16481         test-fflush: silence compiler warning
16482         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
16483
16484 2011-05-11  Bruno Haible  <bruno@clisp.org>
16485
16486         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
16487         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
16488         * modules/canonicalize (Depends-on): Add 'nocrash'.
16489         * modules/canonicalize-lgpl (Depends-on): Likewise.
16490         * doc/posix-functions/realpath.texi: Update platforms list.
16491         Reported by Ryan Schmidt <ryandesign@macports.org>.
16492
16493 2011-05-11  Bruno Haible  <bruno@clisp.org>
16494
16495         group-member: Declare function in <unistd.h>.
16496         * lib/unistd.in.h (group_member): New declaration.
16497         * lib/group-member.h: Remove file.
16498         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
16499         * tests/test-unistd-c++.cc: Check signature of group_member.
16500         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
16501         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
16502         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
16503         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
16504         HAVE_GROUP_MEMBER.
16505         * modules/group-member (Files): Remove lib/group-member.h.
16506         (Depends-on): Add unistd. Specify conditions.
16507         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16508         (Include): Change to <unistd.h>.
16509         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
16510         HAVE_GROUP_MEMBER.
16511         * NEWS: Mention the change.
16512         * lib/euidaccess.c: Don't include group-member.h.
16513
16514 2011-05-11  Bruno Haible  <bruno@clisp.org>
16515
16516         group-member: Document module.
16517         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
16518         module.
16519
16520 2011-05-11  Bruno Haible  <bruno@clisp.org>
16521
16522         fclose: Fix mistake earlier today.
16523         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
16524
16525 2011-05-11  Eric Blake  <eblake@redhat.com>
16526
16527         fclose: preserve fflush errors
16528         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
16529         Reported by Jim Meyering.
16530
16531         bootstrap: support a prereq of 'rpcgen -' on RHEL5
16532         * build-aux/bootstrap (check_versions): When no specific version
16533         is required, merely check that the app produces an exit status
16534         that indicates its existence.
16535
16536         maint.mk: drop redundant check
16537         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
16538         the same but better.
16539
16540 2011-05-11  Bruno Haible  <bruno@clisp.org>
16541
16542         fclose: Fix possible link error.
16543         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
16544         unregister_shadow_fd. Improve comments.
16545         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
16546         Eric Blake.
16547
16548 2011-05-11  Jim Meyering  <meyering@redhat.com>
16549
16550         maint.mk: improve "can not" detection and generalize rule name
16551         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
16552         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
16553         Use the same technique as in sc_prohibit_doubled_word, so that
16554         we recognize "can not" also when the words are separated by a newline.
16555         Suggested by Eric Blake.
16556         (perl_filename_lineno_text_): Define.  Factored out of...
16557         (prohibit_doubled_word_): ...here.  Use the new definition.
16558         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
16559         (prohibit_undesirable_word_seq_RE_): New overridable variable.
16560         (ignore_undesirable_word_sequence_RE_): New overridable variable.
16561
16562 2011-05-10  Eric Blake  <eblake@redhat.com>
16563
16564         fclose: avoid double close race when possible
16565         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
16566         all but WINDOWS_SOCKETS.
16567
16568 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
16569
16570         openat: correct new comment
16571         * lib/openat-proc.c (openat_proc_name): Correct the comment.
16572
16573 2011-05-10  Jim Meyering  <meyering@redhat.com>
16574
16575         openat: add comments
16576         * lib/openat-proc.c (openat_proc_name): Add comments,
16577         mostly from Eric Blake.
16578
16579 2011-05-09  Eric Blake  <eblake@redhat.com>
16580
16581         openat: reduce syscalls in first probe of /proc
16582         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
16583         be a directory.  Simplify the probe for .. bugs.
16584         * modules/openat (Depends-on): Drop same-inode.
16585         Reported by Bastien ROUCARIES.
16586
16587 2011-05-09  Jim Meyering  <meyering@redhat.com>
16588
16589         maint.mk: change semantics/name of tight_scope variables
16590         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
16591         Rename variables to align with semantics that make them more useful.
16592
16593         maint.mk: tweak new rule's name not to impinge
16594         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
16595         (sc_tight_scope): Use new rule name rather than $@-0.
16596
16597         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
16598         * top/maint.mk (sc_tight_scope): New rule.
16599         (sc_tight_scope-0): New rule, ifdef'd out.
16600         (_gl_TS_dir): Default.
16601         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
16602         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
16603
16604 2011-05-09  Simon Josefsson  <simon@josefsson.org>
16605
16606         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
16607         Haible <bruno@clisp.org>.
16608
16609 2011-05-08  Bruno Haible  <bruno@clisp.org>
16610
16611         Comments.
16612         * m4/isnanf.m4: Add comment.
16613         * m4/isnanl.m4: Likewise.
16614
16615 2011-05-08  Bruno Haible  <bruno@clisp.org>
16616
16617         glob: Remove obsolete macro.
16618         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
16619
16620 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
16621
16622         intprops: Sun C 5.11 supports __typeof__
16623         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
16624         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
16625         which is new.
16626         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
16627
16628         intprops: switch to usual gnulib indenting and naming
16629         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
16630         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
16631
16632         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
16633
16634 2011-05-08  Jim Meyering  <meyering@redhat.com>
16635
16636         maint.mk: suppress "Entering/Leaving directory" diag in announcement
16637         * top/maint.mk (release-prep): Use make's --no-print-directory
16638         option when generating the announcement.  This eliminates the
16639         pesky "make[2]: Entering/Leaving directory" diagnostics in the
16640         generated announcement template.
16641
16642 2011-05-08  Bruno Haible  <bruno@clisp.org>
16643
16644         tzset: Fix gettimeofday wrapper on Solaris 2.6.
16645         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
16646         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
16647
16648 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16649
16650         ignore-value, verify: Omit include files from lib_SOURCES.
16651         * modules/ignore-value, modules/verify (Makefile.am):
16652         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
16653         that leads Automake to duplicate use of am__objects_... variables
16654         in Makefile.in.  See
16655         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
16656
16657 2011-05-07  Bruno Haible  <bruno@clisp.org>
16658
16659         fclose: Simplify autoconf macro.
16660         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
16661         defined.
16662
16663 2011-05-07  Bruno Haible  <bruno@clisp.org>
16664
16665         canonicalize-lgpl: Fix autoconf macro ordering bug.
16666         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
16667         gl_STDLIB_H_DEFAULTS.
16668
16669 2011-05-06  Eric Blake  <eblake@redhat.com>
16670
16671         maintainer-makefile: make sc_po_check easier to tune
16672         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
16673         to probe for strings, such as an alternate location for gnulib.
16674
16675         fclose: guarantee behavior on seekable stdin
16676         * modules/fclose (Depends-on): Add fflush.
16677         * doc/posix-functions/fclose.texi (fclose): Document this.
16678         * tests/test-fclose.c (main): Make test for this unconditional.
16679
16680 2011-05-06  Bruno Haible  <bruno@clisp.org>
16681
16682         fflush, fpurge: Relicense under LGPLv2+.
16683         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
16684         * modules/fpurge (License): Likewise.
16685         With permission from Eric Blake and Jim Meyering.
16686         Suggested by Eric Blake.
16687
16688 2011-05-06  Karl Berry  <karl@gnu.org>
16689
16690         * MODULES.html.sh (func_all_modules): remove exit.
16691
16692 2011-05-06  Jim Meyering  <meyering@redhat.com>
16693
16694         maint.mk: use info-gnu@ as the default only for a stable release
16695         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
16696         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
16697         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
16698         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
16699
16700 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16701
16702         assert-h: new module, which supports C1X-style static_assert
16703         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
16704         * lib/verify.h: Revamp so that this can be copied into assert.h,
16705         while retaining the ability to use it standalone as before.
16706         Rename private identifiers so as not to encroach on the
16707         standard C namespace, since this is now used by assert.h.
16708         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
16709         the old verify_true.
16710         (_GL_VERIFY_TRUE): New macro, with much of the contents of
16711         the old verify_true.  Use _GL_VERIFY_TYPE.
16712         (_GL_VERIFY): New macro, with much of the contents of the old verify.
16713         (static_assert): New macro, if _GL_STATIC_ASSERT_H
16714         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
16715         defined when this file is copied into the replacement assert.h.
16716         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
16717         and _Static_assert is not built in.
16718         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
16719         defined, and use the new macros mentioned above.
16720         * doc/posix-headers/assert.texi: Document this.
16721
16722 2011-05-05  Bruno Haible  <bruno@clisp.org>
16723
16724         fclose, fflush: Respect rules for use of AC_LIBOBJ.
16725         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
16726         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
16727         gl_REPLACE_FCLOSE here.
16728         * modules/fflush (Depends-on): Remove fclose.
16729         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
16730         combination with module 'fclose'.
16731
16732 2011-05-05  Bruno Haible  <bruno@clisp.org>
16733
16734         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
16735         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
16736         gl_FUNC_FFLUSH.
16737         (gl_FUNC_FFLUSH): Use it.
16738         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
16739         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
16740         gl_REPLACE_FSEEKO here.
16741
16742 2011-05-05  Bruno Haible  <bruno@clisp.org>
16743
16744         tzset: Relicense under LGPL.
16745         * modules/tzset (License): Change to LGPL.
16746         No agreement needed; it's a no-op.
16747
16748         strtoimax, strtoumax: Relicense under LGPL.
16749         * modules/strtoimax (License): Change to LGPL.
16750         * modules/strtoumax (License): Likewise.
16751         With permission from Jim Meyering, Paul Eggert:
16752         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
16753         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
16754
16755         getgroups: Relicense under LGPL.
16756         * modules/getgroups (License): Change to LGPL.
16757         With permission from Jim Meyering, Paul Eggert, Eric Blake:
16758         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16759         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16760         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16761
16762         nanosleep: Relicense under LGPL.
16763         * modules/nanosleep (License): Change to LGPL.
16764         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
16765         Haible:
16766         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16767         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16768         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16769         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16770
16771         futimens: Relicense under LGPL.
16772         * modules/futimens (License): Change to LGPL.
16773         With permission from Eric Blake:
16774         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16775
16776         fflush: Relicense under LGPL.
16777         * modules/fflush (License): Change to LGPL.
16778         With permission from Eric Blake, Bruno Haible, Jim Meyering:
16779         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16780         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16781         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
16782
16783         tmpfile: Relicense under LGPL.
16784         * modules/tmpfile (License): Change to LGPL.
16785         With permission from Ben Pfaff:
16786         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16787
16788         isfinite: Relicense under LGPL.
16789         * modules/isfinite (License): Change to LGPL.
16790         With permission from Ben Pfaff, Bruno Haible:
16791         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16792         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
16793
16794         acosl..tanl: Relicense under LGPL.
16795         * modules/acosl (License): Change to LGPL.
16796         * modules/asinl (License): Likewise.
16797         * modules/atanl (License): Likewise.
16798         * modules/cosl (License): Likewise.
16799         * modules/expl (License): Likewise.
16800         * modules/logl (License): Likewise.
16801         * modules/sinl (License): Likewise.
16802         * modules/sqrtl (License): Likewise.
16803         * modules/tanl (License): Likewise.
16804         Source code originally from glibc and Paolo Bonzini. Agreements:
16805         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
16806         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
16807
16808 2011-05-05  Bruno Haible  <bruno@clisp.org>
16809
16810         signal: Define sighandler_t.
16811         * lib/signal.in.h (sighandler_t): New type.
16812         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
16813         whether sighandler_t is defined.
16814         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
16815         * modules/signal (Depends-on): Add extensions.
16816         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
16817         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
16818         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
16819
16820 2011-05-05  Eric Blake  <eblake@redhat.com>
16821
16822         maint: remove useless REPLACE_*_H macros
16823         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
16824         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16825         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16826         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
16827         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16828         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16829         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
16830         * m4/btowc.m4: Update callers.
16831         * m4/dirfd.m4: Likewise.
16832         * m4/duplocale.m4: Likewise.
16833         * m4/fchdir.m4: Likewise.
16834         * m4/fdopendir.m4: Likewise.
16835         * m4/inet_ntop.m4: Likewise.
16836         * m4/inet_pton.m4: Likewise.
16837         * m4/ioctl.m4: Likewise.
16838         * m4/mbrlen.m4: Likewise.
16839         * m4/mbrtowc.m4: Likewise.
16840         * m4/mbsinit.m4: Likewise.
16841         * m4/mbsnrtowcs.m4: Likewise.
16842         * m4/mbsrtowcs.m4: Likewise.
16843         * m4/poll.m4: Likewise.
16844         * m4/setlocale.m4: Likewise.
16845         * m4/wcrtomb.m4: Likewise.
16846         * m4/wcsnrtombs.m4: Likewise.
16847         * m4/wcsrtombs.m4: Likewise.
16848         * m4/wctob.m4: Likewise.
16849         * m4/wcwidth.m4: Likewise.
16850         * modules/posix_spawn: Likewise.
16851         * modules/posix_spawn_file_actions_addclose: Likewise.
16852         * modules/posix_spawn_file_actions_adddup2: Likewise.
16853         * modules/posix_spawn_file_actions_addopen: Likewise.
16854         * modules/posix_spawn_file_actions_destroy: Likewise.
16855         * modules/posix_spawn_file_actions_init: Likewise.
16856         * modules/posix_spawnattr_destroy: Likewise.
16857         * modules/posix_spawnattr_getflags: Likewise.
16858         * modules/posix_spawnattr_getpgroup: Likewise.
16859         * modules/posix_spawnattr_getschedparam: Likewise.
16860         * modules/posix_spawnattr_getschedpolicy: Likewise.
16861         * modules/posix_spawnattr_getsigdefault: Likewise.
16862         * modules/posix_spawnattr_getsigmask: Likewise.
16863         * modules/posix_spawnattr_init: Likewise.
16864         * modules/posix_spawnattr_setflags: Likewise.
16865         * modules/posix_spawnattr_setpgroup: Likewise.
16866         * modules/posix_spawnattr_setschedparam: Likewise.
16867         * modules/posix_spawnattr_setschedpolicy: Likewise.
16868         * modules/posix_spawnattr_setsigdefault: Likewise.
16869         * modules/posix_spawnattr_setsigmask: Likewise.
16870         * modules/posix_spawnp: Likewise.
16871
16872 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
16873
16874         Add option to do-release-commit-and-tag to specify branch.
16875         * build-aux/do-release-commit-and-tag: Add --branch.
16876
16877 2011-05-03  Bruno Haible  <bruno@clisp.org>
16878
16879         Avoid unnecessary compilation units, through conditional dependencies.
16880         * modules/accept (Depends-on): Add conditions to the dependencies.
16881         * modules/acosl (Depends-on): Likewise.
16882         * modules/argz (Depends-on): Likewise.
16883         * modules/asinl (Depends-on): Likewise.
16884         * modules/atanl (Depends-on): Likewise.
16885         * modules/atoll (Depends-on): Likewise.
16886         * modules/bind (Depends-on): Likewise.
16887         * modules/btowc (Depends-on): Likewise.
16888         * modules/canonicalize-lgpl (Depends-on): Likewise.
16889         * modules/ceil (Depends-on): Likewise.
16890         * modules/ceilf (Depends-on): Likewise.
16891         * modules/ceill (Depends-on): Likewise.
16892         * modules/chdir-long (Depends-on): Likewise.
16893         * modules/chown (Depends-on): Likewise.
16894         * modules/close (Depends-on): Likewise.
16895         * modules/connect (Depends-on): Likewise.
16896         * modules/cosl (Depends-on): Likewise.
16897         * modules/dirfd (Depends-on): Likewise.
16898         * modules/dprintf (Depends-on): Likewise.
16899         * modules/dprintf-posix (Depends-on): Likewise.
16900         * modules/error (Depends-on): Likewise.
16901         * modules/euidaccess (Depends-on): Likewise.
16902         * modules/expl (Depends-on): Likewise.
16903         * modules/faccessat (Depends-on): Likewise.
16904         * modules/fchdir (Depends-on): Likewise.
16905         * modules/fclose (Depends-on): Likewise.
16906         * modules/fcntl (Depends-on): Likewise.
16907         * modules/fdopendir (Depends-on): Likewise.
16908         * modules/fflush (Depends-on): Likewise.
16909         * modules/floor (Depends-on): Likewise.
16910         * modules/floorf (Depends-on): Likewise.
16911         * modules/floorl (Depends-on): Likewise.
16912         * modules/fnmatch (Depends-on): Likewise.
16913         * modules/fopen (Depends-on): Likewise.
16914         * modules/fprintf-posix (Depends-on): Likewise.
16915         * modules/frexp (Depends-on): Likewise.
16916         * modules/frexp-nolibm (Depends-on): Likewise.
16917         * modules/frexpl (Depends-on): Likewise.
16918         * modules/frexpl-nolibm (Depends-on): Likewise.
16919         * modules/fseek (Depends-on): Likewise.
16920         * modules/fsusage (Depends-on): Likewise.
16921         * modules/ftell (Depends-on): Likewise.
16922         * modules/ftello (Depends-on): Likewise.
16923         * modules/futimens (Depends-on): Likewise.
16924         * modules/getcwd (Depends-on): Likewise.
16925         * modules/getcwd-lgpl (Depends-on): Likewise.
16926         * modules/getdelim (Depends-on): Likewise.
16927         * modules/getdomainname (Depends-on): Likewise.
16928         * modules/getgroups (Depends-on): Likewise.
16929         * modules/gethostname (Depends-on): Likewise.
16930         * modules/getline (Depends-on): Likewise.
16931         * modules/getlogin_r (Depends-on): Likewise.
16932         * modules/getopt-posix (Depends-on): Likewise.
16933         * modules/getpeername (Depends-on): Likewise.
16934         * modules/getsockname (Depends-on): Likewise.
16935         * modules/getsockopt (Depends-on): Likewise.
16936         * modules/getsubopt (Depends-on): Likewise.
16937         * modules/getusershell (Depends-on): Likewise.
16938         * modules/glob (Depends-on): Likewise.
16939         * modules/grantpt (Depends-on): Likewise.
16940         * modules/iconv_open (Depends-on): Likewise.
16941         * modules/iconv_open-utf (Depends-on): Likewise.
16942         * modules/inet_ntop (Depends-on): Likewise.
16943         * modules/inet_pton (Depends-on): Likewise.
16944         * modules/ioctl (Depends-on): Likewise.
16945         * modules/isapipe (Depends-on): Likewise.
16946         * modules/isfinite (Depends-on): Likewise.
16947         * modules/isinf (Depends-on): Likewise.
16948         * modules/lchown (Depends-on): Likewise.
16949         * modules/ldexpl (Depends-on): Likewise.
16950         * modules/link (Depends-on): Likewise.
16951         * modules/linkat (Depends-on): Likewise.
16952         * modules/listen (Depends-on): Likewise.
16953         * modules/logl (Depends-on): Likewise.
16954         * modules/lstat (Depends-on): Likewise.
16955         * modules/mbrlen (Depends-on): Likewise.
16956         * modules/mbrtowc (Depends-on): Likewise.
16957         * modules/mbsinit (Depends-on): Likewise.
16958         * modules/mbsnrtowcs (Depends-on): Likewise.
16959         * modules/mbsrtowcs (Depends-on): Likewise.
16960         * modules/mbtowc (Depends-on): Likewise.
16961         * modules/memcmp (Depends-on): Likewise.
16962         * modules/mkdir (Depends-on): Likewise.
16963         * modules/mkdtemp (Depends-on): Likewise.
16964         * modules/mkfifo (Depends-on): Likewise.
16965         * modules/mkfifoat (Depends-on): Likewise.
16966         * modules/mknod (Depends-on): Likewise.
16967         * modules/mkostemp (Depends-on): Likewise.
16968         * modules/mkostemps (Depends-on): Likewise.
16969         * modules/mkstemp (Depends-on): Likewise.
16970         * modules/mkstemps (Depends-on): Likewise.
16971         * modules/mktime (Depends-on): Likewise.
16972         * modules/nanosleep (Depends-on): Likewise.
16973         * modules/open (Depends-on): Likewise.
16974         * modules/openat (Depends-on): Likewise.
16975         * modules/perror (Depends-on): Likewise.
16976         * modules/poll (Depends-on): Likewise.
16977         * modules/popen (Depends-on): Likewise.
16978         * modules/posix_spawn (Depends-on): Likewise.
16979         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
16980         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
16981         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
16982         * modules/posix_spawnp (Depends-on): Likewise.
16983         * modules/pread (Depends-on): Likewise.
16984         * modules/printf-posix (Depends-on): Likewise.
16985         * modules/ptsname (Depends-on): Likewise.
16986         * modules/putenv (Depends-on): Likewise.
16987         * modules/pwrite (Depends-on): Likewise.
16988         * modules/readline (Depends-on): Likewise.
16989         * modules/readlink (Depends-on): Likewise.
16990         * modules/readlinkat (Depends-on): Likewise.
16991         * modules/recv (Depends-on): Likewise.
16992         * modules/recvfrom (Depends-on): Likewise.
16993         * modules/regex (Depends-on): Likewise.
16994         * modules/remove (Depends-on): Likewise.
16995         * modules/rename (Depends-on): Likewise.
16996         * modules/renameat (Depends-on): Likewise.
16997         * modules/rmdir (Depends-on): Likewise.
16998         * modules/round (Depends-on): Likewise.
16999         * modules/roundf (Depends-on): Likewise.
17000         * modules/roundl (Depends-on): Likewise.
17001         * modules/rpmatch (Depends-on): Likewise.
17002         * modules/select (Depends-on): Likewise.
17003         * modules/send (Depends-on): Likewise.
17004         * modules/sendto (Depends-on): Likewise.
17005         * modules/setenv (Depends-on): Likewise.
17006         * modules/setlocale (Depends-on): Likewise.
17007         * modules/setsockopt (Depends-on): Likewise.
17008         * modules/shutdown (Depends-on): Likewise.
17009         * modules/sigaction (Depends-on): Likewise.
17010         * modules/signbit (Depends-on): Likewise.
17011         * modules/sigprocmask (Depends-on): Likewise.
17012         * modules/sinl (Depends-on): Likewise.
17013         * modules/sleep (Depends-on): Likewise.
17014         * modules/snprintf (Depends-on): Likewise.
17015         * modules/snprintf-posix (Depends-on): Likewise.
17016         * modules/socket (Depends-on): Likewise.
17017         * modules/sprintf-posix (Depends-on): Likewise.
17018         * modules/sqrtl (Depends-on): Likewise.
17019         * modules/stat (Depends-on): Likewise.
17020         * modules/strchrnul (Depends-on): Likewise.
17021         * modules/strdup-posix (Depends-on): Likewise.
17022         * modules/strerror (Depends-on): Likewise.
17023         * modules/strerror_r-posix (Depends-on): Likewise.
17024         * modules/strndup (Depends-on): Likewise.
17025         * modules/strnlen (Depends-on): Likewise.
17026         * modules/strptime (Depends-on): Likewise.
17027         * modules/strsep (Depends-on): Likewise.
17028         * modules/strsignal (Depends-on): Likewise.
17029         * modules/strstr-simple (Depends-on): Likewise.
17030         * modules/strtod (Depends-on): Likewise.
17031         * modules/strtoimax (Depends-on): Likewise.
17032         * modules/strtok_r (Depends-on): Likewise.
17033         * modules/strtoumax (Depends-on): Likewise.
17034         * modules/symlink (Depends-on): Likewise.
17035         * modules/symlinkat (Depends-on): Likewise.
17036         * modules/tanl (Depends-on): Likewise.
17037         * modules/tcgetsid (Depends-on): Likewise.
17038         * modules/tmpfile (Depends-on): Likewise.
17039         * modules/trunc (Depends-on): Likewise.
17040         * modules/truncf (Depends-on): Likewise.
17041         * modules/truncl (Depends-on): Likewise.
17042         * modules/uname (Depends-on): Likewise.
17043         * modules/unlink (Depends-on): Likewise.
17044         * modules/unlockpt (Depends-on): Likewise.
17045         * modules/unsetenv (Depends-on): Likewise.
17046         * modules/usleep (Depends-on): Likewise.
17047         * modules/utimensat (Depends-on): Likewise.
17048         * modules/vasprintf (Depends-on): Likewise.
17049         * modules/vdprintf (Depends-on): Likewise.
17050         * modules/vdprintf-posix (Depends-on): Likewise.
17051         * modules/vfprintf-posix (Depends-on): Likewise.
17052         * modules/vprintf-posix (Depends-on): Likewise.
17053         * modules/vsnprintf (Depends-on): Likewise.
17054         * modules/vsnprintf-posix (Depends-on): Likewise.
17055         * modules/vsprintf-posix (Depends-on): Likewise.
17056         * modules/wcrtomb (Depends-on): Likewise.
17057         * modules/wcscasecmp (Depends-on): Likewise.
17058         * modules/wcscspn (Depends-on): Likewise.
17059         * modules/wcsdup (Depends-on): Likewise.
17060         * modules/wcsncasecmp (Depends-on): Likewise.
17061         * modules/wcsnrtombs (Depends-on): Likewise.
17062         * modules/wcspbrk (Depends-on): Likewise.
17063         * modules/wcsrtombs (Depends-on): Likewise.
17064         * modules/wcsspn (Depends-on): Likewise.
17065         * modules/wcsstr (Depends-on): Likewise.
17066         * modules/wcstok (Depends-on): Likewise.
17067         * modules/wcswidth (Depends-on): Likewise.
17068         * modules/wctob (Depends-on): Likewise.
17069         * modules/wctomb (Depends-on): Likewise.
17070         * modules/wctype (Depends-on): Likewise.
17071         * modules/wcwidth (Depends-on): Likewise.
17072         * modules/write (Depends-on): Likewise.
17073
17074 2011-05-03  Bruno Haible  <bruno@clisp.org>
17075
17076         Support for conditional dependencies.
17077         * doc/gnulib.texi (Module description): Document the syntax of
17078         conditional dependencies.
17079         * gnulib-tool: New option --conditional-dependencies.
17080         (func_usage): Document it.
17081         (cond_dependencies): New variable.
17082         (func_get_automake_snippet_conditional,
17083         func_get_automake_snippet_unconditional): New functions, extracted from
17084         func_get_automake_snippet.
17085         (func_get_automake_snippet): Use them.
17086         (sed_first_32_chars): New variable.
17087         (func_module_shellfunc_name): New function.
17088         (func_module_shellvar_name): New function.
17089         (func_module_conditional_name): New function.
17090         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
17091         func_cond_module_condition): New functions.
17092         (func_modules_transitive_closure): Add support for conditional
17093         dependencies.
17094         (func_emit_lib_Makefile_am): For a conditional module, enclose the
17095         conditional automake snippet in an automake conditional.
17096         (func_emit_autoconf_snippets): Emit shell functions that contain the
17097         code for conditional modules.
17098         (func_import, func_create_testdir): Update specification.
17099
17100 2011-05-03  Eric Blake  <eblake@redhat.com>
17101
17102         test-getaddrinfo: report error information
17103         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
17104
17105 2011-05-03  Jim Meyering  <meyering@redhat.com>
17106
17107         bootstrap: avoid build failure when $GZIP is set
17108         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
17109         program name.  If defined at all, it is supposed to list gzip options.
17110         Reported by Alan Curry in http://debbugs.gnu.org/8609
17111
17112 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
17113
17114         readme-release: new module with release instructions
17115         * modules/readme-release: New module.
17116         * top/README-release: New file, from coreutils, grep, diffutils.
17117         * MODULES.html.sh (Support for maintaining and releasing): Add it.
17118
17119 2011-05-02  Eric Blake  <eblake@redhat.com>
17120
17121         fflush: also replace fclose when fixing fflush
17122         * modules/fflush (Depends-on): Add fclose.
17123         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
17124         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
17125         memstreams with no backing fd.
17126         * doc/posix-functions/fclose.texi (fclose): Document the use of
17127         fflush module to fix the bug.
17128         * tests/test-fclose.c (main): Relax test when fclose is used in
17129         isolation.
17130
17131         fclose: add some tests
17132         * modules/fclose-tests: New test module.
17133         * tests/test-fclose.c: New file.
17134         * doc/posix-functions/fclose.texi (fclose): Document the bug.
17135
17136         fclose: reduced dependencies
17137         * modules/fclose (Depends-on): Switch from fflush/fseeko to
17138         simpler lseek.
17139         * lib/fclose.c (rpl_fclose): Likewise.
17140         Reported by Simon Josefsson.
17141
17142         exit: drop remaining clients
17143         * modules/argmatch (Depends-on): Replace exit with stdlib.
17144         * modules/copy-file (Depends-on): Likewise.
17145         * modules/execute (Depends-on): Likewise.
17146         * modules/exitfail (Depends-on): Likewise.
17147         * modules/obstack (Depends-on): Likewise.
17148         * modules/pagealign_alloc (Depends-on): Likewise.
17149         * modules/pipe-filter-gi (Depends-on): Likewise.
17150         * modules/pipe-filter-ii (Depends-on): Likewise.
17151         * modules/savewd (Depends-on): Likewise.
17152         * modules/spawn-pipe (Depends-on): Likewise.
17153         * modules/wait-process (Depends-on): Likewise.
17154         * modules/xsetenv (Depends-on): Likewise.
17155         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
17156         * modules/git-merge-changelog (Depends-on): Likewise.
17157         * modules/long-options (Depends-on): Likewise.
17158         * modules/pt_chown (Depends-on): Likewise.
17159         * modules/sysexits (Depends-on): Likewise.
17160
17161         freading: relax license from LGPLv3+ to LGPLv2+
17162         * modules/freading (License): Relax LGPL version.
17163
17164 2011-05-02  Bruno Haible  <bruno@clisp.org>
17165
17166         fchdir: Remove unused dependencies.
17167         * modules/fchdir (Depends-on): Remove include_next.
17168
17169 2011-05-02  Bruno Haible  <bruno@clisp.org>
17170
17171         gnulib-tool: Refactor.
17172         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
17173         from func_emit_autoconf_snippets.
17174         (func_emit_autoconf_snippets): Use it.
17175
17176 2011-05-02  Simon Josefsson  <simon@josefsson.org>
17177
17178         * NEWS: Document removal of 'exit'.
17179         * modules/exit: Remove file.
17180
17181 2011-05-01  Bruno Haible  <bruno@clisp.org>
17182
17183         Update DEPENDENCIES.
17184         * DEPENDENCIES (gettext): Recommend the newest release.
17185         Reported by Simon Josefsson.
17186
17187 2011-05-01  Bruno Haible  <bruno@clisp.org>
17188
17189         gnulib-tool: Reduce code duplication.
17190         * gnulib-tool (func_emit_autoconf_snippets): New function.
17191         (func_import, func_create_testdir): Use it.
17192
17193 2011-04-30  Eric Blake  <eblake@redhat.com>
17194
17195         fclose: don't fail on non-seekable input stream
17196         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
17197         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
17198         since fflush is allowed to fail in that case.
17199
17200 2011-04-30  Bruno Haible  <bruno@clisp.org>
17201
17202         dup3: cleanup
17203         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
17204
17205 2011-04-30  Bruno Haible  <bruno@clisp.org>
17206
17207         netdb: Make it work in C++ mode.
17208         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
17209         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
17210         module.
17211         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
17212         gl_MODULE_INDICATOR_FOR_TESTS.
17213         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
17214         * modules/netdb-c++-tests: New file.
17215         * tests/test-netdb-c++.cc: New file.
17216
17217 2011-04-30  Bruno Haible  <bruno@clisp.org>
17218
17219         New modules 'vfscanf', 'vscanf'.
17220         * modules/vfscanf: New file.
17221         * modules/vscanf: New file.
17222         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
17223         here.
17224         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
17225         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
17226
17227 2011-04-30  Bruno Haible  <bruno@clisp.org>
17228
17229         passfd: Add comments.
17230         * lib/passfd.c: Add comments about platforms.
17231
17232 2011-04-30  Bruno Haible  <bruno@clisp.org>
17233
17234         sys_uio: Make <sys/uio.h> self-contained.
17235         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
17236         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
17237
17238 2011-04-30  Bruno Haible  <bruno@clisp.org>
17239
17240         sys_socket: Ensure 'struct iovec' definition.
17241         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
17242         <sys/socket.h>.
17243         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
17244
17245 2011-04-30  Bruno Haible  <bruno@clisp.org>
17246
17247         sys_uio: Protect definition of 'struct iovec'.
17248         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
17249         it as a C struct.
17250
17251 2011-04-30  Bruno Haible  <bruno@clisp.org>
17252
17253         manywarnings: fix indentation
17254         * m4/manywarnings.m4: Indent by 2 spaces consistently.
17255
17256 2011-04-30  Pádraig Brady <P@draigBrady.com>
17257
17258         manywarnings: add -Wno-missing-field-initializers if needed.
17259         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
17260         option if it's needed to allow initialization with { 0, }
17261
17262 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
17263
17264         announce-gen: cosmetic improvement
17265         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
17266
17267 2011-04-29  Jim Meyering  <meyering@redhat.com>
17268
17269         vc-list-files: indent with spaces, not TABs
17270         * build-aux/vc-list-files: Convert leading TABs to spaces,
17271         to match the style of most other files in gnulib.
17272
17273         announce-gen: indent with spaces, not TABs
17274         * build-aux/announce-gen: Convert all TABs to spaces, to match
17275         the style of most other files in gnulib.
17276
17277 2011-04-29  Eric Blake  <eblake@redhat.com>
17278
17279         quotearg: avoid uninitialized variable use
17280         * lib/quotearg.c (quoting_options_from_style): Initialize
17281         remaining fields, and ensure that custom styles are only used via
17282         quoting_options rather than quoting_style.
17283
17284 2011-04-29  Jim Meyering  <meyering@redhat.com>
17285
17286         maint.mk: remove unused VC-tag variable
17287         * top/maint.mk (VC-tag): Remove unused variable.
17288
17289 2011-04-29  Bruno Haible  <bruno@clisp.org>
17290
17291         netdb: fix gai_strerror replacements
17292         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
17293         * modules/netdb: Substitute it.
17294
17295 2011-04-29  Jim Meyering  <meyering@redhat.com>
17296
17297         test-getcwd.c: avoid new set-but-not-used warning
17298         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
17299         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
17300         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
17301         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
17302
17303         test-hash.c: avoid a new shadowing warning
17304         * tests/test-hash.c (main): Don't shadow "dup".
17305
17306 2011-04-28  Eric Blake  <eblake@redhat.com>
17307
17308         getaddrinfo: fix gai_strerror signature
17309         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
17310         and work around mingw with UNICODE defined.
17311         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
17312         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
17313         * modules/netdb (Makefile.am): Substitute it.
17314         * lib/netdb.in.h (gai_strerror): Declare replacement.
17315         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
17316         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
17317         the fix.
17318
17319         getsockopt: avoid compiler warning
17320         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
17321         Reported by Matthias Bolte.
17322
17323         tests: drop unused link dependency
17324         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
17325         * modules/dirent-safer-tests (Makefile.am): Likewise.
17326         * modules/fdopendir-tests (Makefile.am): Likewise.
17327         * modules/mkfifoat-tests (Makefile.am): Likewise.
17328         * modules/openat-safer-tests (Makefile.am): Likewise.
17329         * modules/openat-tests (Makefile.am): Likewise.
17330         * modules/readlinkat-tests (Makefile.am): Likewise.
17331         * modules/symlinkat-tests (Makefile.am): Likewise.
17332         * modules/linkat-tests (Makefile.am): Likewise.
17333         (Depends-on): Switch to filenamecat-lgpl.
17334         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
17335         LIBINTL.
17336         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
17337         * tests/test-linkat.c (main): Don't require xalloc.
17338
17339         hash, mgetgroups: drop xalloc dependency
17340         * lib/hash.c (includes): Adjust includes.
17341         * lib/mgetgroups.c (includes): Likewise.
17342         (xgetgroups): Move...
17343         * lib/xgetgroups.c: ...to new file.
17344         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
17345         * modules/xgetgroups: New file, split from...
17346         * modules/mgetgroups: ...here.
17347         (Depends-on): Add xalloc-oversized.
17348         * modules/hash (Depends-on): Likewise.
17349         * modules/hash-tests (Depends-on): Drop xalloc.
17350         (test_hash_LDADD): Drop unused library.
17351         * tests/test-hash.c (main): Break xalloc dependency.
17352         (includes): Drop unused include.
17353
17354         xalloc-oversized: new module
17355         * modules/xalloc-oversized: New module.
17356         * modules/xalloc (Depends-on): Add it.
17357         * lib/xalloc.h (xalloc_oversized): Move...
17358         * lib/xalloc-oversized.h: ...into new file.
17359
17360         utimecmp: drop dependency on xmalloc
17361         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
17362         due to memory pressure.
17363         * modules/utimecmp (Depends-on): Drop xalloc.
17364
17365 2011-04-27  Eric Blake  <eblake@redhat.com>
17366
17367         getcwd: fix mingw bugs
17368         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
17369         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
17370         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
17371
17372 2011-04-27  Bruno Haible  <bruno@clisp.org>
17373
17374         mkstemps: Ensure declaration on MacOS X 10.5.
17375         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
17376         * doc/glibc-functions/mkstemps.texi: Document header file problem on
17377         MacOS X.
17378
17379 2011-04-27  Bruno Haible  <bruno@clisp.org>
17380
17381         mkstemp: More documentation.
17382         * doc/posix-functions/mkstemp.texi: Document header file problem on
17383         MacOS X.
17384
17385 2011-04-27  Bruno Haible  <bruno@clisp.org>
17386
17387         mkstemp: Tweak configure message when cross-compiling.
17388         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
17389         result as a guess.
17390
17391 2011-04-27  Bruno Haible  <bruno@clisp.org>
17392
17393         clean-temp: Clarify what it does.
17394         * lib/clean-temp.h: Add more comments.
17395         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
17396         module.
17397         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
17398         * doc/glibc-functions/mkstemps.texi: Likewise.
17399         * doc/glibc-functions/mkostemps.texi: Likewise.
17400
17401 2011-04-27  Eric Blake  <eblake@redhat.com>
17402
17403         fchdir: avoid extra chdir and fix test
17404         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
17405         getcwd-lgpl.
17406         * lib/fchdir.c (get_name): Any absolute name will do; it does not
17407         have to be canonical.
17408         (canonicalize_file_name): Drop unused macro.
17409         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
17410
17411         filenamecat-lgpl: fix licence
17412         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
17413         when it was first created.
17414
17415         linkat, renameat: add missing dependency
17416         * modules/linkat (Depends-on): Require getcwd-lgpl.
17417         * modules/renameat (Depends-on): Likewise.
17418
17419         tests: reduce dependencies
17420         * tests/test-linkat.c (main): Use lighter-weight getcwd.
17421         * tests/test-renameat.c (main): Likewise.
17422         * modules/linkat-tests (Depends-on): Relax dependency.
17423         * modules/renameat-tests (Depends-on): Likewise.
17424         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
17425         dependency explicit.
17426
17427         save-cwd: reduce default dependency
17428         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
17429         * lib/save-cwd.c: Update comments.
17430         * NEWS: Document the semantic change.
17431
17432         getcwd: enhance tests
17433         * tests/test-getcwd-lgpl.c: New file, taken from...
17434         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
17435         repeat long path stress tests from m4 probe.
17436         * modules/getcwd-lgpl-tests: New module.
17437         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
17438         * m4/getcwd-abort-bug.m4: Update comment.
17439         * m4/getcwd-path-max.m4: Likewise.
17440
17441         getcwd-lgpl: new module
17442         * modules/getcwd-lgpl: New module.
17443         * lib/getcwd-lgpl.c: New file.
17444         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17445         * MODULES.html.sh (lacking POSIX:2008): Likewise.
17446         * modules/getcwd (configure.ac): Set C witness.
17447         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
17448
17449         getcwd: tweak comments
17450         * m4/getcwd-abort-bug.m4: Fix comments.
17451         * m4/getcwd-path-max.m4: Likewise.
17452         * m4/getcwd.m4: Likewise.
17453
17454 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17455         and Eric Blake  <eblake@redhat.com>
17456
17457         mkstemp: replace if system version uses wrong permissions
17458         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
17459         read/write mode bits set in file created by mkstemp.
17460         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
17461
17462 2011-04-27  Eric Blake  <eblake@redhat.com>
17463
17464         passfd: avoid compiler warning
17465         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
17466         Reported by Laine Stump.
17467
17468 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
17469
17470         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
17471         required by the NetBSD (and perhaps other 4.4BSD derived) join.
17472
17473 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17474         and Eric Blake  <eblake@redhat.com>
17475
17476         mkstemp: mention clean-temp module
17477         * lib/mkstemp.c: Add comment.
17478         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
17479
17480 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
17481
17482         inttypes: also provide default values for 32-bit tests
17483         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
17484         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
17485
17486 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
17487
17488         strtoumax: remove dependency on strtoimax
17489         This is like the strtoull change of yesterday.
17490         * modules/strtoumax (Files): Add lib/strtoimax.c.
17491         (Depends-on): Remove strtoimax and add verify.
17492
17493         inttypes-incomplete: new module
17494         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
17495         all but the PRI* and SCN* parts of gl_INTTYPES_H.
17496         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
17497         of gl_INTTYPES_H.
17498         (gl_INTTYPES_H): Rewrite in terms of these new macros.
17499         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
17500         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
17501         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
17502         * modules/strtoumax, modules/xstrtol (Depends-on):
17503         Depend on inttypes-incomplete, not inttypes.
17504         * modules/inttypes-incomplete: New module, containing the contents
17505         of the old modules/inttypes module, except that the Files: section
17506         omits m4/inttypes-pri.m4, and the configure.ac section invokes
17507         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
17508         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
17509         (Depends-on): Depend only on inttypes-incomplete.
17510         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
17511
17512         inttypes: omit now-redundant strtoimax and strtoumax work
17513         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
17514         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
17515
17516         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
17517         This supports apps that need pointers to strtoimax and strtoumax,
17518         and ports to HP-UX 11.00 64.bit, which has macros that expand to
17519         nonexistent functions.  See
17520         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
17521         et seq.
17522         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
17523         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
17524         a macro.
17525         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17526
17527 2011-04-25  Simon Josefsson  <simon@josefsson.org>
17528
17529         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
17530
17531 2011-04-25  Bruno Haible  <bruno@clisp.org>
17532
17533         strtol, strtoul: Mark modules as obsolete.
17534         * modules/strtol (Status, Notice): New sections.
17535         * modules/strtoul (Status, Notice): New sections.
17536
17537 2011-04-25  Bruno Haible  <bruno@clisp.org>
17538
17539         strtod: Remove check for strtod, unless supporting old platforms.
17540         * modules/strtod-obsolete: New file.
17541         * m4/strtod-obsolete.m4: New file.
17542         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
17543         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
17544         * modules/strtod (Depends-on): Add strtod-obsolete.
17545         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
17546
17547 2011-04-25  Bruno Haible  <bruno@clisp.org>
17548
17549         strcase: Make module obsolete.
17550         * modules/strcase (Status, Notice): New sections.
17551
17552 2011-04-25  Bruno Haible  <bruno@clisp.org>
17553
17554         dup2: Remove check for dup2, unless supporting old obsolete platforms.
17555         * modules/dup2-obsolete: New file.
17556         * m4/dup2-obsolete.m4: New file.
17557         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
17558         gl_FUNC_DUP2_OBSOLETE is not also defined.
17559         * modules/dup2 (Depends-on): Add dup2-obsolete.
17560         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
17561
17562 2011-04-25  Bruno Haible  <bruno@clisp.org>
17563
17564         strnlen: Avoid memchr related link error on old obsolete platforms.
17565         * modules/memchr-obsolete: New file.
17566         * m4/memchr-obsolete.m4: New file.
17567         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
17568         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
17569         * modules/memchr (Depends-on): Add memchr-obsolete.
17570         * modules/strnlen (Depends-on): Likewise.
17571         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
17572
17573 2011-04-25  Jim Meyering  <meyering@redhat.com>
17574
17575         maint.mk: makefile_at_at_check extend and clean up
17576         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
17577         in addition to */Makefile.am.
17578         Exempt legitimate uses of @VAR@ notation, e.g.,
17579         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
17580         Remove obsolete coreutils-specific comment.
17581         Prompted by discussion here:
17582         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
17583
17584 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
17585
17586         strtoul: remove dependency on strtol
17587         This is so that 'configure' need not check for strtol merely because
17588         the application needs strtoul.
17589         * modules/strtoul (Files): Add lib/strtol.c.
17590         (Depends-on): Remove strtol.
17591
17592         strtoull: remove dependency on strtoul
17593         This is like the strtoll change.
17594         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
17595         (Depends-on): Remove strtoul.
17596
17597         strtoll: remove dependency on strtol
17598         This is so that 'configure' need not check for strtol merely because
17599         the application needs strtoll.
17600         * modules/strtoll (Files): Add lib/strtol.c.
17601         (Depends-on): Remove strtol.
17602
17603 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17604
17605         inttypes: Move some configure check to module 'imaxdiv'.
17606         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
17607         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
17608         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
17609
17610 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17611
17612         inttypes: Move some configure check to module 'imaxabs'.
17613         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
17614         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
17615         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
17616
17617 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17618
17619         inttypes: Remove configure tests that are not needed since 2009-12-31.
17620         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
17621         gl_cv_header_working_inttypes_h.
17622
17623 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17624
17625         * modules/strnlen (Depends-on): Remove memchr.
17626         The strnlen implementation doesn't need the memchr module's fixes; see
17627         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
17628
17629         strtol: remove dependency on wchar
17630         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
17631         * modules/strtol (Depends-on): Remove wchar.
17632
17633 2011-04-21  Eric Blake  <eblake@redhat.com>
17634
17635         passfd: fix test regression on Linux
17636         * modules/passfd-tests (configure.ac): Correct socketpair check.
17637
17638         passfd: speed up configure and drop unused code
17639         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
17640         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
17641         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
17642         Instead of probing at configure for unix_scm_rights_bsd44_way,
17643         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
17644         check to a struct member probe.
17645         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
17646         (sendfd, recvfd): Update preprocessor checks.
17647         * modules/passfd (Files): Reflect rename, and drop unused file.
17648         (Depends-on): Drop unused dependency.
17649
17650         passfd: allow compilation on mingw
17651         * modules/sys_socket (Depends-on): Add sys_uio.
17652         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
17653         iovec and a minimal struct msghdr.
17654         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
17655         * tests/test-sys_socket.c (main): Enhance test.
17656         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
17657         guaranteed to provide what we need.
17658         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
17659         * modules/passfd-tests (Depends-on): Add sys_wait.
17660         * tests/test-passfd.c (main): Skip test on mingw, for now.
17661         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
17662         partial 'struct msghdr' implementation.
17663
17664         sys_uio: new module
17665         * modules/sys_uio: New module.
17666         * modules/sys_uio-tests: Likewise.
17667         * lib/sys_uio.in.h: New file.
17668         * m4/sys_uio_h.m4: Likewise.
17669         * tests/test-sys_uio.c: Likewise.
17670         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
17671         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
17672
17673 2011-04-20  Jim Meyering  <meyering@redhat.com>
17674
17675         useless-if-before-free: avoid false-positive
17676         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
17677         disjunct so that it too requires a terminating ";".  Without that,
17678         this script would identify as useless one statement from gcc that
17679         was not:
17680           if (aligned_ptr)
17681             free (((void **) aligned_ptr) [-1]);
17682
17683 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
17684
17685         doc: update users.txt.
17686         * users.txt: Add barcode.
17687
17688 2011-04-19  Bruno Haible  <bruno@clisp.org>
17689
17690         ioctl: Remove link dependency on native Windows.
17691         * lib/fd-hook.h: Renamed from lib/close-hook.h.
17692         (gl_close_fn, gl_ioctl_fn): New types.
17693         (struct fd_hook): Renamed from struct close_hook. Change type of
17694         private_close_fn field. Add private_ioctl_fn field.
17695         (close_hook_fn): Add parameter for primary close method.
17696         (execute_close_hooks, execute_all_close_hooks): Likewise.
17697         (ioctl_hook_fn): New type.
17698         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
17699         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17700         argument.
17701         (unregister_fd_hook): Renamed from unregister_close_hook.
17702         * lib/fd-hook.c: Renamed from lib/close-hook.c.
17703         Don't include <unistd.h>.
17704         (close): Remove undef.
17705         (anchor): Update.
17706         (execute_close_hooks): Add argument for primary close method.
17707         (execute_all_close_hooks): Likewise.
17708         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
17709         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17710         argument. Allow each argument to be NULL.
17711         (unregister_fd_hook): Renamed from unregister_close_hook.
17712         * lib/close.c (rpl_close): Pass 'close' function pointer to
17713         execute_all_close_hooks.
17714         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
17715         (primary_ioctl): New function.
17716         (ioctl): Don't call ioctlsocket here. Instead, call
17717         execute_all_ioctl_hooks.
17718         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
17719         close method.
17720         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
17721         (fd_sockets_hook): Renamed from close_sockets_hook.
17722         (gl_sockets_startup, gl_sockets_cleanup): Update.
17723         * modules/fd-hook: Renamed from modules/close-hook. Update.
17724         * modules/close (Depends-on): Add fd-hook, remove close-hook.
17725         * modules/sockets (Depends-on): Likewise.
17726         * modules/ioctl (Depends-on): Add fd-hook.
17727         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
17728         GNULIB_SOCKET.
17729
17730 2011-04-19  Bruno Haible  <bruno@clisp.org>
17731
17732         Move the support of O_NONBLOCK in open() to the 'open' module.
17733         * modules/nonblocking (Depends-on): Remove 'open'.
17734         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
17735         gl_cv_have_open_O_NONBLOCK.
17736         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
17737         O_NONBLOCK support.
17738         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
17739
17740 2011-04-17  Bruno Haible  <bruno@clisp.org>
17741
17742         pipe2: Simplify code.
17743         * lib/pipe2.c (pipe2): Reduce code duplication.
17744
17745 2011-04-17  Bruno Haible  <bruno@clisp.org>
17746
17747         nonblocking: Add comment.
17748         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
17749
17750 2011-04-17  Bruno Haible  <bruno@clisp.org>
17751
17752         nonblocking: Add tests for sockets.
17753         * tests/test-nonblocking-socket.sh: New file.
17754         * tests/test-nonblocking-socket-main.c: New file.
17755         * tests/test-nonblocking-socket-child.c: New file.
17756         * tests/test-nonblocking-socket.h: New file.
17757         * tests/socket-server.h: New file.
17758         * tests/socket-client.h: New file.
17759         * modules/nonblocking-socket-tests: New file.
17760         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
17761
17762 2011-04-17  Bruno Haible  <bruno@clisp.org>
17763
17764         nonblocking: Add tests for pipes.
17765         * tests/test-nonblocking-pipe.sh: New file.
17766         * tests/test-nonblocking-pipe-main.c: New file.
17767         * tests/test-nonblocking-pipe-child.c: New file.
17768         * tests/test-nonblocking-pipe.h: New file.
17769         * tests/test-nonblocking-writer.h: New file.
17770         * tests/test-nonblocking-reader.h: New file.
17771         * tests/test-nonblocking-misc.h: New file.
17772         * modules/nonblocking-pipe-tests: New file.
17773         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
17774
17775 2011-04-16  Bruno Haible  <bruno@clisp.org>
17776
17777         gettext: Clarify the needed programmer actions.
17778         * modules/gettext (Notice): New field.
17779         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
17780
17781 2011-04-16  Bruno Haible  <bruno@clisp.org>
17782
17783         strchrnul: Tweak last commit.
17784         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
17785         bug.
17786         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
17787         as in _GL_FUNCDECL_SYS.
17788         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
17789         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
17790
17791 2011-04-15  Eric Blake  <eblake@redhat.com>
17792
17793         strchrnul: work around cygwin bug
17794         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
17795         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
17796         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
17797         * modules/string (Makefile.am): Substitute it.
17798         * lib/string.in.h (strchrnul): Use it.
17799
17800 2011-04-15  Bruno Haible  <bruno@clisp.org>
17801
17802         Don't require lib/stdio-write.c when only module 'stdio' is used.
17803         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
17804         invocation.
17805         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
17806
17807 2011-04-14  Bruno Haible  <bruno@clisp.org>
17808
17809         Support non-blocking pipe I/O in read() on native Windows.
17810         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
17811         (read): New declaration.
17812         * lib/read.c: New file.
17813         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
17814         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
17815         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
17816         vscanf): New declarations.
17817         * lib/stdio-read.c: New file.
17818         * m4/read.m4: New file.
17819         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
17820         REPLACE_READ.
17821         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
17822         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17823         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
17824         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
17825         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
17826         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17827         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17828         * modules/read: New file.
17829         * modules/nonblocking (Files): Add lib/stdio-read.c.
17830         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
17831         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
17832         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17833         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17834         * modules/pread (Depends-on): Add read.
17835         * modules/safe-read (Depends-on): Likewise.
17836         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
17837         gets, scanf, vfscanf, vscanf): Verify signatures.
17838         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
17839         problem with non-blocking pipes.
17840         * doc/posix-functions/fgetc.texi: Likewise.
17841         * doc/posix-functions/fgets.texi: Likewise.
17842         * doc/posix-functions/fread.texi: Likewise.
17843         * doc/posix-functions/fscanf.texi: Likewise.
17844         * doc/posix-functions/getc.texi: Likewise.
17845         * doc/posix-functions/getchar.texi: Likewise.
17846         * doc/posix-functions/gets.texi: Likewise.
17847         * doc/posix-functions/scanf.texi: Likewise.
17848         * doc/posix-functions/vfscanf.texi: Likewise.
17849         * doc/posix-functions/vscanf.texi: Likewise.
17850
17851 2011-04-14  Bruno Haible  <bruno@clisp.org>
17852
17853         Support non-blocking pipe I/O in write() on native Windows.
17854         * lib/write.c (rpl_write): Split a write request that failed merely
17855         because the byte count was larger than the pipe buffer's size.
17856         * doc/posix-functions/write.texi: Mention the problem with large byte
17857         counts.
17858
17859 2011-04-14  Bruno Haible  <bruno@clisp.org>
17860
17861         wchar: Ensure that wchar_t gets defined on uClibc.
17862         * lib/wchar.in.h: On uClibc, include <stddef.h>.
17863         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
17864
17865 2011-04-13  Bruno Haible  <bruno@clisp.org>
17866
17867         safe-write, full-read: Avoid unnecessary compilation units.
17868         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
17869         (Depends-on): Remove safe-read. Add ssize_t.
17870         * modules/full-read (Files): Add lib/full-write.c.
17871         (Depends-on): Add full-write.
17872
17873 2011-04-13  Bruno Haible  <bruno@clisp.org>
17874
17875         Support non-blocking pipe I/O and SIGPIPE in pwrite().
17876         * modules/pwrite (Depends-on): Add 'write'.
17877
17878 2011-04-13  Bruno Haible  <bruno@clisp.org>
17879
17880         Support non-blocking pipe I/O in write() on native Windows.
17881         * lib/unistd.in.h (write): Enable replacement also if
17882         GNULIB_UNISTD_H_NONBLOCKING is 1.
17883         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
17884         (rpl_write): When failing to write on a non-blocking pipe, change
17885         errno from ENOSPC to EAGAIN.
17886         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
17887         putchar, puts, vfprintf, vprintf): Enable replacement also if
17888         GNULIB_STDIO_H_NONBLOCKING is 1.
17889         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
17890         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
17891         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
17892         CALL_WITH_SIGPIPE_EMULATION.
17893         (CALL_WITH_SIGPIPE_EMULATION): Use them.
17894         * m4/nonblocking.m4: New file.
17895         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
17896         for non-blocking I/O support.
17897         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17898         GNULIB_UNISTD_H_NONBLOCKING.
17899         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
17900         required for non-blocking I/O support.
17901         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
17902         * modules/nonblocking (Files): Add m4/nonblocking.m4,
17903         lib/stdio-write.c, m4/asm-underscore.m4.
17904         (Depends-on): Add stdio, unistd.
17905         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
17906         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
17907         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
17908         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
17909         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
17910         problem with non-blocking pipes.
17911         * doc/posix-functions/fputc.texi: Likewise.
17912         * doc/posix-functions/fputs.texi: Likewise.
17913         * doc/posix-functions/fwrite.texi: Likewise.
17914         * doc/posix-functions/printf.texi: Likewise.
17915         * doc/posix-functions/putc.texi: Likewise.
17916         * doc/posix-functions/putchar.texi: Likewise.
17917         * doc/posix-functions/puts.texi: Likewise.
17918         * doc/posix-functions/vfprintf.texi: Likewise.
17919         * doc/posix-functions/vprintf.texi: Likewise.
17920         * doc/posix-functions/write.texi: Likewise.
17921
17922 2011-04-10  Jim Meyering  <meyering@redhat.com>
17923
17924         maint.mk: prohibit doubled words
17925         Detect them also when they're separated by a newline.
17926         There are 3 ways to customize it:
17927           - disable the test on a per file basis, as usual with rules using
17928             $(VC_LIST_EXCEPT)
17929           - replace the default doubled-word-selecting regexp (affects all files)
17930           - ignore a particular file-vs-doubled-word match
17931         I nearly used that last one to ignore the "is is" match in
17932         coreutils' NEWS file, since the text was "ls -is is ..."
17933         To do that, I would have added this line to cfg.mk:
17934           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
17935         but it would have ignored any "is is" match in NEWS.
17936         Low probability, but still...
17937         Instead, I changed the text, slightly:
17938           -  ls -is is now consistent with ls -lis in ignoring values returned
17939           +  "ls -is" is now consistent with ls -lis in ignoring values returned
17940         * top/maint.mk (prohibit_double_word_RE_): Provide default.
17941         (prohibit_doubled_word_): Define.
17942         (sc_prohibit_doubled_word): New rule.
17943         (sc_prohibit_the_the): Remove.  Subsumed by the above.
17944
17945 2011-04-10  Jim Meyering  <meyering@redhat.com>
17946
17947         maint: fix doubled-word typo in comment
17948         * m4/gethostname.m4: s/is is/it is/
17949         * m4/getdomainname.m4: Likewise.
17950
17951 2011-04-10  Jim Meyering  <meyering@redhat.com>
17952
17953         maint: remove doubled word: s/it it/it/
17954         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
17955
17956 2011-04-10  Jim Meyering  <meyering@redhat.com>
17957
17958         maint.mk: remove useless semicolon and backslash
17959         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
17960         semicolon and backslash.
17961
17962 2011-04-10  Bruno Haible  <bruno@clisp.org>
17963
17964         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
17965         * modules/stdint-tests (Depends-on): Add wchar.
17966
17967 2011-04-10  Jim Meyering  <meyering@redhat.com>
17968
17969         maint: remove doubled words in comments, e.g., s/a a/a/
17970         * lib/strptime.c (day_of_the_week): s/the the/the/
17971         * tests/test-chown.h (test_chown): s/a a/a/
17972
17973         test-chown.h: correct a cast
17974         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
17975         when the destination is a stat.st_gid.
17976
17977 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
17978
17979         getaddrinfo: Fix test for sa_len member.
17980         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
17981         include <sys/types.h> before <sys/socket.h>.
17982
17983 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17984
17985         maint: change "can not" to "cannot"
17986         * doc/posix-functions/iconv.texi (iconv): This one crossed line
17987         boundaries.
17988
17989 2011-04-09  Jim Meyering  <meyering@redhat.com>
17990
17991         maint: change "a a" to "a"
17992         * tests/test-lchown.h (test_lchown): s/a a/a/
17993
17994         maint.mk: prohibit \<the the\>
17995         * top/maint.mk (sc_prohibit_the_the): New rule.
17996
17997         maint: fix "the the" in comment
17998         * lib/count-one-bits.h: s/the the/the/
17999
18000         maint: change "can not" to "cannot"
18001         But do not change the occurrences in maintain.texi or in
18002         build-aux/po/Makefile.in.in, which I presume comes from gettext.
18003         * doc/gnulib-tool.texi: s/can not/cannot/
18004         * doc/posix-functions/accept.texi (accept): Likewise.
18005         * doc/posix-functions/socket.texi (socket): Likewise.
18006         * lib/mbrtowc.c: Likewise.
18007
18008         maint.mk: prohibit use of "can not"
18009         * top/maint.mk (sc_prohibit_can_not): New rule.
18010         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
18011
18012 2011-04-09  Bruno Haible  <bruno@clisp.org>
18013
18014         careadlinkat: Guard against misuse of careadlinkatcwd.
18015         * lib/careadlinkat.c: Include <stdlib.h>.
18016         (careadlinkatcwd): Check that the fd argument is as expected.
18017
18018 2011-04-09  Bruno Haible  <bruno@clisp.org>
18019
18020         careadlinkat: Use common coding style.
18021         * lib/careadlinkat.c: Move gnulib includes after system includes.
18022
18023 2011-04-09  Bruno Haible  <bruno@clisp.org>
18024
18025         careadlinkat: Clarify specification.
18026         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
18027         (careadlinkatcwd): Add comment.
18028         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
18029
18030 2011-04-09  Bruno Haible  <bruno@clisp.org>
18031
18032         areadlinkat: Avoid link error on many platforms.
18033         * modules/areadlinkat (Depends-on): Add areadlink.
18034
18035 2011-04-09  Bruno Haible  <bruno@clisp.org>
18036
18037         allocator, careadlinkat: Fix double-inclusion guard.
18038         * lib/allocator.h: Fix double-inclusion guard.
18039         * lib/careadlinkat.h: Likewise.
18040
18041 2011-04-09  Bruno Haible  <bruno@clisp.org>
18042
18043         relocatable-prog-wrapper: Update after module 'areadlink' changed.
18044         * lib/relocwrapper.c: Update dependencies hierarchy.
18045         * build-aux/install-reloc: Update list of files to be compiled.
18046         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
18047         lib/allocator.[hc].
18048
18049 2011-04-08  Eric Blake  <eblake@redhat.com>
18050
18051         strftime: silence gnulib-tool warning
18052         * modules/strftime-tests (Depends-on): Drop automatic dependency.
18053
18054 2011-04-08  Bruno Haible  <bruno@clisp.org>
18055
18056         verify: Fix syntax error with GCC 4.6 in C++ mode.
18057         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
18058         (HAVE_STATIC_ASSERT): New macro.
18059         (verify_true, verify): Use 'static_assert' if it is supported and
18060         '_Static_assert' is not supported.
18061
18062 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
18063
18064         allocator: New module.
18065         * modules/allocator, lib/allocator.c: New files.
18066         * lib/allocator.h (stdlib_allocator): New decl.
18067         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
18068         Remove.  Do not include <stdlib.h>.
18069         (careadlinkat): Use stdlib_allocator instead of rolling our own.
18070         * modules/careadlinkat (Files): Remove lib/allocator.h.
18071         (Depends-on): Add allocator.
18072
18073         stdlib: let modules use system malloc, realloc
18074         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
18075         if !_GL_USE_STDLIB_ALLOC.
18076         (malloc, realloc): Limit this change to a smaller scope.
18077
18078         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
18079         (malloc, realloc): Don't #undef; no longer needed.
18080         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18081         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18082         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18083         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18084         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18085         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18086         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18087         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18088
18089         careadlinkat: rename members to avoid problem
18090         * lib/allocator.h (struct allocator): Rename members from
18091         malloc/realloc to allocate/reallocate, to avoid problems if malloc
18092         and realloc are #define'd.  Reported by Eric Blake in
18093         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
18094         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
18095
18096 2011-04-08  Eric Blake  <eblake@redhat.com>
18097
18098         nonblocking: reduce dependency
18099         * tests/test-nonblocking.c: Only test sockets when in use.
18100         * modules/nonblocking-tests (Depends-on): Drop socket.
18101         (Makefile.am): Link even if sockets are not present.
18102         * modules/pipe2-tests (Makefile.am): Likewise.
18103         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
18104
18105         pipe2: fix O_NONBLOCK support on mingw
18106         * modules/pipe2 (Depends-on): Add nonblocking.
18107         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
18108         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
18109         * tests/test-nonblocking.c (main): Likewise.
18110         * modules/pipe2-tests (Makefile.am): Avoid link failure.
18111
18112         fcntl-h: fix O_ACCMODE on cygwin
18113         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
18114         * lib/fcntl.in.h (O_ACCMODE): Fix it.
18115
18116         pipe-filter: drop O_NONBLOCK workarounds
18117         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
18118         * modules/pipe-filter-ii (Depends-on): Likewise.
18119         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
18120
18121         nonblocking: provide O_NONBLOCK for mingw
18122         * modules/nonblocking (Depends-on): Add open.
18123         (configure.ac): Set new witness macro.
18124         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
18125         * modules/fcntl-h (Makefile.am): Substitute it.
18126         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
18127         nonblocking module is in use.
18128         * lib/nonblocking.c: Adjust portability test.
18129         * lib/open.c (open): Don't let native open see gnulib flag.
18130         * tests/test-fcntl-h.c (main): Enhance test.
18131         * tests/test-open.h (test_open): Likewise.
18132         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
18133
18134         careadlinkat: fix compilation error on mingw
18135         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
18136         within struct allocator.
18137
18138 2011-04-06  Eric Blake  <eblake@redhat.com>
18139
18140         binary-io: relicense under LGPLv2+
18141         * modules/binary-io (License): Relax to LGPLv2+.
18142         Requested for libvirt, and required by pipe2.
18143
18144 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
18145
18146         verify: use _Static_assert if available
18147         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
18148         (verify_true, verify): Use it if available.  This generates better
18149         diagnostics with GCC 4.6.0 and later.
18150
18151 2011-04-05  Bruno Haible  <bruno@clisp.org>
18152
18153         Remove leftover generated .h files after config.status changed.
18154
18155         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
18156         GL_GENERATE_ALLOCA_H.
18157         * modules/alloca-opt (Makefile.am): Remove alloca.h if
18158         GL_GENERATE_ALLOCA_H evaluates to false.
18159
18160         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
18161         GL_GENERATE_ARGZ_H.
18162         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
18163         evaluates to false.
18164
18165         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
18166         GL_GENERATE_BYTESWAP_H.
18167         * modules/byteswap (Makefile.am): Remove byteswap.h if
18168         GL_GENERATE_BYTESWAP_H evaluates to false.
18169
18170         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
18171         GL_GENERATE_ERRNO_H.
18172         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
18173         evaluates to false.
18174
18175         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
18176         GL_GENERATE_FLOAT_H.
18177         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
18178         evaluates to false.
18179
18180         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
18181         GL_GENERATE_FNMATCH_H.
18182         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
18183         GL_GENERATE_FNMATCH_H evaluates to false.
18184
18185         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
18186         GL_GENERATE_GLOB_H.
18187         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
18188         evaluates to false.
18189
18190         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
18191         automake conditional GL_GENERATE_ICONV_H.
18192         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
18193         evaluates to false.
18194
18195         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
18196         GL_GENERATE_NETINET_IN_H.
18197         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
18198         GL_GENERATE_NETINET_IN_H evaluates to false.
18199
18200         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
18201         conditional GL_GENERATE_PTHREAD_H.
18202         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
18203         * modules/pthread (Makefile.am): Remove pthread.h if
18204         GL_GENERATE_PTHREAD_H evaluates to false.
18205
18206         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
18207         GL_GENERATE_SCHED_H.
18208         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
18209         evaluates to false.
18210
18211         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
18212         conditional GL_GENERATE_SELINUX_CONTEXT_H.
18213         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
18214         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
18215
18216         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
18217         GL_GENERATE_STDARG_H.
18218         * modules/stdarg (Makefile.am): Remove stdarg.h if
18219         GL_GENERATE_STDARG_H evaluates to false.
18220
18221         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
18222         GL_GENERATE_STDBOOL_H.
18223         * modules/stdbool (Makefile.am): Remove stdbool.h if
18224         GL_GENERATE_STDBOOL_H evaluates to false.
18225
18226         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
18227         conditional GL_GENERATE_STDDEF_H.
18228         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
18229         * modules/stddef (Makefile.am): Remove stddef.h if
18230         GL_GENERATE_STDDEF_H evaluates to false.
18231
18232         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
18233         GL_GENERATE_STDINT_H.
18234         * modules/stdint (Makefile.am): Remove stdint.h if
18235         GL_GENERATE_STDINT_H evaluates to false.
18236
18237         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
18238         GL_GENERATE_SYSEXITS_H.
18239         * modules/sysexits (Makefile.am): Remove sysexits.h if
18240         GL_GENERATE_SYSEXITS_H evaluates to false.
18241
18242         Reported by Karl Berry and Ralf Wildenhues.
18243
18244 2011-04-05  Bruno Haible  <bruno@clisp.org>
18245
18246         Ensure to rebuild generated .h files when config.status has changed.
18247         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
18248         config.status.
18249         * modules/ctype (Makefile.am): Likewise.
18250         * modules/dirent (Makefile.am): Likewise.
18251         * modules/errno (Makefile.am): Likewise.
18252         * modules/fcntl-h (Makefile.am): Likewise.
18253         * modules/float (Makefile.am): Likewise.
18254         * modules/getopt-posix (Makefile.am): Likewise.
18255         * modules/glob (Makefile.am): Likewise.
18256         * modules/iconv-h (Makefile.am): Likewise.
18257         * modules/inttypes (Makefile.am): Likewise.
18258         * modules/langinfo (Makefile.am): Likewise.
18259         * modules/locale (Makefile.am): Likewise.
18260         * modules/math (Makefile.am): Likewise.
18261         * modules/netdb (Makefile.am): Likewise.
18262         * modules/netinet_in (Makefile.am): Likewise.
18263         * modules/poll-h (Makefile.am): Likewise.
18264         * modules/pthread (Makefile.am): Likewise.
18265         * modules/pty (Makefile.am): Likewise.
18266         * modules/sched (Makefile.am): Likewise.
18267         * modules/search (Makefile.am): Likewise.
18268         * modules/selinux-h (Makefile.am): Likewise.
18269         * modules/signal (Makefile.am): Likewise.
18270         * modules/spawn (Makefile.am): Likewise.
18271         * modules/stdarg (Makefile.am): Likewise.
18272         * modules/stdbool (Makefile.am): Likewise.
18273         * modules/stddef (Makefile.am): Likewise.
18274         * modules/stdint (Makefile.am): Likewise.
18275         * modules/stdio (Makefile.am): Likewise.
18276         * modules/stdlib (Makefile.am): Likewise.
18277         * modules/string (Makefile.am): Likewise.
18278         * modules/strings (Makefile.am): Likewise.
18279         * modules/sys_file (Makefile.am): Likewise.
18280         * modules/sys_ioctl (Makefile.am): Likewise.
18281         * modules/sys_select (Makefile.am): Likewise.
18282         * modules/sys_socket (Makefile.am): Likewise.
18283         * modules/sys_stat (Makefile.am): Likewise.
18284         * modules/sys_time (Makefile.am): Likewise.
18285         * modules/sys_times (Makefile.am): Likewise.
18286         * modules/sys_utsname (Makefile.am): Likewise.
18287         * modules/sys_wait (Makefile.am): Likewise.
18288         * modules/sysexits (Makefile.am): Likewise.
18289         * modules/termios (Makefile.am): Likewise.
18290         * modules/time (Makefile.am): Likewise.
18291         * modules/unistd (Makefile.am): Likewise.
18292         * modules/wchar (Makefile.am): Likewise.
18293         * modules/wctype-h (Makefile.am): Likewise.
18294         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
18295
18296 2011-04-05  Bruno Haible  <bruno@clisp.org>
18297
18298         pipe2: Relicense under LGPLv2+.
18299         * modules/pipe2 (License): Change to LGPLv2+.
18300         Requested by Eric Blake, for libvirt.
18301
18302 2011-04-05  Bruce Korb  <bkorb@gnu.org>
18303
18304         bootstrap: compute gnulib_extra_files after updating build_aux
18305         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
18306         change build_aux or also supply gnulib_extra_files.  Handle correctly.
18307
18308 2011-04-05  Eric Blake  <eblake@redhat.com>
18309
18310         bootstrap: preserve git whitelist item sorting
18311         * build-aux/bootstrap (sort_patterns): New function.
18312         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
18313
18314 2011-04-05  Simon Josefsson  <simon@josefsson.org>
18315
18316         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
18317         sc_space_tab check.
18318
18319 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
18320
18321         areadlink, areadlinkat: rewrite in terms of careadlinkat
18322         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
18323         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
18324         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
18325         (malloc, realloc): Remove #undefs.
18326         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
18327         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
18328         readlink, ssize_t, stdint, unistd.
18329         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
18330         areadlink, stdint.
18331
18332         careadlinkat: new module
18333         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
18334         * modules/careadlinkat: New files, written by me with
18335         a review and feedback from Ben Pfaff in
18336         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
18337
18338 2011-04-01  Bruno Haible  <bruno@clisp.org>
18339
18340         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
18341         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
18342         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
18343         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
18344         Reported by Bruce Korb <bruce.korb@gmail.com>.
18345
18346 2011-04-01  Bruno Haible  <bruno@clisp.org>
18347
18348         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
18349         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
18350         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
18351         * modules/wcpcpy (Depends-on): Add extensions.
18352         * modules/wcpncpy (Depends-on): Likewise.
18353         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
18354         systems.
18355         * doc/posix-functions/wcpncpy.texi: Likewise.
18356         * doc/posix-functions/wcwidth.texi: Likewise.
18357
18358 2011-03-31  Eric Blake  <eblake@redhat.com>
18359
18360         nonblocking: fix mingw test failures
18361         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
18362         non-blocking flag on regular file.
18363         (get_nonblocking_flag): Set errno on invalid fd.
18364         * tests/test-nonblocking.c (main): Avoid test failure on
18365         directories if fchdir is not active.
18366         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
18367
18368 2011-03-31  Bruno Haible  <bruno@clisp.org>
18369
18370         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
18371         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
18372         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
18373         Reported by Simon Josefsson <simon@josefsson.org>.
18374
18375 2011-03-31  Bruno Haible  <bruno@clisp.org>
18376         and Eric Blake  <eblake@redhat.com>
18377
18378         nonblocking: new module
18379         * modules/nonblocking: New module.
18380         * modules/nonblocking-tests: Likewise.
18381         * lib/nonblocking.h: New file.
18382         * lib/nonblocking.c: Likewise.
18383         * tests/test-nonblocking.c: New test.
18384         * lib/ioctl.c (ioctl) [mingw]: Update comment.
18385
18386 2011-03-30  Bruno Haible  <bruno@clisp.org>
18387
18388         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
18389         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
18390         instead of 'printf' format for GCC >= 4.4.
18391         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
18392         (fprintf, printf, vfprintf, vprintf): Declare with
18393         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
18394         the system's vfprintf() function.
18395         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
18396
18397 2011-03-30  Eric Blake  <eblake@redhat.com>
18398
18399         passfd: fix scoping bug
18400         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
18401         before sendmsg/recvmsg.
18402
18403         passfd: standardize coding conventions
18404         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
18405         can be learned at compile time.
18406         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
18407         ifdefs.
18408         (sendfd, recvfd): Follow gnulib code conventions.
18409
18410         passfd: fix incorrect sendmsg arguments
18411         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
18412         incorrect msg_controllen value.
18413         * modules/passfd-tests (Depends-on): Check for alarm.
18414         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
18415         Reported by Bastien ROUCARIES.
18416
18417 2011-03-30  Bruno Haible  <bruno@clisp.org>
18418
18419         c-strcasestr: Relicense under LGPLv2+.
18420         * modules/c-strcasestr (License): Change to LGPLv2+.
18421         Requested by Eric Blake, for libvirt.
18422
18423 2011-03-30  Simon Josefsson  <simon@josefsson.org>
18424
18425         * users.txt: Add libidn2.  Fix libtasn1 link.
18426
18427 2011-03-30  Jim Meyering  <meyering@redhat.com>
18428
18429         tests: readlink* ("",... fails with EINVAL on newer kernels
18430         readlink and readlinkat have typically failed with ENOENT for
18431         the invalid, empty file name,  "".  However, with the advent
18432         of linux-2.6.39, they fail with EINVAL.
18433         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
18434         when operating on the empty file name.
18435         * tests/test-readlink.h (test_readlink): Likewise.
18436
18437 2011-03-29  Bruno Haible  <bruno@clisp.org>
18438
18439         Relicense some modules under LGPLv2+, for libidn2.
18440         * modules/array-mergesort (License): Change to LGPLv2+.
18441         * modules/c-strcaseeq (License): Likewise.
18442         * modules/striconveh (License): Likewise.
18443         * modules/striconveha (License): Likewise.
18444         * modules/uniconv/base (License): Likewise.
18445         * modules/uniconv/u8-conv-from-enc (License): Likewise.
18446         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
18447         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
18448         * modules/unictype/base (License): Likewise.
18449         * modules/unictype/bidiclass-of (License): Likewise.
18450         * modules/unictype/category-M (License): Likewise.
18451         * modules/unictype/category-none (License): Likewise.
18452         * modules/unictype/category-of (License): Likewise.
18453         * modules/unictype/category-test (License): Likewise.
18454         * modules/unictype/category-test-withtable (License): Likewise.
18455         * modules/unictype/combining-class (License): Likewise.
18456         * modules/unictype/joiningtype-of (License): Likewise.
18457         * modules/unictype/scripts (License): Likewise.
18458         * modules/uninorm/base (License): Likewise.
18459         * modules/uninorm/canonical-decomposition (License): Likewise.
18460         * modules/uninorm/composition (License): Likewise.
18461         * modules/uninorm/decompose-internal (License): Likewise.
18462         * modules/uninorm/decomposition-table (License): Likewise.
18463         * modules/uninorm/nfc (License): Likewise.
18464         * modules/uninorm/nfd (License): Likewise.
18465         * modules/uninorm/u32-normalize (License): Likewise.
18466         * modules/unistr/base (License): Likewise.
18467         * modules/unistr/u32-cpy (License): Likewise.
18468         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
18469         * modules/unistr/u32-to-u8 (License): Likewise.
18470         * modules/unistr/u32-uctomb (License): Likewise.
18471         * modules/unistr/u8-check (License): Likewise.
18472         * modules/unistr/u8-mblen (License): Likewise.
18473         * modules/unistr/u8-mbtouc (License): Likewise.
18474         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
18475         * modules/unistr/u8-mbtoucr (License): Likewise.
18476         * modules/unistr/u8-prev (License): Likewise.
18477         * modules/unistr/u8-strlen (License): Likewise.
18478         * modules/unistr/u8-to-u32 (License): Likewise.
18479         * modules/unistr/u8-uctomb (License): Likewise.
18480         * modules/unitypes (License): Likewise.
18481         Requested by Simon Josefsson.
18482
18483 2011-03-29  Simon Josefsson  <simon@josefsson.org>
18484
18485         lib-symbol-visibility: Add a notice.
18486         * modules/lib-symbol-visibility (Notice): New field.
18487
18488 2011-03-29  Bruno Haible  <bruno@clisp.org>
18489
18490         getaddrinfo: Doc fix.
18491         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
18492         section "fixed in Gnulib".
18493
18494 2011-03-28  Simon Josefsson  <simon@josefsson.org>
18495
18496         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
18497         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
18498
18499 2011-03-26  Bruno Haible  <bruno@clisp.org>
18500
18501         unictype/property-byname: Reduce the number of load-time relocations.
18502         * lib/unictype/pr_byname.c: Include <stdlib.h>.
18503         (UC_PROPERTY_INDEX_*): New enumeration values.
18504         (uc_property_byname): Convert an index from the lookup table to an
18505         uc_property_t.
18506         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
18507         values.
18508
18509 2011-03-26  Bruno Haible  <bruno@clisp.org>
18510
18511         unictype/property-byname: Allow omitted word separators and aliases.
18512         * lib/unictype/pr_byname.gperf: Add property names without word
18513         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
18514         for 'space'.
18515
18516 2011-03-26  Bruno Haible  <bruno@clisp.org>
18517
18518         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
18519         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
18520         also hyphens to space.
18521         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
18522         without spaces.
18523         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
18524
18525 2011-03-26  Bruno Haible  <bruno@clisp.org>
18526
18527         unictype/joiningtype-byname: Recognize long names as well.
18528         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
18529         a long name.
18530         * lib/unictype/joiningtype_byname.c: Include <string.h>,
18531         unictype/joiningtype_byname.h.
18532         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
18533         * lib/unictype/joiningtype_byname.gperf: New file.
18534         * modules/unictype/joiningtype-byname (Files): Add
18535         lib/unictype/joiningtype_byname.gperf.
18536         (Depends-on): Add gperf.
18537         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
18538         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
18539         long names.
18540
18541         Tests for module 'unictype/joiningtype-longname'.
18542         * modules/unictype/joiningtype-longname-tests: New file.
18543         * tests/unictype/test-joiningtype_longname.c: New file.
18544
18545         New module 'unictype/joiningtype-longname'.
18546         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
18547         * lib/unictype/joiningtype_longname.c: New file.
18548         * modules/unictype/joiningtype-longname: New file.
18549         * modules/unictype/joiningtype-all (Depends-on): Add
18550         unictype/joiningtype-longname.
18551
18552 2011-03-26  Bruno Haible  <bruno@clisp.org>
18553
18554         unictype/bidiclass-byname: Recognize long names as well.
18555         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
18556         name.
18557         * lib/unictype/bidi_byname.c: Include <string.h>,
18558         unictype/bidi_byname.h.
18559         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
18560         * lib/unictype/bidi_byname.gperf: New file.
18561         * modules/unictype/bidiclass-byname (Files): Add
18562         lib/unictype/bidi_byname.gperf.
18563         (Depends-on): Add gperf.
18564         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
18565         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
18566         long names.
18567
18568         Tests for module 'unictype/bidiclass-longname'.
18569         * modules/unictype/bidiclass-longname-tests: New file.
18570         * tests/unictype/test-bidi_longname.c: New file.
18571
18572         New module 'unictype/bidiclass-longname'.
18573         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
18574         * lib/unictype/bidi_longname.c: New file.
18575         * modules/unictype/bidiclass-longname: New file.
18576         * modules/unictype/bidiclass-all (Depends-on): Add
18577         unictype/bidiclass-longname.
18578
18579 2011-03-26  Bruno Haible  <bruno@clisp.org>
18580
18581         unictype/bidi*: Rename modules.
18582         * modules/unictype/bidiclass-all: Renamed from
18583         modules/unictype/bidicategory-all.
18584         * modules/unictype/bidiclass-name: Renamed from
18585         modules/unictype/bidiclass-name.
18586         (Description): Update.
18587         * modules/unictype/bidiclass-name-tests: Renamed from
18588         modules/unictype/bidicategory-name-tests.
18589         * modules/unictype/bidiclass-byname: Renamed from
18590         modules/unictype/bidicategory-byname.
18591         (Description): Update.
18592         * modules/unictype/bidiclass-byname-tests: Renamed from
18593         modules/unictype/bidicategory-byname-tests.
18594         * modules/unictype/bidiclass-of: Renamed from
18595         modules/unictype/bidicategory-of.
18596         (Description): Update.
18597         * modules/unictype/bidiclass-of-tests: Renamed from
18598         modules/unictype/bidicategory-of-tests.
18599         * modules/unictype/bidiclass-test: Renamed from
18600         modules/unictype/bidicategory-test.
18601         (Description): Update.
18602         * modules/unictype/bidiclass-test-tests: Renamed from
18603         modules/unictype/bidicategory-test-tests.
18604         * modules/unictype/bidicategory-all: New file, a simple redirection.
18605         * modules/unictype/bidicategory-name: Likewise.
18606         * modules/unictype/bidicategory-byname: Likewise.
18607         * modules/unictype/bidicategory-of: Likewise.
18608         * modules/unictype/bidicategory-test: Likewise.
18609         * modules/unictype/property-bidi-* (Dependencies): Update.
18610         * lib/unictype/bidi_*.c: Update comment.
18611
18612 2011-03-26  Bruno Haible  <bruno@clisp.org>
18613
18614         unictype/bidi*: Rename functions, part 2.
18615         * modules/unictype/bidicategory-name (configure.ac): Update required
18616         libunistring version.
18617         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
18618
18619 2011-03-25  Bruno Haible  <bruno@clisp.org>
18620
18621         New module 'unictype/combining-class-all'.
18622         * modules/unictype/combining-class-all: New file.
18623
18624         Tests for module 'unictype/combining-class-byname'.
18625         * modules/unictype/combining-class-byname-tests: New file.
18626         * tests/unictype/test-combiningclass_byname.c: New file.
18627
18628         New module 'unictype/combining-class-byname'.
18629         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
18630         * lib/unictype/combiningclass_byname.c: New file.
18631         * lib/unictype/combiningclass_byname.gperf: New file.
18632         * modules/unictype/combining-class-byname: New file.
18633
18634         Tests for module 'unictype/combining-class-longname'.
18635         * modules/unictype/combining-class-longname-tests: New file.
18636         * tests/unictype/test-combiningclass_longname.c: New file.
18637
18638         New module 'unictype/combining-class-longname'.
18639         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
18640         * lib/unictype/combiningclass_longname.c: New file.
18641         * modules/unictype/combining-class-longname: New file.
18642
18643         Tests for module 'unictype/combining-class-name'.
18644         * modules/unictype/combining-class-name-tests: New file.
18645         * tests/unictype/test-combiningclass_name.c: New file.
18646
18647         New module 'unictype/combining-class-name'.
18648         * lib/unictype.in.h (uc_combining_class_name): New declaration.
18649         * lib/unictype/combiningclass_name.c: New file.
18650         * modules/unictype/combining-class-name: New file.
18651
18652 2011-03-25  Bruno Haible  <bruno@clisp.org>
18653
18654         unictype/combining-class: Rename source files.
18655         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
18656         of unictype/combining.h.
18657         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
18658         Update.
18659         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
18660         * modules/unictype/combining-class (Description): Fix.
18661         (Files, Makefile.am): Update.
18662         * tests/unictype/test-combiningclass.c: Renamed from
18663         tests/unictype/test-combining.c.
18664         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
18665
18666 2011-03-25  Bruno Haible  <bruno@clisp.org>
18667
18668         unictype: Update list of canonical combining classes.
18669         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
18670
18671 2011-03-25  Bruno Haible  <bruno@clisp.org>
18672
18673         unictype/category-byname: Recognize long names as well.
18674         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
18675         a long name.
18676         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
18677         unictype/categ_byname.h.
18678         (UC_CATEGORY_INDEX_*): New enumeration values.
18679         (uc_general_category_byname): Use uc_general_category_lookup and
18680         convert from index to value.
18681         * lib/unictype/categ_byname.gperf: New file.
18682         * modules/unictype/category-byname (Files): Add
18683         lib/unictype/categ_byname.gperf.
18684         (Depends-on): Add gperf.
18685         (Makefile.am): Add rule for generating unictype/categ_byname.h.
18686         * tests/unictype/test-categ_byname.c (main): Test the recognition of
18687         long names.
18688
18689         Tests for module 'unictype/category-longname'.
18690         * modules/unictype/category-longname-tests: New file.
18691         * tests/unictype/test-categ_longname.c: New file.
18692
18693         New module 'unictype/category-longname'.
18694         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
18695         * lib/unictype/categ_longname.c: New file.
18696         * modules/unictype/category-longname: New file.
18697         * modules/unictype/category-all (Depends-on): Add it.
18698
18699 2011-03-25  Bruno Haible  <bruno@clisp.org>
18700
18701         Tests for module 'unictype/category-LC'.
18702         * modules/unictype/category-LC-tests: New file.
18703         * tests/unictype/test-categ_LC.c: New file, automatically generated.
18704
18705         New module 'unictype/category-LC'.
18706         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
18707         (UC_CATEGORY_LC): New declaration.
18708         (UC_CASED_LETTER): New macro.
18709         * lib/gen-uni-tables.c (is_category_LC): New function.
18710         (output_categories): Also handle category LC.
18711         (UC_CATEGORY_MASK_LC): New enumeration value.
18712         (general_category_byname): Also handle category LC.
18713         * lib/unictype/categ_LC.c: New file.
18714         * lib/unictype/categ_LC.h: New file, automatically generated.
18715         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
18716         category LC.
18717         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
18718         * modules/unictype/category-LC: New file.
18719         * modules/unictype/category-byname (Depends-on): Add
18720         unictype/category-LC.
18721         * modules/unictype/category-all (Depends-on): Likewise.
18722
18723 2011-03-25  Eric Blake  <eblake@redhat.com>
18724
18725         xmalloc: revert yesterday's regression
18726         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
18727         realloc's underlying behavior (allowing allocation of zero-size
18728         objects, especially if malloc-gnu is also in use).
18729
18730 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
18731
18732         maint.mk: add missing version to VC-tag
18733         * top/maint.mk: git tag was missing actual tag name; add it.
18734
18735         valgrind: do leak checking, and exit with code 1 on error (not 0)
18736         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
18737         to VALGRIND.
18738
18739 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
18740
18741         posix-modules: say what it does.
18742         * posix-modules: Add a line to the --help output saying what it does.
18743
18744 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
18745
18746         xmalloc: Do not leak if underlying realloc is C99 compatible.
18747         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
18748         This avoids a leak on C99-based systems.  See
18749         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
18750
18751 2011-03-24  Eric Blake  <eblake@redhat.com>
18752
18753         realloc: document portability problem
18754         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
18755         passing 0 size to realloc.
18756
18757 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
18758
18759         doc: update users.txt
18760         * users.txt: Add cvsps, tmpwatch
18761
18762 2011-03-23  Matt Rice  <ratmice@gmail.com>
18763
18764         doc: update users.txt
18765         * users.txt: Add gdb.
18766
18767 2011-03-23  Jim Meyering  <meyering@redhat.com>
18768
18769         doc: update users.txt
18770         Looking through matches up to the following URL (there are still
18771         several more pages), I found several projects that use gnulib:
18772         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
18773         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
18774         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
18775
18776 2011-03-22  Bruno Haible  <bruno@clisp.org>
18777
18778         unictype/bidi*: Rename functions.
18779         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
18780         uc_bidi_class, uc_is_bidi_class): New declarations.
18781         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
18782         uc_bidi_category_byname.
18783         (uc_bidi_category_byname): New function.
18784         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
18785         u_bidi_category_name.
18786         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
18787         (uc_bidi_category_name): New function.
18788         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
18789         uc_bidi_category.
18790         (uc_bidi_category): New function.
18791         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
18792         uc_is_bidi_category. Invoke uc_bidi_class.
18793         (uc_is_bidi_category): New function.
18794         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
18795         instead of uc_bidi_category_byname.
18796         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
18797         instead of uc_bidi_category_name.
18798         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
18799         uc_bidi_category.
18800         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
18801         instead of uc_is_bidi_category.
18802
18803 2011-03-21  Bruno Haible  <bruno@clisp.org>
18804
18805         New module 'unictype/joininggroup-all'.
18806         * modules/unictype/joininggroup-all: New file.
18807
18808         Tests for module 'unictype/joininggroup-of'.
18809         * modules/unictype/joininggroup-of-tests: New file.
18810         * tests/unictype/test-joininggroup_of.c: New file.
18811         * tests/unictype/test-joininggroup_of.h: New file, automatically
18812         generated by gen-uni-tables.
18813
18814         New module 'unictype/joininggroup-of'.
18815         * modules/unictype/joininggroup-of: New file.
18816         * lib/unictype/joininggroup_of.c: New file.
18817         * lib/unictype/joininggroup_of.h: New file, automatically generated by
18818         gen-uni-tables.
18819
18820         Tests for module 'unictype/joininggroup-byname'.
18821         * modules/unictype/joininggroup-byname-tests: New file.
18822         * tests/unictype/test-joininggroup_byname.c: New file.
18823
18824         New module 'unictype/joininggroup-byname'.
18825         * modules/unictype/joininggroup-byname: New file.
18826         * lib/unictype/joininggroup_byname.c: New file.
18827         * lib/unictype/joininggroup_byname.gperf: New file.
18828
18829         Tests for module 'unictype/joininggroup-name'.
18830         * modules/unictype/joininggroup-name-tests: New file.
18831         * tests/unictype/test-joininggroup_name.c: New file.
18832
18833         New module 'unictype/joininggroup-name'.
18834         * modules/unictype/joininggroup-name: New file.
18835         * lib/unictype/joininggroup_name.c: New file.
18836         * lib/unictype/joininggroup_name.h: New file.
18837
18838         New module 'unictype/joiningtype-all'.
18839         * modules/unictype/joiningtype-all: New file.
18840
18841         Tests for module 'unictype/joiningtype-of'.
18842         * modules/unictype/joiningtype-of-tests: New file.
18843         * tests/unictype/test-joiningtype_of.c: New file.
18844         * tests/unictype/test-joiningtype_of.h: New file, automatically
18845         generated by gen-uni-tables.
18846
18847         New module 'unictype/joiningtype-of'.
18848         * modules/unictype/joiningtype-of: New file.
18849         * lib/unictype/joiningtype_of.c: New file.
18850         * lib/unictype/joiningtype_of.h: New file, automatically generated by
18851         gen-uni-tables.
18852
18853         Tests for module 'unictype/joiningtype-byname'.
18854         * modules/unictype/joiningtype-byname-tests: New file.
18855         * tests/unictype/test-joiningtype_byname.c: New file.
18856
18857         New module 'unictype/joiningtype-byname'.
18858         * modules/unictype/joiningtype-byname: New file.
18859         * lib/unictype/joiningtype_byname.c: New file.
18860
18861         Tests for module 'unictype/joiningtype-name'.
18862         * modules/unictype/joiningtype-name-tests: New file.
18863         * tests/unictype/test-joiningtype_name.c: New file.
18864
18865         New module 'unictype/joiningtype-name'.
18866         * modules/unictype/joiningtype-name: New file.
18867         * lib/unictype/joiningtype_name.c: New file.
18868
18869         unictype: Add support for Arabic shaping properties.
18870         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
18871         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
18872         declarations.
18873         (UC_JOINING_GROUP_*): New enumeration values.
18874         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
18875         declarations.
18876         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
18877         (unicode_joining_type): New variable.
18878         (UC_JOINING_GROUP_*): New enumeration values.
18879         (unicode_joining_group): New variable.
18880         (fill_arabicshaping, joining_type_as_c_identifier,
18881         output_joining_type_test, output_joining_type,
18882         joining_group_as_c_identifier, output_joining_group_test,
18883         output_joining_group): New functions.
18884         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
18885         fill_arabicshaping and output_joining_type_test, output_joining_type,
18886         output_joining_group_test, output_joining_group.
18887         Reported by Simon Josefsson.
18888
18889 2011-03-21  Jim Meyering  <meyering@redhat.com>
18890
18891         strftime: fix a bug in yesterday's change
18892         * lib/strftime.c (add): Accommodate width's initial value of -1.
18893         Otherwise, nstrftime would copy uninitialized data into
18894         the result buffer.
18895
18896 2011-03-21  Jim Meyering  <meyering@redhat.com>
18897
18898         tests: add strftime-tests module
18899         * tests/test-strftime.c: New file.
18900         * modules/strftime-tests: New module.
18901
18902 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18903
18904         strftime: don't assume a byte count fits in 'int'
18905         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
18906         found this problem by static analysis, using gcc -Wstrict-overflow
18907         (GCC 4.5.2, x86-64).  This reported an optimization that depended
18908         on an integer overflow having undefined behavior, but it turns out
18909         that the argument is a size, which might not fit in 'int' anyway,
18910
18911 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18912
18913         stdio: don't require ignore_value around fwrite
18914
18915         This patch works around libc bug 11959
18916         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
18917         Without this patch, applications must often write
18918         ignore_value (fwrite (...)) even though the ignore_value is
18919         not helpful here.  It's common to write many objects, using
18920         fwrite/printf/etc., and then use ferror to detect output error.
18921
18922         I considered making this patch optional, but decided against it,
18923         because libc is obviously being inconsistent here: there is no
18924         reason libc should insist that user code must inspect fwrite
18925         return's value without also insisting that it inspect printf's,
18926         putchar's, etc.  If user code wants to have a strict style where
18927         all these functions' values are checked (so that ferror need not
18928         be checked), we could add support for that style in a new gnulib
18929         module, but in the meantime it's better to be consistent and to
18930         support common usage.
18931
18932         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
18933         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
18934         that we are compiling in checking mode, and if not C++, and
18935         if not already wrapping fwrite for some other reason.
18936         (fwrite): #define to rpl_fwrite if the latter is defined.
18937
18938 2011-03-20  Bruno Haible  <bruno@clisp.org>
18939
18940         verror: Fix compilation error introduced on 2011-02-13.
18941         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
18942         instead of __attribute__.
18943         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18944
18945 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18946             Bruno Haible  <bruno@clisp.org>
18947
18948         socklen: do not depend on sys_socket
18949         While trying to modify Emacs to use gnulib's socklen module,
18950         I discovered a circular dependency: socklen depends on sys_socket
18951         and vice versa.  Emacs can use socklen, but it does not need
18952         sys_socket because it has its own substitute for sys/socket.h.
18953         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
18954         gl_TYPE_SOCKLEN_T.
18955         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
18956         gl_PREREQ_SYS_H_SOCKET.
18957         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
18958         gl_PREREQ_SYS_H_SOCKET.
18959         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
18960         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
18961         * modules/socklen (Depends-on): Do not depend on sys_socket.
18962         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
18963
18964 2011-03-20  Jim Meyering  <meyering@redhat.com>
18965
18966         maint.mk: sort file names *after* new transformation
18967         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
18968         prefix would have led to an unwarranted failure in GNU parted.
18969         Sort after that transformation.
18970
18971 2011-03-19  Jim Meyering  <meyering@redhat.com>
18972
18973         maint.mk: fix po-file syntax-check rule
18974         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
18975         Patch by Bruno Haible.
18976
18977 2011-03-19  Bruno Haible  <bruno@clisp.org>
18978
18979         socklen: Update comment.
18980         * m4/socklen.m4: Update comment about platforms.
18981
18982 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18983             Bruno Haible  <bruno@clisp.org>
18984
18985         inet_ntop, inet_pton: Simplify.
18986         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
18987         documented to provide socklen_t and we already depend on sys_socket.
18988         * modules/inet_pton (Depends-on): Likewise.
18989         * lib/arpa_inet.in.h: Adjust comment.
18990
18991 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18992             Bruno Haible  <bruno@clisp.org>
18993
18994         netdb: Simplify.
18995         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
18996         documented to provide socklen_t and we already depend on sys_socket.
18997         * lib/netdb.in.h: Adjust comment.
18998
18999 2011-03-19  Bruno Haible  <bruno@clisp.org>
19000
19001         sys_socket, netdb: Document problem with socklen_t.
19002         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
19003         platforms.
19004         * doc/posix-headers/netdb.texi: Likewise.
19005
19006 2011-03-18  Eric Blake  <eblake@redhat.com>
19007
19008         maint.mk: let po check work in VPATH build
19009         * top/maint.mk (po_file): Allow cfg.mk override.
19010         (sc_po_check): Allow VPATH use.
19011         Reported by Jiri Denemark.
19012
19013 2011-03-16  Jim Meyering  <meyering@redhat.com>
19014
19015         maint.mk: allow fine-grained syntax-check exclusion via Make variables
19016         Before, you would have had to create one .x-sc_ file per rule in order
19017         to exempt offending files.  Now, you may instead use a Make variable --
19018         usually defined in cfg.mk -- whose name identifies the affected rule.
19019         * top/maint.mk (_sc_excl): Define.
19020         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
19021         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
19022
19023 2011-03-13  Bruno Haible  <bruno@clisp.org>
19024
19025         ignore-value tests: Avoid warnings.
19026         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
19027         empty for gcc < 3.4.
19028
19029 2011-03-13  Bruno Haible  <bruno@clisp.org>
19030
19031         passfd: Fix link error on Solaris.
19032         * modules/passfd (Description): Correct.
19033         (Depends-on): Add socketlib.
19034         (Link): New section.
19035         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
19036
19037 2011-03-13  Bruno Haible  <bruno@clisp.org>
19038
19039         passfd: Fix link error on AIX 5.2.
19040         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
19041
19042 2011-03-13  Bruno Haible  <bruno@clisp.org>
19043
19044         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
19045         * lib/sys_socket.in.h: Include <stddef.h>.
19046         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
19047         CMSG_FIRSTHDR. Remove unused variable.
19048
19049 2011-03-13  Bruno Haible  <bruno@clisp.org>
19050
19051         passfd: Fix compilation error on OpenBSD.
19052         * lib/passfd.c: Include <sys/uio.h>.
19053
19054 2011-03-13  Bruno Haible  <bruno@clisp.org>
19055
19056         passfd test: Fix warnings.
19057         * tests/test-passfd.c: Include <sys/wait.h>.
19058         (main): Fix typo.
19059
19060 2011-03-13  Bruno Haible  <bruno@clisp.org>
19061
19062         passfd module, part 4, tweaks.
19063         * tests/test-passfd.c: Reorder includes.
19064         (main): Fix perror and printf calls.
19065
19066 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19067
19068         passfd module, part 4.
19069         * modules/passfd-tests: New file.
19070         * tests/test-passfd.c: New file.
19071
19072 2011-03-13  Jim Meyering  <meyering@redhat.com>
19073
19074         Makefile: rely on GNU make; derive syntax-check rule names
19075         Rather than requiring that each sc_ rule be listed as a dependent
19076         of "check", use features of GNU make to derive the list.
19077         * Makefile (syntax-check-rules): Define.
19078         (check): Depend on the new variable, not the hard-coded list.
19079
19080 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
19081             Bruno Haible  <bruno@clisp.org>
19082
19083         passfd module, part 3.
19084         * lib/passfd.h (recvfd): Add a flags argument.
19085         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
19086         (recvfd): Add a flags argument.
19087         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
19088         exists.
19089         * modules/passfd (Depends-on): Add cloexec.
19090         Suggested by Eric Blake.
19091
19092 2011-03-13  Bruno Haible  <bruno@clisp.org>
19093
19094         passfd module, part 2, tweaks.
19095         * modules/passfd (Files): Reorder.
19096         (Depends-on): Remove errno.
19097         (Include): Remove <sys/socket.h>, <sys/un.h>.
19098         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
19099         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
19100         specification header. Include <sys/socket.h> always. Don't include
19101         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
19102         (sendfd): Clarify that it sets errno when it fails.
19103         (recvfd): Fix specification.
19104
19105 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19106
19107         passfd module, part 2.
19108         * modules/passfd: New file.
19109         * lib/passfd.h: New file.
19110         * lib/passfd.c: New file.
19111
19112 2011-03-12  Bruno Haible  <bruno@clisp.org>
19113
19114         wcswidth, mbswidth: Avoid integer overflow.
19115         * lib/wcswidth.c: Include <limits.h>.
19116         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
19117         * lib/mbswidth.c: Include <limits.h>.
19118         (mbsnwidth): Avoid 'int' overflow.
19119         Reported by Jim Meyering.
19120
19121 2011-03-12  Bruno Haible  <bruno@clisp.org>
19122
19123         futimens, utimensat: Avoid endless recursion on Solaris 10.
19124         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
19125         Solaris.
19126         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
19127         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
19128
19129 2011-03-11  Jim Meyering  <meyering@redhat.com>
19130
19131         maint.mk: relax a regexp to accommodate other formatting styles
19132         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
19133         between "ngettext" and the following "(".
19134
19135 2011-03-11  Pádraig Brady <P@draigBrady.com>
19136
19137         maint.mk: suppress a false positive warning
19138         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
19139         diagnostics are marked with ngettext.
19140
19141 2011-03-10  Eric Blake  <eblake@redhat.com>
19142
19143         wchar: add explicit dependencies, for Tru64
19144         * modules/mbmemcasecoll (Depends-on): Add wchar.
19145         * modules/mbtowc (Depends-on): Likewise.
19146         * modules/vasnprintf (Depends-on): Likewise.
19147         * modules/unistdio/u-printf-args (Depends-on): Likewise.
19148         * modules/wctomb (Depends-on): Likewise.
19149         Reported by Peter O'Gorman.
19150
19151 2011-03-08  Bruno Haible  <bruno@clisp.org>
19152
19153         passfd module, part 1, tweaks.
19154         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
19155         Improve indentation. Improve AC_MSG_CHECKING messages.
19156         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
19157         gl_SOCKET_FAMILIES.
19158
19159 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19160
19161         passfd module, part 1.
19162         * m4/afunix.m4: New file.
19163         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
19164         sockets.
19165
19166 2011-03-08  Bruno Haible  <bruno@clisp.org>
19167
19168         regex-quote: New API.
19169         * lib/regex-quote.h: Include <stdbool.h>.
19170         (struct regex_quote_spec): New type.
19171         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19172         New declarations.
19173         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19174         'const struct regex_quote_spec *' argument.
19175         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
19176         (pcre_special): New constant.
19177         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19178         New functions.
19179         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19180         'const struct regex_quote_spec *' argument.
19181         * modules/regex-quote (Depends-on): Add stdbool.
19182         * tests/test-regex-quote.c (check): Update for new API. Add test for
19183         anchored results.
19184         * NEWS: Mention the API change.
19185         Reported by Reuben Thomas and Eric Blake.
19186
19187 2011-03-06  Bruno Haible  <bruno@clisp.org>
19188
19189         regex-quote: Fix creation of POSIX extended regular expressions.
19190         * lib/regex-quote.c (ere_special): Add grouping and alternation
19191         operators.
19192
19193 2011-03-05  Bruno Haible  <bruno@clisp.org>
19194
19195         doc: Improve doc regarding autopoint vs. gnulib.
19196         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
19197         disable autopoint while running autoreconf.
19198         Suggested by Ralf Wildenhues.
19199
19200 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19201
19202         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
19203         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
19204
19205 2011-03-03  Bruce Korb  <bkorb@gnu.org>
19206
19207         parse-duration: remove xalloc.h dependency
19208         * lib/parse-duration.c (parse_period): handle NULL return from
19209         strdup instead of calling xstrdup().
19210         * modules/parse-duration: remove "xalloc" dependency
19211
19212 2011-03-03  Matthew Booth  <mbooth@redhat.com>
19213
19214         bootstrap: honor m4_base when running aclocal
19215         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
19216
19217 2011-03-02  Jim Meyering  <meyering@redhat.com>
19218
19219         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
19220         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
19221         on request from Matt Booth.
19222
19223 2011-03-01  Eric Blake  <eblake@redhat.com>
19224
19225         test-link: work on Hurd
19226         * tests/test-link.h (test_link): Hurd rejects linking directories
19227         with EISDIR instead of the POSIX-mandated EPERM.
19228
19229 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
19230
19231         stdio: simplify by moving files to printf-posix, sigpipe
19232         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
19233         since this symbol is needed only if printf is replaced.
19234         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
19235         Require gl_ASM_SYMBOL_PREFIX.
19236         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
19237         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
19238         (Depends-on): Add 'raise'.
19239         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
19240         * modules/stdio (Files): Remove lib/stdio-write.c,
19241         m4/asm-underscore.m4.
19242         (Depends-on): Remove 'raise'.
19243
19244         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
19245         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
19246         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
19247         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
19248
19249 2011-02-28  Bruno Haible  <bruno@clisp.org>
19250
19251         localcharset: Assume ANSI C behaviour of free().
19252         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
19253         calling free().
19254         Suggested by Simon Josefsson <simon@josefsson.org>.
19255
19256 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
19257             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
19258             Bruno Haible  <bruno@clisp.org>  (tiny change)
19259
19260         On Cygwin, use /proc file system instead of win32 API.
19261         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
19262         Win32 file names.
19263         (DllMain): Simplify by removing Cygwin specific code.
19264         (find_shared_library_fullname): Use Linux specific implementation also
19265         for Cygwin.
19266         (get_shared_library_fullname): Update accordingly.
19267         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
19268         Win32 file names.
19269         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
19270         Cygwin specific code.
19271
19272 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
19273             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
19274
19275         Fix OpenMP flag detection for various Fortran compilers.
19276         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
19277         OpenMP-conditional compilation construct, to force compile
19278         failure with missing OpenMP flag.
19279         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
19280
19281 2011-02-25  Eric Blake  <eblake@redhat.com>
19282
19283         strstr: expand test coverage
19284         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
19285         compilation.
19286         * tests/test-memmem.c (main): Duplicate tests.
19287         * tests/test-strcasestr.c (main): Likewise.
19288         * tests/test-c-strcasestr.c (main): Likewise.
19289
19290 2011-02-25  Jim Meyering  <meyering@redhat.com>
19291
19292         maint.mk: detect missing-NL-at-EOF, too
19293         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
19294         it also detects when a file lacks a newline at EOF.
19295         (require_exactly_one_NL_at_EOF_): Renamed from
19296         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
19297         since people may well have .x-sc_... file names tied to the
19298         existing name.  Suggested by Eric Blake.
19299
19300 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19301
19302         dirname: move m4/dos.m4 functionality into lib/dosname.h
19303
19304         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
19305         extracts symbols from it, puts them into config.h; but it's much
19306         easier to use the symbols directly.  filename.h already does this,
19307         but it disagrees with dos.m4 in some respects.  This patch
19308         introduces a different include file dosname.h that packages up
19309         dos.m4, and then later we can work on merging filename.h and
19310         dosname.h.  Applications that need only the easy-to-configure
19311         symbols should consider including dosname.h rather than dirname.h.
19312         * NEWS: Mention incompatible changes.
19313         * m4/dos.m4: Remove.
19314         * lib/dosname.h, modules/dosname: New files.
19315         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
19316         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
19317         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
19318         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
19319         Include dosname.h, not dirname.h.
19320         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
19321         Include dosname.h, for definitions of symbols like ISSLASH
19322         that used to be in config.h.
19323         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
19324         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19325         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19326         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19327         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
19328         * modules/rmdir (Files): Likewise.
19329         * modules/stat (Files): Likewise.
19330         * modules/unlink (Files): Likewise.
19331         * modules/dirname-lgpl (Depends-on): Add dosname.
19332         * modules/lstat (Depends-on): Likewise.
19333         * modules/openat (Depends-on): Likewise.
19334         * modules/rmdir (Depends-on): Likewise.
19335         * modules/savewd (Depends-on): Likewise.
19336         * modules/stat (Depends-on): Likewise.
19337         * modules/unlink (Depends-on): Likewise.
19338         * modules/openat (Depends-on): Remove dirname-lgpl.
19339         * modules/savewd (Depends-on): Likewise.
19340         * tests/test-dirname.c: Do not use removed symbols like
19341         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
19342         the remaining symbols, e.g., ISSLASH ('\\').
19343
19344 2011-02-25  Eric Blake  <eblake@redhat.com>
19345
19346         strstr: revert patches that introduced bug and pessimization
19347         * lib/str-two-way.h: Add another reference.
19348         (two_way_short_needle, two_way_long_needle): Revert changes from
19349         2011-02-24; they pessimize search speed.
19350         (critical_factorization): Partially revert changes from
19351         2010-06-22; they violate the requirement that the left half of the
19352         needle be smaller than the period of the needle.
19353
19354 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
19355
19356         filenamecat: remove unnecessary dependency on dirname-lgpl
19357         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
19358         is no direct dependency, just an indirect one via filenamecat-lgpl.
19359
19360         remove: remove unnecessary use of m4/dos.m4
19361         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
19362         * modules/remove (FILES): Remove m4/dos.m4.
19363
19364         * lib/openat-proc.c: Don't include dirname.h; not needed.
19365
19366         backupfile: remove unnecessary use of m4/dos.m4
19367         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
19368         of its symbols are used by the backupfile code.  backupfile.c does
19369         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
19370         for the rare case of programs that want all their backup file
19371         names to live within 8+3 limits, and dos.m4 doesn't address that.
19372         * modules/backupfile (Files): Remove m4/dos.m4.
19373
19374 2011-02-24  Jim Meyering  <meyering@redhat.com>
19375
19376         strstr: fix a bug whereby strstr would mistakenly return NULL
19377         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
19378         in period calculation.
19379         (two_way_long_needle): Likewise.
19380         The original problem was reported by Mike Stump in
19381         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
19382         Ralf Wildenhues provided the short needle and haystack.
19383         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
19384         Add a more involved test to trigger the bug in two_way_long_needle.
19385
19386 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19387
19388         gnulib-tool: remove use of bold display in help screen
19389         * gnulib-tool (func_usage): Do not use bold display anymore in the
19390         help screen.  That was just meant to be a temporary emphasis for a
19391         backward-incompatible change.
19392
19393 2011-02-23  Bruno Haible  <bruno@clisp.org>
19394
19395         Fix misindentation of preprocessor directives.
19396         * lib/argp-namefrob.h: Reindent preprocessor directives.
19397         * lib/getopt_int.h (struct _getopt_data): Likewise.
19398         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
19399         * lib/vasnprintf.c (decode_long_double): Likewise.
19400         * tests/test-argmatch.c: Insert blank lines, for clarity.
19401         * tests/test-exclude.c: Likewise.
19402
19403 2011-02-22  Bruno Haible  <bruno@clisp.org>
19404
19405         ioctl: Fix for MacOS X in 64-bit mode.
19406         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
19407         value.
19408         Suggested by Eric Blake.
19409         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
19410
19411 2011-02-22  Jim Meyering  <meyering@redhat.com>
19412
19413         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
19414         * Makefile (sc_cpp_indent_check): Don't limit the check to files
19415         in lib/.
19416
19417 2011-02-22  Eric Blake  <eblake@redhat.com>
19418
19419         maint: avoid any CDPATH issue
19420         * Makefile (sc_cpp_indent_check): Anchor cd argument.
19421
19422         maint: adjust cpp indentation for my modules, as well
19423         * Makefile (sc_cpp_indent_check): Add my name.
19424         * lib/fbufmode.c: Filter through cppi.
19425         * lib/fpurge.c: Likewise.
19426         * lib/freadable.c: Likewise.
19427         * lib/freading.c: Likewise.
19428         * lib/fwritable.c: Likewise.
19429         * lib/fwriting.c: Likewise.
19430         * lib/sigaction.c: Likewise.
19431
19432 2011-02-22  Jim Meyering  <meyering@redhat.com>
19433
19434         maint: adjust cpp indentation to reflect nesting depth
19435         I.e., in a block of code that begins with an unnested "#if",
19436         put one space between the "#" in column 1 and following token.
19437         For example,
19438         -#include <sys/vfs.h>
19439         +# include <sys/vfs.h>
19440         Do this only in .c files that are part of a module I maintain.
19441         * lib/linkat.c: Filter through cppi.
19442         * lib/nanosleep.c: Likewise.
19443         * lib/openat.c: Likewise.
19444         * lib/openat-die.c: Likewise.
19445         * lib/dup3.c: Likewise.
19446         * lib/fchownat.c: Likewise.
19447         * lib/flock.c: Likewise.
19448         * lib/fsync.c: Likewise.
19449         * lib/fts.c: Likewise.
19450         * lib/getpass.c: Likewise.
19451         * lib/gettimeofday.c: Likewise.
19452         * lib/userspec.c: Likewise.
19453         * Makefile (sc_cpp_indent_check): New rule, to check this.
19454
19455 2011-02-22  Bruno Haible  <bruno@clisp.org>
19456
19457         New module 'wctomb'.
19458         * lib/stdlib.in.h (wctomb): New declaration.
19459         * lib/wctomb.c: New file.
19460         * lib/wctomb-impl.h: New file.
19461         * m4/wctomb.m4: New file.
19462         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
19463         REPLACE_WCTOMB.
19464         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
19465         REPLACE_WCTOMB.
19466         * modules/wctomb: New file.
19467         * tests/test-stdlib-c++.cc: Test signature of wctomb.
19468         * doc/posix-functions/wctomb.texi: Mention the new module.
19469         * modules/wctob (Depends-on): Add wctomb.
19470
19471 2011-02-22  Bruno Haible  <bruno@clisp.org>
19472
19473         New module 'mbtowc'.
19474         * lib/stdlib.in.h (mbtowc): New declaration.
19475         * lib/mbtowc.c: New file.
19476         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
19477         * m4/mbtowc.m4: New file.
19478         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
19479         REPLACE_MBTOWC.
19480         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
19481         REPLACE_MBTOWC.
19482         * modules/mbtowc: New file.
19483         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
19484         * doc/posix-functions/mbtowc.texi: Mention the new module.
19485         * modules/btowc (Depends-on): Add mbtowc.
19486
19487 2011-02-22  Bruno Haible  <bruno@clisp.org>
19488
19489         wcrtomb: Add more tests for native Windows platforms.
19490         * tests/test-wcrtomb-w32-1.sh: New file.
19491         * tests/test-wcrtomb-w32-2.sh: New file.
19492         * tests/test-wcrtomb-w32-3.sh: New file.
19493         * tests/test-wcrtomb-w32-4.sh: New file.
19494         * tests/test-wcrtomb-w32-5.sh: New file.
19495         * tests/test-wcrtomb-w32.c: New file.
19496         * modules/wcrtomb-tests (Files): Add them.
19497         (Makefile.am): Arrange to run these tests.
19498         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
19499         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
19500
19501 2011-02-20  Bruno Haible  <bruno@clisp.org>
19502
19503         wcrtomb: Enhance test.
19504         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
19505
19506 2011-02-20  Bruno Haible  <bruno@clisp.org>
19507
19508         mbrtowc: Tiny optimization.
19509         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
19510
19511 2011-02-20  Jim Meyering  <meyering@redhat.com>
19512
19513         test-exclude.c: remove unmatched #endif
19514         * tests/test-exclude.c: Remove stray #endif, left over from
19515         the change of a week ago.
19516
19517 2011-02-19  Jim Meyering  <meyering@redhat.com>
19518
19519         git-version-gen: skip "-dirty" check when appropriate
19520         * build-aux/git-version-gen: Don't run any git commands when the
19521         version string comes from .tarball-version.  Prior to this, we
19522         would run git update-index --refresh even from a just-unpacked
19523         tarball directory, and that could affect a .git/ directory in a
19524         parent of the build directory.  Reported by Mike Frysinger.
19525
19526 2011-02-19  Bruno Haible  <bruno@clisp.org>
19527
19528         unictype/property-byname: Reduce the size of the 'data' segment.
19529         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
19530
19531 2011-02-19  Bruno Haible  <bruno@clisp.org>
19532
19533         unictype/scripts: Reduce the size of the 'data' segment.
19534         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
19535         '%pic'.
19536         * lib/unictype/scripts_byname.gperf: Regenerated.
19537
19538 2011-02-19  Bruno Haible  <bruno@clisp.org>
19539
19540         stdint: Update documentation.
19541         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
19542
19543 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19544
19545         stdint: omit redundant check for wchar.h
19546         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
19547         always tests whether wchar.h exists, so remove the now-redundant test.
19548
19549 2011-02-18  Bruno Haible  <bruno@clisp.org>
19550
19551         stdint: Cut dependency to module 'wchar'.
19552         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
19553         include the necessary prerequisites.
19554         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
19555         * modules/stdint (Depends-on): Remove wchar.
19556         (Makefile.am): Substitute HAVE_WCHAR_H.
19557         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
19558
19559 2011-02-18  Eric Blake  <eblake@redhat.com>
19560
19561         longlong: skip, rather than fail, on cross-compilation
19562         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
19563         when cross-compiling; regression from 2011-02-16.
19564
19565 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19566
19567         * NEWS: Mention 2011-02-08 change to stdlib.
19568
19569 2011-02-17  Bruno Haible  <bruno@clisp.org>
19570
19571         getloadavg: Add comments about platforms.
19572         * m4/getloadavg.m4: Add comment.
19573         * lib/getloadavg.c: Likewise.
19574
19575 2011-02-17  Bruno Haible  <bruno@clisp.org>
19576
19577         getloadavg: Fix link error on Solaris 2.6.
19578         * modules/getloadavg (Link): New section.
19579         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
19580         linking test-getloadavg.
19581         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
19582         getloadavg.
19583
19584 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19585
19586         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
19587         It was 'int', but this doesn't match the IRIX 6.5 manual.
19588         Suggested by Bruno Haible in
19589         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
19590
19591 2011-02-17  Bruno Haible  <bruno@clisp.org>
19592
19593         havelib: Fix comments.
19594         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
19595         change.
19596
19597 2011-02-17  Bruno Haible  <bruno@clisp.org>
19598
19599         havelib: Update config.rpath.
19600         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
19601
19602 2011-02-17  Bruno Haible  <bruno@clisp.org>
19603
19604         getloadavg test: Add some plausibility checks.
19605         * tests/test-getloadavg.c (check_avg): Print a warning when the value
19606         is improbable.
19607
19608 2011-02-16  Eric Blake  <eblake@redhat.com>
19609
19610         maintainer-makefile: make syntax-check a no-op from tarballs
19611         * top/maint.mk (no-vc-detected): New rule.
19612         (local-checks-available): Use it to avoid hanging if someone tries
19613         'make syntax-check' from a tarball.  Also append to any non-syntax
19614         checks already defined in cfg.mk.
19615
19616 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19617
19618         longlong: tune, particularly for common case of c99
19619
19620         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
19621         or running anything if c99, or if unsigned long long int does not
19622         work.  In either case, we know the answer without further tests.
19623         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
19624         it at most once, and use its results for both long long int and
19625         unsigned long long int.  This is more likely to be efficient in
19626         the common case where the program wants to check for both long
19627         long int and unsigned long long int.
19628         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
19629         since the answer is already known.
19630
19631 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
19632
19633         getloadavg: set errno
19634         * lib/getloadavg.c: Set errno when returning -1.  If no other
19635         error number looks appropriate, set it to ENOSYS if the getloadavg
19636         looks like it can't possibly ever work, ENOTSUP otherwise.
19637         Suggested by Bruno Haible in
19638         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
19639
19640         getloadavg: trim unused parts and speed up 'configure'
19641         * NEWS: Document this.
19642         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
19643         always compiled if getloadavg is absent.
19644         Move test code to ...
19645         * tests/test-getloadavg.c: New file, containing previous
19646         contents of test from lib/getloadavg.c.  It also contains
19647         suggestions by Bruno Haible in
19648         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
19649         * modules/getloadavg-tests: New file.
19650         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
19651         Do tests in the same order as they're needed for getloadavg.c.
19652         Omit setgid-related tests that generate symbols KMEM_GROUP,
19653         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
19654         Do only the tests that are needed to see whether the system has
19655         getloadavg, moving the other tests into ...
19656         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
19657         NLIST_NAME_UNION; nobody should be using it.  Do not define
19658         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
19659         relevant, as the user of this module shouldn't care how getloadavg
19660         is implemented.
19661
19662         getloadavg: omit unused var
19663         * lib/getloadavg.c (getloadavg): Omit unused local variable.
19664
19665 2011-02-15  Jim Meyering  <meyering@redhat.com>
19666
19667         doc: update users.txt
19668         * users.txt: Update iwhd's URL.
19669
19670 2011-02-13  Bruno Haible  <bruno@clisp.org>
19671
19672         Consistent macro naming for macros that use GCC __attribute__.
19673         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
19674         _ATTRIBUTE_NONNULL_.
19675         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
19676         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
19677         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
19678         ATTRIBUTE_DEPRECATED.
19679         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
19680         ATTRIBUTE_NORETURN.
19681         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19682         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19683         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19684         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19685         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
19686         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
19687         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
19688         ATTRIBUTE_SENTINEL.
19689         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
19690         ATTRIBUTE_RETURN_CHECK.
19691         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
19692         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
19693         ATTRIBUTE_NORETURN.
19694         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
19695         Reported by Paul Eggert.
19696
19697 2011-02-13  Bruno Haible  <bruno@clisp.org>
19698
19699         Don't interfere with a program's definition of __attribute__.
19700         * lib/argp.h (__attribute__): Remove definition.
19701         (_GL_ATTRIBUTE_FORMAT): New macro.
19702         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
19703         * lib/argp-fmtstream.h (__attribute__): Remove definition.
19704         (_GL_ATTRIBUTE_FORMAT): New macro.
19705         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
19706         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
19707         GCC 3 or newer.
19708         * lib/error.h (__attribute__): Remove definition.
19709         (_GL_ATTRIBUTE_FORMAT): New macro.
19710         (error, error_at_line): Use it.
19711         * lib/hash.h (__attribute__): Remove definition.
19712         (ATTRIBUTE_WUR): Update definition. Define always.
19713         * lib/openat.h (__attribute__): Remove definition.
19714         (ATTRIBUTE_NORETURN): Update definition. Define always.
19715         * lib/sigpipe-die.h (__attribute__): Remove definition.
19716         (ATTRIBUTE_NORETURN): Update definition. Define always.
19717         * lib/vasnprintf.h (__attribute__): Remove definition.
19718         (_GL_ATTRIBUTE_FORMAT): New macro.
19719         (asnprintf, vasnprintf): Use it.
19720         * lib/xalloc.h (__attribute__): Remove definition.
19721         (ATTRIBUTE_NORETURN): Update definition. Define always.
19722         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
19723         * lib/xmemdup0.h (__attribute__): Remove definition.
19724         (ATTRIBUTE_NORETURN): Update definition. Define always.
19725         * lib/xprintf.h (__attribute__): Remove definition.
19726         (_GL_ATTRIBUTE_FORMAT): New macro.
19727         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
19728         * lib/xstrtol.h (__attribute__): Remove definition.
19729         (ATTRIBUTE_NORETURN): Update definition. Define always.
19730         * lib/xvasprintf.h (__attribute__): Remove definition.
19731         (_GL_ATTRIBUTE_FORMAT): New macro.
19732         (xasprintf, xvasprintf): Use it.
19733         * tests/test-argmatch.c (__attribute__): Remove definition.
19734         (ATTRIBUTE_NORETURN): Update definition. Define always.
19735         * tests/test-exclude.c (__attribute__): Remove definition.
19736         (ATTRIBUTE_NORETURN): Update definition. Define always.
19737         Reported by Paul Eggert.
19738
19739 2011-02-13  Bruno Haible  <bruno@clisp.org>
19740
19741         mbrtowc: Add more tests for native Windows platforms.
19742         * tests/test-mbrtowc-w32-1.sh: New file.
19743         * tests/test-mbrtowc-w32-2.sh: New file.
19744         * tests/test-mbrtowc-w32-3.sh: New file.
19745         * tests/test-mbrtowc-w32-4.sh: New file.
19746         * tests/test-mbrtowc-w32-5.sh: New file.
19747         * tests/test-mbrtowc-w32.c: New file.
19748         * modules/mbrtowc-tests (Files): Add them.
19749         (Makefile.am): Arrange to run these tests.
19750         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
19751         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
19752
19753 2011-02-13  Bruno Haible  <bruno@clisp.org>
19754
19755         mbrtowc: Work around native Windows bug.
19756         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
19757         guess when no suitable locale for testing was found.
19758         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
19759
19760 2011-02-13  Bruno Haible  <bruno@clisp.org>
19761
19762         mbsinit: Work around mingw bug.
19763         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
19764         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
19765         Windows.
19766         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
19767
19768 2011-02-13  Bruno Haible  <bruno@clisp.org>
19769
19770         mbsinit: Don't crash for a NULL argument.
19771         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
19772         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
19773
19774 2011-02-13  Bruno Haible  <bruno@clisp.org>
19775
19776         Don't interfere with a program's definition of __attribute__.
19777         * lib/stdio.in.h (__attribute__): Remove definition.
19778         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
19779         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
19780         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
19781         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
19782         * lib/string.in.h (__attribute__): Remove definition.
19783         Reported by Paul Eggert.
19784
19785 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19786
19787         stdlib: don't get in the way of non-GCC __attribute__
19788         See thread starting at
19789         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
19790         Revert previous stdlib change, installing the following instead:
19791         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
19792         to get in the way of a non-GCC compiler that supports __attribute__.
19793         (_GL_ATTRIBUTE_RETURN): New macro.
19794         (_Exit): Use it instead of __attribute__.
19795
19796 2011-02-12  Bruno Haible  <bruno@clisp.org>
19797
19798         quotearg test: Avoid test failure on mingw.
19799         * tests/test-quotearg.sh: Convert the locale identifier from native
19800         Windows syntax to Unix syntax.
19801
19802 2011-02-12  Bruno Haible  <bruno@clisp.org>
19803
19804         setlocale: Prefer gnulib's override over libintl's override.
19805         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
19806         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
19807         GNULIB_defined_setlocale is set.
19808
19809 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19810
19811         stdlib: support non-GCC __attribute__
19812
19813         Fix a serious and tricky problem encountered when attempting to
19814         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
19815         5.5, but it crashed due to memory corruption on Solaris 10 with
19816         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
19817         bits that are otherwise zero.  This tagging is optional inside
19818         Emacs but is preferred and is used when __attribute__ ((__aligned
19819         (8))) works, as it does with both recent-enough GCC and with Sun C
19820         5.11.  However, Sun C 5.11 is not GCC and does not #define
19821         __GNUC__ and __GNUC_MINOR__.
19822
19823         When I added the getloadavg module to Emacs, it brought in
19824         stdlib.in.h, which contained this fragment:
19825
19826            #ifndef __attribute__
19827            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
19828            #  define __attribute__(Spec)   /* empty */
19829            # endif
19830            #endif
19831
19832         When files that include <stdlib.h> were compiled with Sun C 5.11,
19833         the above code disabled __attribute__ ((__aligned (8))), which
19834         caused variables to not be properly aligned, which eventually led
19835         to the pointer corruption mentioned above.  (This was a bit hard
19836         to diagnose, unfortunately.)
19837
19838         Several "#define __attribute__(X) /* empty */" code snippets need
19839         to be eradicated from Gnulib to work with non-GCC compilers that
19840         support __attribute__.  The Autoconf way to do this is to test for
19841         each kind of attribute that we want support for, and selectively
19842         enable that in source code.
19843
19844         Fix this problem just for stdlib.h, by adding a test for the
19845         __noreturn__ attribute, and change stdlib.in.h to use that test
19846         when needed.  This technique can be easily generalized to the
19847         other *.in.h files and attributes, and a similar technique can be
19848         used for *.h and *.c files.  This patch is enough to solve the
19849         problem for Emacs + getloadavg, and I thought I'd publish it for
19850         feedback before undertaking further, similar fixes in other
19851         modules.
19852
19853         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
19854         because it's not needed for stdlib.h.  It merely substitutes the
19855         value directly into stdlib.h.  We may well need to #define it, or
19856         similar symbols, for other modules, but it's nice to also have an
19857         option to not #define it for applications like Emacs that do not
19858         need it.
19859
19860         * lib/stdlib.in.h (__attribute__): Do not #define.
19861         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
19862         be defined only if the _Exit module is also used.
19863         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
19864         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
19865         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
19866         platforms.
19867         * modules/_Exit (Files): Add m4/attribute.m4.
19868         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
19869         * m4/attribute.m4: New file.
19870
19871 2011-02-12  Bruno Haible  <bruno@clisp.org>
19872
19873         wcsrtombs: Work around bug on native Windows.
19874         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
19875         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
19876         instead of len.
19877         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
19878
19879 2011-02-12  Bruno Haible  <bruno@clisp.org>
19880
19881         mbsrtowcs: Work around bug on native Windows.
19882         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
19883         against mingw bug.
19884         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
19885
19886 2011-02-12  Bruno Haible  <bruno@clisp.org>
19887
19888         Avoid setlocale bugs in tests.
19889         * modules/btowc (Dependencies): Add setlocale.
19890         * modules/c-strcase (Dependencies): Likewise.
19891         * modules/mbmemcasecmp (Dependencies): Likewise.
19892         * modules/mbmemcasecoll (Dependencies): Likewise.
19893         * modules/mbrtowc (Dependencies): Likewise.
19894         * modules/mbscasecmp (Dependencies): Likewise.
19895         * modules/mbscasestr (Dependencies): Likewise.
19896         * modules/mbschr (Dependencies): Likewise.
19897         * modules/mbscspn (Dependencies): Likewise.
19898         * modules/mbsinit (Dependencies): Likewise.
19899         * modules/mbsncasecmp (Dependencies): Likewise.
19900         * modules/mbsnrtowcs (Dependencies): Likewise.
19901         * modules/mbspbrk (Dependencies): Likewise.
19902         * modules/mbspcasecmp (Dependencies): Likewise.
19903         * modules/mbsrchr (Dependencies): Likewise.
19904         * modules/mbsrtowcs (Dependencies): Likewise.
19905         * modules/mbsspn (Dependencies): Likewise.
19906         * modules/mbsstr (Dependencies): Likewise.
19907         * modules/nl_langinfo (Dependencies): Likewise.
19908         * modules/quotearg (Dependencies): Likewise.
19909         * modules/unicase/locale-language (Dependencies): Likewise.
19910         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
19911         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
19912         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
19913         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
19914         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
19915         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
19916         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
19917         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
19918         * modules/vasnprintf-posix (Dependencies): Likewise.
19919         * modules/wcrtomb (Dependencies): Likewise.
19920         * modules/wcsnrtombs (Dependencies): Likewise.
19921         * modules/wcsrtombs (Dependencies): Likewise.
19922
19923 2011-02-12  Bruno Haible  <bruno@clisp.org>
19924
19925         setlocale: Workaround native Windows bug.
19926         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
19927         succeeds but sets LC_CTYPE to "C", report a failure.
19928         * tests/test-setlocale2.sh: New file.
19929         * tests/test-setlocale2.c: New file.
19930         * modules/setlocale-tests (Files): Add the new files.
19931         (Makefile.am): Enable test-setlocale2.sh test.
19932         * doc/posix-functions/setlocale.texi: Mention workaround.
19933
19934 2011-02-11  Bruno Haible  <bruno@clisp.org>
19935
19936         Tests for module 'setlocale'.
19937         * modules/setlocale-tests: New file.
19938         * tests/test-setlocale1.sh: New file.
19939         * tests/test-setlocale1.c: New file.
19940
19941         New module 'setlocale'.
19942         * lib/locale.in.h (setlocale): New declaration.
19943         * lib/setlocale.c: New file, based on
19944         gettext/gettext-runtime/intl/setlocale.c.
19945         * m4/setlocale.m4: New file.
19946         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
19947         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
19948         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
19949         REPLACE_SETLOCALE.
19950         * modules/setlocale: New file.
19951         * tests/test-locale-c++.cc: Test the declaration of setlocale.
19952         * doc/posix-functions/setlocale.texi: Mention the new module.
19953
19954 2011-02-11  Bruno Haible  <bruno@clisp.org>
19955
19956         Prepare for locale dependent tests on mingw.
19957         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
19958         because it has the wrong locale encoding.
19959         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
19960         French_France.1252 instead of "fr".
19961         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
19962         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
19963         because it has the wrong locale encoding.
19964         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
19965         native Windows, try Turkish_Turkey.65001.
19966         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
19967         Chinese_China.54936.
19968
19969         Prepare for locale dependent tests on mingw.
19970         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
19971         differently.
19972         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
19973         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
19974         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19975         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19976
19977 2011-02-11  Eric Blake  <eblake@redhat.com>
19978
19979         strptime: avoid compiler warnings
19980         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
19981         compiler warnings about dead code.
19982         Reported by Daniel P. Berrange.
19983
19984 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
19985
19986         doc: update users.txt
19987         * users.txt: Add rcs.
19988
19989 2011-02-10  John W. Eaton  <jwe@gnu.org>
19990
19991         doc: update users.txt
19992         * users.txt: Add octave.
19993
19994 2011-02-10  Jim Meyering  <meyering@redhat.com>
19995
19996         doc: update users.txt
19997         * users.txt: Add iwhd.
19998
19999 2011-02-09  Bruno Haible  <bruno@clisp.org>
20000
20001         gnulib-tool: Make copyright notice adjustment more robust.
20002         * gnulib-tool (func_import): In sed_transform_main_lib_file,
20003         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
20004         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
20005         License".
20006         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
20007
20008 2011-02-06  Bruno Haible  <bruno@clisp.org>
20009
20010         New module 'towctrans'.
20011         * modules/towctrans: New file.
20012         * lib/wctype.in.h (towctrans): New declaration.
20013         * lib/towctrans.c: New file.
20014         * lib/towctrans-impl.h: New file.
20015         * m4/towctrans.m4: New file.
20016         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
20017         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
20018         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
20019         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
20020         * doc/posix-functions/towctrans.texi: Mention the new module.
20021
20022 2011-02-06  Bruno Haible  <bruno@clisp.org>
20023
20024         New module 'wctrans'.
20025         * modules/wctrans: New file.
20026         * lib/wctype.in.h (wctrans): New declaration.
20027         * lib/wctrans.c: New file.
20028         * lib/wctrans-impl.h: New file.
20029         * m4/wctrans.m4: New file.
20030         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
20031         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
20032         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
20033         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
20034         * doc/posix-functions/wctrans.texi: Mention the new module.
20035
20036 2011-02-06  Bruno Haible  <bruno@clisp.org>
20037
20038         New module 'iswctype'.
20039         * modules/iswctype: New file.
20040         * lib/wctype.in.h (iswctype): New declaration.
20041         * lib/iswctype.c: New file.
20042         * lib/iswctype-impl.h: New file.
20043         * m4/iswctype.m4: New file.
20044         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
20045         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
20046         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
20047         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
20048         * doc/posix-functions/iswctype.texi: Mention the new module and the
20049         HP-UX 11.00 problem.
20050
20051 2011-02-06  Bruno Haible  <bruno@clisp.org>
20052
20053         New module 'wctype'.
20054         * modules/wctype: Change to represent the wctype() substitute.
20055         * lib/wctype.in.h (wctype): New declaration.
20056         * lib/wctype.c: New file.
20057         * lib/wctype-impl.h: New file.
20058         * m4/wctype.m4: New file.
20059         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
20060         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
20061         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
20062         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
20063         * doc/posix-functions/wctype.texi: Mention the new module and the
20064         HP-UX 11.00 problem.
20065
20066 2011-02-06  Bruno Haible  <bruno@clisp.org>
20067
20068         wctype-h: Ensure wctype_t and wctrans_t are defined.
20069         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
20070         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20071         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20072         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
20073         HAVE_WCTRANS_T.
20074         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
20075
20076 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
20077
20078         flock: fix license typo
20079
20080         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
20081         omitted.
20082
20083 2011-02-08  Bruno Haible  <bruno@clisp.org>
20084
20085         Split large sed scripts, for HP-UX sed.
20086         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
20087         to avoid HP-UX limit of 99 commands, in the near future.
20088         * modules/stdlib (Makefile.am): Likewise.
20089         * modules/unistd (Makefile.am): Likewise.
20090         * modules/wchar (Makefile.am): Likewise.
20091         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20092         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
20093         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
20094
20095 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20096             Bruno Haible  <bruno@clisp.org>
20097
20098         stdlib: improve random_r modularization
20099         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
20100         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
20101         you also need the random_r module to get this material right.
20102         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
20103         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
20104         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
20105
20106 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20107
20108         stdlib: don't depend on stdint
20109         * lib/stdlib.in.h: Don't include <stdint.h> merely because
20110         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
20111         be independent of whether stdint.h is needed.
20112         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
20113         here, instead of ...
20114         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
20115         struct random_data should be using the random_r module, not just
20116         the stdlib module (which wouldn't make sense: what package needs
20117         just struct random_data without also needing random_r?).
20118         * modules/stdlib (Depends-on): Remove stdint.
20119
20120         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
20121         See the thread rooted at
20122         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
20123         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
20124         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
20125         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
20126         __VMS)); previously it was always included (via fcntl--.h).
20127         (getloadavg): Do not use c_strtod.  Instead, approximate it by
20128         hand; this is good enough for load averages.  Also, do not use
20129         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
20130         flags directly if available and don't bother otherwise.  (Packages
20131         that need the extra reliability should use the modules that define
20132         these flags on older platforms that lack them.)
20133         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
20134         fcntl-safer.
20135
20136 2011-02-08  Jim Meyering  <meyering@redhat.com>
20137
20138         di-set.h, ino-map.h: add multiple-inclusion guard
20139         Technically, the guard is required only for ino-map.h, due to its
20140         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
20141         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
20142         * lib/ino-map.h: Likewise.
20143
20144 2011-02-06  Bruno Haible  <bruno@clisp.org>
20145
20146         iswblank: Ensure declaration on glibc systems.
20147         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
20148         * modules/iswblank (Dependencies): Add 'extensions'.
20149         * doc/posix-functions/iswblank.texi: Document the glibc problem.
20150
20151 2011-02-06  Bruno Haible  <bruno@clisp.org>
20152
20153         New module 'iswblank'.
20154         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
20155         * modules/iswblank: New file.
20156         * modules/wctype-h (Files): Remove lib/iswblank.c.
20157         (Makefile.am): Substitute GNULIB_ISWBLANK.
20158         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
20159         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
20160         (gl_WCTYPE_H_DEFAULTS): New macro.
20161         (gl_WCTYPE_H): Require it. Remove iswblank related code.
20162         * modules/iswblank-tests: New file.
20163         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
20164         * tests/test-wctype-h.c (main): Remove iswblank tests.
20165         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
20166         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
20167         of 'wctype-h'.
20168         * NEWS: Mention the change.
20169         * modules/mbchar (Depends-on): Add iswblank.
20170
20171 2011-02-08  Bruno Haible  <bruno@clisp.org>
20172
20173         di-set tests: Refactor.
20174         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
20175         unnecessary includes.
20176         (ASSERT): Remove macro.
20177         (main): Make C90 compliant by avoiding variable declaration after
20178         statement.
20179         * modules/di-set-tests (Files): Add tests/macros.h.
20180
20181 2011-02-08  Bruno Haible  <bruno@clisp.org>
20182
20183         ino-map tests: Refactor.
20184         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
20185         unnecessary includes.
20186         (ASSERT): Remove macro.
20187         (main): Make C90 compliant by avoiding variable declaration after
20188         statement.
20189         * modules/ino-map-tests (Files): Add tests/macros.h.
20190
20191 2011-02-08  Jim Meyering  <meyering@redhat.com>
20192
20193         di-set: add "const" to a cast
20194         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
20195         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
20196
20197 2011-02-06  Bruno Haible  <bruno@clisp.org>
20198
20199         Rename module 'wctype' to 'wctype-h'.
20200         * modules/wctype-h: Renamed from modules/wctype.
20201         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
20202         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
20203         (Files, Depends-on, Makefile.am): Update.
20204         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
20205         (Files, Makefile.am): Update.
20206         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
20207         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
20208         * doc/posix-headers/wctype.texi: Update.
20209         * doc/posix-functions/iswalnum.texi: Update.
20210         * doc/posix-functions/iswalpha.texi: Update.
20211         * doc/posix-functions/iswblank.texi: Update.
20212         * doc/posix-functions/iswcntrl.texi: Update.
20213         * doc/posix-functions/iswdigit.texi: Update.
20214         * doc/posix-functions/iswgraph.texi: Update.
20215         * doc/posix-functions/iswlower.texi: Update.
20216         * doc/posix-functions/iswprint.texi: Update.
20217         * doc/posix-functions/iswpunct.texi: Update.
20218         * doc/posix-functions/iswspace.texi: Update.
20219         * doc/posix-functions/iswupper.texi: Update.
20220         * doc/posix-functions/iswxdigit.texi: Update.
20221         * doc/posix-functions/towlower.texi: Update.
20222         * doc/posix-functions/towupper.texi: Update.
20223         * NEWS: Mention the change.
20224         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
20225         * modules/mbchar (Dependencies): Likewise.
20226         * modules/mbswidth (Dependencies): Likewise.
20227         * modules/quotearg (Dependencies): Likewise.
20228         * modules/regex (Dependencies): Likewise.
20229         * modules/wcscasecmp (Dependencies): Likewise.
20230         * modules/wcsncasecmp (Dependencies): Likewise.
20231         * modules/wcwidth (Dependencies): Likewise.
20232
20233 2011-02-06  Bruno Haible  <bruno@clisp.org>
20234
20235         New module 'wcswidth'.
20236         * modules/wcswidth: New file.
20237         * lib/wchar.in.h (wcswidth): New declaration.
20238         * lib/wcswidth.c: New file.
20239         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
20240         * m4/wcswidth.m4: New file.
20241         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
20242         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
20243         REPLACE_WCSWIDTH.
20244         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
20245         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
20246         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
20247         * doc/posix-functions/wcswidth.texi: Mention the new module.
20248
20249 2011-02-06  Bruno Haible  <bruno@clisp.org>
20250
20251         New module 'wcstok'.
20252         * modules/wcstok: New file.
20253         * lib/wchar.in.h (wcstok): New declaration.
20254         * lib/wcstok.c: New file.
20255         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
20256         * m4/wcstok.m4: New file.
20257         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
20258         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
20259         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
20260         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
20261         * doc/posix-functions/wcstok.texi: Mention the new module.
20262
20263 2011-02-06  Bruno Haible  <bruno@clisp.org>
20264
20265         New module 'wcsstr'.
20266         * modules/wcsstr: New file.
20267         * lib/wchar.in.h (wcsstr): New declaration.
20268         * lib/wcsstr.c: New file.
20269         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
20270         * m4/wcsstr.m4: New file.
20271         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
20272         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
20273         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
20274         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
20275         * doc/posix-functions/wcsstr.texi: Mention the new module.
20276
20277 2011-02-06  Bruno Haible  <bruno@clisp.org>
20278
20279         New module 'wcspbrk'.
20280         * modules/wcspbrk: New file.
20281         * lib/wchar.in.h (wcspbrk): New declaration.
20282         * lib/wcspbrk.c: New file.
20283         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
20284         * m4/wcspbrk.m4: New file.
20285         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
20286         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
20287         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
20288         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
20289         * doc/posix-functions/wcspbrk.texi: Mention the new module.
20290
20291 2011-02-06  Bruno Haible  <bruno@clisp.org>
20292
20293         New module 'wcsspn'.
20294         * modules/wcsspn: New file.
20295         * lib/wchar.in.h (wcsspn): New declaration.
20296         * lib/wcsspn.c: New file.
20297         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
20298         * m4/wcsspn.m4: New file.
20299         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
20300         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
20301         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
20302         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
20303         * doc/posix-functions/wcsspn.texi: Mention the new module.
20304
20305 2011-02-06  Bruno Haible  <bruno@clisp.org>
20306
20307         New module 'wcscspn'.
20308         * modules/wcscspn: New file.
20309         * lib/wchar.in.h (wcscspn): New declaration.
20310         * lib/wcscspn.c: New file.
20311         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
20312         * m4/wcscspn.m4: New file.
20313         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
20314         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
20315         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
20316         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
20317         * doc/posix-functions/wcscspn.texi: Mention the new module.
20318
20319 2011-02-06  Bruno Haible  <bruno@clisp.org>
20320
20321         New module 'wcsrchr'.
20322         * modules/wcsrchr: New file.
20323         * lib/wchar.in.h (wcsrchr): New declaration.
20324         * lib/wcsrchr.c: New file.
20325         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
20326         * m4/wcsrchr.m4: New file.
20327         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
20328         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
20329         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
20330         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
20331         * doc/posix-functions/wcsrchr.texi: Mention the new module.
20332
20333 2011-02-06  Bruno Haible  <bruno@clisp.org>
20334
20335         New module 'wcschr'.
20336         * modules/wcschr: New file.
20337         * lib/wchar.in.h (wcschr): New declaration.
20338         * lib/wcschr.c: New file.
20339         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
20340         * m4/wcschr.m4: New file.
20341         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
20342         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
20343         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
20344         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
20345         * doc/posix-functions/wcschr.texi: Mention the new module.
20346
20347 2011-02-06  Bruno Haible  <bruno@clisp.org>
20348
20349         New module 'wcsdup'.
20350         * modules/wcsdup: New file.
20351         * lib/wchar.in.h (wcsdup): New declaration.
20352         * lib/wcsdup.c: New file.
20353         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
20354         * m4/wcsdup.m4: New file.
20355         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
20356         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
20357         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
20358         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
20359         * doc/posix-functions/wcsdup.texi: Mention the new module.
20360
20361 2011-02-06  Bruno Haible  <bruno@clisp.org>
20362
20363         New module 'wcsxfrm'.
20364         * modules/wcsxfrm: New file.
20365         * lib/wchar.in.h (wcsxfrm): New declaration.
20366         * lib/wcsxfrm.c: New file.
20367         * lib/wcsxfrm-impl.h: New file.
20368         * m4/wcsxfrm.m4: New file.
20369         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
20370         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
20371         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
20372         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
20373         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
20374
20375 2011-02-06  Bruno Haible  <bruno@clisp.org>
20376
20377         New module 'wcscoll'.
20378         * modules/wcscoll: New file.
20379         * lib/wchar.in.h (wcscoll): New declaration.
20380         * lib/wcscoll.c: New file.
20381         * lib/wcscoll-impl.h: New file.
20382         * m4/wcscoll.m4: New file.
20383         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
20384         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
20385         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
20386         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
20387         * doc/posix-functions/wcscoll.texi: Mention the new module.
20388
20389 2011-02-06  Bruno Haible  <bruno@clisp.org>
20390
20391         New module 'wcsncasecmp'.
20392         * modules/wcsncasecmp: New file.
20393         * lib/wchar.in.h (wcsncasecmp): New declaration.
20394         * lib/wcsncasecmp.c: New file.
20395         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
20396         * m4/wcsncasecmp.m4: New file.
20397         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
20398         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
20399         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
20400         HAVE_WCSNCASECMP.
20401         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
20402         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
20403
20404 2011-02-06  Bruno Haible  <bruno@clisp.org>
20405
20406         New module 'wcscasecmp'.
20407         * modules/wcscasecmp: New file.
20408         * lib/wchar.in.h (wcscasecmp): New declaration.
20409         * lib/wcscasecmp.c: New file.
20410         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
20411         * m4/wcscasecmp.m4: New file.
20412         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
20413         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
20414         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
20415         HAVE_WCSCASECMP.
20416         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
20417         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
20418
20419 2011-02-05  Bruno Haible  <bruno@clisp.org>
20420
20421         New module 'wcsncmp'.
20422         * modules/wcsncmp: New file.
20423         * lib/wchar.in.h (wcsncmp): New declaration.
20424         * lib/wcsncmp.c: New file.
20425         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
20426         * m4/wcsncmp.m4: New file.
20427         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
20428         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
20429         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
20430         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
20431         * doc/posix-functions/wcsncmp.texi: Mention the new module.
20432
20433 2011-02-05  Bruno Haible  <bruno@clisp.org>
20434
20435         New module 'wcscmp'.
20436         * modules/wcscmp: New file.
20437         * lib/wchar.in.h (wcscmp): New declaration.
20438         * lib/wcscmp.c: New file.
20439         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
20440         * m4/wcscmp.m4: New file.
20441         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
20442         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
20443         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
20444         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
20445         * doc/posix-functions/wcscmp.texi: Mention the new module.
20446
20447 2011-02-05  Bruno Haible  <bruno@clisp.org>
20448
20449         New module 'wcsncat'.
20450         * modules/wcsncat: New file.
20451         * lib/wchar.in.h (wcsncat): New declaration.
20452         * lib/wcsncat.c: New file.
20453         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
20454         * m4/wcsncat.m4: New file.
20455         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
20456         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
20457         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
20458         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
20459         * doc/posix-functions/wcsncat.texi: Mention the new module.
20460
20461 2011-02-05  Bruno Haible  <bruno@clisp.org>
20462
20463         New module 'wcscat'.
20464         * modules/wcscat: New file.
20465         * lib/wchar.in.h (wcscat): New declaration.
20466         * lib/wcscat.c: New file.
20467         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
20468         * m4/wcscat.m4: New file.
20469         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
20470         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
20471         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
20472         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
20473         * doc/posix-functions/wcscat.texi: Mention the new module.
20474
20475 2011-02-05  Bruno Haible  <bruno@clisp.org>
20476
20477         New module 'wcpncpy'.
20478         * modules/wcpncpy: New file.
20479         * lib/wchar.in.h (wcpncpy): New declaration.
20480         * lib/wcpncpy.c: New file.
20481         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
20482         * m4/wcpncpy.m4: New file.
20483         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
20484         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
20485         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
20486         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
20487         * doc/posix-functions/wcpncpy.texi: Mention the new module.
20488
20489 2011-02-05  Bruno Haible  <bruno@clisp.org>
20490
20491         New module 'wcsncpy'.
20492         * modules/wcsncpy: New file.
20493         * lib/wchar.in.h (wcsncpy): New declaration.
20494         * lib/wcsncpy.c: New file.
20495         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
20496         * m4/wcsncpy.m4: New file.
20497         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
20498         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
20499         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
20500         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
20501         * doc/posix-functions/wcsncpy.texi: Mention the new module.
20502
20503 2011-02-05  Bruno Haible  <bruno@clisp.org>
20504
20505         New module 'wcpcpy'.
20506         * modules/wcpcpy: New file.
20507         * lib/wchar.in.h (wcpcpy): New declaration.
20508         * lib/wcpcpy.c: New file.
20509         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
20510         * m4/wcpcpy.m4: New file.
20511         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
20512         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
20513         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
20514         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
20515         * doc/posix-functions/wcpcpy.texi: Mention the new module.
20516
20517 2011-02-05  Bruno Haible  <bruno@clisp.org>
20518
20519         New module 'wcscpy'.
20520         * modules/wcscpy: New file.
20521         * lib/wchar.in.h (wcscpy): New declaration.
20522         * lib/wcscpy.c: New file.
20523         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
20524         * m4/wcscpy.m4: New file.
20525         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
20526         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
20527         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
20528         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
20529         * doc/posix-functions/wcscpy.texi: Mention the new module.
20530
20531 2011-02-05  Bruno Haible  <bruno@clisp.org>
20532
20533         New module 'wcsnlen'.
20534         * modules/wcsnlen: New file.
20535         * lib/wchar.in.h (wcsnlen): New declaration.
20536         * lib/wcsnlen.c: New file.
20537         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
20538         * m4/wcsnlen.m4: New file.
20539         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
20540         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
20541         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
20542         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
20543         * doc/posix-functions/wcsnlen.texi: Mention the new module.
20544
20545 2011-02-05  Bruno Haible  <bruno@clisp.org>
20546
20547         New module 'wcslen'.
20548         * modules/wcslen: New file.
20549         * lib/wchar.in.h (wcslen): New declaration.
20550         * lib/wcslen.c: New file.
20551         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
20552         * m4/wcslen.m4: New file.
20553         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
20554         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
20555         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
20556         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
20557         * doc/posix-functions/wcslen.texi: Mention the new module.
20558
20559 2011-02-05  Bruno Haible  <bruno@clisp.org>
20560
20561         New module 'wmemset'.
20562         * modules/wmemset: New file.
20563         * lib/wchar.in.h (wmemset): New declaration.
20564         * lib/wmemset.c: New file.
20565         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
20566         * m4/wmemset.m4: New file.
20567         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
20568         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
20569         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
20570         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
20571         * doc/posix-functions/wmemset.texi: Mention the new module.
20572
20573 2011-02-05  Bruno Haible  <bruno@clisp.org>
20574
20575         New module 'wmemmove'.
20576         * modules/wmemmove: New file.
20577         * lib/wchar.in.h (wmemmove): New declaration.
20578         * lib/wmemmove.c: New file.
20579         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
20580         * m4/wmemmove.m4: New file.
20581         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
20582         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
20583         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
20584         HAVE_WMEMMOVE.
20585         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
20586         * doc/posix-functions/wmemmove.texi: Mention the new module.
20587
20588 2011-02-05  Bruno Haible  <bruno@clisp.org>
20589
20590         New module 'wmemcpy'.
20591         * modules/wmemcpy: New file.
20592         * lib/wchar.in.h (wmemcpy): New declaration.
20593         * lib/wmemcpy.c: New file.
20594         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
20595         * m4/wmemcpy.m4: New file.
20596         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
20597         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
20598         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
20599         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
20600         * doc/posix-functions/wmemcpy.texi: Mention the new module.
20601
20602 2011-02-05  Bruno Haible  <bruno@clisp.org>
20603
20604         New module 'wmemcmp'.
20605         * modules/wmemcmp: New file.
20606         * lib/wchar.in.h (wmemcmp): New declaration.
20607         * lib/wmemcmp.c: New file.
20608         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
20609         * m4/wmemcmp.m4: New file.
20610         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
20611         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
20612         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
20613         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
20614         * doc/posix-functions/wmemcmp.texi: Mention the new module.
20615
20616 2011-02-07  Jim Meyering  <meyering@redhat.com>
20617
20618         di-set, ino-map: new modules, from coreutils
20619         * lib/di-set.c: New file.
20620         * lib/di-set.h: Likewise.
20621         * lib/ino-map.c: Likewise.
20622         * lib/ino-map.h: Likewise.
20623         * modules/di-set: Likewise.
20624         * modules/di-set-tests: Likewise.
20625         * modules/ino-map: Likewise.
20626         * modules/ino-map-tests: Likewise.
20627         * tests/test-di-set.c: Likewise.
20628         * tests/test-ino-map.c: Likewise.
20629
20630 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
20631
20632         getloadavg: merge minor changes from Emacs
20633
20634         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
20635         (getloadavg): Use memset, not bzero.
20636
20637         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
20638         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
20639         clash (bug#86).
20640
20641 2010-11-14  Bruno Haible  <bruno@clisp.org>
20642
20643         Allow multiple gnulib generated replacements to coexist.
20644         * lib/getopt.in.h (struct option): Avoid identical redefinition.
20645         * lib/inttypes.in.h (imaxdiv_t): Likewise.
20646         * lib/langinfo.in.h (nl_item): Likewise.
20647         * lib/math.in.h (_NaN, NAN): Likewise.
20648         * lib/netdb.in.h (struct addrinfo): Likewise.
20649         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
20650         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
20651         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
20652         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
20653         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
20654         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
20655         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
20656         pthread_mutexattr_init, pthread_mutexattr_settype,
20657         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
20658         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
20659         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
20660         pthread_spin_trylock, pthread_spin_unlock): Likewise.
20661         * lib/sched.in.h (struct sched_param): Likewise.
20662         * lib/se-selinux.in.h (security_class_t, security_context_t,
20663         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
20664         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
20665         lsetfilecon, fsetfilecon, security_check_context,
20666         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
20667         Likewise.
20668         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
20669         Likewise.
20670         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
20671         _gl_function_taking_int_returning_void_t, union sigval,
20672         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
20673         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
20674         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20675         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
20676         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
20677         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
20678         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
20679         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
20680         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
20681         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
20682         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
20683         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
20684         socklen_t, rpl_fd_isset): Likewise.
20685         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
20686         * lib/sys_time.in.h (struct timeval): Likewise.
20687         * lib/sys_times.in.h (struct tms): Likewise.
20688         * lib/sys_utsname.in.h (struct utsname):
20689         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
20690         * lib/unistd.in.h (getpagesize): Likewise.
20691         * lib/wchar.in.h (mbstate_t): Likewise.
20692         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
20693         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
20694         towlower, towupper): Likewise.
20695         Reported by Sam Steingold <sds@gnu.org>.
20696
20697 2011-02-05  Eric Blake  <eblake@redhat.com>
20698
20699         unsetenv: work around Haiku issues
20700         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
20701         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
20702
20703 2010-12-30  Bruce Korb  <bkorb@gnu.org>
20704
20705         libposix: avoid calling error() within libposix
20706         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
20707         is defined.
20708
20709 2011-02-05  Eric Blake  <eblake@redhat.com>
20710
20711         strerror_r-posix: port to cygwin
20712         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
20713         implementation.
20714         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
20715         * tests/test-strerror_r.c (main): Fix test.
20716         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20717         issue.
20718
20719 2011-02-05  Bruno Haible  <bruno@clisp.org>
20720
20721         New module 'wmemchr'.
20722         * modules/wmemchr: New file.
20723         * lib/wchar.in.h (wmemchr): New declaration.
20724         * lib/wmemchr.c: New file.
20725         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
20726         * m4/wmemchr.m4: New file.
20727         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
20728         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
20729         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
20730         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
20731         * doc/posix-functions/wmemchr.texi: Mention the new module.
20732
20733 2011-02-04  Eric Blake  <eblake@redhat.com>
20734
20735         fdopendir: detect FreeBSD bug
20736         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
20737         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
20738
20739 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
20740
20741         stdbool: do not define HAVE_STDBOOL_H
20742         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
20743         AC_HEADER_STDBOOL.  All uses changed.  Do not define
20744         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
20745         imported from the latest Autoconf git.  It was motivated by Emacs,
20746         which uses gnulib but does not need HAVE_STDBOOL_H.
20747
20748 2011-02-04  Bruno Haible  <bruno@clisp.org>
20749
20750         wcsnrtombs: Prepare for new module wwcsnrtombs.
20751         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
20752         * lib/wcsnrtombs.c: Include it.
20753         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
20754
20755         wcsrtombs: Prepare for new module wwcsrtombs.
20756         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
20757         * lib/wcsrtombs.c: Include it.
20758         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
20759
20760         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
20761         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
20762         * lib/mbsnrtowcs.c: Include it.
20763         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
20764
20765         mbsrtowcs: Prepare for new module mbsrtowwcs.
20766         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
20767         * lib/mbsrtowcs.c: Include it.
20768         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
20769
20770 2011-02-04  Bruno Haible  <bruno@clisp.org>
20771
20772         vasnprintf: Reduce use of malloc for small format strings.
20773         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
20774         (arguments): Add room for the first 7 arguments.
20775         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
20776         (char_directives, u8_directives, u16_directives, u32_directives): Add
20777         room for the first 7 directives.
20778         * lib/printf-parse.c: Include <string.h>.
20779         (PRINTF_PARSE): Change memory handling code so that it uses the first
20780         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
20781         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
20782         Reported by Pádraig Brady <P@draigbrady.com>.
20783
20784 2011-01-31  Eric Blake  <eblake@redhat.com>
20785
20786         dup2: work around Haiku bug
20787         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
20788         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
20789         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20790         * tests/test-dup2.c (main): Enhance test.
20791
20792 2011-01-31  Simon Josefsson  <simon@josefsson.org>
20793
20794         doc: off_t is not available in eglibc 2.11.2 stdio.h.
20795         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
20796         declared by eglibc 2.11.2.
20797         * lib/stdio.in.h: Likewise.
20798
20799 2011-01-31  Eric Blake  <eblake@redhat.com>
20800
20801         ignore-value: add missing test dependency
20802         * tests/test-ignore-value.c: Revert previous change; stdio.h
20803         provides off_t.
20804         * modules/ignore-value-tests (Depends-on): Add missing dependency.
20805
20806 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
20807
20808         mktime: clarify long_int width checking
20809         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
20810         the top level, to make it clearer that the assumption about
20811         long_int width is being checked.  See
20812         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
20813
20814 2011-01-30  Simon Josefsson  <simon@josefsson.org>
20815
20816         ignore-value: Fix self-test.
20817         * tests/test-ignore-value.c: Include sys/types.h for off_t.
20818
20819 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
20820
20821         TYPE_MAXIMUM: avoid theoretically undefined behavior
20822         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
20823         negative number, which the C Standard says has undefined behavior.
20824         In practice this is not a problem, but might as well do it by the book.
20825         Reported by Rich Felker and Eric Blake; see
20826         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
20827         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
20828         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20829         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20830         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
20831         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20832         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
20833
20834         mktime: #undef mktime before #defining it
20835         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
20836
20837         mktime: systematically normalize tm_isdst comparisons
20838         * lib/mktime.c (isdst_differ): New function.
20839         (__mktime_internal): Use it systematically for all isdst comparisons.
20840         This completes the fix for libc BZ #6723, and removes the need for
20841         normalizing tm_isdst.  See
20842         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
20843         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
20844
20845         mktime: fix some integer overflow issues and sidestep the rest
20846
20847         This was prompted by a bug report by Benjamin Lindner for MinGW
20848         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
20849         His bug is due to signed integer overflow (0 - INT_MIN), and I
20850         I scanned through mktime.c looking for other integer overflow
20851         problems, fixing all the bugs I found.
20852
20853         Although the C Standard says the resulting code is still not safe
20854         in the presence of integer overflow, in practice it should be good
20855         enough for all real-world two's-complement implementations, except
20856         for debugging environments that deliberately trap on integer
20857         overflow (e.g., gcc -ftrapv).
20858
20859         * lib/mktime.c (WRAPV): New macro.
20860         (SHR): Also check that long_int and time_t shift right in the
20861         usual way, before using the fast-but-unportable method.
20862         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
20863         used.  The code already assumed two's complement, so there's
20864         no need to test for alternatives.  All uses removed.
20865         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
20866         the C standard.  Problem reported by Rich Felker in
20867         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
20868         (twos_complement_arithmetic): Also check long_int and time_t.
20869         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
20870         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
20871         (__mktime_internal): Avoid integer overflow with unary subtraction
20872         in two instances where -1 - X is an adequate replacement for -X,
20873         since the calculations are approximate.
20874
20875 2011-01-29  Eric Blake  <eblake@redhat.com>
20876
20877         mktime: avoid infinite loop
20878         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
20879         type; behavior is still undefined but portable to all known targets.
20880         Reported by Rich Felker.
20881
20882 2011-01-29  Simon Josefsson  <simon@josefsson.org>
20883
20884         rename, unlink, same-inode: Relicense.
20885         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
20886         * modules/unlink (License): Likewise.
20887         * modules/same-inode (License): Likewise.
20888
20889 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
20890
20891         mktime: avoid problems on NetBSD 5 / i386
20892         * lib/mktime.c (long_int): New type.  This works around a problem
20893         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
20894         but time_t is 64 bits, and where I expect the existing code is
20895         wrong in some cases.
20896         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
20897         (ydhms_diff): Bring back the compile-time check for wide-enough
20898         year and yday.
20899
20900         mktime: fix misspelling in comment
20901         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
20902         This merges all recent glibc changes of importance.
20903
20904 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20905
20906         move-if-change: cope with concurrent mv of identical file.
20907         * build-aux/move-if-change (CMPPROG): Accept environment
20908         variable as an override for `cmp'.
20909         (usage): Document CMPPROG.
20910         Adjust comparison to drop stdout.  Cope with failure of mv if
20911         the target file exists and is identical to the source, for
20912         parallel builds.
20913         Report from H.J. Lu against binutils in PR binutils/12283.
20914
20915 2011-01-28  Bruce Korb  <bkorb@gnu.org>
20916
20917         * users.txt: Mention sharutils.
20918
20919 2011-01-28  Simon Josefsson  <simon@josefsson.org>
20920
20921         * users.txt: Mention OATH Toolkit.
20922
20923 2011-01-27  Bruno Haible  <bruno@clisp.org>
20924
20925         Prepare for supporting FreeBSD 10.
20926         * build-aux/config.libpath: Remove handling of freebsd1*.
20927
20928 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
20929
20930         Prepare for supporting FreeBSD 10.
20931         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
20932         match FreeBSD 10.0.
20933
20934 2011-01-27  Bruno Haible  <bruno@clisp.org>
20935
20936         vma-iter, get-rusage-as: Add OpenBSD support.
20937         * modules/vma-iter (configure.ac): Test for mquery.
20938         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
20939         * lib/vma-iter.c: Include <sys/mman.h>.
20940         (vma_iterate): Add an implementation based on mquery().
20941         * lib/resource-ext.h (get_rusage_as): Update comments.
20942         * lib/get-rusage-as.c: Likewise.
20943         * lib/get-rusage-data.c: Likewise.
20944
20945 2011-01-26  Karl Berry  <karl@gnu.org>
20946
20947         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
20948         variables to make it easier to override the makeinfo program used.
20949
20950 2011-01-26  Eric Blake  <eblake@redhat.com>
20951
20952         fcntl: work around Haiku F_DUPFD bugs
20953         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
20954         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
20955         cloexec bit on duplication.
20956         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
20957
20958 2011-01-26  Bruno Haible  <bruno@clisp.org>
20959
20960         Enable memory leak tests on AIX.
20961         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
20962         * tests/test-fprintf-posix3.c (main): Likewise.
20963
20964 2011-01-26  Bruno Haible  <bruno@clisp.org>
20965
20966         Tests for module 'get-rusage-data'.
20967         * modules/get-rusage-data-tests: New file.
20968         * tests/test-get-rusage-data.c: New file.
20969
20970         New module 'get-rusage-data'.
20971         * lib/resource-ext.h (get_rusage_data): New declaration.
20972         * lib/get-rusage-data.c: New file.
20973         * modules/get-rusage-data: New file.
20974
20975 2011-01-25  Bruno Haible  <bruno@clisp.org>
20976
20977         get-rusage-as: Allow for easier testing.
20978         * lib/resource-ext.h (get_rusage_as): Add comment.
20979         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
20980         (main): New function for interactive testing.
20981
20982 2011-01-25  Bruno Haible  <bruno@clisp.org>
20983
20984         vma-iter: Treat Haiku like BeOS.
20985         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
20986         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
20987
20988 2011-01-25  Eric Blake  <eblake@redhat.com>
20989
20990         c-stack: fix regression on cygwin when libsigsegv is present
20991         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
20992
20993 2011-01-24  Bruno Haible  <bruno@clisp.org>
20994
20995         vma-iter: Avoid empty intervals.
20996         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
20997         on an empty interval.
20998
20999 2011-01-24  Jim Meyering  <meyering@redhat.com>
21000
21001         u64: remove unnecessary #include
21002         * lib/u64.h: Don't include <stddef.h>.  It was not used.
21003
21004 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21005
21006         Allow the user to avoid the HAVE_RAW_DECL_* macros.
21007         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
21008
21009 2011-01-23  Bruno Haible  <bruno@clisp.org>
21010
21011         New module 'vma-iter'.
21012         * lib/vma-iter.h: New file.
21013         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
21014         * modules/vma-iter: New file.
21015         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
21016         for get_rusage_as_via_iterator.
21017         (vma_iterate_callback): New function.
21018         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
21019         * modules/get-rusage-as (Depends-on): Add vma-iter.
21020
21021 2011-01-23  Bruno Haible  <bruno@clisp.org>
21022
21023         uninorm: Tweak includes.
21024         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
21025         Reported by Jim Meyering.
21026
21027 2011-01-23  Bruno Haible  <bruno@clisp.org>
21028
21029         get-rusage-as: Improve on NetBSD.
21030         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
21031         /proc, like on FreeBSD.
21032
21033 2011-01-23  Jim Meyering  <meyering@redhat.com>
21034
21035         xreadlink.h: remove unnecessary #include
21036         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
21037
21038         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
21039         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
21040
21041 2011-01-23  Bruno Haible  <bruno@clisp.org>
21042
21043         get-rusage-as: Fix bug.
21044         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
21045         original limit when aborting the first loop.
21046
21047 2011-01-23  Bruno Haible  <bruno@clisp.org>
21048
21049         wctype: Ensure valid C syntax.
21050         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
21051         unconditionally, instead of gl_NEXT_HEADERS conditionally.
21052
21053 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
21054
21055         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
21056         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
21057         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
21058         as they are needed only for configure's test case.
21059         This removes two unnecessary symbols from config.h.
21060
21061         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
21062         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
21063         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
21064         AC_CHECK_HEADERS_ONCE on a header that we also invoke
21065         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
21066         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
21067         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
21068         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
21069         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21070         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21071         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
21072         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21073         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21074         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21075         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
21076         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21077         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
21078         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
21079
21080 2011-01-21  Eric Blake  <eblake@redhat.com>
21081
21082         maintainer-makefile: work with older git for submodule check
21083         * top/maint.mk (public-submodule-commit): Rewrite to avoid
21084         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
21085         Reported by Matthias Bolte.
21086
21087         bootstrap: minor portability fixes
21088         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
21089         (usage): Omit leading capital and trailing . on help phrases, per
21090         GNU Coding Standards.
21091         (check_versions, top level): Prefix messages with script name.
21092
21093 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
21094
21095         bootstrap: support --no-git option
21096         * build-aux/bootstrap: Add --no-git option, to be used when
21097         --gnulib-srcdir points to the exact desired checkout.
21098
21099 2011-01-21  Eric Blake  <eblake@redhat.com>
21100
21101         strerror_r-posix: work with glibc 2.13
21102         * lib/strerror_r.c (strerror_r): Fix return type.
21103
21104 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21105             Bruno Haible  <bruno@clisp.org>
21106
21107         uN_strstr: New unit tests.
21108         * modules/unistr/u8-strstr-tests: New file.
21109         * modules/unistr/u16-strstr-tests: New file.
21110         * modules/unistr/u32-strstr-tests: New file.
21111         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
21112         * tests/unistr/test-u8-strstr.c: New file.
21113         * tests/unistr/test-u16-strstr.c: New file.
21114         * tests/unistr/test-u32-strstr.c: New file.
21115
21116 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21117             Bruno Haible  <bruno@clisp.org>
21118
21119         Make uN_strstr functions O(n) worst-case.
21120         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
21121         16-bit and 32-bit unit cases, use the unibyte algorithm from
21122         lib/mbsstr.c.
21123         * lib/unistr/u8-strstr.c: Include <string.h>.
21124         (UNIT_IS_UINT8_T): New macro.
21125         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
21126         (U_STRLEN, U_STRNLEN): New macros.
21127         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
21128         (U_STRLEN, U_STRNLEN): New macros.
21129         * modules/unistr/u8-strstr (Depends-on): Add strstr.
21130         (configure.ac): Update required libunistring version.
21131         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
21132         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
21133         malloca.
21134         (configure.ac): Update required libunistring version.
21135         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
21136         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
21137         malloca.
21138         (configure.ac): Update required libunistring version.
21139
21140 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21141             Bruno Haible  <bruno@clisp.org>
21142
21143         Prepare for faster uN_strstr functions.
21144         * lib/str-kmp.h: Support definable UNITs.
21145         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
21146         needle_len argument.
21147         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
21148         * lib/mbscasestr.c (mbscasestr): Likewise.
21149
21150 2011-01-21  Pádraig Brady <P@draigBrady.com>
21151
21152         malloca-tests: make faster by unsetting MALLOC_PERTURB_
21153         * tests/test-malloca.c (main): Unset the environment variable
21154         to greatly speed up the test.
21155         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
21156         * modules/malloca-tests: Depend on unsetenv.
21157
21158 2011-01-21  Pádraig Brady <P@draigBrady.com>
21159
21160         ignore-value: remove stdint dependency
21161         * lib/ignore-value.h: Remove <stdint.h>
21162         * modules/ignore-value: Remove stdint dependency.
21163
21164 2011-01-21  Jim Meyering  <meyering@redhat.com>
21165
21166         maint.mk: adjust variable name to be consistent with other gl_ vars
21167         * top/maint.mk (gl_public_submodule_commit): Rename the variable
21168         to be lower case.
21169
21170 2011-01-20  Jim Meyering  <meyering@redhat.com>
21171
21172         maint.mk: make "check" depend on public-submodule-commit by default
21173         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
21174
21175 2011-01-20  Bruno Haible  <bruno@clisp.org>
21176
21177         mbfile, mbiter: Complete change from 2008-12-21.
21178         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
21179         * m4/mbiter.m4 (gl_MBITER): Likewise.
21180
21181 2011-01-20  Jim Meyering  <meyering@redhat.com>
21182
21183         init.sh: insert space between each function name and "()"
21184         * tests/init.sh: Make it a little easier to see that a function's
21185         name is "warn_", and not "warn" when looking at the first part of
21186         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
21187
21188 2011-01-20  Jim Meyering  <meyering@redhat.com>
21189
21190         mountlist: clean up code formatting
21191         * lib/mountlist.c (read_file_system_list): Split a long line,
21192         correct bracing style, use NULL in place of "(struct statfs *)0",
21193         don't parenthesize return value, add spaces around "=" and after
21194         ";-in-for-stmt".
21195
21196 2011-01-14  Markus Duft <mduft@gentoo.org>
21197
21198         mountlist: add support for Interix
21199         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
21200         Apply statvfs to all entries of /dev/fs.
21201         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
21202         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
21203
21204 2011-01-20  Jim Meyering  <meyering@redhat.com>
21205
21206         maint.mk: improve the public-submodule-commit rule
21207         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
21208         to suppress printing of its commands... unless V=1.
21209         Add git submodule's --quiet option to suppress printing of e.g.,
21210         "Entering gnulib" output.
21211         "cd" into $(srcdir) before running git submodule.
21212
21213 2011-01-20  Bruno Haible  <bruno@clisp.org>
21214
21215         include_next: Fix bug introduced on 2011-01-18.
21216         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
21217         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
21218         ac_cv_header_... variable if the second argument is not 'check'.
21219         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
21220         gl_NEXT_HEADERS_INTERNAL.
21221
21222 2011-01-20  Bruno Haible  <bruno@clisp.org>
21223
21224         Allow the user to avoid the GNULIB_TEST_* macros.
21225         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
21226         Suggested by Paul Eggert.
21227
21228 2011-01-14  Jim Meyering  <meyering@redhat.com>
21229
21230         bootstrap: avoid failure when there is no .gitmodules file
21231         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
21232         has been assigned to, even when its value is the empty string.
21233         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
21234         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
21235         Reported by John W. Eaton <jwe@gnu.org>.
21236
21237 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
21238
21239         assume <ctype.h>, ..., <time.h> exist
21240         For years gnulib has been assuming the existence of the headers
21241         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
21242         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
21243         them, since they don't appear to be needed.
21244         * README (Portability guidelines): Document this.
21245         * lib/flock.c: Assume <fcntl.h> exists.
21246         * lib/regex_internal.h: Assume <locale.h> exists.
21247         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
21248         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
21249         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
21250         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
21251         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
21252         * m4/regex.m4 (gl_REGEX): Likewise.
21253         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
21254         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
21255         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
21256         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
21257         * tests/test-argp.c: Likewise.
21258         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
21259
21260         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
21261         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
21262         AA_APPLE_UNIVERSAL_BUILD.  See
21263         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
21264         * NEWS: Document this.
21265
21266 2011-01-19  Eric Blake  <eblake@redhat.com>
21267
21268         c-stack: assume stack overflow if SA_SIGINFO unsupported
21269         * lib/c-stack.c (SIGACTION_WORKS): Rename...
21270         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
21271         sigaction will work.
21272         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
21273         behavior match Linux.
21274         * tests/test-c-stack.c (main): Prefer NULL for pointers.
21275
21276         stdbool-tests: accomodate Haiku
21277         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
21278
21279         binary-io: fix O_TEXT on Haiku
21280         * modules/binary-io (Depends-on): Add fcntl-h.
21281         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
21282         than blindly undefining O_TEXT.
21283         Reported by Scott McCreary.
21284
21285 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21286
21287         include_next: do not check for standard headers like stddef.h
21288
21289         I found this problem when modifying Emacs to use gnulib.
21290         I noticed that it added HAVE_STDDEF_H to config.h, even though
21291         gnulib always assumes <stddef.h> exists as per README and this
21292         symbol is unnecessary.
21293         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
21294         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
21295         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
21296         faster for headers like stddef.h that are known to exist.
21297         (gl_CHECK_NEXT_HEADERS): Use it.
21298         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
21299         rather than gl_CHECK_NEXT_HEADERS.
21300         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
21301         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
21302
21303 2011-01-18  Eric Blake  <eblake@redhat.com>
21304
21305         ansi-c++-opt: skip C++ dependency style if C++ is unused
21306         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
21307         tests when we know C++ compilation is not desired.
21308         Reported by Scott McCreary.
21309
21310 2011-01-18  Bruno Haible  <bruno@clisp.org>
21311
21312         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
21313         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
21314         (main): Perform test also when getrlimit and setrlimit don't exist or
21315         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
21316         limiting the address space size using setrlimit, compare the address
21317         space size before and after the the test.
21318         * tests/test-dprintf-posix2.c: Likewise.
21319         * tests/test-fprintf-posix3.sh: Update skip messages.
21320         * tests/test-dprintf-posix2.sh: Likewise.
21321         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
21322         * modules/dprintf-posix-tests (Depends-on): Likewise.
21323         Reported by Bruce Korb <bkorb@gnu.org> and
21324         Gary V. Vaughan <gary@gnu.org>.
21325
21326 2011-01-18  Bruno Haible  <bruno@clisp.org>
21327
21328         get-rusage-as: Improvement for Cygwin.
21329         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
21330         areas that are merely reserved.
21331
21332 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21333
21334         strftime: remove dependencies on multibyte modules
21335
21336         strftime depended on mbrlen, mbsinit, and wchar, but these modules
21337         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
21338         only if __osf__ is defined, and I suspect OSF doesn't need these
21339         other modules.  If my guess is wrong, we'll need to come up with a
21340         variant of strftime that doesn't need the multibyte modules.
21341
21342         I discovered this problem when attempting modify Emacs to use the
21343         strftime module.  With the previous gnulib, this caused Emacs to
21344         need 31 new files, ranging from lib/config.charset to
21345         m4/wint_t.m4.  This was overkill and I expect would be offputting
21346         to the Emacs maintainers.  After this change, only 6 new files are
21347         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
21348         stdbool.m4, and tm_gmtoff.m4.
21349
21350         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
21351         Suggested by Bruno Haible in
21352         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
21353         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
21354         and do not check for wchar.h.
21355         * modules/strftime (Files): Remove m4/mbstate_t.m4.
21356         (Depends-on): Remove mbrlen, mbsinit, wchar.
21357
21358 2011-01-18  Bruno Haible  <bruno@clisp.org>
21359
21360         Tests for module 'get-rusage-as'.
21361         * modules/get-rusage-as-tests: New file.
21362         * tests/test-get-rusage-as.c: New file.
21363
21364         New module 'get-rusage-as'.
21365         * modules/get-rusage-as: New file.
21366         * lib/resource-ext.h: New file.
21367         * lib/get-rusage-as.c: New file.
21368
21369 2011-01-17  Eric Blake  <eblake@redhat.com>
21370
21371         sigaction: relax license from LGPLv3+ to LGPLv2+
21372         * modules/sigaction (License): Relax to LGPLv2+.
21373
21374 2011-01-14  Bruno Haible  <bruno@clisp.org>
21375
21376         filemode: Make function declarations usable in C++ mode.
21377         * lib/filemode.h: Enclose function declarations in extern "C" block.
21378         Reported by John W. Eaton <jwe@gnu.org>.
21379
21380 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
21381
21382         save-cwd: no longer include "xgetcwd.h"
21383         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
21384         This avoids a compilation failure in projects that use save-cwd
21385         without also using the xgetcwd module.
21386
21387 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21388
21389         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
21390         This is so that a program like Emacs, which needs only dtoastr,
21391         does not have to bother with distributing and compiling ftoastr
21392         and ldtoastr.
21393         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
21394         * modules/dtoastr, modules/ldtoastr: New files.
21395         * modules/ftoastr: Now works just for 'float'.
21396         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
21397         (Makefile.am): Remove ftoastr.h (not needed and no effect),
21398         dtoastr.c, ldtoastr.c.
21399
21400 2011-01-11  Jim Meyering  <meyering@redhat.com>
21401
21402         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
21403         There is no need to work around the lack of the fchdir function,
21404         since gnulib can now provide a replacement when required.
21405         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
21406         * modules/save-cwd (Depends-on): Add fchdir.
21407
21408 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21409
21410         openat, save-cwd: avoid xmalloc
21411
21412         This removes a direct (but undocumented) dependency of openat on
21413         xalloc, along with an indirect dependency via save-cwd.  It also
21414         removes a dependency of save-cwd on xgetcwd, and thereby
21415         indirectly on xalloc.  This change causes the openat substitute
21416         to fall back on save_cwd when memory is tight, and for save_cwd to
21417         fail instead of dying when memory is tight, but that's good enough.
21418         Problem and initial idea for fix reported by Bastien Roucaries in
21419         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
21420
21421         * lib/openat-proc.c: Include stdlib.h (for malloc), not
21422         xalloc.h (for xmalloc).
21423         (openat_proc_name): Use malloc, not xmalloc.
21424         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
21425         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
21426
21427         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
21428         This avoids heap allocation for file names whose lengths are in
21429         the range 512..1023, with the upper bound increasing to at most
21430         4031 depending on the platform's PATH_MAX.  (We do not want
21431         pathmax.h here as it might supply a non-constant PATH_MAX.)
21432         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
21433         Perhaps they should be moved to malloca.h?
21434         (OPENAT_BUFFER_SIZE): Use them.
21435
21436 2011-01-10  Bruno Haible  <bruno@clisp.org>
21437
21438         doc: Update users.txt.
21439         * users.txt: Add recutils.
21440
21441 2011-01-09  Karl Berry  <karl@gnu.org>
21442
21443         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
21444
21445         * doc/configmake.texi: New file.
21446         * doc/gnulib.texi: Include it.
21447         * modules/configmake: Move documentation from here.
21448
21449 2011-01-09  Bruno Haible  <bruno@clisp.org>
21450
21451         Update to Unicode 6.0.0.
21452         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
21453         (get_lbp): Update for Unicode 6.0.0.
21454         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
21455         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
21456         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
21457         U+11001, U+11038..U+11046. Remove U+06DE.
21458         (uc_width): Fix bounds of planes.
21459         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21460         lib/uniwidth/width.c.
21461         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
21462         trailing whitespace removed.
21463         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
21464         without comments, but with the original copyright notice.
21465         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
21466         * lib/unicase/ignorable.h: Likewise.
21467         * lib/unicase/tocasefold.h: Likewise.
21468         * lib/unicase/tolower.h: Likewise.
21469         * lib/unicase/totitle.h: Likewise.
21470         * lib/unicase/toupper.h: Likewise.
21471         * lib/unictype/bidi_of.h: Likewise.
21472         * lib/unictype/blocks.h: Likewise.
21473         * lib/unictype/categ_C.h: Likewise.
21474         * lib/unictype/categ_Cn.h: Likewise.
21475         * lib/unictype/categ_L.h: Likewise.
21476         * lib/unictype/categ_Ll.h: Likewise.
21477         * lib/unictype/categ_Lm.h: Likewise.
21478         * lib/unictype/categ_Lo.h: Likewise.
21479         * lib/unictype/categ_Lu.h: Likewise.
21480         * lib/unictype/categ_M.h: Likewise.
21481         * lib/unictype/categ_Mc.h: Likewise.
21482         * lib/unictype/categ_Me.h: Likewise.
21483         * lib/unictype/categ_Mn.h: Likewise.
21484         * lib/unictype/categ_N.h: Likewise.
21485         * lib/unictype/categ_Nd.h: Likewise.
21486         * lib/unictype/categ_No.h: Likewise.
21487         * lib/unictype/categ_P.h: Likewise.
21488         * lib/unictype/categ_Po.h: Likewise.
21489         * lib/unictype/categ_S.h: Likewise.
21490         * lib/unictype/categ_Sc.h: Likewise.
21491         * lib/unictype/categ_Sk.h: Likewise.
21492         * lib/unictype/categ_Sm.h: Likewise.
21493         * lib/unictype/categ_So.h: Likewise.
21494         * lib/unictype/categ_of.h: Likewise.
21495         * lib/unictype/combining.h: Likewise.
21496         * lib/unictype/ctype_alnum.h: Likewise.
21497         * lib/unictype/ctype_alpha.h: Likewise.
21498         * lib/unictype/ctype_graph.h: Likewise.
21499         * lib/unictype/ctype_lower.h: Likewise.
21500         * lib/unictype/ctype_print.h: Likewise.
21501         * lib/unictype/ctype_punct.h: Likewise.
21502         * lib/unictype/ctype_upper.h: Likewise.
21503         * lib/unictype/decdigit.h: Likewise.
21504         * lib/unictype/digit.h: Likewise.
21505         * lib/unictype/numeric.h: Likewise.
21506         * lib/unictype/pr_alphabetic.h: Likewise.
21507         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21508         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21509         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21510         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21511         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21512         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21513         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21514         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21515         * lib/unictype/pr_case_ignorable.h: Likewise.
21516         * lib/unictype/pr_cased.h: Likewise.
21517         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
21518         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
21519         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
21520         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
21521         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
21522         * lib/unictype/pr_combining.h: Likewise.
21523         * lib/unictype/pr_composite.h: Likewise.
21524         * lib/unictype/pr_currency_symbol.h: Likewise.
21525         * lib/unictype/pr_decimal_digit.h: Likewise.
21526         * lib/unictype/pr_deprecated.h: Likewise.
21527         * lib/unictype/pr_format_control.h: Likewise.
21528         * lib/unictype/pr_grapheme_base.h: Likewise.
21529         * lib/unictype/pr_grapheme_extend.h: Likewise.
21530         * lib/unictype/pr_grapheme_link.h: Likewise.
21531         * lib/unictype/pr_id_continue.h: Likewise.
21532         * lib/unictype/pr_id_start.h: Likewise.
21533         * lib/unictype/pr_ideographic.h: Likewise.
21534         * lib/unictype/pr_lowercase.h: Likewise.
21535         * lib/unictype/pr_math.h: Likewise.
21536         * lib/unictype/pr_numeric.h: Likewise.
21537         * lib/unictype/pr_other_alphabetic.h: Likewise.
21538         * lib/unictype/pr_other_id_continue.h: Likewise.
21539         * lib/unictype/pr_other_math.h: Likewise.
21540         * lib/unictype/pr_punctuation.h: Likewise.
21541         * lib/unictype/pr_sentence_terminal.h: Likewise.
21542         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21543         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21544         * lib/unictype/pr_unified_ideograph.h: Likewise.
21545         * lib/unictype/pr_uppercase.h: Likewise.
21546         * lib/unictype/pr_xid_continue.h: Likewise.
21547         * lib/unictype/pr_xid_start.h: Likewise.
21548         * lib/unictype/scripts.h: Likewise.
21549         * lib/unictype/scripts_byname.gperf: Likewise.
21550         * lib/unictype/sy_java_ident.h: Likewise.
21551         * lib/unigbrk/gbrkprop.h: Likewise.
21552         * lib/unilbrk/lbrkprop1.h: Likewise.
21553         * lib/unilbrk/lbrkprop2.h: Likewise.
21554         * lib/uninorm/decomposition-table2.h: Likewise.
21555         * lib/uniwbrk/wbrkprop.h: Likewise.
21556         * tests/unicase/test-cased.c: Likewise.
21557         * tests/unicase/test-ignorable.c: Likewise.
21558         * tests/unicase/test-uc_tolower.c: Likewise.
21559         * tests/unicase/test-uc_totitle.c: Likewise.
21560         * tests/unicase/test-uc_toupper.c: Likewise.
21561         * tests/unictype/test-categ_C.c: Likewise.
21562         * tests/unictype/test-categ_Cn.c: Likewise.
21563         * tests/unictype/test-categ_L.c: Likewise.
21564         * tests/unictype/test-categ_Ll.c: Likewise.
21565         * tests/unictype/test-categ_Lm.c: Likewise.
21566         * tests/unictype/test-categ_Lo.c: Likewise.
21567         * tests/unictype/test-categ_Lu.c: Likewise.
21568         * tests/unictype/test-categ_M.c: Likewise.
21569         * tests/unictype/test-categ_Mc.c: Likewise.
21570         * tests/unictype/test-categ_Me.c: Likewise.
21571         * tests/unictype/test-categ_Mn.c: Likewise.
21572         * tests/unictype/test-categ_N.c: Likewise.
21573         * tests/unictype/test-categ_Nd.c: Likewise.
21574         * tests/unictype/test-categ_No.c: Likewise.
21575         * tests/unictype/test-categ_P.c: Likewise.
21576         * tests/unictype/test-categ_Po.c: Likewise.
21577         * tests/unictype/test-categ_S.c: Likewise.
21578         * tests/unictype/test-categ_Sc.c: Likewise.
21579         * tests/unictype/test-categ_Sk.c: Likewise.
21580         * tests/unictype/test-categ_Sm.c: Likewise.
21581         * tests/unictype/test-categ_So.c: Likewise.
21582         * tests/unictype/test-ctype_alnum.c: Likewise.
21583         * tests/unictype/test-ctype_alpha.c: Likewise.
21584         * tests/unictype/test-ctype_graph.c: Likewise.
21585         * tests/unictype/test-ctype_lower.c: Likewise.
21586         * tests/unictype/test-ctype_print.c: Likewise.
21587         * tests/unictype/test-ctype_punct.c: Likewise.
21588         * tests/unictype/test-ctype_upper.c: Likewise.
21589         * tests/unictype/test-decdigit.h: Likewise.
21590         * tests/unictype/test-digit.h: Likewise.
21591         * tests/unictype/test-numeric.h: Likewise.
21592         * tests/unictype/test-pr_alphabetic.c: Likewise.
21593         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21594         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
21595         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
21596         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21597         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21598         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21599         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21600         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21601         * tests/unictype/test-pr_case_ignorable.c: Likewise.
21602         * tests/unictype/test-pr_cased.c: Likewise.
21603         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
21604         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
21605         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
21606         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
21607         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
21608         * tests/unictype/test-pr_combining.c: Likewise.
21609         * tests/unictype/test-pr_composite.c: Likewise.
21610         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21611         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21612         * tests/unictype/test-pr_deprecated.c: Likewise.
21613         * tests/unictype/test-pr_format_control.c: Likewise.
21614         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21615         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21616         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21617         * tests/unictype/test-pr_id_continue.c: Likewise.
21618         * tests/unictype/test-pr_id_start.c: Likewise.
21619         * tests/unictype/test-pr_ideographic.c: Likewise.
21620         * tests/unictype/test-pr_lowercase.c: Likewise.
21621         * tests/unictype/test-pr_math.c: Likewise.
21622         * tests/unictype/test-pr_numeric.c: Likewise.
21623         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21624         * tests/unictype/test-pr_other_id_continue.c: Likewise.
21625         * tests/unictype/test-pr_other_math.c: Likewise.
21626         * tests/unictype/test-pr_punctuation.c: Likewise.
21627         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21628         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21629         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21630         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21631         * tests/unictype/test-pr_uppercase.c: Likewise.
21632         * tests/unictype/test-pr_xid_continue.c: Likewise.
21633         * tests/unictype/test-pr_xid_start.c: Likewise.
21634         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21635         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21636         changes.
21637         * lib/unictype/categ_Cc.h: Likewise.
21638         * lib/unictype/categ_Cf.h: Likewise.
21639         * lib/unictype/categ_Co.h: Likewise.
21640         * lib/unictype/categ_Cs.h: Likewise.
21641         * lib/unictype/categ_Lt.h: Likewise.
21642         * lib/unictype/categ_Nl.h: Likewise.
21643         * lib/unictype/categ_Pc.h: Likewise.
21644         * lib/unictype/categ_Pd.h: Likewise.
21645         * lib/unictype/categ_Pe.h: Likewise.
21646         * lib/unictype/categ_Pf.h: Likewise.
21647         * lib/unictype/categ_Pi.h: Likewise.
21648         * lib/unictype/categ_Ps.h: Likewise.
21649         * lib/unictype/categ_Z.h: Likewise.
21650         * lib/unictype/categ_Zl.h: Likewise.
21651         * lib/unictype/categ_Zp.h: Likewise.
21652         * lib/unictype/categ_Zs.h: Likewise.
21653         * lib/unictype/ctype_blank.h: Likewise.
21654         * lib/unictype/ctype_cntrl.h: Likewise.
21655         * lib/unictype/ctype_digit.h: Likewise.
21656         * lib/unictype/ctype_space.h: Likewise.
21657         * lib/unictype/ctype_xdigit.h: Likewise.
21658         * lib/unictype/mirror.h: Likewise.
21659         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21660         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21661         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21662         * lib/unictype/pr_bidi_control.h: Likewise.
21663         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21664         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21665         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21666         * lib/unictype/pr_bidi_pdf.h: Likewise.
21667         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21668         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21669         * lib/unictype/pr_dash.h: Likewise.
21670         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21671         * lib/unictype/pr_diacritic.h: Likewise.
21672         * lib/unictype/pr_extender.h: Likewise.
21673         * lib/unictype/pr_hex_digit.h: Likewise.
21674         * lib/unictype/pr_hyphen.h: Likewise.
21675         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21676         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21677         * lib/unictype/pr_ignorable_control.h: Likewise.
21678         * lib/unictype/pr_iso_control.h: Likewise.
21679         * lib/unictype/pr_join_control.h: Likewise.
21680         * lib/unictype/pr_left_of_pair.h: Likewise.
21681         * lib/unictype/pr_line_separator.h: Likewise.
21682         * lib/unictype/pr_logical_order_exception.h: Likewise.
21683         * lib/unictype/pr_non_break.h: Likewise.
21684         * lib/unictype/pr_not_a_character.h: Likewise.
21685         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21686         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21687         * lib/unictype/pr_other_id_start.h: Likewise.
21688         * lib/unictype/pr_other_lowercase.h: Likewise.
21689         * lib/unictype/pr_other_uppercase.h: Likewise.
21690         * lib/unictype/pr_paired_punctuation.h: Likewise.
21691         * lib/unictype/pr_paragraph_separator.h: Likewise.
21692         * lib/unictype/pr_pattern_syntax.h: Likewise.
21693         * lib/unictype/pr_pattern_white_space.h: Likewise.
21694         * lib/unictype/pr_private_use.h: Likewise.
21695         * lib/unictype/pr_quotation_mark.h: Likewise.
21696         * lib/unictype/pr_radical.h: Likewise.
21697         * lib/unictype/pr_soft_dotted.h: Likewise.
21698         * lib/unictype/pr_space.h: Likewise.
21699         * lib/unictype/pr_titlecase.h: Likewise.
21700         * lib/unictype/pr_variation_selector.h: Likewise.
21701         * lib/unictype/pr_white_space.h: Likewise.
21702         * lib/unictype/pr_zero_width.h: Likewise.
21703         * lib/unictype/sy_c_ident.h: Likewise.
21704         * lib/unictype/sy_c_whitespace.h: Likewise.
21705         * lib/unictype/sy_java_whitespace.h: Likewise.
21706         * lib/uninorm/composition-table.gperf: Likewise.
21707         * lib/uninorm/decomposition-table1.h: Likewise.
21708         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
21709         LB8.
21710         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21711         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21712         * modules/unictype/*: Bump version number of expected libunistring
21713         version.
21714
21715 2011-01-09  Bruno Haible  <bruno@clisp.org>
21716
21717         Update to Unicode 5.2.0.
21718         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
21719         trailing whitespace removed.
21720
21721 2011-01-09  Bruno Haible  <bruno@clisp.org>
21722
21723         New Unicode character properties, from Unicode 5.2.0.
21724         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
21725         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
21726         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
21727         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
21728         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
21729         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
21730         uc_is_property_cased, uc_is_property_case_ignorable,
21731         uc_is_property_changes_when_lowercased,
21732         uc_is_property_changes_when_uppercased,
21733         uc_is_property_changes_when_titlecased,
21734         uc_is_property_changes_when_casefolded,
21735         uc_is_property_changes_when_casemapped): New declarations.
21736         * lib/unictype/pr_byname.gperf: Add the new properties.
21737         * modules/unictype/property-byname (Depends-on): Depend on the new
21738         properties modules.
21739         * modules/unictype/property-all (Depends-on): Likewise.
21740         * MODULES.html.sh (Unicode string functions): Add
21741         unictype/property-case-ignorable, unictype/property-cased,
21742         unictype/property-changes-when-casefolded,
21743         unictype/property-changes-when-casemapped,
21744         unictype/property-changes-when-lowercased,
21745         unictype/property-changes-when-titlecased,
21746         unictype/property-changes-when-uppercased.
21747
21748         New module 'unictype/property-changes-when-casemapped'.
21749         * modules/unictype/property-changes-when-casemapped: New file.
21750         * lib/unictype/pr_changes_when_casemapped.c: New file.
21751         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
21752         generated by gen-uni-tables.
21753         * modules/unictype/property-changes-when-casemapped-tests: New file.
21754         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
21755         automatically generated by gen-uni-tables.
21756
21757         New module 'unictype/property-changes-when-casefolded'.
21758         * modules/unictype/property-changes-when-casefolded: New file.
21759         * lib/unictype/pr_changes_when_casefolded.c: New file.
21760         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
21761         generated by gen-uni-tables.
21762         * modules/unictype/property-changes-when-casefolded-tests: New file.
21763         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
21764         automatically generated by gen-uni-tables.
21765
21766         New module 'unictype/property-changes-when-titlecased'.
21767         * modules/unictype/property-changes-when-titlecased: New file.
21768         * lib/unictype/pr_changes_when_titlecased.c: New file.
21769         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
21770         generated by gen-uni-tables.
21771         * modules/unictype/property-changes-when-titlecased-tests: New file.
21772         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
21773         automatically generated by gen-uni-tables.
21774
21775         New module 'unictype/property-changes-when-uppercased'.
21776         * modules/unictype/property-changes-when-uppercased: New file.
21777         * lib/unictype/pr_changes_when_uppercased.c: New file.
21778         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
21779         generated by gen-uni-tables.
21780         * modules/unictype/property-changes-when-uppercased-tests: New file.
21781         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
21782         automatically generated by gen-uni-tables.
21783
21784         New module 'unictype/property-changes-when-lowercased'.
21785         * modules/unictype/property-changes-when-lowercased: New file.
21786         * lib/unictype/pr_changes_when_lowercased.c: New file.
21787         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
21788         generated by gen-uni-tables.
21789         * modules/unictype/property-changes-when-lowercased-tests: New file.
21790         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
21791         automatically generated by gen-uni-tables.
21792
21793         New module 'unictype/property-case-ignorable'.
21794         * modules/unictype/property-case-ignorable: New file.
21795         * lib/unictype/pr_case_ignorable.c: New file.
21796         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
21797         by gen-uni-tables.
21798         * modules/unictype/property-case-ignorable-tests: New file.
21799         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
21800         generated by gen-uni-tables.
21801
21802         New module 'unictype/property-cased'.
21803         * modules/unictype/property-cased: New file.
21804         * lib/unictype/pr_cased.c: New file.
21805         * lib/unictype/pr_cased.h: New file, automatically generated by
21806         gen-uni-tables.
21807         * modules/unictype/property-cased-tests: New file.
21808         * tests/unictype/test-pr_cased.c: New file, automatically generated by
21809         gen-uni-tables.
21810
21811 2011-01-09  Bruno Haible  <bruno@clisp.org>
21812
21813         Update to Unicode 5.2.0.
21814         * lib/gen-uni-tables.c (output_predicate, output_category,
21815         output_combclass, output_bidi_category, output_decimal_digit_test,
21816         output_decimal_digit, output_digit_test, output_digit,
21817         output_numeric_test, output_numeric, output_mirror, output_scripts,
21818         output_scripts_byname, output_blocks, output_ident_category): Fix
21819         comment header.
21820         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
21821         get_wbp.
21822         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
21823         items.
21824         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
21825         Changes_When_Lowercased, Changes_When_Uppercased,
21826         Changes_When_Titlecased, Changes_When_Casefolded,
21827         Changes_When_Casemapped.
21828         (is_property_alphabetic, is_property_default_ignorable_code_point):
21829         Update for Unicode 5.2.0.
21830         (is_property_cased, is_property_case_ignorable,
21831         is_property_changes_when_lowercased,
21832         is_property_changes_when_uppercased,
21833         is_property_changes_when_titlecased,
21834         is_property_changes_when_casefolded,
21835         is_property_changes_when_casemapped): New functions.
21836         (output_properties): Output also the properties cased, case_ignorable,
21837         changes_when_lowercased, changes_when_uppercased,
21838         changes_when_titlecased, changes_when_casefolded,
21839         changes_when_casemapped.
21840         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
21841         Unicode TR#11 revision 17 -> 19.
21842         (LBP_CP): New enumeration value.
21843         (LBP_*): Adjust values accordingly.
21844         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21845         TR#14 revision 22 -> 24.
21846         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
21847         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
21848         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21849         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
21850         is_WBP_MIDLETTER.
21851         (output_composition_tables): Allow for 24 bits instead of 16 bits in
21852         the code1 and code2 of each composition rule.
21853         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
21854         * lib/unicase/ignorable.h: Likewise.
21855         * lib/unicase/tocasefold.h: Likewise.
21856         * lib/unicase/tolower.h: Likewise.
21857         * lib/unicase/totitle.h: Likewise.
21858         * lib/unicase/toupper.h: Likewise.
21859         * lib/unictype/bidi_of.h: Likewise.
21860         * lib/unictype/blocks.h: Likewise.
21861         * lib/unictype/categ_C.h: Likewise.
21862         * lib/unictype/categ_Cf.h: Likewise.
21863         * lib/unictype/categ_Cn.h: Likewise.
21864         * lib/unictype/categ_L.h: Likewise.
21865         * lib/unictype/categ_Ll.h: Likewise.
21866         * lib/unictype/categ_Lm.h: Likewise.
21867         * lib/unictype/categ_Lo.h: Likewise.
21868         * lib/unictype/categ_Lu.h: Likewise.
21869         * lib/unictype/categ_M.h: Likewise.
21870         * lib/unictype/categ_Mc.h: Likewise.
21871         * lib/unictype/categ_Mn.h: Likewise.
21872         * lib/unictype/categ_N.h: Likewise.
21873         * lib/unictype/categ_Nd.h: Likewise.
21874         * lib/unictype/categ_Nl.h: Likewise.
21875         * lib/unictype/categ_No.h: Likewise.
21876         * lib/unictype/categ_P.h: Likewise.
21877         * lib/unictype/categ_Pd.h: Likewise.
21878         * lib/unictype/categ_Po.h: Likewise.
21879         * lib/unictype/categ_S.h: Likewise.
21880         * lib/unictype/categ_Sc.h: Likewise.
21881         * lib/unictype/categ_So.h: Likewise.
21882         * lib/unictype/categ_of.h: Likewise.
21883         * lib/unictype/combining.h: Likewise.
21884         * lib/unictype/ctype_alnum.h: Likewise.
21885         * lib/unictype/ctype_alpha.h: Likewise.
21886         * lib/unictype/ctype_graph.h: Likewise.
21887         * lib/unictype/ctype_lower.h: Likewise.
21888         * lib/unictype/ctype_print.h: Likewise.
21889         * lib/unictype/ctype_punct.h: Likewise.
21890         * lib/unictype/ctype_upper.h: Likewise.
21891         * lib/unictype/decdigit.h: Likewise.
21892         * lib/unictype/digit.h: Likewise.
21893         * lib/unictype/numeric.h: Likewise.
21894         * lib/unictype/pr_alphabetic.h: Likewise.
21895         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21896         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21897         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21898         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21899         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21900         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21901         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21902         * lib/unictype/pr_combining.h: Likewise.
21903         * lib/unictype/pr_composite.h: Likewise.
21904         * lib/unictype/pr_currency_symbol.h: Likewise.
21905         * lib/unictype/pr_dash.h: Likewise.
21906         * lib/unictype/pr_decimal_digit.h: Likewise.
21907         * lib/unictype/pr_deprecated.h: Likewise.
21908         * lib/unictype/pr_diacritic.h: Likewise.
21909         * lib/unictype/pr_extender.h: Likewise.
21910         * lib/unictype/pr_grapheme_base.h: Likewise.
21911         * lib/unictype/pr_grapheme_extend.h: Likewise.
21912         * lib/unictype/pr_grapheme_link.h: Likewise.
21913         * lib/unictype/pr_id_continue.h: Likewise.
21914         * lib/unictype/pr_id_start.h: Likewise.
21915         * lib/unictype/pr_ideographic.h: Likewise.
21916         * lib/unictype/pr_ignorable_control.h: Likewise.
21917         * lib/unictype/pr_logical_order_exception.h: Likewise.
21918         * lib/unictype/pr_lowercase.h: Likewise.
21919         * lib/unictype/pr_numeric.h: Likewise.
21920         * lib/unictype/pr_other_alphabetic.h: Likewise.
21921         * lib/unictype/pr_punctuation.h: Likewise.
21922         * lib/unictype/pr_sentence_terminal.h: Likewise.
21923         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21924         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21925         * lib/unictype/pr_unified_ideograph.h: Likewise.
21926         * lib/unictype/pr_uppercase.h: Likewise.
21927         * lib/unictype/pr_xid_continue.h: Likewise.
21928         * lib/unictype/pr_xid_start.h: Likewise.
21929         * lib/unictype/pr_zero_width.h: Likewise.
21930         * lib/unictype/scripts.h: Likewise.
21931         * lib/unictype/scripts_byname.gperf: Likewise.
21932         * lib/unictype/sy_java_ident.h: Likewise.
21933         * lib/unigbrk/gbrkprop.h: Likewise.
21934         * lib/unilbrk/lbrkprop1.h: Likewise.
21935         * lib/unilbrk/lbrkprop2.h: Likewise.
21936         * lib/unilbrk/lbrktables.h: Likewise.
21937         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
21938         LBP_CP. Implement rule LB30.
21939         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
21940         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
21941         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
21942         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
21943         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
21944         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
21945         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
21946         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
21947         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
21948         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
21949         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
21950         bits instead of 16 bits in the code1 and code2 of each composition
21951         rule.
21952         (uc_composition): Update for Unicode 5.2.0.
21953         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
21954         * lib/uninorm/decomposition-table2.h: Likewise.
21955         * lib/uniwbrk/wbrkprop.h: Likewise.
21956         * tests/unicase/test-cased.c: Likewise.
21957         * tests/unicase/test-ignorable.c: Likewise.
21958         * tests/unicase/test-uc_tolower.c: Likewise.
21959         * tests/unicase/test-uc_totitle.c: Likewise.
21960         * tests/unicase/test-uc_toupper.c: Likewise.
21961         * tests/unictype/test-categ_C.c: Likewise.
21962         * tests/unictype/test-categ_Cf.c: Likewise.
21963         * tests/unictype/test-categ_Cn.c: Likewise.
21964         * tests/unictype/test-categ_L.c: Likewise.
21965         * tests/unictype/test-categ_Ll.c: Likewise.
21966         * tests/unictype/test-categ_Lm.c: Likewise.
21967         * tests/unictype/test-categ_Lo.c: Likewise.
21968         * tests/unictype/test-categ_Lu.c: Likewise.
21969         * tests/unictype/test-categ_M.c: Likewise.
21970         * tests/unictype/test-categ_Mc.c: Likewise.
21971         * tests/unictype/test-categ_Mn.c: Likewise.
21972         * tests/unictype/test-categ_N.c: Likewise.
21973         * tests/unictype/test-categ_Nd.c: Likewise.
21974         * tests/unictype/test-categ_Nl.c: Likewise.
21975         * tests/unictype/test-categ_No.c: Likewise.
21976         * tests/unictype/test-categ_P.c: Likewise.
21977         * tests/unictype/test-categ_Pd.c: Likewise.
21978         * tests/unictype/test-categ_Po.c: Likewise.
21979         * tests/unictype/test-categ_S.c: Likewise.
21980         * tests/unictype/test-categ_Sc.c: Likewise.
21981         * tests/unictype/test-categ_So.c: Likewise.
21982         * tests/unictype/test-ctype_alnum.c: Likewise.
21983         * tests/unictype/test-ctype_alpha.c: Likewise.
21984         * tests/unictype/test-ctype_graph.c: Likewise.
21985         * tests/unictype/test-ctype_lower.c: Likewise.
21986         * tests/unictype/test-ctype_print.c: Likewise.
21987         * tests/unictype/test-ctype_punct.c: Likewise.
21988         * tests/unictype/test-ctype_upper.c: Likewise.
21989         * tests/unictype/test-decdigit.h: Likewise.
21990         * tests/unictype/test-digit.h: Likewise.
21991         * tests/unictype/test-numeric.h: Likewise.
21992         * tests/unictype/test-pr_alphabetic.c: Likewise.
21993         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21994         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21995         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
21996         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21997         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21998         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21999         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22000         * tests/unictype/test-pr_combining.c: Likewise.
22001         * tests/unictype/test-pr_composite.c: Likewise.
22002         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22003         * tests/unictype/test-pr_dash.c: Likewise.
22004         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22005         * tests/unictype/test-pr_deprecated.c: Likewise.
22006         * tests/unictype/test-pr_diacritic.c: Likewise.
22007         * tests/unictype/test-pr_extender.c: Likewise.
22008         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22009         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22010         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22011         * tests/unictype/test-pr_id_continue.c: Likewise.
22012         * tests/unictype/test-pr_id_start.c: Likewise.
22013         * tests/unictype/test-pr_ideographic.c: Likewise.
22014         * tests/unictype/test-pr_ignorable_control.c: Likewise.
22015         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
22016         * tests/unictype/test-pr_lowercase.c: Likewise.
22017         * tests/unictype/test-pr_numeric.c: Likewise.
22018         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22019         * tests/unictype/test-pr_punctuation.c: Likewise.
22020         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22021         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22022         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22023         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22024         * tests/unictype/test-pr_uppercase.c: Likewise.
22025         * tests/unictype/test-pr_xid_continue.c: Likewise.
22026         * tests/unictype/test-pr_xid_start.c: Likewise.
22027         * tests/unictype/test-pr_zero_width.c: Likewise.
22028         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22029         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
22030         changed behaviour: line breaking is now disallowed between a letter
22031         or '=' and '('.
22032         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22033         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22034         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
22035         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
22036         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22037         lib/uniwidth/width.c.
22038         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
22039         without comments, but with the original copyright notice.
22040         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22041         changes.
22042         * lib/unictype/categ_Cc.h: Likewise.
22043         * lib/unictype/categ_Co.h: Likewise.
22044         * lib/unictype/categ_Cs.h: Likewise.
22045         * lib/unictype/categ_Lt.h: Likewise.
22046         * lib/unictype/categ_Me.h: Likewise.
22047         * lib/unictype/categ_Pc.h: Likewise.
22048         * lib/unictype/categ_Pe.h: Likewise.
22049         * lib/unictype/categ_Pf.h: Likewise.
22050         * lib/unictype/categ_Pi.h: Likewise.
22051         * lib/unictype/categ_Ps.h: Likewise.
22052         * lib/unictype/categ_Sk.h: Likewise.
22053         * lib/unictype/categ_Sm.h: Likewise.
22054         * lib/unictype/categ_Z.h: Likewise.
22055         * lib/unictype/categ_Zl.h: Likewise.
22056         * lib/unictype/categ_Zp.h: Likewise.
22057         * lib/unictype/categ_Zs.h: Likewise.
22058         * lib/unictype/ctype_blank.h: Likewise.
22059         * lib/unictype/ctype_cntrl.h: Likewise.
22060         * lib/unictype/ctype_digit.h: Likewise.
22061         * lib/unictype/ctype_space.h: Likewise.
22062         * lib/unictype/ctype_xdigit.h: Likewise.
22063         * lib/unictype/mirror.h: Likewise.
22064         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22065         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22066         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22067         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22068         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22069         * lib/unictype/pr_bidi_control.h: Likewise.
22070         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22071         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22072         * lib/unictype/pr_bidi_pdf.h: Likewise.
22073         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22074         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22075         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22076         * lib/unictype/pr_format_control.h: Likewise.
22077         * lib/unictype/pr_hex_digit.h: Likewise.
22078         * lib/unictype/pr_hyphen.h: Likewise.
22079         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22080         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22081         * lib/unictype/pr_iso_control.h: Likewise.
22082         * lib/unictype/pr_join_control.h: Likewise.
22083         * lib/unictype/pr_left_of_pair.h: Likewise.
22084         * lib/unictype/pr_line_separator.h: Likewise.
22085         * lib/unictype/pr_math.h: Likewise.
22086         * lib/unictype/pr_non_break.h: Likewise.
22087         * lib/unictype/pr_not_a_character.h: Likewise.
22088         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22089         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22090         * lib/unictype/pr_other_id_continue.h: Likewise.
22091         * lib/unictype/pr_other_id_start.h: Likewise.
22092         * lib/unictype/pr_other_lowercase.h: Likewise.
22093         * lib/unictype/pr_other_math.h: Likewise.
22094         * lib/unictype/pr_other_uppercase.h: Likewise.
22095         * lib/unictype/pr_paired_punctuation.h: Likewise.
22096         * lib/unictype/pr_paragraph_separator.h: Likewise.
22097         * lib/unictype/pr_pattern_syntax.h: Likewise.
22098         * lib/unictype/pr_pattern_white_space.h: Likewise.
22099         * lib/unictype/pr_private_use.h: Likewise.
22100         * lib/unictype/pr_quotation_mark.h: Likewise.
22101         * lib/unictype/pr_radical.h: Likewise.
22102         * lib/unictype/pr_soft_dotted.h: Likewise.
22103         * lib/unictype/pr_space.h: Likewise.
22104         * lib/unictype/pr_titlecase.h: Likewise.
22105         * lib/unictype/pr_variation_selector.h: Likewise.
22106         * lib/unictype/pr_white_space.h: Likewise.
22107         * lib/unictype/sy_c_ident.h: Likewise.
22108         * lib/unictype/sy_c_whitespace.h: Likewise.
22109         * lib/unictype/sy_java_whitespace.h: Likewise.
22110         * modules/uni*/*: Bump version number of expected libunistring version.
22111         Reported by Simon Josefsson.
22112
22113 2011-01-09  Karl Heuer  <kwzh@gnu.org>
22114
22115         useless-if-before-free: fix typo in --help and make the internal,
22116         automatic version date update process work once again.
22117         --help output contained a NUL character instead of the
22118         backslash-zero that was intended.  Also, the "must lie within
22119         the first 8 lines" line is on line 9, and hence not getting
22120         automatically updated.
22121         * build-aux/useless-if-before-free: Fix the former by adding a
22122         backslash, and the latter by condensing the three lines of what-it-does
22123         to a single line, leaving one line of slack for the future.
22124
22125 2011-01-09  Bruno Haible  <bruno@clisp.org>
22126
22127         uniwidth/width: Fix width of U+1D173..U+1D17A.
22128         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
22129         symbolic_width, output_width_property_test): New functions.
22130         (main): Invoke output_nonspacing_property, output_width_property_test.
22131         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
22132         U+1D173..U+1D17A.
22133         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
22134         1.
22135         * modules/uniwidth/*: Bump version number of expected libunistring
22136         version.
22137         * modules/unilbrk/*: Likewise.
22138
22139 2011-01-08  Bruno Haible  <bruno@clisp.org>
22140
22141         uninorm tests: Preserve copyright of Unicode data file.
22142         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
22143         Mention modifications.
22144
22145 2011-01-08  Bruno Haible  <bruno@clisp.org>
22146
22147         gen-uni-tables: Prepare for Unicode 5.2.0.
22148         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
22149         (debug_output_lbp, output_lbp): Update.
22150
22151 2011-01-08  Bruno Haible  <bruno@clisp.org>
22152
22153         unilbrk: Clarify gen-uni-tables.c code.
22154         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
22155         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
22156         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
22157
22158 2011-01-07  Bruno Haible  <bruno@clisp.org>
22159
22160         strtod: Restore errno when successfully parsing Infinity or NaN.
22161         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
22162         restore the original errno.
22163
22164 2011-01-07  Bruno Haible  <bruno@clisp.org>
22165
22166         remove test: Avoid failure on HP-UX 11.
22167         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
22168
22169 2011-01-07  Bruno Haible  <bruno@clisp.org>
22170
22171         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
22172         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
22173         error code.
22174
22175 2011-01-07  Pádraig Brady <P@draigBrady.com>
22176
22177         ignore-value: fixup comments, and add Eric Blake
22178         as an author since he rewrote the macros.
22179         * lib/ignore-value.h (ignore_value):  State that
22180         we now support aggregates.  Also specify exactly
22181         when the GCC warn_unused_result feature was added.
22182
22183 2011-01-06  Eric Blake  <eblake@redhat.com>
22184
22185         ignore-value: support aggregate types
22186         * lib/ignore-value.h (ignore_value): Provide separate gcc
22187         definition.
22188         * modules/ignore-value-tests: New test module.
22189         * tests/test-ignore-value.c: New test.
22190
22191         maint.mk: improve sc_prohibit_strcmp regex
22192         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
22193         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
22194         definition of STRNEQ.
22195
22196         signal: work around Haiku issue with SIGBUS
22197         * lib/siglist.h: Add comment.
22198         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
22199         strsignal's favoring of SIGSEGV.
22200         * tests/test-signal.c (main): Avoid test failure.
22201         * doc/posix-headers/signal.texi (signal.h): Document the issue.
22202         Reported by Scott McCreary.
22203
22204         maint.mk: add pre-release check to ensure submodule commits are public
22205         * top/maint.mk (public-submodule-commit): New rule.
22206         (submodule-checks): New variable.
22207         (alpha beta stable): Depend on the variable.
22208
22209 2011-01-05  Pádraig Brady <P@draigBrady.com>
22210         and Jim Meyering  <meyering@redhat.com>
22211
22212         ignore-value: make ignore_value more generic; deprecate ignore_ptr
22213         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
22214         (ATTRIBUTE_DEPRECATED): Define.
22215         (_ignore_case): New function.
22216         (ignore_value): New macro, to replace the old function.
22217         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
22218         * modules/ignore-value (Depends-on): Add stdint.
22219
22220 2011-01-04  Eric Blake  <eblake@redhat.com>
22221
22222         doc: regenerate INSTALL
22223         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
22224         @firstparagraphindent support, now that autoconf dropped it.
22225         (INSTALL_PRELUDE): Reinstate old macro.
22226         * doc/install.texi: Resync from autoconf.
22227         * doc/INSTALL: Reflect recent autoconf update.
22228         * doc/INSTALL.ISO: Likewise.
22229         * doc/INSTALL.UTF-8: Likewise.
22230         Reported by Karl Berry.
22231
22232 2011-01-04  Bruce Korb  <address@hidden>
22233
22234         git-version-gen: avoid a sub-shell
22235         * build-aux/git-version-gen: Redirect stderr in `...` via
22236         "exec 2>...", rather than via an added sub-shell.
22237
22238 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
22239
22240         git-version-gen: use (...) rather than sh -c '...'
22241         * build-aux/git-version-gen: Rather than hard-coding a shell's name
22242         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
22243
22244 2011-01-03  Jim Meyering  <meyering@redhat.com>
22245
22246         git-version-gen: convert leading TABs to spaces
22247         * build-aux/git-version-gen: Expand leading TABs.
22248
22249         git-version-gen: handle failed "git rev-list"
22250         * build-aux/git-version-gen: Rather than leaking a "fatal" error
22251         from git and proceeding as if it had succeeded but printed no SHA1
22252         checksums, suppress the diagnostic and handle the failure.
22253         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
22254
22255         git-version-gen: include command name in one more diagnostic
22256         * build-aux/git-version-gen: When the required .tarball-version file
22257         was missing or unreadable, you might see the diagnostic from "cat",
22258         but no trace of the name of the invoking script.  Now, you still see
22259         the diagnostic from cat, but also get one from "git-version-gen: ".
22260         Inspired by a patch from Bruce Korb.
22261
22262         update-copyright: adjust test to match changed code
22263         * tests/test-update-copyright.sh: Change test's expected output
22264         to match new actual output.
22265
22266 2011-01-02  Bruno Haible  <bruno@clisp.org>
22267
22268         getlogin_r: Avoid test failure on HP-UX 11.
22269         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
22270         ERANGE when the second argument is zero.
22271         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
22272         portability problem.
22273
22274 2011-01-02  Bruce Korb  <bkorb@gnu.org>
22275
22276         * build-aux/update-copyright: doc Simon's changes
22277
22278 2011-01-02  Simon Josefsson  <simon@josefsson.org>
22279
22280         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
22281         environment variable.
22282
22283 2011-01-02  Bruno Haible  <bruno@clisp.org>
22284
22285         unigbrk: Avoid gcc warnings.
22286         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
22287         unused variable.
22288         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
22289         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
22290         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
22291         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
22292         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
22293         Change type of first argument to 'const char *'.
22294         (main): Remove unused variable.
22295         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
22296         type of first argument to 'const char *'.
22297         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
22298         Likewise.
22299         (main): Change type of variable 's'.
22300         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
22301         to 'int'.
22302
22303 2011-01-02  Bruno Haible  <bruno@clisp.org>
22304
22305         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
22306         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
22307         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
22308         bug.
22309         * lib/pwrite.c: Undo 2010-12-31 patch.
22310         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
22311
22312 2011-01-02  Bruno Haible  <bruno@clisp.org>
22313
22314         pread: Fix test whether it works.
22315         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
22316
22317 2011-01-02  Bruno Haible  <bruno@clisp.org>
22318
22319         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
22320         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
22321         ends in "6". Don't require a specific month name. Try also the locale
22322         names found on HP-UX 11 and Solaris 7.
22323
22324 2011-01-02  Bruno Haible  <bruno@clisp.org>
22325
22326         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
22327         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
22328         C linkage.
22329         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
22330
22331 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22332
22333         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
22334         for consistency, since the "cluster" term is not used elsewhere.
22335         * lib/unigbrk.in.h: Update name.
22336         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
22337         * lib/unigbrk/u16-grapheme-next.c: Update name.
22338         * lib/unigbrk/u16-grapheme-prev.c: Update name.
22339         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
22340         * lib/unigbrk/u32-grapheme-next.c: Update name.
22341         * lib/unigbrk/u32-grapheme-prev.c: Update name.
22342         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
22343         * lib/unigbrk/u8-grapheme-next.c: Update name.
22344         * lib/unigbrk/u8-grapheme-prev.c: Update name.
22345         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
22346         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
22347         Suggested by Bruno Haible.
22348
22349 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22350
22351         Remove module 'u8-grapheme-len' as too redundant with
22352         'u8-grapheme-next'.
22353         * modules/unigbrk/u8-grapheme-len: Delete file.
22354         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
22355         * lib/unigbrk.in.h: Remove prototype for deleted function.
22356         * lib/unigbrk/u8-grapheme-len.c: Delete file.
22357         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
22358
22359         Remove module 'u16-grapheme-len' as too redundant with
22360         'u16-grapheme-next'.
22361         * modules/unigbrk/u16-grapheme-len: Delete file.
22362         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
22363         * lib/unigbrk.in.h: Remove prototype for deleted function.
22364         * lib/unigbrk/u16-grapheme-len.c: Delete file.
22365         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
22366
22367         Remove module 'u32-grapheme-len' as too redundant with
22368         'u32-grapheme-next'.
22369         * modules/unigbrk/u32-grapheme-len: Delete file.
22370         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
22371         * lib/unigbrk.in.h: Remove prototype for deleted function.
22372         * lib/unigbrk/u32-grapheme-len.c: Delete file.
22373         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
22374
22375         Suggested by Bruno Haible.
22376
22377 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22378
22379         * unigbrk.in.h: Fix typo: "ben" => "been".
22380         Reported by Bruno Haible.
22381
22382 2011-01-01  Jim Meyering  <meyering@redhat.com>
22383
22384         maint: update almost all copyright ranges to include 2011
22385         Run the new "make update-copyright" rule.
22386
22387 2011-01-01  Jim Meyering  <meyering@redhat.com>
22388
22389         maint: update-copyright: exempt doc/INSTALL*
22390         * Makefile (update-copyright): Also exclude doc/INSTALL*,
22391         since they are generated.  Suggested by Bruno Haible.
22392
22393 2011-01-01  Jim Meyering  <meyering@redhat.com>
22394
22395         maint: refine the update-copyright rule
22396         * Makefile (update-copyright): Also exclude any file that includes
22397         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
22398         code that merely generates the comment.
22399
22400 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22401
22402         New module 'u8-grapheme-len'.
22403         * modules/unigbrk/u8-grapheme-len: New file.
22404         * modules/unigbrk/u8-grapheme-len-tests: New file.
22405         * lib/unigbrk.in.h: Add prototype for new function.
22406         * lib/unigbrk/u8-grapheme-len.c: New file.
22407         * tests/unigbrk/test-u8-grapheme-len.c: New file.
22408
22409         New module 'u16-grapheme-len'.
22410         * modules/unigbrk/u16-grapheme-len: New file.
22411         * modules/unigbrk/u16-grapheme-len-tests: New file.
22412         * lib/unigbrk.in.h: Add prototype for new function.
22413         * lib/unigbrk/u16-grapheme-len.c: New file.
22414         * tests/unigbrk/test-u16-grapheme-len.c: New file.
22415
22416         New module 'u32-grapheme-len'.
22417         * modules/unigbrk/u32-grapheme-len: New file.
22418         * modules/unigbrk/u32-grapheme-len-tests: New file.
22419         * lib/unigbrk.in.h: Add prototype for new function.
22420         * lib/unigbrk/u32-grapheme-len.c: New file.
22421         * tests/unigbrk/test-u32-grapheme-len.c: New file.
22422
22423         New module 'u8-grapheme-next'.
22424         * modules/unigbrk/u8-grapheme-next: New file.
22425         * modules/unigbrk/u8-grapheme-next-tests: New file.
22426         * lib/unigbrk.in.h: Add prototype for new function.
22427         * lib/unigbrk/u8-grapheme-next.c: New file.
22428         * tests/unigbrk/test-u8-grapheme-next.c: New file.
22429
22430         New module 'u16-grapheme-next'.
22431         * modules/unigbrk/u16-grapheme-next: New file.
22432         * modules/unigbrk/u16-grapheme-next-tests: New file.
22433         * lib/unigbrk.in.h: Add prototype for new function.
22434         * lib/unigbrk/u16-grapheme-next.c: New file.
22435         * tests/unigbrk/test-u16-grapheme-next.c: New file.
22436
22437         New module 'u32-grapheme-next'.
22438         * modules/unigbrk/u32-grapheme-next: New file.
22439         * modules/unigbrk/u32-grapheme-next-tests: New file.
22440         * lib/unigbrk.in.h: Add prototype for new function.
22441         * lib/unigbrk/u32-grapheme-next.c: New file.
22442         * tests/unigbrk/test-u32-grapheme-next.c: New file.
22443
22444         New module 'u8-grapheme-prev'.
22445         * modules/unigbrk/u8-grapheme-prev: New file.
22446         * modules/unigbrk/u8-grapheme-prev-tests: New file.
22447         * lib/unigbrk.in.h: Add prototype for new function.
22448         * lib/unigbrk/u8-grapheme-prev.c: New file.
22449         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
22450
22451         New module 'u16-grapheme-prev'.
22452         * modules/unigbrk/u16-grapheme-prev: New file.
22453         * modules/unigbrk/u16-grapheme-prev-tests: New file.
22454         * lib/unigbrk.in.h: Add prototype for new function.
22455         * lib/unigbrk/u16-grapheme-prev.c: New file.
22456         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
22457
22458         New module 'u32-grapheme-prev'.
22459         * modules/unigbrk/u32-grapheme-prev: New file.
22460         * modules/unigbrk/u32-grapheme-prev-tests: New file.
22461         * lib/unigbrk.in.h: Add prototype for new function.
22462         * lib/unigbrk/u32-grapheme-prev.c: New file.
22463         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
22464
22465         New module 'u8-grapheme-breaks'.
22466         * modules/unigbrk/u8-grapheme-breaks: New file.
22467         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
22468         * lib/unigbrk.in.h: Add prototype for new function.
22469         * lib/unigbrk/u8-grapheme-breaks.c: New file.
22470         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
22471
22472         New module 'u16-grapheme-breaks'.
22473         * modules/unigbrk/u16-grapheme-breaks: New file.
22474         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
22475         * lib/unigbrk.in.h: Add prototype for new function.
22476         * lib/unigbrk/u16-grapheme-breaks.c: New file.
22477         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
22478
22479         New module 'u32-grapheme-breaks'.
22480         * modules/unigbrk/u32-grapheme-breaks: New file.
22481         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
22482         * lib/unigbrk.in.h: Add prototype for new function.
22483         * lib/unigbrk/u32-grapheme-breaks.c: New file.
22484         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
22485
22486         New module 'ulc-grapheme-breaks'.
22487         * modules/unigbrk/ulc-grapheme-breaks: New file.
22488         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
22489         * m4/locale-ar.m4: New file.
22490         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
22491         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
22492         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
22493
22494 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22495
22496         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
22497         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
22498         modified how this file was generated before I initially submitted
22499         the module, but failed to regenerate it.  This meant that several
22500         of the level2 entries were wrong.
22501         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
22502         Remove the division-by-2 that is folded into the table now that
22503         gbrkprop.h has been regenerated properly.  Now -1 entries are
22504         handled correctly.
22505
22506         New module 'unigbrk/uc-gbrk-prop-tests'.
22507         * modules/unigbrk/uc-gbrk-prop-tests: New file.
22508         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
22509         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
22510         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
22511
22512 2011-01-01  Bruno Haible  <bruno@clisp.org>
22513
22514         Avoid use of hexadecimal escapes.
22515         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
22516         instead of hexadecimal escapes.
22517
22518 2011-01-01  Jim Meyering  <meyering@redhat.com>
22519
22520         maint: new rule to update copyright year ranges
22521         * Makefile (update-copyright): New rule.
22522
22523         maint: indent with TABs in Makefile
22524         * Makefile: Expand leading sequences of spaces to TABs
22525
22526         version-etc: update the copyright year it reports
22527         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
22528
22529 2010-12-31  Bruno Haible  <bruno@clisp.org>
22530
22531         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
22532         * lib/isfinite.c (zerof, zerod, zerol): New variables.
22533         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
22534         zero.
22535
22536 2010-12-31  Bruno Haible  <bruno@clisp.org>
22537
22538         pwrite: Work around HP-UX 11.11 bug.
22539         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
22540         works and set REPLACE_PWRITE if not.
22541         * lib/pwrite.c (pwrite): Add an implementation that uses the system
22542         function.
22543         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
22544
22545 2010-12-31  Bruno Haible  <bruno@clisp.org>
22546
22547         pread: Work around HP-UX 11 bugs.
22548         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
22549         and set REPLACE_PREAD if not.
22550         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
22551
22552 2010-12-31  Eric Blake  <eblake@redhat.com>
22553
22554         nl_langinfo: fix YESEXPR on Irix 6.5
22555         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
22556         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
22557         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
22558         it.
22559
22560 2010-12-31  Bruno Haible  <bruno@clisp.org>
22561
22562         iconv: Document HP-UX 11 bug.
22563         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
22564
22565 2010-12-31  Bruno Haible  <bruno@clisp.org>
22566
22567         ldexpl: Fix link error on HP-UX 11.
22568         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
22569         LDEXPL_LIBM, using $ISNANL_LIBM.
22570
22571 2010-12-31  Eric Blake  <eblake@redhat.com>
22572
22573         ftello: avoid compilation failure with SunStudio c89
22574         * lib/ftello.c (ftello): Use lseek, not llseek.
22575
22576         tests: avoid failing coreutils tests on cygwin
22577         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
22578         (create_exe_shims_): Return 0 when skipping.
22579
22580 2010-12-31  Bruno Haible  <bruno@clisp.org>
22581
22582         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
22583         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
22584
22585 2010-12-31  Bruno Haible  <bruno@clisp.org>
22586
22587         waitpid: Fix link error in C++ mode.
22588         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
22589
22590 2010-12-31  Bruno Haible  <bruno@clisp.org>
22591
22592         isnan: Use GCC built-ins when possible.
22593         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
22594         __builtin_isnan.
22595         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
22596         (isnan): Define using GCC built-ins for GCC >= 4.0.
22597
22598 2010-12-31  Bruno Haible  <bruno@clisp.org>
22599
22600         isnand: Fix mistake.
22601         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
22602         __builtin_isnand.
22603
22604 2010-12-31  Bruno Haible  <bruno@clisp.org>
22605
22606         open: Avoid C++ error on HP-UX 11.
22607         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
22608
22609 2010-12-31  Bruno Haible  <bruno@clisp.org>
22610
22611         time_r: Add missing declarations on HP-UX 11.
22612         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
22613         instead of HAVE_LOCALTIME_R.
22614         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
22615         HAVE_LOCALTIME_R always.
22616         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
22617         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
22618         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
22619         HAVE_LOCALTIME_R.
22620         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
22621         * doc/posix-functions/localtime_r.texi: Likewise.
22622
22623 2010-12-29  Eric Blake  <eblake@redhat.com>
22624
22625         mountlist: tweak previous commit
22626         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
22627         Reported by Paul Eggert.
22628
22629         mountlist: fix local drive detection on cygwin
22630         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
22631         that works for cygwin.
22632
22633 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22634
22635         ftoastr, snprintf: ftoastr + snprintf module
22636         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
22637         since the snprintf module now should be good enough here.
22638         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
22639         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
22640         and gl_MODULE_INDICATOR([snprintf]), but the former enables
22641         GNULIB_SNPRINTF only for the test directory, and the latter
22642         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
22643         seems to suffice by itself.
22644
22645 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
22646
22647         alloca: one step towards thread-safety
22648         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
22649         need for a static variable.  All callers changed.  This does not
22650         make the alloca replacement thread-safe, but it's one step.
22651
22652         tests: minor indenting change
22653         * tests/init.sh: Sync from coreutils housekeeping patch
22654         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
22655         to keep lines within 80 columns.
22656
22657 2010-12-28  Jim Meyering  <meyering@redhat.com>
22658
22659         regex: don't infloop on persistent failing calloc
22660         * lib/regexec.c (build_trtable): Return failure indication upon
22661         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
22662         In glibc, this was fixed for version 2.13:
22663         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
22664
22665 2010-12-28  Bruno Haible  <bruno@clisp.org>
22666             Paul Eggert <eggert@cs.ucla.edu>
22667
22668         linkat: Make implementation robust against system behaviour variations.
22669         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
22670         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
22671         way, and to -2 if it needs a generic runtime test.
22672         * lib/linkat.c (solaris_optimized_link_immediate,
22673         solaris_optimized_link_follow): New functions.
22674         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
22675         (check_same_link): Use it.
22676
22677 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
22678
22679         New module 'unigbrk/base'.
22680         * modules/unigbrk/base: New file.
22681         * lib/unigbrk.in.h: New file.
22682
22683         New module 'unigbrk/uc-gbrk-prop'.
22684         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
22685         * modules/unigbrk/uc-gbrk-prop: New file.
22686         * lib/unigbrk/gbrkprop.h: New file.
22687         * lib/unigbrk/uc-gbrk-prop.c: New file.
22688
22689         New module 'unigbrk/uc-is-grapheme-break'.
22690         * modules/unigbrk/uc-is-grapheme-break: New file.
22691         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
22692         * lib/unigbrk/uc-is-grapheme-break.c: New file.
22693         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
22694         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
22695         * tests/unigbrk/GraphemeBreakTest.txt: New file.
22696
22697         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
22698
22699 2010-12-27  Bruno Haible  <bruno@clisp.org>
22700
22701         linkat test: Avoid failure on Solaris 11 2010-11.
22702         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
22703
22704 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22705
22706         utimens: work around glibc rounding bug on more platforms
22707         * lib/utimens.c (fdutimens): Work around rounding bug even if
22708         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
22709         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
22710
22711 2010-12-27  Bruno Haible  <bruno@clisp.org>
22712
22713         select tests: Improve comments.
22714         * tests/test-select.c (do_select): Add comments.
22715
22716 2010-12-27  Bruno Haible  <bruno@clisp.org>
22717
22718         select tests: Safer way of handling timeout.
22719         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
22720         at every invocation.
22721
22722 2010-12-27  Bruno Haible  <bruno@clisp.org>
22723
22724         select tests: Use 'bool' where appropriate.
22725         * tests/test-select.c (connect_to_socket): Change argument type to
22726         'bool'.
22727
22728 2010-12-27  Bruno Haible  <bruno@clisp.org>
22729
22730         select tests: Use existing modules.
22731         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
22732         (configure.ac): Don't test for unistd.h.
22733         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
22734         declared in <unistd.h>.
22735
22736 2010-12-27  Bruno Haible  <bruno@clisp.org>
22737
22738         mbrtowc: Work around a Solaris 7 bug.
22739         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
22740         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
22741         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
22742         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
22743         MBRTOWC_NULL_ARG1_BUG.
22744         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
22745         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
22746         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
22747         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
22748
22749 2010-12-27  Jim Meyering  <meyering@redhat.com>
22750
22751         read-file.c: tweak syntax
22752         * lib/read-file.c (fread_file): Remove space after "*" in function
22753         definitions.
22754
22755 2010-12-27  Bruno Haible  <bruno@clisp.org>
22756
22757         times test: Avoid gcc warnings on OSF/1.
22758         * tests/test-times.c (main): Cast printf arguments from clock_t to
22759         'long int'.
22760
22761 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22762
22763         utimens: work around glibc rounding bug on older Linux kernels
22764         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
22765         on Linux with a glibc whose utimes might not work, then work
22766         around a longstanding glibc bug involving rounding rather than
22767         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
22768         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22769
22770 2010-12-26  Bruno Haible  <bruno@clisp.org>
22771
22772         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
22773         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
22774         _GL_CXXALIAS_SYS.
22775         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22776
22777 2010-12-26  Bruno Haible  <bruno@clisp.org>
22778
22779         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
22780         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
22781         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
22782         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
22783         looking for the declaration.
22784         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
22785         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
22786         problem.
22787         * doc/posix-functions/inet_pton.texi: Likewise.
22788
22789 2010-12-26  Bruno Haible  <bruno@clisp.org>
22790
22791         arpa_inet: Use the common idioms with C++ support.
22792         * lib/arpa_inet.in.h: Include c++defs.h.
22793         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
22794         support.
22795         * modules/arpa_inet (Depends-on): Add c++defs.
22796         (Makefile.am): Substitute the contents of c++defs.h.
22797         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
22798         * modules/arpa_inet-c++-tests: New file.
22799         * tests/test-arpa_inet-c++.cc: New file.
22800
22801 2010-12-25  Bruno Haible  <bruno@clisp.org>
22802
22803         Fix more C++ link errors on Solaris 8.
22804         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
22805         $(LIB_EACCESS).
22806         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
22807         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
22808         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
22809         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
22810         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
22811
22812 2010-12-25  Bruno Haible  <bruno@clisp.org>
22813
22814         printf-posix: Fix link error when a non-GCC compiler is used.
22815         * lib/stdio.in.h (printf): When not using GCC, override printf
22816         correctly.
22817         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22818
22819 2010-12-25  Bruno Haible  <bruno@clisp.org>
22820
22821         strerror_r-posix: Update doc.
22822         * doc/posix-functions/strerror_r.texi: Update doc about the return
22823         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
22824
22825 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
22826
22827         utimens: simplify the logic of the previous change
22828         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
22829         This should not affect whether the test succeeds or fails.
22830
22831         utimens: configure better on hosts with NFS clock skew
22832         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
22833         uses the clock of the local host.  It might use the clock of the
22834         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
22835         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22836
22837 2010-12-25  Bruno Haible  <bruno@clisp.org>
22838
22839         ptsname test: Avoid failure on Solaris.
22840         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
22841         open a pseudo-terminal; don't use BSD-style ptys.
22842         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
22843
22844 2010-12-25  Bruno Haible  <bruno@clisp.org>
22845
22846         ptsname: Avoid ERANGE failure on some systems.
22847         * lib/ptsname.c (buffer): Increase size.
22848
22849 2010-12-25  Bruno Haible  <bruno@clisp.org>
22850
22851         rename, renameat: Avoid test failures at NFS mounted locations.
22852         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
22853         so that subsequent mkdir calls succeed.
22854
22855 2010-12-25  Bruno Haible  <bruno@clisp.org>
22856
22857         iswblank: Fix C++ link error on Solaris 8.
22858         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
22859         _GL_FUNCDECL_SYS.
22860
22861 2010-12-25  Bruno Haible  <bruno@clisp.org>
22862
22863         unistd: Fix C++ link error on Solaris 8.
22864         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
22865
22866 2010-12-25  Bruno Haible  <bruno@clisp.org>
22867
22868         readlink doc: Mention an old glibc bug.
22869         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
22870
22871 2010-12-25  Bruno Haible  <bruno@clisp.org>
22872
22873         fcntl-h: Fix for use of C++ on glibc systems.
22874         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
22875         also on glibc systems in C++ mode.
22876         Reported by Gary V. Vaughan <gary@gnu.org>.
22877
22878 2010-12-25  Bruno Haible  <bruno@clisp.org>
22879
22880         roundl-ieee: Make it work on OSF/1 5.1 with cc.
22881         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
22882
22883 2010-12-25  Bruno Haible  <bruno@clisp.org>
22884
22885         truncl-ieee: Make it work on OSF/1 5.1 with cc.
22886         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
22887         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
22888         test whether truncl works according to ISO C 99 with IEC 60559.
22889         * m4/truncl-ieee.m4: New file.
22890         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
22891         m4/signbit.m4.
22892         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
22893
22894 2010-12-25  Bruno Haible  <bruno@clisp.org>
22895
22896         ceill-ieee: Make it work on OSF/1 5.1 with cc.
22897         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
22898         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
22899         test whether ceill works according to ISO C 99 with IEC 60559.
22900         * m4/ceill-ieee.m4: New file.
22901         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
22902         m4/signbit.m4.
22903         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
22904
22905 2010-12-25  Bruno Haible  <bruno@clisp.org>
22906
22907         Ensure all prerequisites of <wchar.h> are included.
22908         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
22909         before <wchar.h>.
22910         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22911         gl_MBRLEN_NUL_RETVAL): Likewise.
22912         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22913         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
22914         AC_FUNC_MBRTOWC): Likewise.
22915         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22916         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
22917         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22918         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22919         Likewise.
22920         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22921         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
22922         (gl_WCHAR_H): Improve comments.
22923         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22924
22925 2010-12-25  Bruno Haible  <bruno@clisp.org>
22926
22927         strtok_r: Fix C syntax error in autoconf macro.
22928         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
22929         characters in test program.
22930
22931 2010-12-24  Bruno Haible  <bruno@clisp.org>
22932
22933         ceil, trunc, round: Fix gcc warnings.
22934         * lib/ceil.c (MIN): Undefine before redefining.
22935         * lib/trunc.c (MIN): Likewise.
22936         * lib/round.c (MIN): Likewise.
22937         Include <math.h> first.
22938
22939 2010-12-24  Bruno Haible  <bruno@clisp.org>
22940
22941         select tests: Avoid failures on OSF/1 5.1.
22942         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
22943         failure of closing the last socket; it may fail with ECONNRESET.
22944
22945 2010-12-24  Eric Blake  <eblake@redhat.com>
22946
22947         stdint: avoid HP-UX 10.20 preprocessor bug
22948         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
22949         than #if.
22950         * tests/test-floor2.c (main): Likewise.
22951         Reported by Peter O'Gorman.
22952
22953         pipe: make obsoletion transition easier
22954         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
22955         * modules/pipe (Files): Include revived file.
22956         (Include): Drop reference, to mirror getdate's behavior.
22957
22958 2010-12-24  Bruno Haible  <bruno@clisp.org>
22959
22960         sys_socket: Hide mismatch of declarations on NonStop Kernel.
22961         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
22962         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
22963         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22964
22965 2010-12-24  Bruno Haible  <bruno@clisp.org>
22966
22967         gethostname: Ensure declaration on NonStop Kernel.
22968         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
22969         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22970
22971 2010-12-24  Bruno Haible  <bruno@clisp.org>
22972
22973         sys_select: Ensure all necessary types on NonStop Kernel.
22974         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
22975         include <sys/time.h>.
22976         * doc/posix-headers/sys_select.texi: Mention that it's missing on
22977         NonStop Kernel.
22978         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22979
22980 2010-12-24  Bruno Haible  <bruno@clisp.org>
22981
22982         sys_select: Remove unneeded include.
22983         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
22984         have <sys/select.h>.
22985
22986 2010-12-24  Bruno Haible  <bruno@clisp.org>
22987
22988         gethostname: Provide a fallback for HOST_NAME_MAX.
22989         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
22990         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
22991         instead.
22992         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22993
22994 2010-12-24  Bruno Haible  <bruno@clisp.org>
22995
22996         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
22997         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
22998         (SA_RESTART): Likewise.
22999         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23000
23001 2010-12-24  Bruno Haible  <bruno@clisp.org>
23002
23003         signal: Define NSIG.
23004         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
23005         * tests/test-signal.c (nsig): New variable.
23006         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23007
23008 2010-12-24  Bruno Haible  <bruno@clisp.org>
23009
23010         rename, renameat: Avoid test failures on OSF/1 5.1.
23011         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
23012         alternative error codes.
23013         * tests/test-renameat.c (main): Likewise.
23014
23015 2010-12-24  Bruno Haible  <bruno@clisp.org>
23016
23017         *printf: Detect large precisions bug on Solaris 10/SPARC.
23018         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
23019         by Paul Eggert.
23020         * tests/test-snprintf-posix.h (test_function): Add this test code here
23021         too.
23022         * tests/test-sprintf-posix.h (test_function): Likewise.
23023         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23024         * tests/test-vasprintf-posix.c (test_function): Likewise.
23025         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
23026         around by gnulib.
23027         * doc/posix-functions/printf.texi: Likewise.
23028         * doc/posix-functions/snprintf.texi: Likewise.
23029         * doc/posix-functions/sprintf.texi: Likewise.
23030         * doc/posix-functions/vfprintf.texi: Likewise.
23031         * doc/posix-functions/vprintf.texi: Likewise.
23032         * doc/posix-functions/vsnprintf.texi: Likewise.
23033         * doc/posix-functions/vsprintf.texi: Likewise.
23034         * doc/posix-functions/dprintf.texi: Undo last commit.
23035         * doc/posix-functions/vdprintf.texi: Likewise.
23036
23037 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
23038
23039         tests: port test-fdutimensat.c to Solaris 8
23040         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
23041         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
23042         On Solaris 8, it fails with errno == ENOSYS, because there is no
23043         futimens (so it can't use the fd), and there is no lutimens (so it
23044         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
23045
23046         vsnprintf: make more consistent with snprintf; doc fixes
23047
23048         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
23049         the byte count return problem was promoted from the snprintf-posix
23050         to the snprintf module.
23051         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
23052         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
23053         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
23054         * tests/test-snprintf.c (main): Check the byte count returned.
23055         * tests/test-vsnprintf.c (main): Likewise.
23056
23057 2010-12-23  Eric Blake  <eblake@redhat.com>
23058
23059         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
23060         * modules/sigpipe (License): Relax license.
23061
23062 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23063
23064         doc: document Solaris printf bug with large float precisions
23065         * doc/posix-functions/dprintf.texi (dprintf):
23066         * doc/posix-functions/fprintf.texi (fprintf):
23067         * doc/posix-functions/printf.texi (printf):
23068         * doc/posix-functions/snprintf.texi (snprintf):
23069         * doc/posix-functions/sprintf.texi (sprintf):
23070         * doc/posix-functions/vdprintf.texi (vdprintf):
23071         * doc/posix-functions/vfprintf.texi (vfprintf):
23072         * doc/posix-functions/vprintf.texi (vprintf):
23073         * doc/posix-functions/vsnprintf.texi (vsnprintf):
23074         * doc/posix-functions/vsprintf.texi (vsprintf):
23075         Mention that these functions mishandle large floating point
23076         precisions on Solaris 10.  The same bug is also present in Solaris
23077         8, and I assume earlier.  This causes "cd gnulib-tests; make
23078         check" to fail on Solaris 8 (and I assume, later) when building
23079         the latest coreutils, in test-vasprintf-posix's call to
23080         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
23081         the wide flavors (e.g., wprintf) so this patch just updates the
23082         documentation for the narrow ones.
23083
23084         test-posixtm.c: add two tests
23085         * tests/test-posixtm.c: Add two tests, to highlight the
23086         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
23087         around this bug; this is merely to document it.
23088
23089 2010-12-22  Bruno Haible  <bruno@clisp.org>
23090
23091         getlogin_r: Work around portability problem on OSF/1.
23092         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
23093         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
23094         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
23095         test for a truncated result.
23096         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
23097         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
23098         * modules/getlogin_r (Depends-on): Add memchr.
23099         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
23100
23101 2010-12-22  Bruno Haible  <bruno@clisp.org>
23102
23103         ptsname: Avoid test failure on OSF/1 5.1.
23104         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
23105         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
23106         (same_slave): New function.
23107         (main): Use it to compare ptsname's result with the expected file name.
23108
23109 2010-12-22  Bruno Haible  <bruno@clisp.org>
23110
23111         Port extended stdio modules to HP NonStop Kernel.
23112         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
23113         macros.
23114         * lib/fbufmode.c: Update comments.
23115         * lib/fflush.c: Likewise.
23116         * lib/fpurge.c: Likewise.
23117         * lib/freadable.c: Likewise.
23118         * lib/freadahead.c: Likewise.
23119         * lib/freading.c: Likewise.
23120         * lib/freadptr.c: Likewise.
23121         * lib/freadseek.c: Likewise.
23122         * lib/fseeko.c: Likewise.
23123         * lib/fseterr.c: Likewise.
23124         * lib/fwritable.c: Likewise.
23125         * lib/fwriting.c: Likewise.
23126         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23127
23128 2010-12-22  Bruno Haible  <bruno@clisp.org>
23129
23130         ttyname_r: Work around bug on OSF/1 5.1.
23131         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
23132         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
23133         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
23134         present.
23135         * lib/ttyname_r.c (ttyname_r): Update comments.
23136
23137 2010-12-22  Bruno Haible  <bruno@clisp.org>
23138
23139         round: Implement result sign according to IEEE 754.
23140         * lib/round.c (MIN, MINUS_ZERO): New macros.
23141         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
23142         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
23143         * tests/test-round-ieee.c (main): Likewise.
23144         * tests/test-roundl-ieee.c (main): Likewise.
23145
23146         trunc: Implement result sign according to IEEE 754.
23147         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
23148         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
23149         * tests/test-trunc2.c: Include minus-zero.h.
23150         (MINUS_ZERO): New macro.
23151         (trunc_reference): Keep in sync with lib/trunc.c.
23152         * tests/test-truncf2.c: Include minus-zero.h.
23153         (MINUS_ZERO): New macro.
23154         (truncf_reference): Keep in sync with lib/trunc.c.
23155         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
23156         * tests/test-trunc-ieee.c (main): Likewise.
23157         * tests/test-truncl-ieee.c (main): Likewise.
23158
23159         ceil: Implement result sign according to IEEE 754.
23160         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
23161         (FUNC): Return -0.0 for -1 < x < 0.
23162         * tests/test-ceil2.c: Include minus-zero.h.
23163         (MINUS_ZERO): New macro.
23164         (ceil_reference): Keep in sync with lib/ceil.c.
23165         * tests/test-ceilf2.c: Include minus-zero.h.
23166         (MINUS_ZERO): New macro.
23167         (ceilf_reference): Keep in sync with lib/ceil.c.
23168         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
23169         * tests/test-ceil-ieee.c (main): Likewise.
23170         * tests/test-ceill-ieee.c (main): Likewise.
23171
23172         floor: Implement result sign according to IEEE 754.
23173         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
23174         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
23175         * tests/test-floorf2.c (floorf_reference): Likewise.
23176         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
23177         * tests/test-floor-ieee.c (main): Likewise.
23178         * tests/test-floorl-ieee.c (main): Likewise.
23179
23180 2010-12-22  Bruno Haible  <bruno@clisp.org>
23181
23182         getaddrinfo: Update doc.
23183         * doc/posix-functions/gai_strerror.texi: Return type is also different
23184         on AIX and HP-UX.
23185
23186 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23187
23188         getaddrinfo, inet_ntop: Update doc for Solaris.
23189         * doc/posix-functions/gai_strerror.texi: Return type is also an
23190         issue on Solaris 9 and earlier.
23191         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
23192         on Solaris 10 and earlier.
23193
23194 2010-12-21  Bruno Haible  <bruno@clisp.org>
23195
23196         New module 'roundl-ieee'.
23197         * modules/roundl-ieee: New file.
23198         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
23199         test whether roundl works according to ISO C 99 with IEC 60559.
23200         * m4/roundl-ieee.m4: New file.
23201         * modules/roundl-ieee-tests: New file.
23202         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
23203         * tests/test-roundl.c (main): Remove signbit tests.
23204         * modules/roundl-tests (Depends-on): Remove signbit.
23205         * doc/posix-functions/roundl.texi: Mention the new module.
23206
23207 2010-12-21  Bruno Haible  <bruno@clisp.org>
23208
23209         New module 'truncl-ieee'.
23210         * modules/truncl-ieee: New file.
23211         * modules/truncl-ieee-tests: New file.
23212         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
23213         * tests/test-truncl.c (main): Remove signbit tests.
23214         * modules/truncl-tests (Depends-on): Remove signbit.
23215         * doc/posix-functions/truncl.texi: Mention the new module.
23216
23217 2010-12-21  Bruno Haible  <bruno@clisp.org>
23218
23219         New module 'ceill-ieee'.
23220         * modules/ceill-ieee: New file.
23221         * modules/ceill-ieee-tests: New file.
23222         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
23223         * tests/test-ceill.c (main): Remove signbit tests.
23224         * modules/ceill-tests (Depends-on): Remove signbit.
23225         * doc/posix-functions/ceill.texi: Mention the new module.
23226
23227 2010-12-21  Bruno Haible  <bruno@clisp.org>
23228
23229         New module 'floorl-ieee'.
23230         * modules/floorl-ieee: New file.
23231         * modules/floorl-ieee-tests: New file.
23232         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
23233         * tests/test-floorl.c (main): Remove signbit tests.
23234         * modules/floorl-tests (Depends-on): Remove signbit.
23235         * doc/posix-functions/floorl.texi: Mention the new module.
23236
23237 2010-12-21  Bruno Haible  <bruno@clisp.org>
23238
23239         New module 'round-ieee'.
23240         * modules/round-ieee: New file.
23241         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
23242         whether round works according to ISO C 99 with IEC 60559.
23243         * m4/round-ieee.m4: New file.
23244         * modules/round-ieee-tests: New file.
23245         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
23246         * tests/test-round1.c (main): Remove signbit tests.
23247         * modules/round-tests (Depends-on): Remove 'signbit'.
23248         * doc/posix-functions/round.texi: Mention the new module.
23249
23250 2010-12-21  Bruno Haible  <bruno@clisp.org>
23251
23252         New module 'trunc-ieee'.
23253         * modules/trunc-ieee: New file.
23254         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
23255         whether trunc works according to ISO C 99 with IEC 60559.
23256         * m4/trunc-ieee.m4: New file.
23257         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
23258         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
23259         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
23260         * modules/trunc-ieee-tests: New file.
23261         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
23262         * tests/test-trunc1.c (main): Remove signbit tests.
23263         * modules/trunc-tests (Depends-on): Remove 'signbit'.
23264         * doc/posix-functions/trunc.texi: Mention the new module.
23265
23266 2010-12-21  Bruno Haible  <bruno@clisp.org>
23267
23268         New module 'ceil-ieee'.
23269         * modules/ceil-ieee: New file.
23270         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
23271         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
23272         ISO C 99 with IEC 60559.
23273         * m4/ceil-ieee.m4: New file.
23274         * modules/ceil (Files): Add lib/ceil.c.
23275         (Depends-on): Add 'float'.
23276         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23277         * lib/math.in.h (ceil): New declaration.
23278         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
23279         REPLACE_CEIL.
23280         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
23281         * modules/ceil-ieee-tests: New file.
23282         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
23283         * tests/test-math-c++.cc: Check the signature of 'ceil'.
23284         * doc/posix-functions/ceil.texi: Mention the new module.
23285
23286 2010-12-21  Bruno Haible  <bruno@clisp.org>
23287
23288         New module 'floor-ieee'.
23289         * modules/floor-ieee: New file.
23290         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
23291         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
23292         ISO C 99 with IEC 60559.
23293         * m4/floor-ieee.m4: New file.
23294         * modules/floor (Files): Add lib/floor.c.
23295         (Depends-on): Add 'float'.
23296         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23297         * lib/math.in.h (floor): New declaration.
23298         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
23299         REPLACE_FLOOR.
23300         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
23301         * modules/floor-ieee-tests: New file.
23302         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
23303         * tests/test-math-c++.cc: Check the signature of 'floor'.
23304         * doc/posix-functions/floor.texi: Mention the new module.
23305
23306 2010-12-21  Bruno Haible  <bruno@clisp.org>
23307
23308         New module 'roundf-ieee'.
23309         * modules/roundf-ieee: New file.
23310         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
23311         test whether roundf works according to ISO C 99 with IEC 60559.
23312         * m4/roundf-ieee.m4: New file.
23313         * modules/roundf-ieee-tests: New file.
23314         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
23315         * tests/test-roundf1.c (main): Remove signbit tests.
23316         * modules/roundf-tests (Depends-on): Remove 'signbit'.
23317         * doc/posix-functions/roundf.texi: Mention the new module.
23318
23319 2010-12-21  Bruno Haible  <bruno@clisp.org>
23320
23321         New module 'truncf-ieee'.
23322         * modules/truncf-ieee: New file.
23323         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
23324         test whether truncf works according to ISO C 99 with IEC 60559.
23325         * m4/truncf-ieee.m4: New file.
23326         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
23327         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
23328         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
23329         * modules/truncf-ieee-tests: New file.
23330         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
23331         * tests/test-truncf1.c (main): Remove signbit tests.
23332         * modules/truncf-tests (Depends-on): Remove 'signbit'.
23333         * doc/posix-functions/truncf.texi: Mention the new module.
23334
23335 2010-12-21  Bruno Haible  <bruno@clisp.org>
23336
23337         New module 'ceilf-ieee'.
23338         * modules/ceilf-ieee: New file.
23339         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
23340         test whether ceilf works according to ISO C 99 with IEC 60559.
23341         * m4/ceilf-ieee.m4: New file.
23342         * modules/ceilf-ieee-tests: New file.
23343         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
23344         * tests/test-ceilf1.c (main): Remove signbit tests.
23345         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
23346         * doc/posix-functions/ceilf.texi: Mention the new module.
23347
23348 2010-12-21  Bruno Haible  <bruno@clisp.org>
23349
23350         New module 'floorf-ieee'.
23351         * modules/floorf-ieee: New file.
23352         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
23353         test whether floorf works according to ISO C 99 with IEC 60559.
23354         * m4/floorf-ieee.m4: New file.
23355         * modules/floorf-ieee-tests: New file.
23356         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
23357         * tests/test-floorf1.c (main): Remove signbit tests.
23358         * modules/floorf-tests (Depends-on): Remove 'signbit'.
23359         * doc/posix-functions/floorf.texi: Mention the new module.
23360
23361 2010-12-21  Bruno Haible  <bruno@clisp.org>
23362
23363         Support for minus zero in autoconf macros.
23364         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
23365         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
23366         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
23367         * tests/minus-zero.h: Update comments.
23368
23369 2010-12-21  Bruno Haible  <bruno@clisp.org>
23370
23371         Tests for module 'ceil'.
23372         * modules/ceil-tests: New file.
23373         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
23374         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
23375
23376 2010-12-21  Bruno Haible  <bruno@clisp.org>
23377
23378         Tests for module 'floor'.
23379         * modules/floor-tests: New file.
23380         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
23381         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
23382
23383 2010-12-21  Bruno Haible  <bruno@clisp.org>
23384
23385         math: Fix indentation.
23386         * lib/math.in.h (floorf): Fix indentation.
23387
23388 2010-12-21  Bruno Haible  <bruno@clisp.org>
23389
23390         Fix cross-compilation guesses on Solaris.
23391         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
23392         not match "solaris2.10".
23393         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23394         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
23395         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
23396
23397 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
23398
23399         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
23400         This fixes a problem observed with the latest coreutils snapshot
23401         that caused a test to fail on Solaris 8.  src/csplit.c's call
23402         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
23403         earlier, instead of returning the number of bytes that would have
23404         been generated; this causes csplit to incorrectly report memory
23405         exhaustion.
23406         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
23407         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
23408         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
23409         comments to match.
23410         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
23411         Fix typo in matching older versions of Solaris: "solaris2.10"
23412         is matched by the shell pattern "solaris2.[0-9]*".  This matters
23413         only for guessing while cross-compiling.
23414         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
23415
23416 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
23417
23418         ftoastr: fix comment again
23419         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23420         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
23421         Also, simplify example a bit by using flags = 0.
23422
23423 2010-12-20  Bruno Haible  <bruno@clisp.org>
23424
23425         round*, trunc*: Update documentation regarding glibc.
23426         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
23427         * doc/posix-functions/round.texi: Likewise.
23428         * doc/posix-functions/roundl.texi: Likewise.
23429         * doc/posix-functions/truncf.texi: Likewise.
23430         * doc/posix-functions/trunc.texi: Likewise.
23431         * doc/posix-functions/truncl.texi: Likewise.
23432
23433 2010-12-20  Bruno Haible  <bruno@clisp.org>
23434
23435         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
23436         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
23437         * doc/posix-functions/round.texi: Likewise.
23438         * doc/posix-functions/roundl.texi: Likewise.
23439
23440 2010-12-20  Bruno Haible  <bruno@clisp.org>
23441
23442         ttyname_r: Add missing declaration on HP-UX 11.
23443         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
23444         HAVE_TTYNAME_R.
23445         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
23446         declared. Set HAVE_TTYNAME_R always.
23447         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23448         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
23449         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
23450         HAVE_TTYNAME_R.
23451         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
23452
23453 2010-12-20  Bruno Haible  <bruno@clisp.org>
23454
23455         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
23456         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
23457         * doc/posix-functions/getlogin_r.texi: Likewise.
23458         * tests/test-getlogin.c: Include <errno.h>.
23459         (main): Avoid test failure on HP-UX 11.11.
23460         * tests/test-getlogin_r.c (main): Likewise.
23461
23462 2010-12-20  Bruno Haible  <bruno@clisp.org>
23463
23464         getlogin_r: Add missing declaration on HP-UX 11.
23465         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
23466         declared also when it exists as a function.
23467         * doc/posix-functions/getlogin_r.texi: Document this workaround.
23468
23469 2010-12-20  Bruno Haible  <bruno@clisp.org>
23470
23471         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
23472         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
23473         through wcrtomb.
23474
23475 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
23476
23477         ftoastr: fix comment
23478         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23479         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
23480
23481 2010-12-19  Bruno Haible  <bruno@clisp.org>
23482
23483         isnan: Ensure it is a macro.
23484         * lib/math.in.h (isnan): Define as a macro if not already a macro.
23485         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
23486         Solaris.
23487
23488 2010-12-19  Bruno Haible  <bruno@clisp.org>
23489
23490         ldexpl test: Fix link error on OSF/1 5.1.
23491         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
23492
23493 2010-12-19  Bruno Haible  <bruno@clisp.org>
23494
23495         wctype: Make it work in C++ mode on OSF/1 5.1.
23496         * lib/wctype.in.h (iswblank): Declare but not define here.
23497         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
23498         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
23499         * modules/wctype (Files): Add lib/iswblank.c.
23500
23501 2010-12-19  Bruno Haible  <bruno@clisp.org>
23502
23503         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
23504         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
23505         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
23506
23507 2010-12-19  Bruno Haible  <bruno@clisp.org>
23508
23509         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
23510         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
23511         _POSIX_PII_SOCKET.
23512         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
23513         * doc/posix-functions/recvfrom.texi: Likewise.
23514         * doc/posix-functions/send.texi: Likewise.
23515         * doc/posix-functions/sendto.texi: Likewise.
23516
23517 2010-12-19  Bruno Haible  <bruno@clisp.org>
23518
23519         tcgetsid: Add missing declaration on OSF/1 5.1.
23520         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
23521         HAVE_TCGETSID.
23522         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
23523         Don't set HAVE_TCGETSID.
23524         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
23525         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
23526         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
23527         HAVE_TCGETSID.
23528         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
23529
23530 2010-12-19  Bruno Haible  <bruno@clisp.org>
23531
23532         stdio: Fix problem with popen() declaration on OSF/1 5.1.
23533         * lib/stdio.in.h: During the include_next statement, let recursive
23534         includes of this file include only the system header file.
23535
23536 2010-12-19  Bruno Haible  <bruno@clisp.org>
23537
23538         iconv_open: Fix regression from 2010-12-04.
23539         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
23540         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
23541
23542 2010-12-19  Bruno Haible  <bruno@clisp.org>
23543
23544         stdbool test: Avoid a gcc warning.
23545         * tests/test-stdbool.c (main): Fail if e1 is false.
23546         Reported by Jim Meyering.
23547
23548 2010-12-19  Jim Meyering  <meyering@redhat.com>
23549
23550         setenv: restore to working order
23551         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
23552         mistakenly removed.
23553         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
23554         HAVE_SETENV.
23555         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
23556         HAVE_SETENV.
23557
23558 2010-12-19  Bruno Haible  <bruno@clisp.org>
23559
23560         Document some different function declarations on OSF/1 5.1.
23561         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
23562         * doc/posix-functions/inet_ntop.texi: Likewise.
23563         * doc/posix-functions/gethostname.texi: Likewise.
23564         * lib/unistd.in.h (gethostname): Update comment.
23565
23566 2010-12-19  Bruno Haible  <bruno@clisp.org>
23567
23568         doc: Mention vasprintf-posix module.
23569         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
23570         the 'vasprintf-posix' module.
23571         * doc/glibc-functions/vasprintf.texi: Likewise.
23572
23573 2010-12-19  Bruno Haible  <bruno@clisp.org>
23574
23575         unsetenv: Add missing declaration on OSF/1 5.1.
23576         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
23577         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
23578         Don't set HAVE_UNSETENV. In the test program, set _BSD.
23579         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
23580         not HAVE_UNSETENV.
23581         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
23582         HAVE_UNSETENV.
23583         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
23584
23585 2010-12-19  Bruno Haible  <bruno@clisp.org>
23586
23587         setenv: Add missing declaration on OSF/1 5.1.
23588         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
23589         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
23590         declared. Don't set HAVE_SETENV.
23591         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
23592         not HAVE_SETENV.
23593         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
23594         HAVE_SETENV.
23595         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
23596
23597 2010-12-19  Bruno Haible  <bruno@clisp.org>
23598
23599         nl_langinfo tests: Avoid gcc warning.
23600         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
23601
23602 2010-12-19  Bruno Haible  <bruno@clisp.org>
23603
23604         mknod: Avoid error in C++ mode on OSF/1 with GCC.
23605         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
23606         _GL_CXXALIAS_SYS.
23607
23608 2010-12-19  Bruno Haible  <bruno@clisp.org>
23609
23610         stdbool: Relax test.
23611         * tests/test-stdbool.c (e): Don't require that casts from a variable's
23612         address to 'bool' work in static initializer, for compilers other than
23613         GCC.
23614
23615 2010-12-19  Bruno Haible  <bruno@clisp.org>
23616
23617         ftello: Add missing declaration on OSF/1 5.1.
23618         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
23619         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
23620         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
23621         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
23622         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
23623
23624 2010-12-19  Bruno Haible  <bruno@clisp.org>
23625
23626         fseeko: Add missing declaration on OSF/1 5.1.
23627         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
23628         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
23629         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
23630         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
23631         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
23632
23633 2010-12-19  Bruno Haible  <bruno@clisp.org>
23634
23635         fchdir: Add missing declaration on OSF/1 5.1.
23636         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
23637         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
23638         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
23639         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
23640         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
23641
23642 2010-12-19  Bruno Haible  <bruno@clisp.org>
23643
23644         relocatable-prog-wrapper: Separate from relocatable-prog.
23645         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
23646         uninstall-relocwrapper rule here.
23647         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
23648         Reported by Ian Beckwith <ianb@erislabs.net>.
23649
23650 2010-12-19  Bruno Haible  <bruno@clisp.org>
23651
23652         unistr/u8-mbsnlen: Add missing dependency.
23653         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
23654         Reported by Ian Beckwith <ianb@erislabs.net>.
23655
23656 2010-12-19  Bruno Haible  <bruno@clisp.org>
23657
23658         iconv: Make it possible again to use this module without 'iconv-h'.
23659         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
23660         if it is not defined.
23661         Reported by Ian Beckwith <ianb@erislabs.net>.
23662
23663 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
23664
23665         acl: port to Solaris 8 when copying from tmpfs to ufs
23666         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
23667         error number.  Problem observed on Solaris 8 with latest
23668         coreutils, with "mv A B", where A is on a tmpfs file system and B
23669         is on a ufs file system.  This caused coreutils' mv/part-symlink
23670         test to fail.
23671
23672         tests: set fail=0 at start
23673         * tests/init.sh (setup_): Move fail=0 initialization here ...
23674         (mktempd_): ... from here, so that tests can rely on fail being
23675         set to 0 initially.  This fixes a problem in coreutils; see:
23676         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
23677
23678 2010-12-18  Bruno Haible  <bruno@clisp.org>
23679
23680         memmem-simple: Stylistic changes.
23681         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
23682         Fix preprocessor directive indentation.
23683
23684 2010-12-15  Pádraig Brady <P@draigBrady.com>
23685
23686         memmem, memmem-simple: reorganize and expand empty needle check
23687         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
23688         functional checks to memmem-simple so that one has a fully functional
23689         memmem by using just this module.
23690         Restrict the performance only check to the memmem module.
23691         Also expand the empty needle check to ensure the correct
23692         pointer is returned, not just a non NULL pointer.
23693         * doc/glibc-functions/memmem.texi: Rearrange the portability
23694         documentation to correlate with the rearranged checks.
23695         Clarify exactly how the memmem and memmem-simple modules
23696         relate to each other.
23697
23698 2010-12-15  Pádraig Brady <P@draigBrady.com>
23699             Bruno Haible  <bruno@clisp.org>
23700
23701         Improve cross-compilation guesses for uClibc.
23702         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
23703         that uClibc does not have the glibc bug.
23704         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
23705         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
23706
23707 2010-12-14  Eric Blake  <eblake@redhat.com>
23708
23709         configmake: provide fallbacks for oldest supported autotools
23710         * m4/configmake.m4: New file.
23711         * modules/configmake (Files): Ship it.
23712         (configure.ac): Use it to guarantee fallbacks.
23713
23714 2010-12-13  Pádraig Brady <P@draigBrady.com>
23715
23716         read-file: Improve handling of large files
23717         * lib/read-file.c (fread_file): Minimize realloc()s
23718         for regular files, and better manage sizes around SIZE_MAX.
23719
23720 2010-12-13  Eric Blake  <eblake@redhat.com>
23721
23722         cloexec, fcntl: relax license
23723         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
23724         consent from all contributors.
23725         * modules/fcntl (License): Likewise.
23726
23727 2010-12-10  Bruno Haible  <bruno@clisp.org>
23728
23729         Tests for module 'pipe-posix'.
23730         * modules/pipe-posix-tests: New file.
23731         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
23732
23733 2010-12-10  Bruno Haible  <bruno@clisp.org>
23734
23735         pipe-posix: Make it work in C++ mode.
23736         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
23737         (pipe): Use common idiom, not a macro definition.
23738         * lib/pipe.c: New file.
23739         * m4/pipe.m4: New file.
23740         * modules/pipe-posix (Description): Enhance.
23741         (Files): Add lib/pipe.c, m4/pipe.m4.
23742         (configure.ac): Invoke gl_FUNC_PIPE.
23743         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
23744         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
23745         * tests/test-unistd-c++.cc: Check the signature of pipe.
23746
23747 2010-12-10  Bruno Haible  <bruno@clisp.org>
23748
23749         Rename module 'pipe' to 'spawn-pipe'.
23750         * modules/spawn-pipe: New file, renamed from modules/pipe.
23751         (Files, configure.ac, Makefile.am): Update.
23752         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
23753         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
23754         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
23755         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
23756         "spawn-pipe.h" instead of "pipe.h".
23757         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
23758         to gl_SPAWN_PIPE.
23759         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
23760         (Files, Makefile.am): Update.
23761         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
23762         Update.
23763         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
23764         Include "spawn-pipe.h" instead of "pipe.h".
23765         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
23766         * lib/javacomp.c: Likewise.
23767         * lib/javaversion.c: Likewise.
23768         * lib/pipe-filter-gi.c: Likewise.
23769         * lib/pipe-filter-ii.c: Likewise.
23770         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
23771         * modules/javacomp (Depends-on): Likewise.
23772         * modules/javaversion (Depends-on): Likewise.
23773         * modules/pipe-filter-gi (Depends-on): Likewise.
23774         * modules/pipe-filter-ii (Depends-on): Likewise.
23775         * MODULES.html.sh (Executing programs): Update.
23776         * NEWS: Mention the change.
23777
23778 2010-12-10  Eric Blake  <eblake@redhat.com>
23779
23780         pipe-posix: new module
23781         * modules/pipe-posix: New file.
23782         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
23783         (gl_UNISTD_H): Check for declaration.
23784         * modules/unistd (Makefile.am): Substitute it.
23785         * lib/unistd.in.h (pipe): Provide it for mingw.
23786         * doc/posix-functions/pipe.texi (pipe): Update documentation.
23787         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
23788
23789 2010-12-07  Bruno Haible  <bruno@clisp.org>
23790
23791         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
23792         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
23793         u8_strcmp_gnu.
23794         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
23795
23796 2010-12-06  Bruno Haible  <bruno@clisp.org>
23797
23798         Update internal documentation.
23799         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
23800
23801 2010-12-04  Bruno Haible  <bruno@clisp.org>
23802
23803         Put more information about failed tests into the test return codes.
23804         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
23805         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
23806         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23807         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23808         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23809         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23810         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23811         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23812         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
23813         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23814         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
23815         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23816         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
23817         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23818         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
23819         returns a bit mask.
23820         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
23821         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
23822         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
23823         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
23824         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23825         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23826         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23827         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23828         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23829         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23830         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23831         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23832         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23833         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23834         * m4/link.m4 (gl_FUNC_LINK): Likewise.
23835         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23836         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
23837         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
23838         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23839         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
23840         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23841         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23842         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
23843         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23844         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23845         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23846         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
23847         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23848         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23849         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
23850         gl_PRINTF_PRECISION): Likewise.
23851         * m4/regex.m4 (gl_REGEX): Likewise.
23852         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23853         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23854         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
23855         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23856         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23857         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23858         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
23859         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
23860         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23861         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23862         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23863         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23864         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23865         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23866         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23867         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23868         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23869         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23870         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23871         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
23872         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
23873         enumerated value.
23874         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
23875
23876 2010-12-04  Bruno Haible  <bruno@clisp.org>
23877
23878         Update for Solaris 11 2010-11.
23879         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
23880         Express, released in November 2010.
23881
23882 2010-12-04  Bruno Haible  <bruno@clisp.org>
23883
23884         nproc: Relax license.
23885         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
23886         and Paul Eggert.
23887         Requested by Ludovic Courtès <ludo@gnu.org>.
23888
23889 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
23890
23891         utimecmp: fine-grained src to nearby coarse-grained dest
23892
23893         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
23894         and the source is on a file system with higher-resolution time
23895         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
23896         not work, and the time stamps are close together, the algorithm to
23897         determine the exact resolution from the read-back mtime was buggy:
23898         it had a "!=" where it should have had an "==".  This bug has been
23899         in the code ever since it was introduced to gnulib.
23900         Problem reported by Dan Jacobson in
23901         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
23902
23903 2010-11-30  Bruno Haible  <bruno@clisp.org>
23904
23905         strerror_r-posix: Fix autoconf test.
23906         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
23907
23908 2010-11-28  Bruno Haible  <bruno@clisp.org>
23909             Paul Eggert  <eggert@cs.ucla.edu>
23910
23911         Tests for module 'getdomainname'.
23912         * modules/getdomainname-tests: New file.
23913         * tests/test-getdomainname.c: New file, based on
23914         tests/test-gethostname.c.
23915
23916 2010-11-28  Bruno Haible  <bruno@clisp.org>
23917             Paul Eggert  <eggert@cs.ucla.edu>
23918
23919         getdomainname: Use the system function when possible.
23920         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
23921         (getdomainname): Replace if needed. Provide the declaration if it is
23922         missing. Don't use _GL_CXXALIAS_SYS_CAST.
23923         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
23924         (getdomainname): When the system has getdomainname, call the system
23925         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
23926         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
23927         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
23928         found in libnsl. Look for the declaration also in <netdb.h>. Replace
23929         the function if its second argument is of type 'int' or if it is found
23930         in libnsl.
23931         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
23932         <sys/systeminfo.h> and sysinfo().
23933         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
23934         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23935         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
23936         HAVE_GETDOMAINNAME.
23937         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
23938         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
23939         * doc/glibc-functions/getdomainname.texi: Document the problems with
23940         the getdomainname declaration.
23941
23942 2010-11-28  Bruno Haible  <bruno@clisp.org>
23943
23944         sys_socket: Ensure ss_family field on AIX.
23945         * lib/sys_socket.in.h (ss_family): New macro definition.
23946         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
23947         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
23948         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23949         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23950         * modules/sys_socket (Makefile.am): Substitute
23951         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23952         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
23953
23954 2010-11-27  Bruno Haible  <bruno@clisp.org>
23955
23956         readline: Improve configure output.
23957         * m4/readline.m4 (gl_FUNC_READLINE): Make the
23958         "checking for readline..." result understandable.
23959
23960 2010-11-27  Bruno Haible  <bruno@clisp.org>
23961
23962         *printf-posix: Detect a bug on Solaris 10/x86.
23963         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
23964         for floating-point output.
23965         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
23966         directive.
23967         * tests/test-snprintf-posix.h (test_function): Likewise.
23968         * tests/test-sprintf-posix.h (test_function): Likewise.
23969         * tests/test-vasprintf-posix.c (test_function): Likewise.
23970         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
23971         * doc/posix-functions/printf.texi: Likewise.
23972         * doc/posix-functions/snprintf.texi: Likewise.
23973         * doc/posix-functions/sprintf.texi: Likewise.
23974         * doc/posix-functions/vfprintf.texi: Likewise.
23975         * doc/posix-functions/vprintf.texi: Likewise.
23976         * doc/posix-functions/vsnprintf.texi: Likewise.
23977         * doc/posix-functions/vsprintf.texi: Likewise.
23978         * doc/glibc-functions/obstack_printf.texi: Likewise.
23979         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
23980
23981 2010-11-27  Bruno Haible  <bruno@clisp.org>
23982
23983         Fix link error when module libunistring-optional is in use.
23984         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
23985         * modules/striconveha-tests (Makefile.am): Likewise.
23986
23987 2010-11-27  Bruno Haible  <bruno@clisp.org>
23988
23989         regex: Mention link dependencies.
23990         * modules/regex (Link): New section.
23991         * modules/rpmatch (Link): Likewise.
23992         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
23993
23994 2010-11-27  Bruno Haible  <bruno@clisp.org>
23995
23996         ftoastr: Fix compilation error on Solaris.
23997         * lib/ftoastr.c: Include <config.h>.
23998
23999 2010-11-27  Bruno Haible  <bruno@clisp.org>
24000
24001         getloadavg: Update documentation.
24002         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
24003
24004 2010-11-27  Bruno Haible  <bruno@clisp.org>
24005
24006         sys_socket: Fix test whether the functions are declared.
24007         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
24008         not <sys/select.h>.
24009
24010 2010-11-27  Bruno Haible  <bruno@clisp.org>
24011
24012         getpass: Make sure to get system declaration on some platforms.
24013         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
24014         gl_USE_SYSTEM_EXTENSIONS.
24015         * modules/getpass (Depends-on): Add extensions.
24016
24017 2010-11-26  Bruno Haible  <bruno@clisp.org>
24018
24019         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
24020         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
24021         'iconv' module is present.
24022         (ICONV_CONST): New macro.
24023         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
24024         ICONV_CONST.
24025         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
24026         set ICONV_CONST.
24027         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
24028         here.
24029         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
24030         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
24031         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
24032         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
24033         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
24034         present.
24035
24036 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24037
24038         ftoastr: comment fix
24039         * lib/ftoastr.c: "little" -> "little or no" in comment
24040
24041 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
24042
24043         stdint: port to GCC 4.3 + OSX + Octave
24044         On this platform, stdint.h is buggy and defines int64_t to long
24045         long int.  The replacement defined it to long int, causing
24046         problems with C++ style name mangling.  Instead, trust the system
24047         definition if INT64_MAX is defined, and likewise for the unsigned
24048         variant.   Problem reported by Jarno Rajahalme in
24049         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
24050         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
24051         and don't mess with int64_t and INT64_MAX in this case.
24052         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
24053
24054 2010-11-24  Bruno Haible  <bruno@clisp.org>
24055
24056         doc: Corrections regarding MacOS X 10.4 and 10.5.
24057         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
24058         MacOS X.
24059         Reported by Simon Josefsson.
24060
24061 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
24062
24063         Uninstall ".bin" files installed by relocwrapper.
24064         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
24065         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
24066         unless it is already there.
24067
24068 2010-11-21  Bruno Haible  <bruno@clisp.org>
24069
24070         Update for NetBSD 5.0.
24071         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24072         NetBSD; the test fails on NetBSD 5.0.
24073         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24074         about NetBSD.
24075
24076 2010-11-21  Bruno Haible  <bruno@clisp.org>
24077
24078         Update for HP-UX 11.23 and HP-UX 11.31.
24079         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
24080         HP-UX.
24081
24082 2010-11-21  Bruno Haible  <bruno@clisp.org>
24083
24084         Update for MacOS X 10.5.
24085         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24086         MacOS X; the test fails on MacOS X 10.5.8.
24087         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24088         about MacOS X.
24089
24090 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
24091
24092         bootstrap: add bootstrap_sync option.
24093         See discussion at
24094         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
24095         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
24096         * build-aux/bootstrap: Accept --bootstrap-sync to update
24097         bootstrap if it is not identical to the local gnulib's
24098         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
24099         enable this by default.  Accept --no-bootstrap-sync to disable
24100         it.
24101
24102 2010-11-20  Bruno Haible  <bruno@clisp.org>
24103
24104         Ensure that <features.h> is included before __GLIBC__ is tested.
24105         * lib/printf-parse.h: Include <features.h>.
24106         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
24107         Reported by Mike Frysinger <vapier@gentoo.org>.
24108
24109         Ensure that <features.h> is included before __GLIBC__ is tested.
24110         * lib/wchar.in.h: Include <features.h>.
24111         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
24112         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
24113         Reported by Mike Frysinger <vapier@gentoo.org>.
24114
24115         Ensure that <features.h> is included before __GLIBC__ is tested.
24116         * lib/arpa_inet.in.h: Include <features.h>.
24117         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
24118         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
24119         Reported by Mike Frysinger <vapier@gentoo.org>.
24120
24121         Ensure that <features.h> is included before __GLIBC__ is tested.
24122         * build-aux/link-warning.h: Include <features.h>.
24123         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
24124         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
24125         Reported by Mike Frysinger <vapier@gentoo.org>.
24126
24127         Ensure that <features.h> is included before __GLIBC__ is tested.
24128         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
24129         Reported by Mike Frysinger <vapier@gentoo.org>.
24130
24131 2010-11-20  Bruno Haible  <bruno@clisp.org>
24132
24133         memmem: Fix autoconf test.
24134         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
24135
24136 2010-11-20  Bruno Haible  <bruno@clisp.org>
24137
24138         Port to uClibc.
24139         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
24140         * lib/fcntl.in.h: Likewise.
24141         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
24142         * lib/mbrtowc.c (mbrtowc): Likewise.
24143         * lib/relocatable.c (find_shared_library_fullname): Likewise.
24144         * lib/strerror_r.c: Likewise.
24145         * lib/unistr/u8-strnlen.c: Likewise.
24146         * lib/vasnprintf.c (decimal_point_char): Likewise.
24147         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
24148         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
24149         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
24150         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
24151         * tests/test-sigaction.c (handler, main): Likewise.
24152         * lib/freading.h: Treat uClibc like a non-glibc platform.
24153         * lib/freading.c: Likewise.
24154         * lib/gettext.h: Likewise.
24155         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
24156         Likewise.
24157         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
24158         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
24159         * lib/propername.c (proper_name_utf8): Likewise.
24160         * lib/spawn.in.h: Likewise.
24161         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
24162         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
24163         mem_cd_iconveh_internal): Likewise.
24164         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
24165         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
24166         strstr, strcasestr): Likewise.
24167         * lib/unicodeio.c (unicode_to_mb): Likewise.
24168         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
24169         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
24170         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
24171         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
24172         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
24173         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
24174         * lib/unistr/u8-stpncpy.c: Likewise.
24175         * lib/vasnprintf.c (VASNPRINTF): Likewise.
24176         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
24177         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24178         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24179         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
24180         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
24181         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
24182         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
24183         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
24184         Likewise.
24185         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24186         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24187         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24188         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24189         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24190         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24191         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24192         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24193         * tests/test-getopt.h (OPTIND_MIN): Likewise.
24194         * tests/test-striconveha.c (main): Likewise.
24195         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24196         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
24197         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
24198         * doc/posix-functions/getline.texi: Likewise.
24199         Reported by Mike Frysinger <vapier@gentoo.org>.
24200
24201 2010-11-20  Bruno Haible  <bruno@clisp.org>
24202
24203         nproc: Fix condition.
24204         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
24205         HAVE_PTHREAD_AFFINITY_NP.
24206
24207 2010-11-20  Bruno Haible  <bruno@clisp.org>
24208
24209         Fix a comment.
24210         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
24211
24212 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
24213
24214         ftoastr: don't assume snprintf
24215         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
24216         Implement a subset of snprintf here, by using sprintf safely.
24217         * modules/ftoastr (Depends-on): Remove snprintf.
24218
24219 2010-11-19  Jim Meyering  <meyering@redhat.com>
24220
24221         test-rename.h: fix compilation failure
24222         * tests/test-rename.h (test_rename): Add omitted "}".
24223
24224 2010-11-17  Jim Meyering  <meyering@redhat.com>
24225
24226         maint.mk: add a URL discussing the no-@acronym policy
24227         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
24228
24229 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
24230
24231         ftoastr: depend on snprintf, improve comments
24232         * lib/ftoastr.c: Also mention Loitsch's draft.
24233         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
24234         needed in the current implementation, but it might simplify
24235         speeding up the code later.
24236         * modules/ftoastr: Depend on snprintf; this improves portability.
24237         Suggested by Bruno Haible in the same email.
24238
24239         ftoastr: port to hosts lacking strtof and strtold
24240         Problem reported by Bruno Haible in
24241         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
24242         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
24243         environment and strtold (and presumably strtof) are not available.
24244         * modules/ftoastr (Files): Add m4/c-strtod.m4.
24245         (configure.ac): Require gl_C99_STRTOLD.
24246
24247 2010-11-18  Bruno Haible  <bruno@clisp.org>
24248
24249         c-strtold: Avoid link error on AIX 7.
24250         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
24251         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
24252         (gl_C_STRTOLD): Test whether strtold_l exists.
24253         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24254
24255 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
24256
24257         intprops: new macro INT_BITS_STRLEN_BOUND
24258         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
24259         ftoastr.h.  This exposes an internal of intprops.h that was formerly
24260         not exposed.  Also, it uses a slightly tighter bound than before;
24261         though this makes no practical difference, we might as well be as
24262         tight as we easily can.
24263
24264         ftoastr: new module, for lossless conversion of floats to short strings
24265         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
24266         * modules/ftoastr: New files.
24267
24268 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
24269
24270         bootstrap: port to Solaris sed
24271         * build-aux/bootstrap (get_version): Port to Solaris sed.
24272         See Ralf Wildenhues's note in
24273         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
24274
24275 2010-11-14  Jim Meyering  <meyering@redhat.com>
24276
24277         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
24278         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
24279         and move definition closer to sole use.
24280
24281 2010-11-13  Jim Meyering  <meyering@redhat.com>
24282
24283         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
24284         Now we require at least autoconf-2.59, which means the work-around
24285         is no longer needed.
24286         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
24287         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24288         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
24289         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
24290         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
24291
24292 2010-11-13  Bruno Haible  <bruno@clisp.org>
24293
24294         rename, renameat: Avoid test failures at NFS mounted locations.
24295         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
24296         functions.
24297         (test_rename): Use assert_nonexistent.
24298         * tests/test-rename.c: Include <dirent.h>.
24299         * tests/test-renameat.c: Likewise.
24300         Reported by Gary V. Vaughan <gary@gnu.org>.
24301
24302         rename, renameat: Document Linux bug with NFS
24303         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
24304         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
24305         * doc/posix-functions/renameat.texi: Likewise.
24306         Suggested by Eric Blake.
24307
24308 2010-11-13  Bruno Haible  <bruno@clisp.org>
24309
24310         rename test: Add comments.
24311         * tests/test-rename.h (test_rename): Add structure and comments.
24312
24313 2010-11-13  Eric Blake  <eblake@redhat.com>
24314
24315         maintainer-makefile: cover a few more files
24316         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
24317         scripts generated within C files, for libvirt.
24318
24319 2010-11-13  Bruno Haible  <bruno@clisp.org>
24320
24321         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
24322         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
24323         character, return the number of bytes that belong together, not always
24324         1.
24325         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
24326         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
24327         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
24328         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
24329         number of bytes of an invalid character.
24330         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
24331         (main): Invoke it.
24332         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
24333         results.
24334         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
24335         malformed byte sequences.
24336         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
24337         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
24338         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
24339         Reported by Ben Pfaff and Paolo Bonzini.
24340
24341 2010-11-13  Bruno Haible  <bruno@clisp.org>
24342
24343         openat: Work around glibc bug with fchownat() and empty file names.
24344         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
24345         (gl_FUNC_FCHOWNAT): Invoke it.
24346         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
24347         * doc/posix-functions/fchownat.texi: Document the glibc bug.
24348         Reported by Gary V. Vaughan <gary@gnu.org>.
24349
24350 2010-11-13  Bruno Haible  <bruno@clisp.org>
24351
24352         openat: Ensure autoconf macro ordering.
24353         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
24354         gl_USE_SYSTEM_EXTENSIONS.
24355         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
24356
24357 2010-11-13  Bruno Haible  <bruno@clisp.org>
24358
24359         Update comments.
24360         * lib/unistr/u8-check.c: Update file name in comments.
24361         * lib/unistr/u8-mblen.c: Likewise.
24362         * lib/unistr/u8-prev.c: Likewise.
24363         * lib/unistr/u8-strmblen.c: Likewise.
24364         * lib/unistr/u8-strmbtouc.c: Likewise.
24365
24366 2010-11-13  Jim Meyering  <meyering@redhat.com>
24367
24368         tests: avoid test failure on Solaris 10 due to lack of PATH export
24369         * tests/test-update-copyright.sh: Don't forget to export PATH.
24370
24371         init.sh: ensure that IFS is defined, just in case...
24372         * tests/init.sh (setup_): Ensure that IFS is defined,
24373         so that saving and restoring it works as expected.  This
24374         appears to be useful at least for an old version of dash
24375         from a long time ago (RH 6).  See here for details:
24376         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
24377
24378         maint.mk: tighten "test a == b" check
24379         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
24380         test to files that contain something like #!/bin/sh.
24381         Without this, coreutils would get two false positives in
24382         the comments of C source files.
24383
24384 2010-11-12  Eric Blake  <eblake@redhat.com>
24385
24386         bootstrap: fix typo in previous attempt
24387         * build-aux/bootstrap (buildreq): Correct the grouping.
24388         Reported by Paul Eggert.
24389
24390         maintainer-makefile: prohibit test x == x
24391         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
24392         Based on a report by Matthias Bolte.
24393
24394         bootstrap: allow FreeBSD gzip
24395         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
24396         which has no '.' and goes to stderr.
24397         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
24398         Reported by Matthias Bolte.
24399
24400         maintainer-makefile: check for i18n setup
24401         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
24402         will likely work.
24403
24404 2010-11-12  Bruno Haible  <bruno@clisp.org>
24405
24406         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
24407         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
24408         * lib/nanosleep.c (nanosleep): Likewise.
24409
24410 2010-11-11  Bruno Haible  <bruno@clisp.org>
24411
24412         fcntl-h: Fix for use of C++ on glibc systems.
24413         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
24414         also on glibc systems in C++ mode.
24415         Reported by Gary V. Vaughan <gary@gnu.org>.
24416
24417 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24418
24419         mknod: avoid false failure with dash
24420         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
24421
24422 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
24423
24424         unlink: Fix "is it should" typo in diagnostic.
24425         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
24426         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
24427
24428 2010-11-11  Bruno Haible  <bruno@clisp.org>
24429
24430         Tests for module 'strerror_r-posix'.
24431         * modules/strerror_r-posix-tests: New file.
24432         * tests/test-strerror_r.c: New file.
24433         * tests/test-string-c++.cc: Check the signature of strerror_r.
24434
24435         New module 'strerror_r-posix'.
24436         * lib/string.in.h (strerror_r): New declaration.
24437         * lib/strerror_r.c: New file.
24438         * m4/strerror_r.m4: New file.
24439         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
24440         of strerror_r.
24441         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
24442         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24443         * modules/strerror_r-posix: New file.
24444         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
24445         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24446         * doc/posix-functions/strerror_r.texi: Mention the new module and the
24447         portability problems.
24448
24449 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
24450
24451         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
24452         line is also considered for output. Quoted function name in shell
24453         command, so temporary files for functions like MyClass::operator()
24454         are removed correctly without errors.
24455
24456 2010-11-09  Bruno Haible  <bruno@clisp.org>
24457
24458         * doc/posix-functions/strerror.texi: List more failing platforms.
24459
24460         * doc/posix-functions/strerror.texi: Add a comment.
24461
24462 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
24463
24464         fdopendir: fix bug on MacOS X when low on file descriptors
24465
24466         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
24467         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
24468         All callers changed.
24469         (fdopendir): Invoke save_cwd at the top level, not after using
24470         multiple dup() calls to use up file descriptors.  Then retry
24471         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
24472         less than the maximum number of open file descriptors, because
24473         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
24474         on Mac OS X 10.6.4 for tar 1.24
24475         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
24476         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
24477         and for tar 1.25
24478         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
24479
24480 2010-11-07  Bruno Haible  <bruno@clisp.org>
24481
24482         vasnprintf: Support I flag on glibc systems.
24483         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
24484         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
24485         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
24486         snprintf function.
24487         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
24488         glibc systems.
24489         * tests/test-vasnprintf-posix3.c: New file.
24490         * modules/vasnprintf-posix-tests (Files): Add it.
24491         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
24492
24493 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24494
24495         [html] Fix copy/paste bug: Use unique name for compiler warnings.
24496         * MODULES.html.sh: For compiler warnings, use name
24497         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
24498
24499 2010-11-05  Eric Blake  <eblake@redhat.com>
24500
24501         ceil, floor: avoid spurious failure with icc
24502         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
24503         [denormals-as-zero] when optimizing without -mieee-fp option.
24504         * tests/test-floorf2.c (floorf_reference): Likewise.
24505         * tests/test-ceilf1.c (dummy): New function.
24506         (main): Use it to outsmart icc's optimization.
24507         * tests/test-floorf1.c (dummy, main): Likewise.
24508
24509         tests: require working signbit
24510         * modules/ceilf-tests (Depends-on): Add signbit.
24511         * modules/ceill-tests (Depends-on): Likewise.
24512         * modules/floorf-tests (Depends-on): Likewise.
24513         * modules/floorl-tests (Depends-on): Likewise.
24514         * modules/round-tests (Depends-on): Likewise.
24515         * modules/roundf-tests (Depends-on): Likewise.
24516         * modules/roundl-tests (Depends-on): Likewise.
24517         * modules/trunc-tests (Depends-on): Likewise.
24518         * modules/truncf-tests (Depends-on): Likewise.
24519         * modules/truncl-tests (Depends-on): Likewise.
24520
24521         strtod: work around icc bug
24522         * lib/strtod.c (minus_zero): Define to working value.
24523         (strtod): Use it to avoid icc bug.
24524
24525         copysign: enhance tests
24526         * modules/copysign-tests (Files): Add minus-zero.h.
24527         * tests/test-copysign.c (main): Also test zeros.
24528
24529 2010-11-04  Eric Blake  <eblake@redhat.com>
24530
24531         ceil, floor, round, trunc: enhance tests of -0
24532         * tests/test-ceilf1.c (main): Ensure correct sign of result.
24533         * tests/test-ceill.c (main): Likewise.
24534         * tests/test-floorf1.c (main): Likewise.
24535         * tests/test-floorl.c (main): Likewise.
24536         * tests/test-round1.c (main): Likewise.
24537         * tests/test-roundf1.c (main): Likewise.
24538         * tests/test-roundl.c (main): Likewise.
24539         * tests/test-trunc1.c (main): Likewise.
24540         * tests/test-truncf1.c (main): Likewise.
24541         * tests/test-truncl.c (main): Likewise.
24542
24543 2010-11-04  Eric Blake  <eblake@redhat.com>
24544
24545         frexp, tests: work around ICC bug with -zero
24546         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
24547         works with more compilers.
24548         * tests/minus-zero.h: New file.
24549         * modules/ceilf-tests (Files): Include it.
24550         * modules/ceill-tests (Files): Likewise.
24551         * modules/floorf-tests (Files): Likewise.
24552         * modules/floorl-tests (Files): Likewise.
24553         * modules/frexp-nolibm-tests (Files): Likewise.
24554         * modules/frexp-tests (Files): Likewise.
24555         * modules/frexpl-nolibm-tests (Files): Likewise.
24556         * modules/frexpl-tests (Files): Likewise.
24557         * modules/isnan-tests (Files): Likewise.
24558         * modules/isnand-nolibm-tests (Files): Likewise.
24559         * modules/isnand-tests (Files): Likewise.
24560         * modules/isnanf-nolibm-tests (Files): Likewise.
24561         * modules/isnanf-tests (Files): Likewise.
24562         * modules/isnanl-nolibm-tests (Files): Likewise.
24563         * modules/isnanl-tests (Files): Likewise.
24564         * modules/round-tests (Files): Likewise.
24565         * modules/roundf-tests (Files): Likewise.
24566         * modules/roundl-tests (Files): Likewise.
24567         * modules/ldexpl-tests (Files): Likewise.
24568         * modules/signbit-tests (Files): Likewise.
24569         * modules/snprintf-posix-tests (Files): Likewise.
24570         * modules/sprintf-posix-tests (Files): Likewise.
24571         * modules/strtod-tests (Files): Likewise.
24572         * modules/trunc-tests (Files): Likewise.
24573         * modules/truncf-tests (Files): Likewise.
24574         * modules/truncl-tests (Files): Likewise.
24575         * modules/vsnprintf-posix-tests (Files): Likewise.
24576         * modules/vsprintf-posix-tests (Files): Likewise.
24577         * modules/vasnprintf-posix-tests (Files): Likewise.
24578         * modules/vasprintf-posix-tests (Files): Likewise.
24579         * tests/test-ceilf1.c (main): Use it.
24580         * tests/test-ceill.c (main): Likewise.
24581         * tests/test-floorf1.c (main): Likewise.
24582         * tests/test-floorl.c (main): Likewise.
24583         * tests/test-frexp.c (main): Likewise.
24584         * tests/test-frexpl.c (main): Likewise.
24585         * tests/test-isnan.c (main): Likewise.
24586         * tests/test-isnand.h (main): Likewise.
24587         * tests/test-isnanf.h (main): Likewise.
24588         * tests/test-isnanl.h (main): Likewise.
24589         * tests/test-ldexpl.c (main): Likewise.
24590         * tests/test-round.c (main): Likewise.
24591         * tests/test-roundf.c (main): Likewise.
24592         * tests/test-roundl.c (main): Likewise.
24593         * tests/test-signbit.c (test_signbitf, test_signbitd)
24594         (test_signbitl): Likewise.
24595         * tests/test-snprintf-posix.h (test_function): Likewise.
24596         * tests/test-sprintf-posix.h (test_function): Likewise.
24597         * tests/test-strtod.c (main): Likewise.
24598         * tests/test-trunc1.c (main): Likewise.
24599         * tests/test-truncf1.c (main): Likewise.
24600         * tests/test-truncl.c (main): Likewise.
24601
24602         isnanl: work around icc bug
24603         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
24604
24605 2010-11-03  Eric Blake  <eblake@redhat.com>
24606
24607         tests: fix compiler warnings
24608         * tests/test-getopt.h (test_getopt): Fix condition.
24609         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24610         * tests/test-pipe2.c (main): Likewise.
24611         * tests/test-quotearg-simple.c (main): Avoid icc warning.
24612
24613         utimens: fix broken m4 test
24614         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
24615
24616 2010-10-28  Bruno Haible  <bruno@clisp.org>
24617
24618         posix_spawn*, getdtablesize: Relax license.
24619         * modules/posix_spawn (License): Change to LGPLv2+.
24620         * modules/posix_spawnp (License): Likewise.
24621         * modules/posix_spawn-internal (License): Likewise.
24622         * modules/posix_spawnattr_init (License): Likewise.
24623         * modules/posix_spawnattr_getflags (License): Likewise.
24624         * modules/posix_spawnattr_setflags (License): Likewise.
24625         * modules/posix_spawnattr_getpgroup (License): Likewise.
24626         * modules/posix_spawnattr_setpgroup (License): Likewise.
24627         * modules/posix_spawnattr_getschedparam (License): Likewise.
24628         * modules/posix_spawnattr_setschedparam (License): Likewise.
24629         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
24630         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
24631         * modules/posix_spawnattr_getsigdefault (License): Likewise.
24632         * modules/posix_spawnattr_setsigdefault (License): Likewise.
24633         * modules/posix_spawnattr_getsigmask (License): Likewise.
24634         * modules/posix_spawnattr_setsigmask (License): Likewise.
24635         * modules/posix_spawnattr_destroy (License): Likewise.
24636         * modules/posix_spawn_file_actions_init (License): Likewise.
24637         * modules/posix_spawn_file_actions_addclose (License): Likewise.
24638         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
24639         * modules/posix_spawn_file_actions_addopen (License): Likewise.
24640         * modules/posix_spawn_file_actions_destroy (License): Likewise.
24641         * modules/getdtablesize (License): Likewise.
24642         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
24643
24644 2010-10-26  Bruno Haible  <bruno@clisp.org>
24645
24646         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
24647         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
24648         Cygwin and mingw.
24649         Suggested by Eric Blake.
24650
24651 2010-10-26  Bruno Haible  <bruno@clisp.org>
24652
24653         stdio: Work around compilation error due to renameat() on Solaris 10.
24654         * lib/stdio.in.h: Include <unistd.h> on Solaris.
24655         * lib/renameat.c: Don't include <unistd.h> here.
24656         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
24657         Reported by Paul Eggert and Eric Blake.
24658
24659 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
24660
24661         renameat: port to Solaris 10, which declares renameat in unistd.h
24662
24663         * lib/renameat.c: Include unistd.h before stdio.h, because
24664         Solaris 10 declares renameat in unistd.h.  Problem encountered
24665         when building GNU tar 1.24 on Solaris 10.
24666
24667 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24668
24669         fdopendir: fix C89 compilation
24670         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
24671         compilers.
24672
24673 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
24674
24675         inttostr: simplify by removing unnecessary redundancy
24676         * lib/anytostr.c: Don't include verify.h.
24677         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
24678         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
24679         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
24680         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
24681         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
24682         Likewise.
24683         * modules/inttostr (Depends-on): Remove 'verify'.
24684
24685 2010-10-23  Bruno Haible  <bruno@clisp.org>
24686
24687         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
24688         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
24689         Reported by Eric Blake.
24690
24691 2010-10-23  Bruno Haible  <bruno@clisp.org>
24692
24693         Tests: Fix LOCALE_JA on MirBSD 10.
24694         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
24695         to an UTF-8 locale.
24696         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
24697         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24698         Reported by Eric Blake.
24699
24700 2010-10-21  Bruno Haible  <bruno@clisp.org>
24701
24702         nl_langinfo test: Avoid test failure on NetBSD 5.
24703         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
24704         Reported by Eric Blake.
24705
24706 2010-10-21  Eric Blake  <eblake@redhat.com>
24707
24708         c-stack: work around libsigsegv 2.8 bug
24709         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
24710         overflow on at least PowerPC64.
24711
24712 2010-10-17  Bruno Haible  <bruno@clisp.org>
24713
24714         userspec: Drop redundant file.
24715         * modules/userspec (Files): Remove lib/inttostr.h.
24716
24717 2010-10-17  Bruno Haible  <bruno@clisp.org>
24718
24719         nl_langinfo tests: Silence some warnings.
24720         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
24721         Reported by Jim Meyering.
24722
24723 2010-10-17  Bruno Haible  <bruno@clisp.org>
24724
24725         Make use of GCC's attribute __alloc_size__.
24726         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
24727         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
24728         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
24729         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
24730         __alloc_size__.
24731         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24732         Suggested by Jim Meyering.
24733
24734 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
24735
24736         bootstrap: anchor .gitignore entries.
24737         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
24738         with...
24739         (insert_vc_ignore): ... this new function, which prepends `/' to
24740         all .gitignore entries before passing them to
24741         insert_sorted_if_absent.
24742
24743 2010-10-16  Bruno Haible  <bruno@clisp.org>
24744
24745         nextafter: Fix configure check.
24746         * modules/nextafter (configure.ac): Correct expected prototype.
24747
24748 2010-10-16  Bruno Haible  <bruno@clisp.org>
24749
24750         termios: Update documentation.
24751         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
24752
24753 2010-10-16  Bruno Haible  <bruno@clisp.org>
24754
24755         tests: Make them compile with TinyCC.
24756         * tests/test-strstr.c (main): Remove parentheses around array
24757         initializer.
24758
24759 2010-10-15  Eric Blake  <eblake@redhat.com>
24760
24761         ignore-value: make header idempotent
24762         * lib/ignore-value.h: Add double-inclusion guards.
24763         Reported by Stefan Berger.
24764
24765 2010-10-15  Jim Meyering  <meyering@redhat.com>
24766
24767         GNUmakefile: handle "stable" target, not "major"
24768         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
24769         lists in maint.mk and announce-gen.  Without this, "make stable"
24770         would fail to ensure that $(VERSION) is up to date.
24771
24772 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
24773
24774         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
24775         & co.
24776
24777 2010-10-14  Bruno Haible  <bruno@clisp.org>
24778
24779         vasnprintf: Don't set errno to 0.
24780         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
24781         block that sets it to 0.
24782         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24783
24784 2010-10-14  Bruno Haible  <bruno@clisp.org>
24785
24786         socketlib: Fix.
24787         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
24788         gl_PREREQ_SYS_H_WINSOCK2.
24789         Reported by Ian Beckwith <ianb@erislabs.net>.
24790
24791 2010-10-13  Jim Meyering  <meyering@redhat.com>
24792
24793         test-select-stdin.c: avoid warn_unused_result warnings
24794         * tests/test-select-stdin.c: Include "macros.h".
24795         ASSERT that read and fflush succeed.
24796
24797 2010-10-13  Jim Meyering  <meyering@redhat.com>
24798
24799         git-version-gen: do require git-VC'd files in cwd
24800         * build-aux/git-version-gen: Reject a git version string
24801         if there are no commits associated with the current directory.
24802         This avoids an unlikely false-positive (unrelated dir whose parent
24803         repository also contains a tag matching v*), as pointed out
24804         by Giuseppe Scrivano in
24805         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
24806
24807 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24808
24809         argv-iter: omit nonconforming declaration
24810         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
24811         enum arg_iter_err declaration, which doesn't conform to C99.
24812         Solaris 10 cc warns about this.
24813
24814 2010-10-13  Eric Blake  <eblake@redhat.com>
24815
24816         termios: fix compilation on mingw
24817         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
24818         (gl_TERMIOS_H): Adjust it on mingw.
24819         * modules/termios (Makefile.am): Substitute new key.
24820         * lib/termios.in.h (includes): Make include_next conditional.
24821         * doc/posix-headers/termios.texi (termios.h): Update
24822         documentation.
24823         Reported by Daniel P. Berrange.
24824
24825 2010-10-13  Jim Meyering  <meyering@redhat.com>
24826
24827         git-version-gen: don't require that .git/ be in the current dir
24828         * build-aux/git-version-gen: Adjust this script so that it works
24829         when run from any working directory beneath the top-level .git/-
24830         containing directory.  Inspired by a patch from Giuseppe Scrivano,
24831         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
24832
24833         test-select: avoid warn_unused_result warnings
24834         * tests/test-select.c: Include "macros.h".
24835         ASSERT that each call to read, write, and pipe succeeds.
24836         While not technically required, also check each "close".
24837         * modules/select-tests (Files): Add tests/macros.h.
24838
24839         test-symlinkat: remove declaration of unused local
24840         * tests/test-symlinkat.c (main): Remove unused local, "buf".
24841
24842         test-inttostr: avoid shadowing warnings
24843         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
24844         and use malloc rather than the stack for the same reason as
24845         mentioned in the comment justifying the other allocation.
24846
24847 2010-10-11  Bruno Haible  <bruno@clisp.org>
24848
24849         stdlib: Allow multiple gnulib generated replacements to coexist.
24850         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
24851         Reported by Sam Steingold <sds@gnu.org>.
24852
24853 2010-10-11  Jim Meyering  <meyering@redhat.com>
24854
24855         fix a documentation typo
24856         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
24857
24858 2010-10-11  Eric Blake  <eblake@redhat.com>
24859
24860         futimens: work around Solaris 11 bug
24861         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
24862         * tests/test-futimens.h (test_futimens): Enhance, rather than
24863         weaken test.
24864         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24865
24866 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
24867
24868         Indentation.
24869         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
24870         higher-level operators more to the left.
24871
24872 2010-10-11  Jim Meyering  <meyering@redhat.com>
24873
24874         test-futimens: avoid unwarranted test failure on Solaris 5.11
24875         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
24876         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
24877         because it tries to dereference the NULL name argument.
24878
24879 2010-10-11  Bruno Haible  <bruno@clisp.org>
24880
24881         Indentation.
24882         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
24883         indentation.
24884
24885 2010-10-11  Jim Meyering  <meyering@redhat.com>
24886
24887         spawn.in.h: make indentation consistent with parentheses
24888         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
24889         Make indentation consistent with parentheses.
24890
24891 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
24892
24893         Fix mismatched parens in previous commit
24894         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
24895         parens.
24896
24897 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
24898
24899         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
24900
24901         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
24902         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
24903         * lib/malloca.c: Include "verify.h".
24904         (verify1): Remove, replacing with a verify call.
24905         * lib/relocwrapper.c (verify1): Likewise.
24906         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
24907         Likewise.
24908         * modules/malloca (Depends-on): Add 'verify'.
24909         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
24910         * modules/vasnprintf (Depends-on): Add 'verify'.
24911         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24912         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24913         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24914         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24915         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24916         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24917         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24918
24919         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
24920
24921         Formerly the style was sometimes 2*X - 1, because the C standard
24922         was wrongly thought to disallow ?: in integral constant expressions.
24923         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
24924         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
24925         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24926         * lib/stdint.in.h (_verify_intmax_size): Likewise.
24927         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
24928         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
24929         verify that time_t cannot be floating.
24930
24931 2010-10-08  Eric Blake  <eblake@redhat.com>
24932
24933         time: enforce recent POSIX ruling that time_t is integral
24934         * lib/time.in.h (__time_t_must_be_integral): Detect any
24935         problematic systems, allowing the rest of gnulib to assume POSIX.
24936
24937 2010-10-08  Jim Meyering  <meyering@redhat.com>
24938
24939         fdopendir: fix a bug on systems lacking openat and /proc support
24940         OpenBSD 4.7 is one such system.  The most noticeable effect was
24941         failure of any application making nontrivial use of fts: rm, du,
24942         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
24943           ./rm: traversal failed: `a': Bad file descriptor
24944         Debugging that, you see that even though FD 6 was closed just
24945         prior to the opendir call in fd_clone_opendir, its resulting
24946         dir->dd_fd was 8, rather than the expected value of 6:
24947
24948         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
24949         93                close (fd);
24950         (gdb) n
24951         94                dir = fd_clone_opendir (dupfd);
24952         (gdb) n
24953         95                saved_errno = errno;
24954         (gdb) p dir->dd_fd
24955         $11 = 8
24956
24957         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
24958         The problem is that on OpenBSD, fd_clone_opendir has to resort
24959         to using the old-style save/restore CWD mechanism, due to its
24960         lack of openat/proc support, and *that* would steal the FD (6)
24961         that opendir was supposed to use.
24962
24963         The fix is to squirrel away the desired FD so that save_cwd uses a
24964         different one, and then free the dest FD right before calling opendir.
24965         That guarantees opendir will use the required file descriptor.
24966
24967         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
24968
24969 2010-10-08  Bruno Haible  <bruno@clisp.org>
24970
24971         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
24972         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
24973
24974 2010-10-08  Bruno Haible  <bruno@clisp.org>
24975
24976         nanosleep: Make replacement POSIX compliant.
24977         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
24978         is out of range.
24979         Reported by Jim Meyering.
24980
24981 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
24982
24983         bootstrap: add hook for altering gnulib.mk, for Bison
24984         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
24985         the Bison bootstrapping process can rewrite file names and variables
24986         in this file before later parts of 'bootstrap' use the file.
24987         Bison wants to include lib/gnulib.mk from the top-level makefile,
24988         so it needs the file names in this file to be relative to the top
24989         level, not relative to lib; plus it needs variable names to be
24990         rewritten.
24991         (slurp): Use the new function.
24992
24993         bootstrap: reformat for readability
24994         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
24995
24996 2010-10-08  Eric Blake  <eblake@redhat.com>
24997
24998         docs: update cygwin progress
24999         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
25000         1.7.7.
25001         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
25002         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
25003         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
25004         * doc/posix-functions/carg.texi (carg): Likewise.
25005         * doc/posix-functions/cargf.texi (cargf): Likewise.
25006         * doc/posix-functions/casin.texi (casin): Likewise.
25007         * doc/posix-functions/casinf.texi (casinf): Likewise.
25008         * doc/posix-functions/casinh.texi (casinh): Likewise.
25009         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
25010         * doc/posix-functions/catan.texi (catan): Likewise.
25011         * doc/posix-functions/catanf.texi (catanf): Likewise.
25012         * doc/posix-functions/catanh.texi (catanh): Likewise.
25013         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
25014         * doc/posix-functions/ccos.texi (ccos): Likewise.
25015         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
25016         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
25017         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
25018         * doc/posix-functions/cexp.texi (cexp): Likewise.
25019         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
25020         * doc/posix-functions/cimag.texi (cimag): Likewise.
25021         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
25022         * doc/posix-functions/clog.texi (clog): Likewise.
25023         * doc/posix-functions/clogf.texi (clogf): Likewise.
25024         * doc/posix-functions/conj.texi (conj): Likewise.
25025         * doc/posix-functions/conjf.texi (conjf): Likewise.
25026         * doc/posix-functions/cpow.texi (cpow): Likewise.
25027         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
25028         * doc/posix-functions/cproj.texi (cproj): Likewise.
25029         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
25030         * doc/posix-functions/creal.texi (creal): Likewise.
25031         * doc/posix-functions/crealf.texi (crealf): Likewise.
25032         * doc/posix-functions/csin.texi (csin): Likewise.
25033         * doc/posix-functions/csinf.texi (csinf): Likewise.
25034         * doc/posix-functions/csinh.texi (csinh): Likewise.
25035         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
25036         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
25037         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
25038         * doc/posix-functions/ctan.texi (ctan): Likewise.
25039         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
25040         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
25041         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
25042         * doc/posix-headers/complex.texi (complex.h): Likewise.
25043
25044 2010-10-07  Jim Meyering  <meyering@redhat.com>
25045
25046         parse-datetime: avoid compilation failure on OpenBSD 4.7
25047         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
25048         This works around a compilation failure on OpenBSD 4.7:
25049         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
25050
25051 2010-10-07  Eric Blake  <eblake@redhat.com>
25052
25053         docs: update cygwin progress
25054         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
25055         1.7.6.
25056         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
25057         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
25058         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
25059         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
25060         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
25061         Likewise.
25062         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
25063         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
25064         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
25065         Likewise.
25066         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
25067         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
25068         Likewise.
25069         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
25070         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
25071         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
25072         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
25073         Likewise.
25074         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
25075         Likewise.
25076         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
25077
25078         docs: update parse-datetime history
25079         * doc/parse-datetime.texi (Authors of parse_datetime): Better
25080         documentation of this function's history and alternatives.
25081
25082         cygwin: use more robust version check
25083         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
25084         exclude an eventual cygwin 1.9.1.
25085         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25086         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25087         (gl_FUNC_STRCASESTR): Likewise.
25088         Reported by Bruno Haible.
25089
25090 2010-10-06  Bruno Haible  <bruno@clisp.org>
25091
25092         string, sys_select: Avoid #including large headers unless necessary.
25093         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
25094         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
25095         OSF/1, BeOS, Haiku.
25096         Reported by Jim Meyering.
25097
25098 2010-10-05  Eric Blake  <eblake@redhat.com>
25099
25100         memmem, strstr, strcasestr: fix bug with long periodic needle
25101         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
25102         periodic needle having false positive.
25103         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
25104         and cygwin 1.7.7.
25105         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
25106         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25107         (gl_FUNC_STRCASESTR): Likewise.
25108         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25109         * tests/test-memmem.c (main): Expose the bug.
25110         * tests/test-strcasestr.c (main): Likewise.
25111         * tests/test-strstr.c (main): Likewise.
25112         * tests/test-c-strcasestr.c (main): Likewise.
25113         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
25114         * doc/posix-functions/strstr.texi (strstr): Likewise.
25115         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25116         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
25117
25118 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25119
25120         parse-datetime: do some more renaming
25121         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
25122         parse_datetime, not get_date.  Mention the renaming.
25123         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
25124         in comments.
25125         * m4/bison.m4: Likewise.
25126
25127 2010-10-05  Eric Blake  <eblake@redhat.com>
25128
25129         parse-datetime: better name than get_date
25130         * NEWS: Reword the deprecation notice.
25131         * modules/get_date: Rename to modules/parse-datetime.
25132         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
25133         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
25134         * lib/get_date.y: Rename to lib/parse-datetime.y.
25135         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
25136         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
25137         * doc/getdate.texi: Provide fallback wrapper.
25138         * lib/getdate.h: Move guts, and wrap...
25139         * lib/parse-datetime.h: ...new file.
25140         * lib/parse-datetime.y (get_date): Rename...
25141         (parse_datetime): ...to this.
25142         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
25143         (gl_PARSE_DATETIME): ...to this.
25144         * doc/posix-functions/getdate.texi (get_date): Provide fallback
25145         documentation.
25146         * modules/getdate (Files): Provide fallback docs and header.
25147         (Notice, Depends-on): Update references.
25148         * tests/test-parse-datetime.c: Likewise.
25149         * DEPENDENCIES: Likewise.
25150         * MODULES.html.sh (Date and time <time.h>): Likewise.
25151         * doc/parse-datetime.texi (Date input formats)
25152         (Authors of parse_datetime): Likewise.
25153         * modules/parse-datetime (Files, configure.ac, Makefile.am)
25154         (Include): Likewise.
25155         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
25156         * gnulib-tool: Likewise.
25157         * m4/bison.m4 (gl_BISON): Likewise.
25158         Suggested by Bruno Haible.
25159
25160 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25161
25162         more ports to Solaris tr, which needs [] around ranges
25163         * gnulib-tool: Solaris tr needs [] around ranges.
25164         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25165         * tests/test-pipe-filter-gi1.c (main): Likewise.
25166         * tests/test-pipe-filter-ii1.c (main): Likewise.
25167
25168 2010-10-05  Eric Blake  <eblake@redhat.com>
25169
25170         bootstrap: fix Solaris regression
25171         * build-aux/bootstrap (check_versions): Solaris tr still needs []
25172         around ranges.
25173         Reported by Pádraig Brady.
25174
25175         bootstrap: work with pkg-config
25176         * build-aux/bootstrap (check_versions): Also transliterate - in
25177         prerequisite name.
25178         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
25179         prerequisites that were already found, to avoid confusion.
25180         Reported by Justin Clift.
25181
25182         faccessat: remove unused wrappers
25183         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
25184         presence of these wrappers dragged in -lgen on Solaris.
25185         Reported by Clemens Brogi; fix suggested by Paul Eggert.
25186
25187 2010-10-05  Jim Meyering  <meyering@redhat.com>
25188
25189         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
25190         * Makefile (sc_pragma_columns): New syntax-check rule.
25191
25192 2010-10-04  Bruno Haible  <bruno@clisp.org>
25193
25194         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
25195         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
25196         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
25197         Reported by Bruce Korb and Eric Blake.
25198
25199 2010-10-04  Bruno Haible  <bruno@clisp.org>
25200
25201         threadlib: Make option --with-libpth-prefix work.
25202         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
25203         use $LIBPTH, not just -lpth.
25204
25205 2010-10-04  Bruno Haible  <bruno@clisp.org>
25206
25207         Avoid line length limitation from HP NonStop system header files.
25208         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
25209         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
25210         * lib/ctype.in.h: Likewise.
25211         * lib/dirent.in.h: Likewise.
25212         * lib/errno.in.h: Likewise.
25213         * lib/fcntl.in.h: Likewise.
25214         * lib/float.in.h: Likewise.
25215         * lib/getopt.in.h: Likewise.
25216         * lib/iconv.in.h: Likewise.
25217         * lib/inttypes.in.h: Likewise.
25218         * lib/langinfo.in.h: Likewise.
25219         * lib/locale.in.h: Likewise.
25220         * lib/math.in.h: Likewise.
25221         * lib/netdb.in.h: Likewise.
25222         * lib/netinet_in.in.h: Likewise.
25223         * lib/poll.in.h: Likewise.
25224         * lib/pthread.in.h: Likewise.
25225         * lib/pty.in.h: Likewise.
25226         * lib/sched.in.h: Likewise.
25227         * lib/se-selinux.in.h: Likewise.
25228         * lib/search.in.h: Likewise.
25229         * lib/signal.in.h: Likewise.
25230         * lib/spawn.in.h: Likewise.
25231         * lib/stdarg.in.h: Likewise.
25232         * lib/stddef.in.h: Likewise.
25233         * lib/stdint.in.h: Likewise.
25234         * lib/stdio.in.h: Likewise.
25235         * lib/stdlib.in.h: Likewise.
25236         * lib/string.in.h: Likewise.
25237         * lib/strings.in.h: Likewise.
25238         * lib/sys_file.in.h: Likewise.
25239         * lib/sys_ioctl.in.h: Likewise.
25240         * lib/sys_select.in.h: Likewise.
25241         * lib/sys_socket.in.h: Likewise.
25242         * lib/sys_stat.in.h: Likewise.
25243         * lib/sys_time.in.h: Likewise.
25244         * lib/sys_times.in.h: Likewise.
25245         * lib/sys_utsname.in.h: Likewise.
25246         * lib/sys_wait.in.h: Likewise.
25247         * lib/sysexits.in.h: Likewise.
25248         * lib/termios.in.h: Likewise.
25249         * lib/time.in.h: Likewise.
25250         * lib/unistd.in.h: Likewise.
25251         * lib/wchar.in.h: Likewise.
25252         * lib/wctype.in.h: Likewise.
25253         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
25254         * modules/ctype (Makefile.am): Likewise.
25255         * modules/dirent (Makefile.am): Likewise.
25256         * modules/errno (Makefile.am): Likewise.
25257         * modules/fcntl-h (Makefile.am): Likewise.
25258         * modules/float (Makefile.am): Likewise.
25259         * modules/getopt-posix (Makefile.am): Likewise.
25260         * modules/iconv-h (Makefile.am): Likewise.
25261         * modules/inttypes (Makefile.am): Likewise.
25262         * modules/langinfo (Makefile.am): Likewise.
25263         * modules/locale (Makefile.am): Likewise.
25264         * modules/math (Makefile.am): Likewise.
25265         * modules/netdb (Makefile.am): Likewise.
25266         * modules/netinet_in (Makefile.am): Likewise.
25267         * modules/poll-h (Makefile.am): Likewise.
25268         * modules/pthread (Makefile.am): Likewise.
25269         * modules/pty (Makefile.am): Likewise.
25270         * modules/sched (Makefile.am): Likewise.
25271         * modules/search (Makefile.am): Likewise.
25272         * modules/selinux-h (Makefile.am): Likewise.
25273         * modules/signal (Makefile.am): Likewise.
25274         * modules/spawn (Makefile.am): Likewise.
25275         * modules/stdarg (Makefile.am): Likewise.
25276         * modules/stddef (Makefile.am): Likewise.
25277         * modules/stdint (Makefile.am): Likewise.
25278         * modules/stdio (Makefile.am): Likewise.
25279         * modules/stdlib (Makefile.am): Likewise.
25280         * modules/string (Makefile.am): Likewise.
25281         * modules/strings (Makefile.am): Likewise.
25282         * modules/sys_file (Makefile.am): Likewise.
25283         * modules/sys_ioctl (Makefile.am): Likewise.
25284         * modules/sys_select (Makefile.am): Likewise.
25285         * modules/sys_socket (Makefile.am): Likewise.
25286         * modules/sys_stat (Makefile.am): Likewise.
25287         * modules/sys_time (Makefile.am): Likewise.
25288         * modules/sys_times (Makefile.am): Likewise.
25289         * modules/sys_utsname (Makefile.am): Likewise.
25290         * modules/sys_wait (Makefile.am): Likewise.
25291         * modules/sysexits (Makefile.am): Likewise.
25292         * modules/termios (Makefile.am): Likewise.
25293         * modules/time (Makefile.am): Likewise.
25294         * modules/unistd (Makefile.am): Likewise.
25295         * modules/wchar (Makefile.am): Likewise.
25296         * modules/wctype (Makefile.am): Likewise.
25297
25298 2010-10-04  Bruno Haible  <bruno@clisp.org>
25299
25300         read-file tests: Avoid a test failure on NonStop Kernel.
25301         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
25302         a regular file.
25303         Reported by Joachim Schmitz <schmitz@hp.com>.
25304
25305 2010-10-03  Bruno Haible  <bruno@clisp.org>
25306
25307         gnulib-tool: Fixes for --create-testdir with --libtool.
25308         * gnulib-tool (func_get_automake_snippet): Don't augment
25309         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
25310         an executable.
25311         (func_create_testdir): Handle module 'alloca' like func_import.
25312         Reported by Bruce Korb <bruce.korb@gmail.com>.
25313
25314 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
25315
25316         Avoid some lines longer than 80 characters.
25317         * lib/stdint.in.h: Break long comment lines.
25318         * lib/math.in.h: Likewise.
25319         (_GL_NUM_UINT_WORDS): New macro, for readability.
25320         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
25321         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
25322         * lib/stdlib.in.h: Likewise.
25323         * lib/spawn.in.h: Likewise.
25324         * lib/sys_socket.in.h: Update an URL.
25325         * lib/sys_stat.in.h: Break long line.
25326
25327 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
25328
25329         Improve pmccabe2html.
25330         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
25331         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
25332         when the sources change. Remove the line in the HTML about "Used
25333         ranges" (which implied that there might be other unused ranges),
25334         rename "Resume" to "Summary" (easier to understand for more users).
25335         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
25336         styles, and some unnecessary blank lines.
25337
25338 2010-10-03  Bruno Haible  <bruno@clisp.org>
25339             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
25340
25341         acl: Add support for ACLs on NonStop Kernel.
25342         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
25343         Check whether the function aclsort() exists.
25344         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
25345         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
25346         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25347         (acl_nontrivial [HAVE_ACLSORT]: New function.
25348         (file_has_acl): Implement for NonStop Kernel.
25349         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25350         (qset_acl): Implement for NonStop Kernel.
25351         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
25352         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25353         (main): Implement for NonStop Kernel.
25354         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
25355         Kernel. Handle this flavor.
25356         * tests/test-set-mode-acl.sh: Likewise.
25357         * tests/test-copy-acl.sh: Likewise.
25358         * tests/test-copy-file.sh: Likewise.
25359
25360 2010-10-03  Bruno Haible  <bruno@clisp.org>
25361
25362         Info about ACLs on NonStop Kernel.
25363         * doc/acl-resources.txt: Add info about NonStop Kernel.
25364         References by Joachim Schmitz <schmitz@hp.com>.
25365
25366 2010-10-02  Bruno Haible  <bruno@clisp.org>
25367
25368         Define missing EDQUOT on NonStop Kernel.
25369         * lib/errno.in.h (EDQUOT): Assign a value if missing.
25370         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
25371         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
25372         missing.
25373         * doc/posix-headers/errno.texi: Mention the NSK bug.
25374         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
25375         Reported by Joachim Schmitz <schmitz@hp.com>.
25376
25377 2010-10-02  Bruno Haible  <bruno@clisp.org>
25378
25379         Update doc for POSIX:2008.
25380         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
25381         Update URL of POSIX specification.
25382
25383 2010-10-02  Bruno Haible  <bruno@clisp.org>
25384
25385         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
25386         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
25387         from gnulib, not from Automake.
25388
25389 2010-10-02  Bruno Haible  <bruno@clisp.org>
25390
25391         New module 'system-posix'.
25392         * modules/system-posix: New file.
25393         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
25394         module is present.
25395         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
25396         GNULIB_SYSTEM_POSIX.
25397         * modules/stdlib (Depends-on): Remove sys_wait.
25398         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
25399         * doc/posix-functions/system.texi: Mention the new module.
25400         * doc/posix-headers/stdlib.texi: Likewise.
25401         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
25402         define test_sys_wait_macros to a no-op.
25403         Reported by Sam Steingold <sds@gnu.org>.
25404
25405 2010-09-30  Bruno Haible  <bruno@clisp.org>
25406
25407         More renaming from 'getdate' to 'get_date'.
25408         * doc/get_date.texi: Renamed from doc/getdate.texi.
25409         * modules/get_date (Files): Update.
25410         * MODULES.html.sh (Date and time <time.h>): Update.
25411         * DEPENDENCIES: Update.
25412         * gnulib-tool: Update comment.
25413         * m4/bison.m4 (gl_BISON): Likewise.
25414         * m4/get_date.m4 (gl_GET_DATE): Likewise.
25415
25416 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
25417
25418         bootstrap: support ACLOCAL_FLAGS during aclocal
25419         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
25420         can add additional -I dir for third-party .m4 files.
25421
25422 2010-09-30  Eric Blake  <eblake@redhat.com>
25423
25424         bootstrap: use glibtoolize on MacOS
25425         * build-aux/bootstrap (check_versions): Convert libtool into
25426         libtoolize.
25427         (tool search): Move libtool check earlier, and look for
25428         glibtoolize for MacOS.
25429         (gnulib_tool_options): Auto-add --libtool when appropriate.
25430         Reported by Justin Clift.
25431
25432         poll: fix typo that broke test on MacOS
25433         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
25434         Reported by Justin Clift.
25435
25436         getdate: rename to get_date
25437         Note: getdate.h is not renamed, to minimize client impact.
25438         * modules/getdate: Mark obsolete.  Move old contents...
25439         * modules/get_date: ...to new module name.
25440         * modules/getdate-tests: Move...
25441         * modules/get_date-tests: ...here.
25442         * m4/getdate.m4: Move...
25443         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
25444         * lib/getdate.y: Move...
25445         * lib/get_date.y: ...here.
25446         * tests/test-getdate.c: Move...
25447         * tests/test-get_date.c: ...here.
25448         * doc/posix-functions/getdate.texi (getdate): Update name.
25449         * NEWS: Mention the change.
25450
25451 2010-09-29  Bruno Haible  <bruno@clisp.org>
25452
25453         Separate the module 'waitpid' from the module 'sys_wait'.
25454         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
25455         present.
25456         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
25457         gl_MODULE_INDICATOR_FOR_TESTS.
25458         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
25459         * modules/sys_wait (Depends-on): Remove waitpid.
25460         (Makefile.am): Substitute GNULIB_WAITPID.
25461         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
25462         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
25463         signature only if the 'waitpid' module is present.
25464         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
25465         * NEWS: Mention the change.
25466         * modules/grantpt (Depends-on): Add waitpid.
25467         * modules/wait-process (Depends-on): Likewise.
25468
25469 2010-09-29  Bruno Haible  <bruno@clisp.org>
25470
25471         More tests for module 'sys_wait'.
25472         * modules/sys_wait-c++-tests: New file.
25473         * tests/test-sys_wait-c++.cc: New file.
25474         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
25475         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25476
25477 2010-09-29  Bruno Haible  <bruno@clisp.org>
25478
25479         New module 'waitpid'.
25480         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
25481         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
25482         Don't include <process.h>.
25483         (waitpid): Declare only, using modern idiom.
25484         * m4/waitpid.m4: New file.
25485         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
25486         * modules/waitpid: New file.
25487         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
25488         (Makefile.am): Update.
25489         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25490
25491 2010-09-28  Bruno Haible  <bruno@clisp.org>
25492
25493         poll: Assume ANSI C.
25494         * lib/poll.c (poll): Use an ANSI C declaration.
25495
25496 2010-09-28  Bruno Haible  <bruno@clisp.org>
25497
25498         poll-h: Create poll.h on all platforms.
25499         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
25500         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
25501         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
25502         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
25503         (gl_REPLACE_POLL_H): Don't set POLL_H.
25504         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
25505         * modules/poll-h (Depends-on): Add include_next.
25506         (Makefile.am): Create poll.h unconditionally. Substitute also
25507         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
25508
25509 2010-09-28  Bruno Haible  <bruno@clisp.org>
25510
25511         Tests for module 'poll-h'.
25512         * modules/poll-h-c++-tests: New file.
25513         * tests/test-poll-h-c++.cc: New file.
25514
25515         Tests for module 'poll-h'.
25516         * modules/poll-h-tests: New file.
25517         * tests/test-poll-h.c: New file.
25518
25519 2010-09-28  Bruno Haible  <bruno@clisp.org>
25520
25521         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
25522         * modules/poll-h (Depends-on): Add 'extensions'.
25523
25524 2010-09-28  Bruno Haible  <bruno@clisp.org>
25525
25526         New module 'poll-h'.
25527         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
25528         (poll): Use modern idiom.
25529         * modules/poll-h: New file.
25530         * modules/poll (Files): Remove lib/poll.in.h.
25531         (Depends-on): Add poll-h.
25532         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
25533         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
25534         * m4/poll_h.m4: New file.
25535         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
25536         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
25537         and invoke gl_REPLACE_POLL_H.
25538         * lib/poll.c: Use common idiom.
25539         * tests/test-poll.c: Likewise.
25540         * doc/posix-headers/poll.texi: Mention the poll-h module.
25541         Suggested by Eric Blake.
25542
25543 2010-09-26  Bruno Haible  <bruno@clisp.org>
25544
25545         sys_wait: Implement WSTOPSIG.
25546         * lib/sys_wait.in.h (WSTOPSIG): New macro.
25547         Reported by Simon Josefsson.
25548
25549 2010-09-26  Simon Josefsson  <simon@josefsson.org>
25550
25551         stdlib, sys_wait: Avoid compilation error on mingw.
25552         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
25553
25554 2010-09-26  Bruno Haible  <bruno@clisp.org>
25555
25556         stdlib tests: Avoid code duplication.
25557         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
25558         * modules/sys_wait-tests (Files): Likewise.
25559         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
25560         * tests/test-stdlib.c: Include test-sys_wait.h.
25561         (main): Invoke test_sys_wait_macros.
25562         * tests/test-sys_wait.c: Include test-sys_wait.h.
25563         (main): Invoke test_sys_wait_macros.
25564
25565 2010-09-25  Simon Josefsson  <simon@josefsson.org>
25566
25567         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
25568         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
25569         sure Windows sockets are working before calling getaddrinfo.
25570         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
25571         * doc/gnulib.texi (Windows sockets): Fix typo.
25572
25573 2010-09-25  Bruno Haible  <bruno@clisp.org>
25574
25575         Tests for module 'regex-quote'.
25576         * modules/regex-quote-tests: New file.
25577         * tests/test-regex-quote.c: New file.
25578
25579         New module 'regex-quote'.
25580         * lib/regex-quote.h: New file.
25581         * lib/regex-quote.c: New file.
25582         * modules/regex-quote: New file.
25583         Suggested by Reuben Thomas <rrt@sc3d.org>.
25584
25585 2010-09-24  Bruno Haible  <bruno@clisp.org>
25586
25587         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
25588         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
25589
25590 2010-09-23  Bruno Haible  <bruno@clisp.org>
25591
25592         setenv: Relax license.
25593         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
25594         Blake.
25595         Requested by Eric Blake.
25596
25597 2010-09-22  Bruno Haible  <bruno@clisp.org>
25598
25599         termios: Relax license.
25600         * modules/termios (License): Change to LGPLv2+.
25601         Requested by Eric Blake.
25602
25603 2010-09-22  Bruno Haible  <bruno@clisp.org>
25604
25605         threadlib: Allow the package to change the default to 'no'.
25606         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
25607         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
25608         Reported by Paul Eggert.
25609
25610 2010-09-22  Pádraig Brady  <P@draigbrady.com>
25611             Bruno Haible  <bruno@clisp.org>
25612
25613         Fix endless loop in mbmemcasecoll.
25614         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
25615         byte.
25616         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
25617
25618 2010-09-22  Bruno Haible  <bruno@clisp.org>
25619
25620         Tests for module 'memcoll'.
25621         * modules/memcoll-tests: New file.
25622         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
25623
25624         memcoll, xmemcoll: Clarify size vs. length.
25625         * modules/memcoll.c (memcoll0): Clarify specification.
25626         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
25627         passed to collate_error.
25628
25629 2010-09-22  Bruno Haible  <bruno@clisp.org>
25630
25631         Tests for module 'memcasecmp'.
25632         * modules/memcasecmp-tests: New file.
25633         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
25634
25635 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25636
25637         * lib/pthread.in.h: Add split double-inclusion guard, and include
25638         system <pthread.h> if there is one.  Use @@-style as in other
25639         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
25640         pthread.h doesn't.
25641         (pthread_mutexattr_destroy, pthread_mutexattr_init):
25642         (pthread_mutexattr_settype, pthread_mutex_trylock):
25643         New static inline functions, if there's no system <pthread.h>.
25644         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
25645         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
25646         Approximate with mutexes if the system lacks spinlocks, as in
25647         MacOS.
25648         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
25649         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
25650         @@-style.  Check for spinlocks separately.
25651         (gl_PTHREAD_DEFAULTS): New macro.
25652         * modules/pthread: Redo to use a more typical style for in.h files.
25653
25654 2010-09-21  Eric Blake  <eblake@redhat.com>
25655
25656         net_if: enhance tests
25657         * tests/test-net_if.c (main): Move signature checks earlier.
25658         Print failures to stderr.
25659         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
25660         Document the bug that we do not yet fix.
25661
25662 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25663
25664         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
25665         about gnulib, not GSS.
25666
25667 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25668
25669         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
25670         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
25671         for Emacs.
25672         * build-aux/pmccabe2html: Make Makefile.am example code more
25673         cut-and-paste friendly.
25674
25675 2010-09-21  Simon Josefsson  <simon@josefsson.org>
25676
25677         * tests/test-net_if.c: New file.
25678         * modules/net_if-tests: New file.
25679
25680 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
25681
25682         pthread: add pthread_spin_destroy
25683         * lib/pthread.in.h (pthread_spin_destroy): New function.
25684
25685 2010-09-19  Bruno Haible  <bruno@clisp.org>
25686
25687         gnulib-tool: Fix --help output.
25688         * gnulib-tool (func_usage): Fix help message.
25689         Reported by Reuben Thomas <rrt@sc3d.org>.
25690
25691 2010-09-18  Jim Meyering  <meyering@redhat.com>
25692
25693         maint.mk: avoid unexpanded \n in two diagnostics
25694         * top/maint.mk (sc_prohibit_always_true_header_tests):
25695         Don't use a literal \n in a halt=... assignment.  It would not be
25696         expanded, and the two \n bytes would appear in the diagnostic output
25697         rather than the desired newline.  Use halt=$$(printf ... instead.
25698         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25699
25700 2010-09-18  Bruno Haible  <bruno@clisp.org>
25701
25702         netinet_in: Doc tweak.
25703         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
25704         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25705
25706 2010-09-18  Jim Meyering  <meyering@redhat.com>
25707
25708         init.sh: correct an outdated comment
25709         * tests/init.sh (create_exe_shims_):  s/function/alias/
25710
25711         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
25712         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
25713         a file named "*.exe" is removed between the glob expansion and the
25714         processing of that oddly named file.
25715
25716 2010-09-17  Eric Blake  <eblake@redhat.com>
25717
25718         mirbsd: add some more support
25719         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
25720         in BSD family.
25721         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
25722         devices as OpenBSD.
25723         * m4/host-os.m4 (mirbsd): Add MirBSD.
25724
25725         tests: fix unportable assumption on sys/wait.h
25726         * tests/test-sys_wait.c (main): Relax test.
25727         * tests/test-stdlib.c (main): Likewise.
25728
25729         init.sh: accomodate directory with no .exes
25730         * tests/init.sh: Accomodate directory containing only scripts.
25731
25732         tests: avoid compiler warning
25733         * tests/test-stdlib.c (main): Use the variable.
25734
25735         fdutimens, fdutimensat: update signature, again
25736         * lib/utimens.h (gl_futimens): Delete, and move signature...
25737         (fdutimens): ...here.
25738         (fdutimensat): Rearrange signature.
25739         (lutimensat): Rename variable for clarity.
25740         * lib/fdutimensat.c (fdutimensat): Update signature.
25741         * lib/utimens.c (fdutimens): Likewise.
25742         (gl_futimens): Delete.
25743         (utimens, lutimens): Update callers.
25744         * lib/futimens.c (futimens): Likewise.
25745         * tests/test-fdutimensat.c: Likewise.
25746         * tests/test-utimens.c: Likewise.
25747         * tests/test-futimens.h: Update comment.
25748         * NEWS: Mention this.
25749         Suggested by Paul Eggert.
25750
25751 2010-09-17  Bruno Haible  <bruno@clisp.org>
25752
25753         Take over the maintenance of some older macros from Autoconf.
25754         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
25755         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
25756         GNU Autoconf.
25757         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
25758         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
25759
25760 2010-09-17  Eric Blake  <eblake@redhat.com>
25761
25762         fdutimensat: drop atflag validation
25763         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
25764         with valid fd, to close a race scenario where futimens is
25765         unsupported and FILE was replaced by a symlink.
25766         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
25767         accordingly.
25768         Suggested by Paul Eggert.
25769
25770 2010-09-16  Bruno Haible  <bruno@clisp.org>
25771
25772         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
25773         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
25774
25775 2010-09-16  Bruno Haible  <bruno@clisp.org>
25776
25777         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
25778         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
25779         login_tty exists.
25780         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25781
25782 2010-09-16  Bruno Haible  <bruno@clisp.org>
25783
25784         login_tty: Make the replacement code work on BSD systems.
25785         * lib/login_tty.c: Include <sys/ioctl.h>.
25786         (login_tty): Use ioctl TIOCSCTTY when available.
25787         * modules/login_tty (Depends-on): Add sys_ioctl.
25788         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25789
25790 2010-09-16  Bruno Haible  <bruno@clisp.org>
25791
25792         login_tty: Stricter unit test.
25793         * modules/login_tty-tests (Depends-on): Add tcgetsid.
25794         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
25795         and tcgetsid() after login_tty.
25796         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25797
25798 2010-09-16  Bruno Haible  <bruno@clisp.org>
25799
25800         New module 'tcgetsid'.
25801         * lib/tcgetsid.c: New file.
25802         * m4/tcgetsid.m4: New file.
25803         * modules/tcgetsid: New file.
25804         * modules/termios (Depends-on): Add c++defs, warn-on-use.
25805         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
25806         GNULIB_TCGETSID, HAVE_TCGETSID.
25807         * lib/termios.in.h: Include <sys/types.h>.
25808         (tcgetsid): New declaration.
25809         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
25810         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
25811         * doc/posix-functions/tcgetsid.texi: Mention the new module.
25812         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
25813
25814 2010-09-16  Bruno Haible  <bruno@clisp.org>
25815
25816         Tests for module 'termios'.
25817         * modules/termios-c++-tests: New file.
25818         * modules/termios-tests: New file.
25819         * tests/test-termios-c++.cc: New file.
25820         * tests/test-termios.c: New file.
25821
25822         New module 'termios'.
25823         * modules/termios: New file.
25824         * lib/termios.in.h: New file.
25825         * m4/termios_h.m4: New file.
25826         * doc/posix-headers/termios.texi: Mention the new module.
25827
25828 2010-09-16  Eric Blake  <eblake@redhat.com>
25829
25830         fdutimensat: add an atflag parameter
25831         * lib/fdutimensat.c (fdutimensat): Add new parameter.
25832         * lib/utimens.h (fdutimensat): Update prototype.
25833         * tests/test-fdutimensat.c: Adjust test to match.
25834         * NEWS: Document the change.
25835         Suggested by Paul Eggert.
25836
25837 2010-09-16  Bruno Haible  <bruno@clisp.org>
25838
25839         Fix typos in comments.
25840         * lib/striconveh.h: Fix typo in comment.
25841         * lib/login_tty.c (login_tty): Likewise.
25842
25843 2010-09-15  Bruno Haible  <bruno@clisp.org>
25844
25845         stdlib: clarify MirBSD WEXITSTATUS bug
25846         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
25847         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25848
25849 2010-09-15  Eric Blake  <eblake@redhat.com>
25850
25851         stdlib: work around MirBSD WEXITSTATUS bug
25852         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
25853         * modules/stdlib (Depends-on): Add sys_wait.
25854         * tests/test-sys_wait.c (main): Enhance test.
25855         * tests/test-stdlib.c (main): Likewise.
25856         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
25857
25858         docs: mention MacOS issue with WEXITSTATUS(constant)
25859         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
25860         issue.
25861         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25862
25863         strnlen: add tests
25864         * modules/strnlen-tests: New file.
25865         * tests/test-strnlen.c: Likewise.
25866
25867 2010-09-14  Bruno Haible  <bruno@clisp.org>
25868
25869         unistr/base: Avoid link errors when module 'libunistring' is also used.
25870         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
25871         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
25872         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
25873         Declare also when HAVE_LIBUNISTRING is set.
25874         Reported by Pádraig Brady <P@draigbrady.com>.
25875
25876 2010-09-14  Eric Blake  <eblake@redhat.com>
25877
25878         test-rawmemchr: make more robust
25879         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
25880         (Depends-on, configure.ac): Add needed prerequisites to use it.
25881         * modules/memchr-tests (Files, Depends-on, configure.ac):
25882         Likewise, to avoid implicit reliance on memchr module prereqs.
25883         * tests/test-memchr.c (main): Ensure proper masking.
25884         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
25885         reads.
25886
25887         memchr: detect glibc Alpha bug
25888         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
25889         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
25890         Alpha.
25891         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
25892         * tests/test-memchr.c (main): Enhance test.
25893         Reported by Nelson H. F. Beebe.
25894
25895 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25896
25897         fts, getcwd, glob: audit for dirfd returning -1
25898         * lib/fts.c (opendir): Remove #define; no longer used.
25899         (opendirat): New arg PDIR_FD.  All callers changed.
25900         (fts_build, _opendir2): Use new opendirat to avoid the need for
25901         dirfd, or for checking whether dirfd returns a negative value.
25902         Don't use opendir; always use openat followed by fdopendir.
25903         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
25904         it.
25905         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
25906         returns -1 here.
25907         * modules/fts (Depends-on): Remove dirfd.
25908         * modules/getcwd (Depends-on): Likewise.
25909
25910 2010-09-13  Eric Blake  <eblake@redhat.com>
25911
25912         float: fix broken MirBSD header
25913         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
25914         * doc/posix-headers/float.texi (float.h): Document it.
25915
25916 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25917
25918         fts: use O_NOFOLLOW to avoid race condition when opening a directory
25919         * lib/fts.c (opendirat): New arg extra_flags.
25920         (__opendir2): Use it to avoid following symlinks when opening
25921         a directory, if symlinks are not supposed to be followed.  See
25922         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
25923
25924         fdopendir: preserve argument fd before returning
25925         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
25926         (fdopendir_with_dup, fd_clone_opendir): New static functions.
25927         (fdopendir): Use them, arranging for FD to be open to the same
25928         directory that it was when it started.  (It might be temporarily
25929         closed while fdopendir is running, so this not thread- or
25930         signal-safe.)  Be careful to do the right thing even when file
25931         descriptors are scarce and dup fails with errno == EMFILE.  See
25932         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
25933
25934 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
25935
25936         regex: Pass the system regex if its only problem is 32-bit regoff_t.
25937         * NEWS: Document change.
25938         * m4/regex.m4: Disable test for regoff_t size.
25939
25940 2010-09-13  Jim Meyering  <meyering@redhat.com>
25941
25942         fts: don't operate on an invalid file descriptor after failed dup
25943         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
25944         negative file descriptor.
25945
25946 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
25947
25948         savedir: add streamsavedir, deprecate fdsavedir
25949         * NEWS: Mention deprecation of fdsavedir.
25950         * lib/savedir.c (streamsavedir): New extern function, whose name
25951         ends in "savedir" to be consistent with the others.  This differs
25952         from savedirstream in that it doesn't close its argument.  The
25953         next version of GNU tar will use this instead of fdsavedir, to
25954         avoid some race conditions and conserve file descriptors.
25955         (savedirstream): Reimplement as a wrapper around streamsavedir.
25956         (fdsavedir): Add a comment deprecating this function.  As far as
25957         I know, only GNU tar used it, and GNU tar doesn't need it any more.
25958         * lib/savedir.h (streamsavedir): New decl.
25959         (fdsavedir): Add a comment deprecating this.
25960
25961 2010-09-10  Bruno Haible  <bruno@clisp.org>
25962
25963         langinfo: Fix last commit.
25964         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
25965         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
25966         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25967
25968 2010-09-10  Bruno Haible  <bruno@clisp.org>
25969
25970         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
25971         * lib/progreloc.c (O_EXEC): Define fallback.
25972
25973 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
25974
25975         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
25976         * NEWS: Document recent changes to fcntl-h.
25977         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
25978         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
25979         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
25980         Similarly for O_SEARCH; this last was already true, but not documented.
25981         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
25982         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
25983         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
25984         Likewise.
25985         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
25986         is zero, not whether it is defined.
25987         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
25988         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
25989         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
25990
25991 2010-09-10  Bruno Haible  <bruno@clisp.org>
25992
25993         langinfo, nl_langinfo: Fix for IRIX 5.3.
25994         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
25995         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
25996         HAVE_LANGINFO_YESEXPR.
25997         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
25998         HAVE_LANGINFO_YESEXPR.
25999         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
26000         HAVE_LANGINFO_T_FMT_AMPM is 0.
26001         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
26002         HAVE_LANGINFO_YESEXPR is 0.
26003         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
26004         NOEXPR.
26005         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
26006         * doc/posix-functions/nl_langinfo.texi: Likewise.
26007         Reported by Eric Blake.
26008
26009 2010-09-10  Bruno Haible  <bruno@clisp.org>
26010
26011         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
26012         * doc/glibc-functions/login_tty.texi: Mention the include file problem
26013         on FreeBSD 8.0 and OpenBSD 4.6.
26014         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
26015         * m4/pty_h.m4 (gl_PTY_H): Likewise.
26016         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
26017         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
26018         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
26019         ac_includes_default.
26020         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26021
26022 2010-09-09  Eric Blake  <eblake@redhat.com>
26023
26024         strsignal: work around NetBSD bug
26025         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
26026         * lib/string.in.h (includes): Likewise.
26027         * doc/posix-functions/strsignal.texi (strsignal): Document the
26028         bug.
26029         Reported by Nelson H. F. Beebe.
26030
26031         gnulib-tool: work with NetBSD /bin/sh
26032         * gnulib-tool (func_cache_var, func_cache_lookup_module)
26033         (func_get_description, func_get_comment, func_get_status)
26034         (func_get_notice, func_get_applicability, func_get_filelist)
26035         (func_get_dependencies, func_get_autoconf_early_snippet)
26036         (func_get_autoconf_snippet, func_get_automake_snippet)
26037         (func_get_include_directive, func_get_link_directive)
26038         (func_get_license, func_get_maintainer, func_import): Avoid
26039         shell syntax errors from parsing syntax extensions.
26040
26041 2010-09-09  Bruno Haible  <bruno@clisp.org>
26042
26043         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26044         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
26045         a reliable way to determine whether the 'alias' command works.
26046
26047 2010-09-08  Jim Meyering  <meyering@redhat.com>
26048
26049         init.sh: penalize a set-x-impaired shell; don't disqualify it
26050         * tests/init.sh: Too many shells corrupt application stderr when
26051         you set -x, so we can't afford to disqualify them, since at least
26052         on Irix-6.5, that would disqualify all bourne shells.
26053         Instead, use a two-pass approach.
26054         On the first pass, try to find a shell that meets the stricter
26055         condition that set -x does not corrupt stderr.
26056         If no shell meets the stricter condition, retest each candidate
26057         shell, but without that extra condition.  Finally, when
26058         VERBOSE=yes is requested and set -x might cause trouble, simply
26059         issue a warning and refrain from enabling debug output.
26060
26061 2010-09-08  Eric Blake  <eblake@redhat.com>
26062
26063         unsetenv: fix OpenBSD bug
26064         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
26065         * doc/posix-functions/unsetenv.texi (unsetenv): Update
26066         documentation.
26067         Reported by Jim Meyering.
26068
26069         strtod: work around IRIX 6.5 bug
26070         * lib/strtod.c (strtod): Reparse number on shorter string if
26071         exponent parse was invalid.
26072         * tests/test-strtod.c (main): Add check for "0x1p 2".
26073         Reported by Tom G. Christensen.
26074
26075         getopt: optimize previous patch
26076         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
26077         empty variable.  Speed up awk script.
26078         Reported by Paolo Bonzini.
26079
26080 2010-09-08  Jim Meyering  <meyering@redhat.com>
26081
26082         test.sh: disqualify shells for which set -x corrupts stderr
26083         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
26084         and OpenBSD 4.7.  They make it so with "set -x", environment settings
26085         appear in stderr output.  For example, this command:
26086             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
26087         prints "P=1" on those two systems:
26088
26089 2010-09-08  Bruno Haible  <bruno@clisp.org>
26090
26091         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26092         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
26093         commands, because some shells ignore redirections when there is an
26094         error in the command lookup.
26095         Reported by Eric Blake.
26096
26097 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
26098
26099         * lib/regex.h: Fix a mention of `regex_compile' (should be
26100         `re_compile_pattern').
26101         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
26102         (re_set_registers): Correct name of parameter in comment.
26103
26104         * doc/regex.texi: Add documentation for missing syntax flags.
26105         Remove commented-out documentation of defunct syntax option
26106         RE_NO_EMPTY_ALTS.
26107         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
26108         Add documentation of re_set_registers.
26109         Document trick to re-use a pattern buffer by setting fastmap manually.
26110         Update documentation of struct re_pattern_buffer per public members.
26111         Uncomment documentation of equivalence class operators and
26112         collating symbol operators, since they are now implemented,
26113         Explain leftmost-longest matching in relation to alternatives.
26114         Tidy documentation of substring matching.
26115         Remove POSIX documentation, which is done better in
26116         glibc, and refer the reader there. Keep BSD API documentation, as
26117         that is not readily available elsewhere.
26118
26119 2010-09-07  Eric Blake  <eblake@redhat.com>
26120
26121         getopt: handle POSIXLY_CORRECT set but not exported
26122         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
26123         export state of POSIXLY_CORRECT, due to bash set -o posix.
26124         Reported by Dustin J. Mitchell.
26125
26126 2010-09-05  Bruno Haible  <bruno@clisp.org>
26127
26128         gnulib-tool: Highlight the changed options.
26129         * gnulib-tool (func_usage): Display the --import, --add-import,
26130         --remove-import explanations in bold font.
26131
26132 2010-09-06  Karl Berry  <karl@gnu.org>
26133
26134         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
26135
26136 2010-09-05  Bruno Haible  <bruno@clisp.org>
26137
26138         uniwidth/width: Update comment.
26139         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
26140         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
26141
26142 2010-09-05  Bruno Haible  <bruno@clisp.org>
26143
26144         isinf, isnan: Relax license.
26145         * modules/isinf (License): Change from GPL to LGPL, with consent from
26146         Ben Pfaff.
26147         * modules/isnan (License): Likewise.
26148         Requested by Ludovic Courtès.
26149
26150 2010-09-04  Bruno Haible  <bruno@clisp.org>
26151
26152         gnulib-tool: Help migration from --import to --add-import or --update.
26153         * gnulib-tool: Emit a verbose error message when --import is used
26154         without any module name.
26155
26156 2010-09-04  Bruno Haible  <bruno@clisp.org>
26157
26158         Update doc about gnulib-tool.
26159         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
26160         'gnulib-tool --update' in more detail.
26161         Reported by Eric Blake.
26162
26163 2010-09-04  Bruno Haible  <bruno@clisp.org>
26164
26165         gnulib-tool: Change --import. New options --add/remove-import.
26166         * gnulib-tool: New options --add-import, --remove-import.
26167         (func_usage): Document them.
26168         (have_associative): Define always.
26169         (func_import): In import mode, don't merge the specified settings with
26170         the cached settings. Implement remove-import mode.
26171         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
26172         Explain when to use them versus --import.
26173         (Simple update): Use --add-import instead of --import.
26174         * NEWS: Mention the change.
26175
26176 2010-09-04  Bruno Haible  <bruno@clisp.org>
26177
26178         * doc/gnulib-tool.texi (Initial import): Update paragraph about
26179         separate gnulib.mk.
26180
26181 2010-09-04  Bruno Haible  <bruno@clisp.org>
26182
26183         gnulib-tool: Don't talk about CVS any more.
26184         * gnulib-tool (func_usage, func_import): Write "version control"
26185         instead of CVS.
26186
26187 2010-09-04  Jim Meyering  <meyering@redhat.com>
26188
26189         maint.mk: avoid obscure sc_copyright_check failure in coreutils
26190         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
26191         false positives (whose names may be ill-chosen) when searching
26192         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
26193         would cause a false-positive.
26194
26195         avoid coreutils "make distcheck" failure
26196         Coreutils tests with an absolute build directory name that contains
26197         a space.  Not quoting this directory name caused a failure.
26198         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
26199         * tests/test-vc-list-files-cvs.sh: Likewise.
26200
26201 2010-09-04  Bruno Haible  <bruno@clisp.org>
26202
26203         gnulib-tool: Avoid error when run in a package without Makefile.am.
26204         * gnulib-tool: When collecting the m4dirs in a package that does not
26205         have a Makefile.am, eliminate those directories that contain no
26206         gnulib-cache.m4. Fix expression that counts these directories.
26207
26208 2010-09-04  Bruno Haible  <bruno@clisp.org>
26209
26210         update-copyright test: Improve output when perl is missing or too old.
26211         * tests/test-update-copyright.sh: Move test of Perl version down after
26212         the test whether Perl exists. Provide an explanation relating Perl's
26213         error message to Automake's SKIP: message.
26214
26215 2010-09-04  Bruno Haible  <bruno@clisp.org>
26216
26217         Don't augment PATH in TESTS_ENVIRONMENT.
26218         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
26219         set abs_aux_dir instead of augmenting PATH.
26220         * modules/vc-list-files-tests (Makefile.am): Likewise.
26221         * tests/test-update-copyright.sh: Augment PATH here.
26222         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
26223         path_prepend_.
26224         * tests/test-vc-list-files-git.sh: Likewise.
26225
26226 2010-09-04  Jim Meyering  <meyering@redhat.com>
26227
26228         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
26229         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
26230
26231 2010-09-04  Bruno Haible  <bruno@clisp.org>
26232
26233         strdup: Fix compilation error in C++ mode.
26234         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
26235         the macro.
26236
26237 2010-09-04  Bruno Haible  <bruno@clisp.org>
26238
26239         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
26240         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
26241         macro into a function.
26242         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26243
26244 2010-09-04  Bruno Haible  <bruno@clisp.org>
26245
26246         Set PATH_SEPARATOR the same way autoconf does.
26247         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
26248         the value of PATH_SEPARATOR the same way autoconf-generated configure
26249         scripts do.
26250         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
26251         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
26252
26253 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
26254
26255         Set PATH_SEPARATOR the same way autoconf does.
26256         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
26257         the same way autoconf-generated configure scripts do.
26258         * posix-modules: Likewise.
26259
26260 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
26261
26262         hash: fix safe_hasher const typo
26263         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
26264         const; otherwise, there is a type error later.
26265
26266 2010-09-02  Jim Meyering  <meyering@redhat.com>
26267
26268         test-update-copyright.sh: require perl 5.8.0
26269         * tests/test-update-copyright.sh: Require 5.8.0,
26270         which Tom G. Christensen has confirmed is adequate,
26271         while 5.6.1 is not.
26272
26273 2010-09-02  Eric Blake  <eblake@redhat.com>
26274
26275         tests: init.sh improvements for re-exec'ing with zsh
26276         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
26277         -vx through shell re-exec.
26278         Reported by Tom G. Christensen.
26279
26280         wctype: fix typo in previous commit
26281         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
26282         Reported by Ludovic Courtès.
26283
26284 2010-09-02  Jim Meyering  <meyering@redhat.com>
26285
26286         test-update-copyright.sh: skip test if Perl is too old
26287         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
26288         Reported by Tom G. Christensen.
26289
26290 2010-09-02  Bruno Haible  <bruno@clisp.org>
26291
26292         wctype: Avoid compilation error on IRIX 6.5.30.
26293         * lib/wctype.in.h (iswblank): Declare with a replacement if
26294         REPLACE_ISWBLANK is set.
26295         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
26296         declared. Set REPLACE_ISWBLANK.
26297         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
26298         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
26299         * doc/posix-headers/wctype.texi: Likewise.
26300         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26301
26302 2010-09-01  Bruno Haible  <bruno@clisp.org>
26303
26304         New module 'socketlib'.
26305         * modules/socketlib: New file.
26306         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
26307         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
26308         * modules/sockets (Depends-on): Add socketlib.
26309         Suggested by Sam Steingold <sds@gnu.org>.
26310
26311 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26312
26313         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
26314
26315         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
26316         when one needs search access to a directory but not read access.
26317         On systems where it is available, it works in some cases where
26318         O_RDONLY does not, namely on directories that are searchable but
26319         not readable, and which need only to be searchable.  If O_SEARCH
26320         is not available, fall back to the traditional method of using
26321         O_RDONLY.
26322
26323         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
26324         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
26325         when opening a directory that needs only to be searchable.
26326         * lib/chdir-safer.c (chdir_no_follow): Likewise.
26327         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
26328         * lib/openat-proc.c (openat_proc_name): Likewise.
26329         * lib/openat.c (openat_needs_fchdir): Likewise.
26330         * lib/save-cwd.c (save_cwd): Likewise.
26331         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
26332
26333 2010-08-28  Bruno Haible  <bruno@clisp.org>
26334
26335         New module 'host-cpu-c-abi'.
26336         * modules/host-cpu-c-abi: New file.
26337         * m4/host-cpu-c-abi.m4: New file, based on part of
26338         clisp/src/m4/general.m4.
26339         Requested by Sam Steingold <sds@gnu.org>.
26340
26341 2010-08-31  Eric Blake  <eblake@redhat.com>
26342         and Jim Meyering  <meyering@redhat.com>
26343
26344         hash: factor, and guard against misbehaving hasher function
26345         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
26346         of table->hasher's return value.  Also protect against a hash value
26347         so large that adding it to table->bucket results in a NULL pointer.
26348         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
26349         Use it in place of open-coded check-and-abort.
26350
26351 2010-08-30  Bruno Haible  <bruno@clisp.org>
26352
26353         hash: silence spurious clang warning
26354         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
26355         Reported by Eric Blake.
26356
26357 2010-08-30  Eric Blake  <eblake@redhat.com>
26358
26359         strstr, memmem, strcasestr: avoid leaked shell message
26360         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
26361         FreeBSD.
26362         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26363         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26364
26365         tests: silence clang warning
26366         * tests/test-malloca.c (do_allocation): Avoid dead store.
26367
26368 2010-08-29  Bruno Haible  <bruno@clisp.org>
26369
26370         gettext: Fix recent mistake.
26371         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
26372
26373 2010-08-29  Bruno Haible  <bruno@clisp.org>
26374
26375         selinux-h: Offer a --without-selinux option.
26376         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
26377         --without-selinux was specified, skip all tests and define
26378         HAVE_SELINUX_SELINUX_H to 0.
26379         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
26380         set LIB_SELINUX to empty.
26381         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
26382         gl_LIBSELINUX. If --without-selinux was specified, replace
26383         selinux/context.h.
26384         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
26385
26386 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26387             Bruno Haible  <bruno@clisp.org>
26388
26389         Make the module 'realloc-gnu' work again on AIX and OSF/1.
26390         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
26391         of HAVE_REALLOC.
26392         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
26393         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
26394         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
26395         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26396
26397 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26398             Bruno Haible  <bruno@clisp.org>
26399
26400         Make the module 'calloc-gnu' work again on AIX and OSF/1.
26401         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
26402         HAVE_CALLOC.
26403         * lib/xmalloc.c: Update accordingly.
26404         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
26405         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
26406         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
26407
26408 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26409             Bruno Haible  <bruno@clisp.org>
26410
26411         Make the module 'malloc-gnu' work again on AIX and OSF/1.
26412         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
26413         HAVE_MALLOC.
26414         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
26415         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
26416         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26417
26418 2010-08-29  Bruno Haible  <bruno@clisp.org>
26419
26420         Update modules list.
26421         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
26422         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
26423         (String handling <string.h>): Add astrxfrm.
26424         (File system functions): Add readlinkat.
26425
26426 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26427
26428         Tests for module 'realloc-gnu'.
26429         * modules/realloc-gnu-tests: New file.
26430         * tests/test-realloc-gnu.c: New file.
26431
26432         Tests for module 'calloc-gnu'.
26433         * modules/calloc-gnu-tests: New file.
26434         * tests/test-calloc-gnu.c: New file.
26435
26436         Tests for module 'malloc-gnu'.
26437         * modules/malloc-gnu-tests: New file.
26438         * tests/test-malloc-gnu.c: New file.
26439
26440 2010-08-28  Bruno Haible  <bruno@clisp.org>
26441
26442         Rename module 'realloc' -> 'realloc-gnu'.
26443         * modules/realloc-gnu: New file, copied from modules/realloc.
26444         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
26445         obsolete.
26446         * modules/mgetgroups (Depends-on): Update.
26447         * doc/posix-functions/realloc.texi: Update.
26448         * NEWS: Mention the change.
26449
26450         Rename module 'calloc' -> 'calloc-gnu'.
26451         * modules/calloc-gnu: New file, copied from modules/calloc.
26452         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
26453         obsolete.
26454         * doc/posix-functions/calloc.texi: Update.
26455         * NEWS: Mention the change.
26456
26457         Rename module 'malloc' -> 'malloc-gnu'.
26458         * modules/malloc-gnu: New file, copied from modules/malloc.
26459         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
26460         obsolete.
26461         * modules/argp (Depends-on): Update.
26462         * modules/regex (Depends-on): Update.
26463         * doc/posix-functions/malloc.texi: Update.
26464         * NEWS: Mention the change.
26465
26466 2010-08-28  Eric Blake  <eblake@redhat.com>
26467
26468         pread, pwrite: add missing dependency
26469         * modules/pread (Depends-on): Add extensions.
26470         * modules/pwrite (Depends-on): Likewise.
26471
26472 2010-08-28  Bruno Haible  <bruno@clisp.org>
26473
26474         unistr/u*-strchr: Fix tests dependencies.
26475         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
26476         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
26477         Reported by Ian Beckwith <ianb@erislabs.net>.
26478
26479 2010-08-28  Bruno Haible  <bruno@clisp.org>
26480
26481         read-file: Don't occupy too much unused memory.
26482         * lib/read-file.c (fread_file): Shrink the buffer at the end.
26483
26484 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
26485             Eric Blake  <eblake@redhat.com>
26486             Bruno Haible  <bruno@clisp.org>
26487
26488         read-file: Avoid memory reallocations with regular files.
26489         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
26490         (fread_file): With regular files, use the remaining length as the
26491         initial buffer size.  Check against overflow.
26492         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
26493         sys_stat.
26494
26495 2010-08-28  Bruno Haible  <bruno@clisp.org>
26496
26497         ftello: Relax license.
26498         * modules/ftello (License): Relax to LGPLv2+.
26499         Reported by Eric Blake.
26500
26501 2010-08-28  Bruno Haible  <bruno@clisp.org>
26502
26503         Avoid relocwrapper link errors due to gnulib replacement functions.
26504         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
26505         function.
26506         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26507
26508 2010-08-28  Bruno Haible  <bruno@clisp.org>
26509
26510         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
26511         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
26512         defined.
26513         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
26514         Suggested by Eric Blake.
26515
26516 2010-08-28  Bruno Haible  <bruno@clisp.org>
26517
26518         sys_socket, netdb: Ensure socklen_t gets defined.
26519         * modules/sys_socket (Depends-on): Add socklen.
26520         * modules/netdb (Depends-on): Likewise.
26521         * modules/getaddrinfo (Depends-on): Remove socklen.
26522         * modules/getsockopt (Depends-on): Likewise.
26523         * modules/setsockopt (Depends-on): Likewise.
26524         * tests/test-sys_socket.c: Check that socklen_t is defined.
26525         * tests/test-netdb.c: Likewise.
26526         * m4/socklen.m4: Update comments.
26527         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26528
26529 2010-08-27  Eric Blake  <eblake@redhat.com>
26530
26531         login_tty: add missing dependency
26532         * modules/login_tty (Depends-on): Add pty.
26533
26534 2010-08-26  Eric Blake  <eblake@redhat.com>
26535
26536         lib-symbol-versions: fix m4 quoting
26537         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
26538         format for AC_LINK_IFELSE.
26539
26540         glob: fix compile test
26541         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
26542
26543         btowc: fix missing file
26544         * modules/btowc (Files): Also ship locale-fr.m4.
26545
26546         lseek: fix link test
26547         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
26548         AC_LINK_IFELSE.
26549
26550         include_next: silence autoconf 2.68 warning
26551         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
26552         AC_COMPILE_IFELSE as special.
26553         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
26554         autoconf < 2.68.
26555
26556         acl: fix compilation test
26557         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
26558         AC_COMPILE_IFELSE.
26559
26560 2010-08-26  Bruno Haible  <bruno@clisp.org>
26561
26562         Modernize AC_TRY_RUN invocations.
26563         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
26564         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26565         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
26566         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
26567         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
26568         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26569         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26570         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26571         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26572         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26573         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26574         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26575         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26576         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26577         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26578         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26579         gl_MBRLEN_NUL_RETVAL): Likewise.
26580         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26581         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
26582         Likewise.
26583         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26584         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26585         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26586         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26587         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
26588         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
26589         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
26590         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
26591         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
26592         Likewise.
26593         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
26594         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
26595         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26596         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26597         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26598         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26599         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26600         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
26601         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26602         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26603
26604 2010-08-26  Bruno Haible  <bruno@clisp.org>
26605
26606         Modernize AC_TRY_LINK invocations.
26607         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
26608         AC_TRY_LINK.
26609         * m4/argp.m4 (gl_ARGP): Likewise.
26610         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
26611         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26612         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
26613         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26614         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26615         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
26616         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
26617         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
26618         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26619         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
26620         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26621         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
26622         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
26623         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26624         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
26625         * m4/hostent.m4 (gl_HOSTENT): Likewise.
26626         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26627         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
26628         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
26629         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
26630         Likewise.
26631         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
26632         Likewise.
26633         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
26634         Likewise.
26635         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
26636         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
26637         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
26638         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
26639         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
26640         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26641         * m4/servent.m4 (gl_SERVENT): Likewise.
26642         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
26643         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
26644         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
26645         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
26646         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26647         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
26648         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26649         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26650         * modules/tsearch-tests (configure.ac): Likewise.
26651
26652 2010-08-26  Bruno Haible  <bruno@clisp.org>
26653
26654         Modernize AC_TRY_COMPILE invocations.
26655         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
26656         AC_TRY_COMPILE.
26657         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
26658         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
26659         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
26660         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
26661         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
26662         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
26663         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26664         * m4/lock.m4 (gl_LOCK): Likewise.
26665         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
26666         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26667         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
26668         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26669         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
26670         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
26671         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26672         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
26673         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
26674         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
26675         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
26676         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
26677         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
26678         extraneous semicolon.
26679
26680 2010-08-26  Jim Meyering  <meyering@redhat.com>
26681
26682         stat-time: relax license LGPL
26683         * modules/stat-time (License): Change from GPL to LGPL,
26684         with consent from all contributors, for use in libguile.
26685         Requested by Ludovic Courtès.
26686
26687 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
26688
26689         poll: return immediately on POLLHUP.
26690         * lib/poll.c (poll): Always set timeout before wait_timeout is
26691         computed.
26692
26693 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26694
26695         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
26696         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
26697         rmdir ("dir/.//"), unlinkat.
26698
26699 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26700
26701         stdbool: avoid spurious failure with modern xlc
26702         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26703
26704 2010-08-24  Bruno Haible  <bruno@clisp.org>
26705
26706         getloadavg: simplify code
26707         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
26708         gl_have_func. Update comments.
26709
26710 2010-08-24  Eric Blake  <eblake@redhat.com>
26711
26712         getloadavg: don't define SVR4 on cygwin
26713         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
26714         only define SVR4 when -lkvm is required.
26715         Reported by Yaakov Selkowitz.
26716
26717 2010-08-24  Bruno Haible  <bruno@clisp.org>
26718
26719         priv-set: fix comment
26720         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
26721
26722 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26723
26724         priv-set: fix comments
26725         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
26726         to match code, as suggested by David Bartley in:
26727         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
26728
26729 2010-08-23  Eric Blake  <eblake@redhat.com>
26730
26731         stdbool: avoid rejecting clang
26732         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26733         * tests/test-stdbool.c: Enable more tests if using the system
26734         <stdbool.h> instead of the gnulib replacement.
26735         (main): Move xlc bug test to a runtime test for all compilers.
26736         Reported by Anders Kaseorg.
26737
26738         argz: fix shell quoting issue
26739         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
26740         Reported by Charles Wilson.
26741
26742 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
26743             Erik Faye-Lund <kusmabite@gmail.com>
26744
26745         poll, select: handle ERROR_BROKEN_PIPE.
26746         * lib/poll.c (win32_compute_revents): Return POLLHUP when
26747         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26748         * lib/select.c (win32_compute_revents): Do not mark a pipe
26749         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26750
26751 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
26752
26753         fts: allow compilation with C++
26754         * lib/fts_.h: Specify extern "C" linkage with C++.
26755
26756 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26757
26758         Fix gnulib-tool sed script de-commentation for AIX sed.
26759         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
26760         sed.
26761
26762 2010-08-17  Eric Blake  <eblake@redhat.com>
26763
26764         test-stddef: test for (some) offsetof bugs
26765         * tests/test-stddef.c: Enhance test to ensure correct type of
26766         offsetof.
26767         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
26768         that we are not fixing at this time.
26769
26770 2010-08-15  Bruno Haible  <bruno@clisp.org>
26771
26772         stpncpy: Allow stpncpy to be defined as a macro.
26773         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
26774         if it's already correctly declared.
26775         * lib/string.in.h (stpncpy): Undefine before redefining.
26776         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
26777
26778 2010-08-14  Bruno Haible  <bruno@clisp.org>
26779
26780         Rename module 'memxfrm' to 'amemxfrm'.
26781         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
26782         (amemxfrm): Renamed from memxfrm.
26783         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
26784         (amemxfrm): Renamed from memxfrm.
26785         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
26786         * NEWS: Mention the change.
26787         * MODULES.html.sh (String handling <string.h>): Update.
26788         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
26789         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
26790         * lib/unicase/u16-casexfrm.c: Likewise.
26791         * lib/unicase/u32-casexfrm.c: Likewise.
26792         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
26793         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
26794         * lib/uninorm/u16-normxfrm.c: Likewise.
26795         * lib/uninorm/u32-normxfrm.c: Likewise.
26796         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
26797         memxfrm.
26798         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
26799         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
26800         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
26801         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
26802         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
26803         Suggested by Paul Eggert.
26804
26805 2010-08-14  Bruno Haible  <bruno@clisp.org>
26806
26807         Tests for module 'astrxfrm'.
26808         * modules/astrxfrm-tests: New file.
26809         * tests/test-astrxfrm.c: New file.
26810
26811         New module 'astrxfrm'.
26812         * lib/astrxfrm.h: New file.
26813         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
26814         * modules/astrxfrm: New file.
26815
26816 2010-08-14  Reuben Thomas <rrt@sc3d.org>
26817
26818         regex: Tweak doc.
26819         * doc/regex.texi (Overview): Don't mention regex.c.
26820         (GNU Regular Expression Compiling): Likewise.
26821         (Match-end-of-line Operator): Mention 'not_eol'.
26822
26823 2010-08-14  Brian Gough  <bjg@gnu.org>
26824             Bruno Haible  <bruno@clisp.org>
26825
26826         git-merge-changelog: add doc relating to use with bzr and hg.
26827         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
26828
26829 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
26830
26831         pthread: fix pthread.h creation for srcdir != builddir
26832         * modules/pthread (Makefile.am): Fix the rule to work also in a
26833         non-srcdir build.
26834
26835 2010-08-13  Karl Berry  <karl@gnu.org>
26836
26837         * doc/regex.texi (Predefined Syntaxes): @smallexample.
26838         * doc/posix-*/*: force line break before @url of POSIX
26839         specifications.
26840         Suggested by Werner Lemberg.
26841
26842 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
26843
26844         strtod: fix const diagnostic
26845         * lib/strtod.c (strtod): Don't assign const char * to char *,
26846         as this elicits a warning from GCC when warnings are enabled.
26847
26848 2010-08-10  Pádraig Brady <P@draigbrady.com>
26849         and Eric Blake  <eblake@redhat.com>
26850
26851         copy-acl: ignore ENOTSUP on HP-UX
26852         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
26853         so that it is available for HP-UX.
26854         * lib/copy-acl.c (qcopy_acl): Use it.
26855         Reported by Patrick M. Callahan.
26856
26857 2010-08-10  Eric Blake  <eblake@redhat.com>
26858
26859         open, chown: relax license
26860         * modules/open (License): Change to LGPLv2+, with consent by all
26861         authors, for use in augeas.
26862         * modules/chown (License): Likewise.
26863         * modules/lchown (Likewise): Likewise.
26864         Requested by Adam Stokes.
26865
26866 2010-08-09  Karl Berry  <karl@gnu.org>
26867
26868         * build-aux/ar-lib: new file, import from Automake.
26869         * config/srclist.txt: autocheck for updates.
26870
26871 2010-08-09  Eric Blake  <eblake@redhat.com>
26872
26873         readlinkat: adjust client modules
26874         * modules/areadlinkat (Depends-on): Use readlinkat, not
26875         symlinkat.
26876         * modules/areadlinkat-with-size (Depends-on): Likewise.
26877
26878         mknod: be more vocal about danger of running tests as root
26879         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
26880         root, since that is just asking for problems.
26881         Suggested by Bruno Haible, based on a report by Rainer Tammer.
26882
26883         readlinkat: split into its own module
26884         * modules/symlinkat: Split readlinkat...
26885         * modules/readlinkat: ...into separate module.
26886         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
26887         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
26888         * lib/symlinkat.c (readlinkat): Move...
26889         * lib/readlinkat.c: ...into new file.
26890         * modules/symlinkat-tests: Split readlinkat test...
26891         * modules/readlinkat-tests: ...into separate module.
26892         * tests/test-symlinkat.c: Split...
26893         * tests/test-readlinkat.c: ...into new file.
26894         * NEWS: Document the split.
26895         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26896         * lib/unistd.in.h (readlinkat): Likewise.
26897         Suggested by Bruno Haible.
26898
26899 2010-08-08  Bruno Haible  <bruno@clisp.org>
26900
26901         memxfrm: Speed up.
26902         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
26903         that usually only one call to strxfrm is necessary for each string
26904         part.
26905         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26906
26907 2010-08-07  Karl Berry  <karl@gnu.org>
26908
26909         * doc/posix-headers/limits.texi,
26910         * doc/posix-functions/malloc.texi,
26911         * doc/posix-functions/strsignal.texi: missing @item.
26912         * doc/ld-version-script.texi: spurious leading i.
26913         * doc/regex.texi (Interval Operators): no commas inside @var.
26914
26915 2010-08-01  Bruno Haible  <bruno@clisp.org>
26916
26917         Integrate the regex documentation.
26918         * doc/gnulib.texi: Define 'cn' index.
26919         (Regular expressions): New a chapter that includes regex.texi and
26920         regexprops-generic.texi.
26921         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
26922         syntax.
26923
26924         Whitespace cleanup.
26925         * doc/regex.texi: Remove trailing spaces.
26926
26927         Add regex documentation.
26928         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
26929         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
26930         Written by Kathy A. Hargreaves and Karl Berry.
26931
26932 2010-08-01  Bruno Haible  <bruno@clisp.org>
26933
26934         link: Update documentation.
26935         * doc/posix-functions/link.texi: Update regarding Solaris.
26936
26937 2010-07-31  Bruno Haible  <bruno@clisp.org>
26938
26939         Update modules list.
26940         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
26941         (String handling <string.h>): Add memcmp2, memxfrm.
26942         (Container data structures): Add xlist, xsublist, xoset.
26943         (Core language properties): Add alignof, unused-parameter.
26944         (Process control, Numeric conversion functions <stdlib.h>): Renamed
26945         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
26946         (Unibyte characters <ctype.h>): New section.
26947         (String handling <string.h>): New section.
26948         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
26949         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
26950         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
26951         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
26952         tan, tanh, tanl, y0, y1, yn.
26953         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
26954         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
26955         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
26956         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
26957         unlockpt, vdprintf, vdprintf-posix.
26958         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
26959         (File system functions): Add concat-filename, sys_file, sys_ioctl,
26960         xconcat-filename.
26961         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
26962         getdtablesize, pipe2, pipe2-safer.
26963         (Security): New section.
26964         (Networking functions): Add accept4.
26965         (Signal handling): Add sigpipe.
26966         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
26967         mbmemcasecoll.
26968         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
26969         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
26970         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
26971         pipe-filter-ii.
26972         (Misc): Add argp-version-etc, login_tty, parse-duration.
26973
26974 2010-07-31  Bruno Haible  <bruno@clisp.org>
26975
26976         Improve doc in MODULES.html.
26977         * modules/linkat (Description): Add the word "function".
26978         * modules/mkfifo (Description): Likewise.
26979         * modules/mknod (Description): Likewise.
26980         * modules/remove (Description): Likewise.
26981         * modules/renameat (Description): Likewise.
26982         * modules/stat (Description): Likewise.
26983         * modules/symlink (Description): Likewise.
26984         * modules/unlink (Description): Likewise.
26985
26986 2010-07-31  Bruno Haible  <bruno@clisp.org>
26987
26988         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
26989         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
26990         option --enable/disable-c++ instead of --enable/disable-cxx.
26991         * NEWS: Mention the change.
26992
26993 2010-07-31  Bruno Haible  <bruno@clisp.org>
26994
26995         readlink, areadlink: Relax test a bit.
26996         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
26997         alternative to ENOTDIR.
26998         * tests/test-areadlink.h (test_areadlink): Likewise.
26999         Reported by Rainer Tammer.
27000
27001 2010-07-31  Bruno Haible  <bruno@clisp.org>
27002
27003         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
27004         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
27005         character, perform the search using U_STRCHR.
27006         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
27007         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
27008         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
27009         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
27010         Suggested by Paolo Bonzini.
27011
27012 2010-07-31  Bruno Haible  <bruno@clisp.org>
27013
27014         unistr/u*-strstr: Fix dependencies.
27015         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
27016         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
27017         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
27018
27019 2010-07-31  Bruno Haible  <bruno@clisp.org>
27020
27021         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
27022         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
27023         the beginning of the loop.
27024         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
27025         cases in 'switch' statement.
27026
27027         unistr/u8-strchr: Fix several bugs.
27028         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
27029         the string. When not found, return NULL, not a pointer near the end.
27030
27031         More tests for unistr/u8-strchr.
27032         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
27033         that the function does not read past the first occurrence of the byte
27034         being searched.
27035         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
27036         * tests/unistr/test-u16-strchr.c (main): New function.
27037         * tests/unistr/test-u32-strchr.c (main): New function.
27038
27039 2010-07-31  Bruno Haible  <bruno@clisp.org>
27040
27041         posix-modules: Ignore backup files of documentation files.
27042         * posix-modules: grep only through files named *.texi.
27043
27044 2010-07-31  Bruno Haible  <bruno@clisp.org>
27045
27046         symlinkat: Fix documentation.
27047         * doc/posix-functions/readlinkat.texi: Fix module name.
27048
27049 2010-07-31  Bruno Haible  <bruno@clisp.org>
27050
27051         fchownat: Replace also when chown has the trailing slash bug.
27052         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
27053         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
27054         introduced on 2010-04-10.
27055         Reported by Rainer Tammer.
27056
27057 2010-07-31  Bruno Haible  <bruno@clisp.org>
27058
27059         linkat: Work around AIX 7.1 bug.
27060         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
27061         whether linkat handles trailing slash correctly. If not, replace linkat
27062         and define LINKAT_TRAILING_SLASH_BUG.
27063         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
27064         check whether (fd1,file1) points to a directory if file1 or file2 ends
27065         in a slash. Code taken from lib/link.c.
27066         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
27067         Reported by Rainer Tammer.
27068
27069 2010-07-31  Bruno Haible  <bruno@clisp.org>
27070
27071         Correctly determine whether pow is available in libc on AIX 7 with xlc.
27072         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
27073         This disables an xlc optimization that was causing wrong test results.
27074         Reported by Rainer Tammer.
27075
27076 2010-07-31  Bruno Haible  <bruno@clisp.org>
27077
27078         iconv: Work around AIX 6.1..7.1 bug.
27079         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
27080         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
27081         cross-compiling, guess no on all versions of AIX.
27082         Reported by Rainer Tammer.
27083
27084 2010-07-31  Bruno Haible  <bruno@clisp.org>
27085
27086         readlink: Relax test a bit.
27087         * tests/test-readlink.h (test_readlink): Allow different errno value
27088         when readlink is called with a file name that ends in / and refers to
27089         a file.
27090         Suggested by Eric Blake.
27091         Reported by Rainer Tammer.
27092
27093 2010-07-31  Bruno Haible  <bruno@clisp.org>
27094
27095         copysign: Does not require -lm on glibc systems.
27096         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
27097         gl_COMMON_DOUBLE_MATHFUNC.
27098         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
27099
27100 2010-07-31  Bruno Haible  <bruno@clisp.org>
27101
27102         duplocale: Work around AIX 7.1 bug.
27103         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
27104         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
27105         * lib/duplocale.c (rpl_duplocale): Update comment.
27106         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
27107         Reported by Rainer Tammer.
27108
27109 2010-07-30  Bruno Haible  <bruno@clisp.org>
27110
27111         dirfd: Avoid link error on AIX 7.1.
27112         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
27113         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
27114         exist, set REPLACE_DIRFD.
27115         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
27116         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
27117         * doc/posix-functions/dirfd.texi: Update.
27118         Reported by Rainer Tammer.
27119
27120 2010-07-30  Eric Blake  <eblake@redhat.com>
27121
27122         strtod: next round of AIX fixes
27123         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
27124         exponent.
27125         * tests/test-strtod.c (main): Enhance tests.
27126         * doc/posix-functions/strtod.texi (strtod): Document next bug.
27127         Reported by Rainer Tammer.
27128
27129         futimens: fix configure check
27130         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
27131         Reported by Bruno Haible.
27132
27133 2010-07-30  Bruno Haible  <bruno@clisp.org>
27134
27135         getline: Update regarding AIX.
27136         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
27137         Reported by Rainer Tammer.
27138
27139 2010-07-30  Bruno Haible  <bruno@clisp.org>
27140
27141         wcwidth: Drop replacement on AIX 7.
27142         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
27143         AIX 7.
27144         Reported by Rainer Tammer.
27145
27146 2010-07-30  Bruno Haible  <bruno@clisp.org>
27147
27148         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
27149         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
27150         a 'char *'.
27151         Reported by Rainer Tammer.
27152
27153 2010-07-30  Bruno Haible  <bruno@clisp.org>
27154
27155         unlink: Update regarding AIX.
27156         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
27157         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
27158         Reported by Rainer Tammer.
27159
27160 2010-07-30  Bruno Haible  <bruno@clisp.org>
27161
27162         symlink: Update regarding AIX.
27163         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
27164         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
27165         Reported by Rainer Tammer.
27166
27167 2010-07-30  Bruno Haible  <bruno@clisp.org>
27168
27169         strndup: Update regarding AIX.
27170         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
27171         AIX 7.
27172         Reported by Rainer Tammer.
27173
27174 2010-07-30  Bruno Haible  <bruno@clisp.org>
27175
27176         stat: Update regarding AIX.
27177         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
27178         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
27179         Reported by Rainer Tammer.
27180
27181 2010-07-30  Bruno Haible  <bruno@clisp.org>
27182
27183         truncl: Fix autoconf test.
27184         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
27185         whether truncl works.
27186         Reported by Rainer Tammer.
27187
27188 2010-07-30  Bruno Haible  <bruno@clisp.org>
27189
27190         round: Update regarding AIX.
27191         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
27192         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
27193         Reported by Rainer Tammer.
27194
27195 2010-07-30  Bruno Haible  <bruno@clisp.org>
27196
27197         rename: Update regarding AIX.
27198         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
27199         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
27200         Reported by Rainer Tammer.
27201
27202 2010-07-30  Bruno Haible  <bruno@clisp.org>
27203
27204         printf.m4: Update regarding AIX.
27205         * m4/printf.m4: Update comments regarding AIX.
27206         Reported by Rainer Tammer.
27207
27208 2010-07-30  Bruno Haible  <bruno@clisp.org>
27209
27210         iconv: Update regarding AIX.
27211         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
27212         AIX 7.
27213         Reported by Rainer Tammer.
27214
27215 2010-07-30  Bruno Haible  <bruno@clisp.org>
27216
27217         getopt: Update regarding AIX.
27218         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
27219         no on AIX.
27220         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
27221         Reported by Rainer Tammer.
27222
27223 2010-07-30  Bruno Haible  <bruno@clisp.org>
27224
27225         ldexpl; Update regarding AIX.
27226         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
27227         on AIX 7.
27228         Reported by Rainer Tammer.
27229
27230 2010-07-30  Bruno Haible  <bruno@clisp.org>
27231
27232         frexpl: Update regarding AIX.
27233         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
27234         on AIX 7.
27235         Reported by Rainer Tammer.
27236
27237 2010-07-30  Bruno Haible  <bruno@clisp.org>
27238
27239         open, fopen: Update regarding AIX.
27240         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
27241         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27242         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
27243         * doc/posix-functions/fopen.texi: Likewise.
27244         Reported by Rainer Tammer.
27245
27246 2010-07-30  Bruno Haible  <bruno@clisp.org>
27247
27248         chown: Update doc regarding AIX.
27249         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
27250         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
27251         Reported by Rainer Tammer.
27252
27253 2010-07-30  Eric Blake  <eblake@redhat.com>
27254
27255         strtod: fix bug in replacement function on AIX
27256         * lib/strtod.c (strtod): Special case broken "0x" parse in
27257         underlying strtod.
27258         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
27259         * doc/posix-functions/strtod.texi (strtod): Likewise.
27260         Reported by Rainer Tammer.
27261
27262 2010-07-30  Bruno Haible  <bruno@clisp.org>
27263
27264         mbrlen: Fix cross-compilation guess for AIX.
27265         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
27266         guess. Leftover from 2008-12-22.
27267
27268 2010-07-30  Bruno Haible  <bruno@clisp.org>
27269
27270         mbrtowc: Fix cross-compilation guess for AIX.
27271         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
27272         guess. Leftover from 2008-12-21.
27273
27274 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
27275
27276         init.sh: work around trap limitation of some shells
27277         * tests/init.sh (setup_): Move exit trap outside of shell function.
27278
27279 2010-07-29  Eric Blake  <eblake@redhat.com>
27280
27281         strtod: aid debugging
27282         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
27283         understanding why strtod is rejected.
27284
27285 2010-07-28  Bruno Haible  <bruno@clisp.org>
27286
27287         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
27288         * lib/unistr/u8-chr.c: Include <string.h>.
27289         * tests/unistr/test-u8-chr.c: Likewise.
27290         * tests/unistr/test-u16-chr.c: Likewise.
27291         * tests/unistr/test-u32-chr.c: Likewise.
27292         * tests/unistr/test-u8-strchr.c: Likewise.
27293         * tests/unistr/test-u16-strchr.c: Likewise.
27294         * tests/unistr/test-u32-strchr.c: Likewise.
27295         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
27296         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
27297         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
27298         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
27299
27300 2010-07-28  Bruno Haible  <bruno@clisp.org>
27301
27302         Use spaces for indentation, not tabs.
27303         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
27304
27305 2010-07-27  Bruno Haible  <bruno@clisp.org>
27306
27307         mbspcasecmp: Fix function specification.
27308         * lib/string.in.h (mbspcasecmp): Fix specification comment.
27309         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
27310         Reported by Eric Blake <eblake@redhat.com>.
27311
27312 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
27313
27314         timespec: use cast and not conditional, as truncation isn't possible
27315         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
27316         instead of a conditional.  Comment about the situation in more detail.
27317         This undoes most of the 2009-10-29 patch.
27318
27319 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
27320
27321         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
27322         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
27323         * lib/unistr/u8-strchr.c: Likewise.
27324         * modules/unistr/u8-chr: Depend on memchr.
27325
27326         unistr/u*-strchr: add tests
27327         * modules/unistr/u8-strchr-tests: New file.
27328         * modules/unistr/u16-strchr-tests: New file.
27329         * modules/unistr/u32-strchr-tests: New file.
27330         * tests/unistr/test-strchr.h: New file.
27331         * tests/unistr/test-u8-strchr.c: New file.
27332         * tests/unistr/test-u16-strchr.c: New file.
27333         * tests/unistr/test-u32-strchr.c: New file.
27334
27335         unistr/u*-chr: test multibyte sequences more
27336         * tests/unistr/test-chr.h: Do complete testing of the characters in the
27337         test vector.
27338         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
27339         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
27340         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
27341
27342         unistr/u*-chr: test multibyte sequences
27343         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
27344
27345         unistr/u*-chr: prepare for multibyte tests
27346         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
27347         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
27348         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
27349         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
27350         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
27351         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
27352
27353 2010-07-18  Bruno Haible  <bruno@clisp.org>
27354
27355         unistr/u8-strchr: Optimize non-ASCII argument case.
27356         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
27357         because the first byte often matches anyway.
27358         Reported by Pádraig Brady <P@draigbrady.com>.
27359
27360 2010-07-15  Karl Berry  <karl@gnu.org>
27361
27362         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
27363
27364 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
27365
27366         getcwd: on Solaris, work better if ancestors are inaccessible
27367         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
27368         buffer and size, try again with a large buffer.  This works better
27369         on Solaris, since its getcwd succeeds even if the path to the root
27370         is inaccessible, and this is helpful in common cases such as .zfs
27371         hidden directories.  Problem reported by J Chapman Flack in
27372         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
27373         Use system getcwd if it's declared, not merely if it's partly
27374         working; use the partly-working test only to avoid needless effort
27375         if the system getcwd fails.
27376         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
27377         comment that was already obsolete and is now even more obsolete.
27378         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
27379         now might call strdup.
27380
27381 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
27382
27383         pthread: Add enough so that coreutils/src/sort.c compiles.
27384         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
27385         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
27386         gnulib. Include <sched.h> and <time.h>, as per POSIX.
27387         Include <sys/types.h>, in case it defines pthread_t.
27388         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
27389         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
27390         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
27391         (pthread_rwlockattr_t, pthread_spinlock_t):
27392         New typedefs, if HAVE_PTHREAD_T is not defined.
27393         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
27394         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
27395         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
27396         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
27397         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
27398         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
27399         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
27400         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
27401         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
27402         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
27403         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
27404         New macros.
27405         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
27406         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
27407         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
27408         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
27409         (pthread_spin_unlock): New dummy functions.
27410         (pthread_create): Return EAGAIN; don't set errno.
27411         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
27412         require AC_C_INLINE.
27413         * modules/pthread (Depends-on): Add sched, time.
27414         (pthread.h): Use AM_V_GEN.
27415
27416 2010-07-13  Bruno Haible  <bruno@clisp.org>
27417
27418         striconveh: Don't malloc memory if the result buffer is sufficient.
27419         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
27420         buffer if its size is sufficient.
27421         Reported by Ludovic Courtès <ludo@gnu.org>.
27422
27423 2010-07-13  Bruno Haible  <bruno@clisp.org>
27424
27425         strtod: Add safety check.
27426         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
27427
27428 2010-07-12  Bruno Haible  <bruno@clisp.org>
27429
27430         Unify tests that set gl_cv_func_ldexpl_no_libm.
27431         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
27432         gl_FUNC_LDEXPL.
27433         (gl_FUNC_LDEXPL): Invoke it.
27434         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27435
27436 2010-07-12  Bruno Haible  <bruno@clisp.org>
27437
27438         Unify tests that set gl_cv_func_ldexp_no_libm.
27439         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
27440         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
27441         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
27442         (configure.ac): Simply invoke gl_FUNC_LDEXP.
27443         * modules/strtod (Files): Add m4/ldexp.m4.
27444
27445 2010-07-12  Bruno Haible  <bruno@clisp.org>
27446
27447         Unify tests that set gl_cv_func_frexpl_no_libm.
27448         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
27449         gl_FUNC_FREXPL_NO_LIBM.
27450         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
27451         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27452
27453 2010-07-12  Bruno Haible  <bruno@clisp.org>
27454
27455         Unify tests that set gl_cv_func_frexp_no_libm.
27456         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
27457         gl_FUNC_FREXP_NO_LIBM.
27458         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
27459         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27460
27461 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27462
27463         memcoll: clarify sizes versus lengths, document better, and tweak perf
27464         * lib/memcoll.c (strcoll_loop, memcoll0):
27465         Improve quality of descriptive comments.  Name variables
27466         consistently as to whether they are lengths (which do not include
27467         terminating null) versus sizes (which do).
27468         * lib/xmemcoll.c (xmemcoll0): Likewise.
27469         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
27470         returned when s1size == 0; this is easier to compile and saves
27471         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
27472
27473 2010-07-12  Bruno Haible  <bruno@clisp.org>
27474
27475         Tests for module '_Exit'.
27476         * modules/_Exit-tests: New file.
27477         * tests/test-_Exit.sh: New file.
27478         * tests/test-_Exit.c: New file.
27479
27480         New module '_Exit'.
27481         * lib/stdlib.in.h (__attribute__): New macro.
27482         (_Exit): New declaration.
27483         * lib/_Exit.c: New file.
27484         * m4/_Exit.m4: New file.
27485         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
27486         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
27487         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
27488         * modules/_Exit: New file.
27489         * tests/test-stdlib-c++.cc (_Exit): Check signature.
27490         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
27491
27492 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27493
27494         strtod: make it more-accurate typically, and don't require libm
27495         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
27496         Include limits.h.  Don't include string.h.
27497         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
27498         (locale_isspace): New function, so that no casts are needed to
27499         check whether *s is a space.
27500         (ldexp): Provide an unused dummy if not available.
27501         (scale_radix_exp, parse_number, underlying_strtod): New functions.
27502         (strtod): Use them.  This implementation prefers to use the
27503         underlying strtod if available, falling back on our own code
27504         only to fix known bugs.  This is more likely to produce an
27505         accurate result.  Also, it avoids the use of libm functions.
27506         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
27507         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
27508         was absent, but it caused a test failure with coreutils.
27509         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
27510         with libm.
27511         * modules/strtod (Makefile.am, Link): libm is no longer needed.
27512         * modules/strtod-tests (Makefile.am): Likewise.
27513
27514 2010-07-11  Pádraig Brady  <P@draigBrady.com>
27515             Bruno Haible  <bruno@clisp.org>
27516
27517         unistr/u8-strchr: Optimize ASCII argument case.
27518         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
27519
27520 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
27521
27522         (x)memcoll: minor tweaks
27523         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
27524         is after the type that it qualifies.
27525         (memcoll0): Likewise.
27526         * lib/memcoll.h (memcoll0): Likewise.
27527         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
27528         * lib/xmemcoll.h (xmemcoll0): Likewise.
27529         * lib/memcoll.c (memcoll0): Correct the comment.  This function
27530         differs from memcoll in that the NUL byte is part of the argument.
27531         Omit the abort-checks, as performance is a real issue here.  Plus,
27532         the checks were wrong anyway (an off-by-one error).  Omit local
27533         variable 'diff', as it's a bit clearer that way.
27534         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
27535         no longer needed.
27536
27537 2010-07-08  Chen Guo <chenguo4@yahoo.com>
27538
27539         (x)memcoll: speedup when input is known to be NUL delimited
27540         * lib/memcoll.c: Include stdlib.
27541         (memcoll0): New function.
27542         (strcoll_loop): New function, refactored for use in both memcoll
27543         and memcoll0.
27544         * lib/memcoll.h (memcoll0): Add prototype.
27545         * lib/xmemcoll.c (xmemcoll0): New function.
27546         (collate_error): New function, refactored for use in both xmemcoll
27547         and xmemcoll0.
27548         * lib/xmemcoll.h (xmemcoll0): Add prototype.
27549         * m4/memcoll.m4: add inline invocation.
27550
27551 2010-07-06  Pádraig Brady  <P@draigBrady.com>
27552
27553         * build-aux/bootstrap: Remove any local translations
27554         from the translation project synchronization directory,
27555         so that local only translations are not distributed.
27556
27557 2010-07-04  Bruno Haible  <bruno@clisp.org>
27558
27559         fsusage: Clarify which code applies to which platforms.
27560         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
27561         platform.
27562         * lib/fsusage.c (get_fs_usage): Likewise.
27563
27564 2010-07-04  Bruno Haible  <bruno@clisp.org>
27565
27566         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
27567         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
27568         Reported by Martin Lambers <marlam@marlam.de>.
27569
27570 2010-07-04  Jim Meyering  <meyering@redhat.com>
27571
27572         hash: once again explicitly disallow insertion of NULL
27573         * lib/hash.c (hash_insert0): Reinstate just-removed test:
27574         inserting a NULL pointer cannot work with these functions.
27575         Add a comment with details.
27576         This reverts part of the 2010-07-01 commit, 5bef1a35
27577         "hash: extend module to deal with non-pointer keys".
27578
27579 2010-07-01  Bruno Haible  <bruno@clisp.org>
27580
27581         stdbool: Update doc.
27582         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
27583         Info from Christian Weisgerber <naddy@mips.inka.de>.
27584
27585 2010-07-01  Jim Meyering  <meyering@redhat.com>
27586
27587         hash: extend module to deal with non-pointer keys
27588         * lib/hash.c (hash_insert0): New interface, much like hash_insert
27589         but that allows insertion of non-pointer entries.
27590         Do not disallow an ENTRY value of NULL.
27591         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
27592         * lib/hash.h (hash_insert0): Declare.
27593
27594 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27595
27596         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
27597         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
27598         not present (i.e. with autoconf 2.59 and when using gettextize, not
27599         gnulib), require AC_GNU_SOURCE instead.
27600
27601 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
27602
27603         idpriv-drop: Fix tests.
27604         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
27605         not to the test-idpriv-droptemp program.
27606
27607 2010-06-29  Bruno Haible  <bruno@clisp.org>
27608
27609         string: Fix syntax error with g++ 2.96.
27610         * lib/string.in.h (__pure__): Remove definition.
27611         (_GL_ATTRIBUTE_PURE): New macro.
27612         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
27613         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
27614         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27615
27616 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
27617
27618         unitypes: Fix bug introduced on 2010-05-18.
27619         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
27620
27621 2010-06-22  Eric Blake  <eblake@redhat.com>
27622
27623         memmem: slight optimization
27624         * lib/str-two-way.h (critical_factorization): Update comments.
27625         Reduce work during factorization phase.
27626         Reported by Carlos Bueno <carlos@bueno.org>.
27627
27628 2010-06-21  Bruno Haible  <bruno@clisp.org>
27629
27630         Fix HAVE_CALLOC_POSIX misnomer.
27631         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
27632         !HAVE_CALLOC_POSIX.
27633         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
27634         HAVE_CALLOC_POSIX.
27635         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
27636         instead of HAVE_CALLOC_POSIX.
27637         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
27638         HAVE_CALLOC_POSIX.
27639
27640         Use modern idiom for calloc() replacement.
27641         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
27642         AC_FUNC_CALLOC.
27643         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
27644         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
27645         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27646         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
27647         (gl_REPLACE_CALLOC): New macro.
27648
27649 2010-06-21  Bruno Haible  <bruno@clisp.org>
27650
27651         Fix HAVE_REALLOC_POSIX misnomer.
27652         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
27653         !HAVE_REALLOC_POSIX.
27654         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
27655         HAVE_REALLOC_POSIX.
27656         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
27657         instead of HAVE_REALLOC_POSIX.
27658         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
27659         HAVE_REALLOC_POSIX.
27660
27661         Use modern idiom for realloc() replacement.
27662         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
27663         AC_FUNC_REALLOC.
27664         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
27665         Autoconf's AC_FUNC_REALLOC.
27666         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27667         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
27668         (gl_REPLACE_REALLOC): New macro.
27669         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27670
27671 2010-06-21  Bruno Haible  <bruno@clisp.org>
27672
27673         Fix HAVE_MALLOC_POSIX misnomer.
27674         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
27675         !HAVE_MALLOC_POSIX.
27676         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
27677         HAVE_MALLOC_POSIX.
27678         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
27679         instead of HAVE_MALLOC_POSIX.
27680         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
27681         HAVE_MALLOC_POSIX.
27682
27683         Use modern idiom for malloc() replacement.
27684         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
27685         AC_FUNC_MALLOC.
27686         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
27687         Autoconf's AC_FUNC_MALLOC.
27688         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27689         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
27690         (gl_REPLACE_MALLOC): New macro.
27691         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27692
27693 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
27694
27695         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
27696         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
27697         This macro takes 3 arguments, not 4.
27698
27699 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
27700
27701         ipv6: fix detection under mingw
27702         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
27703         in6_addr.
27704
27705 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
27706
27707         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
27708         that strtod() works when cross-compiling to a glibc version known
27709         to work.
27710
27711 2010-06-15  Bruno Haible  <bruno@clisp.org>
27712
27713         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
27714
27715 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
27716
27717         select: Correct timeout.
27718         * lib/select.c (rpl_select): Compute wait_timeout correctly.
27719
27720 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27721
27722         git-version-gen: init shell var to avoid env var influence
27723         * build-aux/git-version-gen (v): Init shell var to empty.
27724
27725 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
27726
27727         priv-set: Don't assume that priv.h exists merely because getppriv does.
27728         See Jan Andersen's bug report about AIX 5L in
27729         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
27730         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
27731         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
27732         * lib/priv-set.h: Likewise.
27733         * tests/test-priv-set.c: Likewise.
27734
27735 2010-06-13  Bruno Haible  <bruno@clisp.org>
27736
27737         relocatable: Make it easier to test whether to install wrappers.
27738         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
27739         RELOCATABLE_VIA_WRAPPER.
27740
27741 2010-06-13  Bruno Haible  <bruno@clisp.org>
27742
27743         gnulib-tool: Display specified modules and dependencies differently.
27744         * gnulib-tool (func_show_module_list): New function.
27745         (func_import, func_create_testdir): Invoke it.
27746         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27747
27748 2010-06-13  Bruno Haible  <bruno@clisp.org>
27749
27750         gnulib-tool: Align code of func_import and func_create_testdir.
27751         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
27752         specified_modules.
27753
27754 2010-06-12  Jim Meyering  <meyering@redhat.com>
27755
27756         test-inttostr: avoid spurious failure on Solaris 9
27757         * tests/test-inttostr.c (main): Skip the test when snprintf fails
27758         to accept "%ju".  Reported by Bruno Haible.
27759
27760 2010-06-11  Jim Meyering  <meyering@redhat.com>
27761
27762         test-sys_socket: mark variables as used more readably
27763         * tests/test-sys_socket.c (main): Mark otherwise unused variables
27764         as "used" explicitly via (void) statement casts.  This is more
27765         readable than using them in an artificial return expression.
27766         Suggestion from Bruno Haible.
27767
27768 2010-06-11  Bruno Haible  <bruno@clisp.org>
27769
27770         Avoid some more warnings from "gcc -Wwrite-strings".
27771         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
27772         to 'const char *'.
27773         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
27774         * tests/test-c-strcasestr.c (main): Likewise.
27775         * tests/test-mbscasestr1.c (main): Likewise.
27776         * tests/test-mbscasestr2.c (main): Likewise.
27777         * tests/test-memmem.c (main): Likewise.
27778         * tests/test-strstr.c (main): Likewise.
27779         * tests/test-strcasestr.c (main): Likewise.
27780
27781 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27782
27783         init.sh: change framework_failure_ to fail with status 99, not 1
27784         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
27785         automake's parallel-tests rule that this is an unexpected failure,
27786         even if the test is listed in XFAIL_TESTS.
27787
27788 2010-06-11  Jim Meyering  <meyering@redhat.com>
27789
27790         test-inttostr: avoid warnings about 4-6KB literal strings
27791         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
27792         Include "macros.h", for its definition of ASSERT.
27793         (CK): s/assert/ASSERT/
27794         * modules/inttostr-tests (Files): Add macros.h.
27795
27796         init.sh: don't use $ME_ or skip_ before they are defined
27797         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
27798         their first uses.  Also hoist their companions: warn_, fail_,
27799         framework_failure_, $stderr_fileno.  Prompted by a patch from
27800         Stefano Lattarini.
27801
27802         test-sys_socket: avoid set-but-not-used warnings from gcc
27803         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
27804         avoid warning about set-but-not-used variables.
27805
27806         test-xvasprintf: avoid 'const' discard warnings
27807         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
27808         "const" when assigning from literal strings.
27809         (test_xasprintf): Add "void" in function argument list to placate
27810         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
27811
27812         tests: avoid compilation warnings in argmatch and exclude tests...
27813         in packages that define ARGMATCH_DIE_DECL, like coreutils.
27814         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
27815         Since it always exits, declare with the "noreturn" attribute.
27816         * tests/test-argmatch.c: Likewise.
27817
27818         tests: avoid 'const' discard warnings in mbsstr tests
27819         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
27820         * tests/test-mbsstr2.c (main): Likewise.
27821
27822         test-verify: avoid warning from gcc's -Wmissing-declarations
27823         * tests/test-verify.c (function): Declare to be static.
27824
27825         test-inttostr.c: include <string.h> for use of strcmp
27826         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
27827
27828         test-linkat: avoid failed assertion on "other" architectures
27829         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
27830         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
27831         sparc: https://bugs.launchpad.net/bugs/591968
27832
27833 2010-06-11  Jim Meyering  <meyering@redhat.com>
27834
27835         printf.m4: avoid autoconf's "Expanded Before Required" warning
27836         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
27837         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
27838         autoconf warning.
27839
27840 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
27841
27842         Replacement header templates are now named with ".in", not "_".
27843         * doc/gnulib-intro.texi: Correct.
27844
27845 2010-06-10  Jim Meyering  <meyering@redhat.com>
27846
27847         inttostr-tests: depend on snprintf, not snprintf-posix
27848         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
27849         snprintf-posix, to avoid this aclocal failure:
27850           missing file gnulib-tests/vasnprintf.c
27851           configure.ac:45: error: expected source file, required through \
27852           AC_LIBSOURCES, not found
27853
27854 2010-06-10  Jim Meyering  <meyering@redhat.com>
27855
27856         inttostr: add a new function, inttostr, and tests
27857         The namesake function was not available.  The existence of the
27858         template file, inttostr.c makes its addition nontrivial.
27859         * lib/anytostr.c: Rename from inttostr.c.
27860         (anytostr): Rename from inttostr.
27861         * lib/inttostr.c: New file.
27862         * modules/inttostr (Files): Add anytostr.c.
27863         (Makefile.am): Set lib_SOURCES instead of ...
27864         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
27865         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
27866         * lib/offtostr.c: Likewise.
27867         * lib/uinttostr.c: Likewise.
27868         * lib/umaxtostr.c: Likewise.
27869         * modules/inttostr-tests: New file.
27870         * tests/test-inttostr.c: New file.  Test these functions.
27871
27872 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
27873             Bruno Haible  <bruno@clisp.org>
27874
27875         Add "Extending Gnulib" chapter to manual.
27876         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
27877         chapter.
27878         (Extending Gnulib): New chapter.
27879         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
27880         chapter.
27881
27882 2010-06-09  Bruno Haible  <bruno@clisp.org>
27883
27884         Avoid relocwrapper link errors due to gnulib replacement functions.
27885         * lib/areadlink.c: Use the system's malloc, realloc functions.
27886         (areadlink): Set errno to ENOMEM explicitly.
27887         * modules/areadlink (Depends-on): Remove malloc-posix.
27888         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27889
27890 2010-06-09  Bruno Haible  <bruno@clisp.org>
27891
27892         Avoid relocwrapper link errors due to gnulib replacement functions.
27893         * lib/canonicalize-lgpl.c: Use the system's malloc function.
27894         * lib/malloca.c: Likewise.
27895         * lib/relocatable.c: Likewise.
27896         * lib/progreloc.c: Use the system's malloc, sprintf functions.
27897         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
27898         * lib/setenv.c: Use the system's malloc, realloc functions.
27899         * lib/strerror.c: Use the system's sprintf function.
27900         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27901
27902 2010-06-04  Bruno Haible  <bruno@clisp.org>
27903
27904         Prefer documented low-level autoconf macro names.
27905         * m4/lib-link.m4: Use m4_translit instead of translit.
27906         * m4/environ.m4: Likewise.
27907         * m4/mathfunc.m4: Likewise.
27908         * m4/onceonly.m4: Likewise.
27909         * m4/stdint.m4: Likewise.
27910         Suggested by Eric Blake.
27911
27912 2010-06-04  Martin Lambers  <marlam@marlam.de>
27913             Bruno Haible  <bruno@clisp.org>
27914
27915         havelib: Allow library names with '+' characters.
27916         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27917         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
27918
27919 2010-06-09  Bruno Haible  <bruno@clisp.org>
27920
27921         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
27922         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
27923         realloc failed.
27924
27925 2010-06-08  Peter Simons  <simons@cryp.to>
27926
27927         maint.mk: make the news-check rule more configurable
27928         * top/maint.mk (news-check-lines-spec): New variable.
27929         (news-check): Use "sed -n 1,10p" in place of "head".
27930
27931 2010-06-07  Jim Meyering  <meyering@redhat.com>
27932
27933         do-release-commit-and-tag: fix typo in --help
27934         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
27935
27936         regex: avoid new dead-code warning with gcc-4.6.0
27937         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
27938         if-block containing a while-loop.  It's been unused for at least
27939         5 years.
27940
27941 2010-06-05  Bruno Haible  <bruno@clisp.org>
27942
27943         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
27944         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
27945
27946 2010-06-04  Bruno Haible  <bruno@clisp.org>
27947
27948         Update to GNU gettext 0.18.1.
27949         * modules/gettext (configure.ac): Require gettext infrastructure from
27950         version 0.18.1.
27951
27952 2010-06-03  Bruno Haible  <bruno@clisp.org>
27953
27954         Don't use AC_LIBOBJ with file names in subdirectories.
27955         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
27956         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
27957         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
27958         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
27959         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
27960         gl_LIBUNISTRING_LIBSOURCE.
27961         (Makefile.am): Augment lib_SOURCES here, conditionally.
27962         * NEWS: Drop requirement for Automake option 'subdir-objects'.
27963
27964 2010-06-03  Bruno Haible  <bruno@clisp.org>
27965
27966         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
27967         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
27968         expansion does not end with a newline.
27969         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
27970         unnecessary newline.
27971
27972 2010-06-03  Bruno Haible  <bruno@clisp.org>
27973
27974         Reduce dependencies.
27975         * tests/test-quotearg.h: New file, extracted from
27976         tests/test-quotearg.c.
27977         * tests/test-quotearg-simple.c: New file, extracted from
27978         tests/test-quotearg.c.
27979         * tests/test-quotearg.c: Don't include <ctype.h>.
27980         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
27981         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
27982         use_quote_double_quotes, use_quotearg_colon): Moved to
27983         tests/test-quotearg.h.
27984         (results_g, flag_results, custom_quotes, custom_results): Moved
27985         to tests/test-quotearg-simple.c.
27986         (main): Moved the part that does not depend on gettext to
27987         tests/test-quotearg-simple.c. Return 77 if the test cannot be
27988         performed.
27989         * modules/quotearg-simple: New file.
27990         * modules/quotearg-simple-tests: New file.
27991         * modules/quotearg (Depends-on): Add quotearg-simple.
27992         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
27993         (Files): Add tests/test-quotearg.h.
27994         Reported by Paolo Bonzini.
27995
27996 2010-06-03  Bruno Haible  <bruno@clisp.org>
27997
27998         Reduce dependencies.
27999         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
28000
28001 2010-06-03  Bruno Haible  <bruno@clisp.org>
28002
28003         time: Undefine more broken macros.
28004         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
28005         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
28006         Reported by Eric Blake.
28007
28008 2010-06-03  Bruno Haible  <bruno@clisp.org>
28009
28010         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
28011         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
28012         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
28013         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
28014         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
28015         Reported by Ludovic Courtès <ludo@gnu.org>.
28016
28017 2010-06-02  Eric Blake  <eblake@redhat.com>
28018
28019         time: work with mingw + pthreads-win32 library
28020         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
28021         if timespec is defined only in pthread.h.
28022         * modules/time (Makefile.am): Substitute it.
28023         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
28024         <pthread.h>, when needed.
28025         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
28026         from the library.
28027
28028 2010-05-31  Bruno Haible  <bruno@clisp.org>
28029
28030         Avoid expanding two macros in the wrong order.
28031         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
28032         gl_LIBUNISTRING if it is defined.
28033         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
28034         autoconf >= 2.64.
28035         Reported by Ludovic Courtès <ludo@gnu.org>.
28036
28037 2010-05-27  Jim Meyering  <meyering@redhat.com>
28038
28039         maint.mk: also prohibit "#undef" of always-defined symbols
28040         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
28041         Allow more than one space before the symbol name.
28042         (sc_prohibit_always-defined_macros): Use grep's -E, now that
28043         the regexp uses alternation.
28044
28045 2010-05-26  Eric Blake  <eblake@redhat.com>
28046
28047         maint.mk: avoid echo -e
28048         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
28049         Convert all uses of echo -* to printf.
28050         Reported by Matthias Bolte.
28051
28052 2010-05-25  Bruno Haible  <bruno@clisp.org>
28053
28054         Update to GNU gettext 0.18, part 2.
28055         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
28056         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
28057
28058 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28059
28060         Add missing include in test-pwrite.c.
28061         * tests/test-pwrite.c: Include string.h, for strcmp.
28062
28063 2010-05-24  Bruno Haible  <bruno@clisp.org>
28064
28065         * NEWS: Mention requirement for Automake option 'subdir-objects'.
28066
28067 2010-05-24  Bruno Haible  <bruno@clisp.org>
28068
28069         Don't use conversion with transliteration in u{8,16,32}_strcoll.
28070         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
28071         iconveh_error argument.
28072         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
28073         U_STRCONV_TO_LOCALE.
28074         * lib/unistr/u16-strcoll.c: Likewise.
28075         * lib/unistr/u32-strcoll.c: Likewise.
28076         * modules/unistr/u8-strcoll (Depends-on): Add
28077         uniconv/u8-strconv-to-enc, localcharset. Remove
28078         uniconv/u8-strconv-to-locale.
28079         (configure.ac): Bump version number.
28080         * modules/unistr/u16-strcoll (Depends-on): Add
28081         uniconv/u16-strconv-to-enc, localcharset. Remove
28082         uniconv/u16-strconv-to-locale.
28083         (configure.ac): Bump version number.
28084         * modules/unistr/u32-strcoll (Depends-on): Add
28085         uniconv/u32-strconv-to-enc, localcharset. Remove
28086         uniconv/u32-strconv-to-locale.
28087         (configure.ac): Bump version number.
28088
28089 2010-05-24  Bruno Haible  <bruno@clisp.org>
28090
28091         Avoid a test failure on NetBSD 5.0.
28092         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
28093         an iconv() bug.
28094
28095 2010-05-24  Bruno Haible  <bruno@clisp.org>
28096
28097         Adjust #include directive style.
28098         * modules/regex (Includes): Recommend to write <regex.h>.
28099
28100 2010-05-24  Bruno Haible  <bruno@clisp.org>
28101
28102         regex: Don't require alloca.
28103         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
28104         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
28105         only inside if (0).
28106
28107 2010-05-23  Jim Meyering  <meyering@redhat.com>
28108
28109         test-renameat.c: include <sys/stat.h>
28110         * tests/test-renameat.c: Include <sys/stat.h>; required for
28111         definition of S_IS* macros.
28112
28113 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
28114
28115         Update maintainer documentation for 'relocatable-prog' module.
28116         * doc/relocatable-maint.texi: Update.
28117         Comments by Bruno Haible.
28118
28119 2010-05-23  Bruno Haible  <bruno@clisp.org>
28120
28121         git-merge-changelog: Enable --split-merged-entry by default.
28122         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
28123         (usage): Don't mention this option any more.
28124         Reported by Ralf Wildenhues.
28125
28126 2010-05-23  Jim Meyering  <meyering@redhat.com>
28127
28128         test-pwrite: do not leave behind a test file named "out"
28129         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
28130         The trivial-looking use of init.sh is really necessary.
28131         It ensures that the temporary file, "out", is created in
28132         a temporary directory, and removed upon termination.
28133         * tests/test-pwrite.sh: Re-add file.
28134         * modules/pwrite-tests: Reference it.
28135
28136 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28137
28138         Fix output redirection buglet in init.sh.
28139         * tests/init.sh: Fix redirection of stderr.
28140
28141 2010-05-20  Simon Josefsson  <simon@josefsson.org>
28142
28143         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
28144
28145 2010-05-17  Simon Josefsson  <simon@josefsson.org>
28146
28147         * modules/valgrind-tests: New file.
28148         * m4/valgrind-tests.m4: New file.
28149         * doc/valgrind-tests.texi: New file.
28150         * doc/gnulib.texi (Running self-tests under valgrind): New
28151         section.
28152
28153 2010-05-19  Bruno Haible  <bruno@clisp.org>
28154
28155         Clean up dead code in recent commit.
28156         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
28157         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
28158         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
28159         Suggested by Paolo Bonzini.
28160
28161 2010-05-19  Bruno Haible  <bruno@clisp.org>
28162
28163         Avoid valgrind error reports from libunistring.
28164         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
28165         * modules/libunistring (Files): Add it.
28166         * modules/libunistring-optional (Files): Likewise.
28167
28168 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
28169             Bruno Haible  <bruno@clisp.org>
28170
28171         New module 'libunistring-optional'.
28172         * modules/libunistring-optional: New file.
28173         * m4/libunistring-base.m4: New file.
28174         * m4/libunistring-optional.m4: New file.
28175         * lib/unicase.in.h: Renamed from lib/unicase.h.
28176         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
28177         * lib/unictype.in.h: Renamed from lib/unictype.h.
28178         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
28179         * lib/uniname.in.h: Renamed from lib/uniname.h.
28180         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
28181         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
28182         * lib/unistr.in.h: Renamed from lib/unistr.h.
28183         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
28184         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
28185         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
28186         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
28187         gl_LIBUNISTRING. If the library was found, determine the installed
28188         version and set LIBUNISTRING_VERSION.
28189         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
28190         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
28191         handle a configuration option --with-included-libunistring.
28192         * modules/libunistring (Files): Add m4/absolute-header.m4.
28193         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
28194         Add m4/libunistring-base.m4.
28195         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28196         (Makefile.am): Build unicase.h from unicase.in.h.
28197         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
28198         Add m4/libunistring-base.m4.
28199         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28200         (Makefile.am): Build uniconv.h from uniconv.in.h.
28201         * modules/unictype/base (Files): Use unictype.in.h instead of
28202         unictype.h. Add m4/libunistring-base.m4.
28203         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28204         (Makefile.am): Build unictype.h from unictype.in.h.
28205         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
28206         Add m4/libunistring-base.m4.
28207         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28208         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
28209         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
28210         Add m4/libunistring-base.m4.
28211         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28212         (Makefile.am): Build uniname.h from uniname.in.h.
28213         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
28214         Add m4/libunistring-base.m4.
28215         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28216         (Makefile.am): Build uninorm.h from uninorm.in.h.
28217         * modules/unistdio/base (Files): Use unistdio.in.h instead of
28218         unistdio.h. Add m4/libunistring-base.m4.
28219         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28220         (Makefile.am): Build unistdio.h from unistdio.in.h.
28221         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
28222         Add m4/libunistring-base.m4.
28223         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28224         (Makefile.am): Build unistr.h from unistr.in.h.
28225         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
28226         Add m4/libunistring-base.m4.
28227         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28228         (Makefile.am): Build unitypes.h from unitypes.in.h.
28229         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
28230         Add m4/libunistring-base.m4.
28231         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28232         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
28233         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
28234         uniwidth.h. Add m4/libunistring-base.m4.
28235         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28236         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
28237         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
28238         instead of augmenting lib_SOURCES.
28239         * modules/unicase/empty-suffix-context: Likewise.
28240         * modules/unicase/locale-language: Likewise.
28241         * modules/unicase/tolower: Likewise.
28242         * modules/unicase/totitle: Likewise.
28243         * modules/unicase/toupper: Likewise.
28244         * modules/unicase/u8-casecmp: Likewise.
28245         * modules/unicase/u8-casecoll: Likewise.
28246         * modules/unicase/u8-casefold: Likewise.
28247         * modules/unicase/u8-casexfrm: Likewise.
28248         * modules/unicase/u8-ct-casefold: Likewise.
28249         * modules/unicase/u8-ct-tolower: Likewise.
28250         * modules/unicase/u8-ct-totitle: Likewise.
28251         * modules/unicase/u8-ct-toupper: Likewise.
28252         * modules/unicase/u8-is-cased: Likewise.
28253         * modules/unicase/u8-is-casefolded: Likewise.
28254         * modules/unicase/u8-is-lowercase: Likewise.
28255         * modules/unicase/u8-is-titlecase: Likewise.
28256         * modules/unicase/u8-is-uppercase: Likewise.
28257         * modules/unicase/u8-prefix-context: Likewise.
28258         * modules/unicase/u8-suffix-context: Likewise.
28259         * modules/unicase/u8-tolower: Likewise.
28260         * modules/unicase/u8-totitle: Likewise.
28261         * modules/unicase/u8-toupper: Likewise.
28262         * modules/unicase/u16-casecmp: Likewise.
28263         * modules/unicase/u16-casecoll: Likewise.
28264         * modules/unicase/u16-casefold: Likewise.
28265         * modules/unicase/u16-casexfrm: Likewise.
28266         * modules/unicase/u16-ct-casefold: Likewise.
28267         * modules/unicase/u16-ct-tolower: Likewise.
28268         * modules/unicase/u16-ct-totitle: Likewise.
28269         * modules/unicase/u16-ct-toupper: Likewise.
28270         * modules/unicase/u16-is-cased: Likewise.
28271         * modules/unicase/u16-is-casefolded: Likewise.
28272         * modules/unicase/u16-is-lowercase: Likewise.
28273         * modules/unicase/u16-is-titlecase: Likewise.
28274         * modules/unicase/u16-is-uppercase: Likewise.
28275         * modules/unicase/u16-prefix-context: Likewise.
28276         * modules/unicase/u16-suffix-context: Likewise.
28277         * modules/unicase/u16-tolower: Likewise.
28278         * modules/unicase/u16-totitle: Likewise.
28279         * modules/unicase/u16-toupper: Likewise.
28280         * modules/unicase/u32-casecmp: Likewise.
28281         * modules/unicase/u32-casecoll: Likewise.
28282         * modules/unicase/u32-casefold: Likewise.
28283         * modules/unicase/u32-casexfrm: Likewise.
28284         * modules/unicase/u32-ct-casefold: Likewise.
28285         * modules/unicase/u32-ct-tolower: Likewise.
28286         * modules/unicase/u32-ct-totitle: Likewise.
28287         * modules/unicase/u32-ct-toupper: Likewise.
28288         * modules/unicase/u32-is-cased: Likewise.
28289         * modules/unicase/u32-is-casefolded: Likewise.
28290         * modules/unicase/u32-is-lowercase: Likewise.
28291         * modules/unicase/u32-is-titlecase: Likewise.
28292         * modules/unicase/u32-is-uppercase: Likewise.
28293         * modules/unicase/u32-prefix-context: Likewise.
28294         * modules/unicase/u32-suffix-context: Likewise.
28295         * modules/unicase/u32-tolower: Likewise.
28296         * modules/unicase/u32-totitle: Likewise.
28297         * modules/unicase/u32-toupper: Likewise.
28298         * modules/unicase/ulc-casecmp: Likewise.
28299         * modules/unicase/ulc-casecoll: Likewise.
28300         * modules/unicase/ulc-casexfrm: Likewise.
28301         * modules/uniconv/u8-conv-from-enc: Likewise.
28302         * modules/uniconv/u8-conv-to-enc: Likewise.
28303         * modules/uniconv/u8-strconv-from-enc: Likewise.
28304         * modules/uniconv/u8-strconv-from-locale: Likewise.
28305         * modules/uniconv/u8-strconv-to-enc: Likewise.
28306         * modules/uniconv/u8-strconv-to-locale: Likewise.
28307         * modules/uniconv/u16-conv-from-enc: Likewise.
28308         * modules/uniconv/u16-conv-to-enc: Likewise.
28309         * modules/uniconv/u16-strconv-from-enc: Likewise.
28310         * modules/uniconv/u16-strconv-from-locale: Likewise.
28311         * modules/uniconv/u16-strconv-to-enc: Likewise.
28312         * modules/uniconv/u16-strconv-to-locale: Likewise.
28313         * modules/uniconv/u32-conv-from-enc: Likewise.
28314         * modules/uniconv/u32-conv-to-enc: Likewise.
28315         * modules/uniconv/u32-strconv-from-enc: Likewise.
28316         * modules/uniconv/u32-strconv-from-locale: Likewise.
28317         * modules/uniconv/u32-strconv-to-enc: Likewise.
28318         * modules/uniconv/u32-strconv-to-locale: Likewise.
28319         * modules/unictype/bidicategory-byname: Likewise.
28320         * modules/unictype/bidicategory-name: Likewise.
28321         * modules/unictype/bidicategory-of: Likewise.
28322         * modules/unictype/bidicategory-test: Likewise.
28323         * modules/unictype/block-list: Likewise.
28324         * modules/unictype/block-test: Likewise.
28325         * modules/unictype/category-C: Likewise.
28326         * modules/unictype/category-Cc: Likewise.
28327         * modules/unictype/category-Cf: Likewise.
28328         * modules/unictype/category-Cn: Likewise.
28329         * modules/unictype/category-Co: Likewise.
28330         * modules/unictype/category-Cs: Likewise.
28331         * modules/unictype/category-L: Likewise.
28332         * modules/unictype/category-Ll: Likewise.
28333         * modules/unictype/category-Lm: Likewise.
28334         * modules/unictype/category-Lo: Likewise.
28335         * modules/unictype/category-Lt: Likewise.
28336         * modules/unictype/category-Lu: Likewise.
28337         * modules/unictype/category-M: Likewise.
28338         * modules/unictype/category-Mc: Likewise.
28339         * modules/unictype/category-Me: Likewise.
28340         * modules/unictype/category-Mn: Likewise.
28341         * modules/unictype/category-N: Likewise.
28342         * modules/unictype/category-Nd: Likewise.
28343         * modules/unictype/category-Nl: Likewise.
28344         * modules/unictype/category-No: Likewise.
28345         * modules/unictype/category-P: Likewise.
28346         * modules/unictype/category-Pc: Likewise.
28347         * modules/unictype/category-Pd: Likewise.
28348         * modules/unictype/category-Pe: Likewise.
28349         * modules/unictype/category-Pf: Likewise.
28350         * modules/unictype/category-Pi: Likewise.
28351         * modules/unictype/category-Po: Likewise.
28352         * modules/unictype/category-Ps: Likewise.
28353         * modules/unictype/category-S: Likewise.
28354         * modules/unictype/category-Sc: Likewise.
28355         * modules/unictype/category-Sk: Likewise.
28356         * modules/unictype/category-Sm: Likewise.
28357         * modules/unictype/category-So: Likewise.
28358         * modules/unictype/category-Z: Likewise.
28359         * modules/unictype/category-Zl: Likewise.
28360         * modules/unictype/category-Zp: Likewise.
28361         * modules/unictype/category-Zs: Likewise.
28362         * modules/unictype/category-and: Likewise.
28363         * modules/unictype/category-and-not: Likewise.
28364         * modules/unictype/category-byname: Likewise.
28365         * modules/unictype/category-name: Likewise.
28366         * modules/unictype/category-none: Likewise.
28367         * modules/unictype/category-of: Likewise.
28368         * modules/unictype/category-or: Likewise.
28369         * modules/unictype/category-test: Likewise.
28370         * modules/unictype/combining-class: Likewise.
28371         * modules/unictype/ctype-alnum: Likewise.
28372         * modules/unictype/ctype-alpha: Likewise.
28373         * modules/unictype/ctype-blank: Likewise.
28374         * modules/unictype/ctype-cntrl: Likewise.
28375         * modules/unictype/ctype-digit: Likewise.
28376         * modules/unictype/ctype-graph: Likewise.
28377         * modules/unictype/ctype-lower: Likewise.
28378         * modules/unictype/ctype-print: Likewise.
28379         * modules/unictype/ctype-punct: Likewise.
28380         * modules/unictype/ctype-space: Likewise.
28381         * modules/unictype/ctype-upper: Likewise.
28382         * modules/unictype/ctype-xdigit: Likewise.
28383         * modules/unictype/decimal-digit: Likewise.
28384         * modules/unictype/digit: Likewise.
28385         * modules/unictype/mirror: Likewise.
28386         * modules/unictype/numeric: Likewise.
28387         * modules/unictype/property-alphabetic: Likewise.
28388         * modules/unictype/property-ascii-hex-digit: Likewise.
28389         * modules/unictype/property-bidi-arabic-digit: Likewise.
28390         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
28391         * modules/unictype/property-bidi-block-separator: Likewise.
28392         * modules/unictype/property-bidi-boundary-neutral: Likewise.
28393         * modules/unictype/property-bidi-common-separator: Likewise.
28394         * modules/unictype/property-bidi-control: Likewise.
28395         * modules/unictype/property-bidi-embedding-or-override: Likewise.
28396         * modules/unictype/property-bidi-eur-num-separator: Likewise.
28397         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
28398         * modules/unictype/property-bidi-european-digit: Likewise.
28399         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
28400         * modules/unictype/property-bidi-left-to-right: Likewise.
28401         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
28402         * modules/unictype/property-bidi-other-neutral: Likewise.
28403         * modules/unictype/property-bidi-pdf: Likewise.
28404         * modules/unictype/property-bidi-segment-separator: Likewise.
28405         * modules/unictype/property-bidi-whitespace: Likewise.
28406         * modules/unictype/property-byname: Likewise.
28407         * modules/unictype/property-combining: Likewise.
28408         * modules/unictype/property-composite: Likewise.
28409         * modules/unictype/property-currency-symbol: Likewise.
28410         * modules/unictype/property-dash: Likewise.
28411         * modules/unictype/property-decimal-digit: Likewise.
28412         * modules/unictype/property-default-ignorable-code-point: Likewise.
28413         * modules/unictype/property-deprecated: Likewise.
28414         * modules/unictype/property-diacritic: Likewise.
28415         * modules/unictype/property-extender: Likewise.
28416         * modules/unictype/property-format-control: Likewise.
28417         * modules/unictype/property-grapheme-base: Likewise.
28418         * modules/unictype/property-grapheme-extend: Likewise.
28419         * modules/unictype/property-grapheme-link: Likewise.
28420         * modules/unictype/property-hex-digit: Likewise.
28421         * modules/unictype/property-hyphen: Likewise.
28422         * modules/unictype/property-id-continue: Likewise.
28423         * modules/unictype/property-id-start: Likewise.
28424         * modules/unictype/property-ideographic: Likewise.
28425         * modules/unictype/property-ids-binary-operator: Likewise.
28426         * modules/unictype/property-ids-trinary-operator: Likewise.
28427         * modules/unictype/property-ignorable-control: Likewise.
28428         * modules/unictype/property-iso-control: Likewise.
28429         * modules/unictype/property-join-control: Likewise.
28430         * modules/unictype/property-left-of-pair: Likewise.
28431         * modules/unictype/property-line-separator: Likewise.
28432         * modules/unictype/property-logical-order-exception: Likewise.
28433         * modules/unictype/property-lowercase: Likewise.
28434         * modules/unictype/property-math: Likewise.
28435         * modules/unictype/property-non-break: Likewise.
28436         * modules/unictype/property-not-a-character: Likewise.
28437         * modules/unictype/property-numeric: Likewise.
28438         * modules/unictype/property-other-alphabetic: Likewise.
28439         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
28440         * modules/unictype/property-other-grapheme-extend: Likewise.
28441         * modules/unictype/property-other-id-continue: Likewise.
28442         * modules/unictype/property-other-id-start: Likewise.
28443         * modules/unictype/property-other-lowercase: Likewise.
28444         * modules/unictype/property-other-math: Likewise.
28445         * modules/unictype/property-other-uppercase: Likewise.
28446         * modules/unictype/property-paired-punctuation: Likewise.
28447         * modules/unictype/property-paragraph-separator: Likewise.
28448         * modules/unictype/property-pattern-syntax: Likewise.
28449         * modules/unictype/property-pattern-white-space: Likewise.
28450         * modules/unictype/property-private-use: Likewise.
28451         * modules/unictype/property-punctuation: Likewise.
28452         * modules/unictype/property-quotation-mark: Likewise.
28453         * modules/unictype/property-radical: Likewise.
28454         * modules/unictype/property-sentence-terminal: Likewise.
28455         * modules/unictype/property-soft-dotted: Likewise.
28456         * modules/unictype/property-space: Likewise.
28457         * modules/unictype/property-terminal-punctuation: Likewise.
28458         * modules/unictype/property-test: Likewise.
28459         * modules/unictype/property-titlecase: Likewise.
28460         * modules/unictype/property-unassigned-code-value: Likewise.
28461         * modules/unictype/property-unified-ideograph: Likewise.
28462         * modules/unictype/property-uppercase: Likewise.
28463         * modules/unictype/property-variation-selector: Likewise.
28464         * modules/unictype/property-white-space: Likewise.
28465         * modules/unictype/property-xid-continue: Likewise.
28466         * modules/unictype/property-xid-start: Likewise.
28467         * modules/unictype/property-zero-width: Likewise.
28468         * modules/unictype/scripts: Likewise.
28469         * modules/unictype/syntax-c-ident: Likewise.
28470         * modules/unictype/syntax-c-whitespace: Likewise.
28471         * modules/unictype/syntax-java-ident: Likewise.
28472         * modules/unictype/syntax-java-whitespace: Likewise.
28473         * modules/unilbrk/u8-possible-linebreaks: Likewise.
28474         * modules/unilbrk/u8-width-linebreaks: Likewise.
28475         * modules/unilbrk/u16-possible-linebreaks: Likewise.
28476         * modules/unilbrk/u16-width-linebreaks: Likewise.
28477         * modules/unilbrk/u32-possible-linebreaks: Likewise.
28478         * modules/unilbrk/u32-width-linebreaks: Likewise.
28479         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
28480         * modules/unilbrk/ulc-width-linebreaks: Likewise.
28481         * modules/uniname/uniname: Likewise.
28482         * modules/uninorm/canonical-decomposition: Likewise.
28483         * modules/uninorm/composition: Likewise.
28484         * modules/uninorm/decomposing-form: Likewise.
28485         * modules/uninorm/decomposition: Likewise.
28486         * modules/uninorm/filter: Likewise.
28487         * modules/uninorm/nfc: Likewise.
28488         * modules/uninorm/nfd: Likewise.
28489         * modules/uninorm/nfkc: Likewise.
28490         * modules/uninorm/nfkd: Likewise.
28491         * modules/uninorm/u8-normalize: Likewise.
28492         * modules/uninorm/u8-normcmp: Likewise.
28493         * modules/uninorm/u8-normcoll: Likewise.
28494         * modules/uninorm/u8-normxfrm: Likewise.
28495         * modules/uninorm/u16-normalize: Likewise.
28496         * modules/uninorm/u16-normcmp: Likewise.
28497         * modules/uninorm/u16-normcoll: Likewise.
28498         * modules/uninorm/u16-normxfrm: Likewise.
28499         * modules/uninorm/u32-normalize: Likewise.
28500         * modules/uninorm/u32-normcmp: Likewise.
28501         * modules/uninorm/u32-normcoll: Likewise.
28502         * modules/uninorm/u32-normxfrm: Likewise.
28503         * modules/unistdio/u8-asnprintf: Likewise.
28504         * modules/unistdio/u8-asprintf: Likewise.
28505         * modules/unistdio/u8-snprintf: Likewise.
28506         * modules/unistdio/u8-sprintf: Likewise.
28507         * modules/unistdio/u8-u8-asnprintf: Likewise.
28508         * modules/unistdio/u8-u8-asprintf: Likewise.
28509         * modules/unistdio/u8-u8-snprintf: Likewise.
28510         * modules/unistdio/u8-u8-sprintf: Likewise.
28511         * modules/unistdio/u8-u8-vasnprintf: Likewise.
28512         * modules/unistdio/u8-u8-vasprintf: Likewise.
28513         * modules/unistdio/u8-u8-vsnprintf: Likewise.
28514         * modules/unistdio/u8-u8-vsprintf: Likewise.
28515         * modules/unistdio/u8-vasnprintf: Likewise.
28516         * modules/unistdio/u8-vasprintf: Likewise.
28517         * modules/unistdio/u8-vsnprintf: Likewise.
28518         * modules/unistdio/u8-vsprintf: Likewise.
28519         * modules/unistdio/u16-asnprintf: Likewise.
28520         * modules/unistdio/u16-asprintf: Likewise.
28521         * modules/unistdio/u16-snprintf: Likewise.
28522         * modules/unistdio/u16-sprintf: Likewise.
28523         * modules/unistdio/u16-u16-asnprintf: Likewise.
28524         * modules/unistdio/u16-u16-asprintf: Likewise.
28525         * modules/unistdio/u16-u16-snprintf: Likewise.
28526         * modules/unistdio/u16-u16-sprintf: Likewise.
28527         * modules/unistdio/u16-u16-vasnprintf: Likewise.
28528         * modules/unistdio/u16-u16-vasprintf: Likewise.
28529         * modules/unistdio/u16-u16-vsnprintf: Likewise.
28530         * modules/unistdio/u16-u16-vsprintf: Likewise.
28531         * modules/unistdio/u16-vasnprintf: Likewise.
28532         * modules/unistdio/u16-vasprintf: Likewise.
28533         * modules/unistdio/u16-vsnprintf: Likewise.
28534         * modules/unistdio/u16-vsprintf: Likewise.
28535         * modules/unistdio/u32-asnprintf: Likewise.
28536         * modules/unistdio/u32-asprintf: Likewise.
28537         * modules/unistdio/u32-snprintf: Likewise.
28538         * modules/unistdio/u32-sprintf: Likewise.
28539         * modules/unistdio/u32-u32-asnprintf: Likewise.
28540         * modules/unistdio/u32-u32-asprintf: Likewise.
28541         * modules/unistdio/u32-u32-snprintf: Likewise.
28542         * modules/unistdio/u32-u32-sprintf: Likewise.
28543         * modules/unistdio/u32-u32-vasnprintf: Likewise.
28544         * modules/unistdio/u32-u32-vasprintf: Likewise.
28545         * modules/unistdio/u32-u32-vsnprintf: Likewise.
28546         * modules/unistdio/u32-u32-vsprintf: Likewise.
28547         * modules/unistdio/u32-vasnprintf: Likewise.
28548         * modules/unistdio/u32-vasprintf: Likewise.
28549         * modules/unistdio/u32-vsnprintf: Likewise.
28550         * modules/unistdio/u32-vsprintf: Likewise.
28551         * modules/unistdio/ulc-asnprintf: Likewise.
28552         * modules/unistdio/ulc-asprintf: Likewise.
28553         * modules/unistdio/ulc-fprintf: Likewise.
28554         * modules/unistdio/ulc-snprintf: Likewise.
28555         * modules/unistdio/ulc-sprintf: Likewise.
28556         * modules/unistdio/ulc-vasnprintf: Likewise.
28557         * modules/unistdio/ulc-vasprintf: Likewise.
28558         * modules/unistdio/ulc-vfprintf: Likewise.
28559         * modules/unistdio/ulc-vsnprintf: Likewise.
28560         * modules/unistdio/ulc-vsprintf: Likewise.
28561         * modules/unistr/u8-check: Likewise.
28562         * modules/unistr/u8-chr: Likewise.
28563         * modules/unistr/u8-cmp: Likewise.
28564         * modules/unistr/u8-cmp2: Likewise.
28565         * modules/unistr/u8-cpy: Likewise.
28566         * modules/unistr/u8-cpy-alloc: Likewise.
28567         * modules/unistr/u8-endswith: Likewise.
28568         * modules/unistr/u8-mblen: Likewise.
28569         * modules/unistr/u8-mbsnlen: Likewise.
28570         * modules/unistr/u8-mbtouc: Likewise.
28571         * modules/unistr/u8-mbtouc-unsafe: Likewise.
28572         * modules/unistr/u8-mbtoucr: Likewise.
28573         * modules/unistr/u8-move: Likewise.
28574         * modules/unistr/u8-next: Likewise.
28575         * modules/unistr/u8-prev: Likewise.
28576         * modules/unistr/u8-set: Likewise.
28577         * modules/unistr/u8-startswith: Likewise.
28578         * modules/unistr/u8-stpcpy: Likewise.
28579         * modules/unistr/u8-stpncpy: Likewise.
28580         * modules/unistr/u8-strcat: Likewise.
28581         * modules/unistr/u8-strchr: Likewise.
28582         * modules/unistr/u8-strcmp: Likewise.
28583         * modules/unistr/u8-strcoll: Likewise.
28584         * modules/unistr/u8-strcpy: Likewise.
28585         * modules/unistr/u8-strcspn: Likewise.
28586         * modules/unistr/u8-strdup: Likewise.
28587         * modules/unistr/u8-strlen: Likewise.
28588         * modules/unistr/u8-strmblen: Likewise.
28589         * modules/unistr/u8-strmbtouc: Likewise.
28590         * modules/unistr/u8-strncat: Likewise.
28591         * modules/unistr/u8-strncmp: Likewise.
28592         * modules/unistr/u8-strncpy: Likewise.
28593         * modules/unistr/u8-strnlen: Likewise.
28594         * modules/unistr/u8-strpbrk: Likewise.
28595         * modules/unistr/u8-strrchr: Likewise.
28596         * modules/unistr/u8-strspn: Likewise.
28597         * modules/unistr/u8-strstr: Likewise.
28598         * modules/unistr/u8-strtok: Likewise.
28599         * modules/unistr/u8-to-u16: Likewise.
28600         * modules/unistr/u8-to-u32: Likewise.
28601         * modules/unistr/u8-uctomb: Likewise.
28602         * modules/unistr/u16-check: Likewise.
28603         * modules/unistr/u16-chr: Likewise.
28604         * modules/unistr/u16-cmp: Likewise.
28605         * modules/unistr/u16-cmp2: Likewise.
28606         * modules/unistr/u16-cpy: Likewise.
28607         * modules/unistr/u16-cpy-alloc: Likewise.
28608         * modules/unistr/u16-endswith: Likewise.
28609         * modules/unistr/u16-mblen: Likewise.
28610         * modules/unistr/u16-mbsnlen: Likewise.
28611         * modules/unistr/u16-mbtouc: Likewise.
28612         * modules/unistr/u16-mbtouc-unsafe: Likewise.
28613         * modules/unistr/u16-mbtoucr: Likewise.
28614         * modules/unistr/u16-move: Likewise.
28615         * modules/unistr/u16-next: Likewise.
28616         * modules/unistr/u16-prev: Likewise.
28617         * modules/unistr/u16-set: Likewise.
28618         * modules/unistr/u16-startswith: Likewise.
28619         * modules/unistr/u16-stpcpy: Likewise.
28620         * modules/unistr/u16-stpncpy: Likewise.
28621         * modules/unistr/u16-strcat: Likewise.
28622         * modules/unistr/u16-strchr: Likewise.
28623         * modules/unistr/u16-strcmp: Likewise.
28624         * modules/unistr/u16-strcoll: Likewise.
28625         * modules/unistr/u16-strcpy: Likewise.
28626         * modules/unistr/u16-strcspn: Likewise.
28627         * modules/unistr/u16-strdup: Likewise.
28628         * modules/unistr/u16-strlen: Likewise.
28629         * modules/unistr/u16-strmblen: Likewise.
28630         * modules/unistr/u16-strmbtouc: Likewise.
28631         * modules/unistr/u16-strncat: Likewise.
28632         * modules/unistr/u16-strncmp: Likewise.
28633         * modules/unistr/u16-strncpy: Likewise.
28634         * modules/unistr/u16-strnlen: Likewise.
28635         * modules/unistr/u16-strpbrk: Likewise.
28636         * modules/unistr/u16-strrchr: Likewise.
28637         * modules/unistr/u16-strspn: Likewise.
28638         * modules/unistr/u16-strstr: Likewise.
28639         * modules/unistr/u16-strtok: Likewise.
28640         * modules/unistr/u16-to-u32: Likewise.
28641         * modules/unistr/u16-to-u8: Likewise.
28642         * modules/unistr/u16-uctomb: Likewise.
28643         * modules/unistr/u32-check: Likewise.
28644         * modules/unistr/u32-chr: Likewise.
28645         * modules/unistr/u32-cmp: Likewise.
28646         * modules/unistr/u32-cmp2: Likewise.
28647         * modules/unistr/u32-cpy: Likewise.
28648         * modules/unistr/u32-cpy-alloc: Likewise.
28649         * modules/unistr/u32-endswith: Likewise.
28650         * modules/unistr/u32-mblen: Likewise.
28651         * modules/unistr/u32-mbsnlen: Likewise.
28652         * modules/unistr/u32-mbtouc: Likewise.
28653         * modules/unistr/u32-mbtouc-unsafe: Likewise.
28654         * modules/unistr/u32-mbtoucr: Likewise.
28655         * modules/unistr/u32-move: Likewise.
28656         * modules/unistr/u32-next: Likewise.
28657         * modules/unistr/u32-prev: Likewise.
28658         * modules/unistr/u32-set: Likewise.
28659         * modules/unistr/u32-startswith: Likewise.
28660         * modules/unistr/u32-stpcpy: Likewise.
28661         * modules/unistr/u32-stpncpy: Likewise.
28662         * modules/unistr/u32-strcat: Likewise.
28663         * modules/unistr/u32-strchr: Likewise.
28664         * modules/unistr/u32-strcmp: Likewise.
28665         * modules/unistr/u32-strcoll: Likewise.
28666         * modules/unistr/u32-strcpy: Likewise.
28667         * modules/unistr/u32-strcspn: Likewise.
28668         * modules/unistr/u32-strdup: Likewise.
28669         * modules/unistr/u32-strlen: Likewise.
28670         * modules/unistr/u32-strmblen: Likewise.
28671         * modules/unistr/u32-strmbtouc: Likewise.
28672         * modules/unistr/u32-strncat: Likewise.
28673         * modules/unistr/u32-strncmp: Likewise.
28674         * modules/unistr/u32-strncpy: Likewise.
28675         * modules/unistr/u32-strnlen: Likewise.
28676         * modules/unistr/u32-strpbrk: Likewise.
28677         * modules/unistr/u32-strrchr: Likewise.
28678         * modules/unistr/u32-strspn: Likewise.
28679         * modules/unistr/u32-strstr: Likewise.
28680         * modules/unistr/u32-strtok: Likewise.
28681         * modules/unistr/u32-to-u16: Likewise.
28682         * modules/unistr/u32-to-u8: Likewise.
28683         * modules/unistr/u32-uctomb: Likewise.
28684         * modules/uniwbrk/u8-wordbreaks: Likewise.
28685         * modules/uniwbrk/u16-wordbreaks: Likewise.
28686         * modules/uniwbrk/u32-wordbreaks: Likewise.
28687         * modules/uniwbrk/ulc-wordbreaks: Likewise.
28688         * modules/uniwbrk/wordbreak-property: Likewise.
28689         * modules/uniwidth/u8-strwidth: Likewise.
28690         * modules/uniwidth/u8-width: Likewise.
28691         * modules/uniwidth/u16-strwidth: Likewise.
28692         * modules/uniwidth/u16-width: Likewise.
28693         * modules/uniwidth/u32-strwidth: Likewise.
28694         * modules/uniwidth/u32-width: Likewise.
28695         * modules/uniwidth/width: Likewise.
28696         * modules/unicase/cased-tests (Makefile.am): Link all test programs
28697         with $(LIBUNISTRING).
28698         * modules/unicase/ignorable-tests: Likewise.
28699         * modules/unicase/locale-language-tests: Likewise.
28700         * modules/unicase/tolower-tests: Likewise.
28701         * modules/unicase/totitle-tests: Likewise.
28702         * modules/unicase/toupper-tests: Likewise.
28703         * modules/unicase/u8-casecmp-tests: Likewise.
28704         * modules/unicase/u8-casecoll-tests: Likewise.
28705         * modules/unicase/u8-casefold-tests: Likewise.
28706         * modules/unicase/u8-is-cased-tests: Likewise.
28707         * modules/unicase/u8-is-casefolded-tests: Likewise.
28708         * modules/unicase/u8-is-lowercase-tests: Likewise.
28709         * modules/unicase/u8-is-titlecase-tests: Likewise.
28710         * modules/unicase/u8-is-uppercase-tests: Likewise.
28711         * modules/unicase/u8-tolower-tests: Likewise.
28712         * modules/unicase/u8-totitle-tests: Likewise.
28713         * modules/unicase/u8-toupper-tests: Likewise.
28714         * modules/unicase/u16-casecmp-tests: Likewise.
28715         * modules/unicase/u16-casecoll-tests: Likewise.
28716         * modules/unicase/u16-casefold-tests: Likewise.
28717         * modules/unicase/u16-is-cased-tests: Likewise.
28718         * modules/unicase/u16-is-casefolded-tests: Likewise.
28719         * modules/unicase/u16-is-lowercase-tests: Likewise.
28720         * modules/unicase/u16-is-titlecase-tests: Likewise.
28721         * modules/unicase/u16-is-uppercase-tests: Likewise.
28722         * modules/unicase/u16-tolower-tests: Likewise.
28723         * modules/unicase/u16-totitle-tests: Likewise.
28724         * modules/unicase/u16-toupper-tests: Likewise.
28725         * modules/unicase/u32-casecmp-tests: Likewise.
28726         * modules/unicase/u32-casecoll-tests: Likewise.
28727         * modules/unicase/u32-casefold-tests: Likewise.
28728         * modules/unicase/u32-is-cased-tests: Likewise.
28729         * modules/unicase/u32-is-casefolded-tests: Likewise.
28730         * modules/unicase/u32-is-lowercase-tests: Likewise.
28731         * modules/unicase/u32-is-titlecase-tests: Likewise.
28732         * modules/unicase/u32-is-uppercase-tests: Likewise.
28733         * modules/unicase/u32-tolower-tests: Likewise.
28734         * modules/unicase/u32-totitle-tests: Likewise.
28735         * modules/unicase/u32-toupper-tests: Likewise.
28736         * modules/unicase/ulc-casecmp-tests: Likewise.
28737         * modules/unicase/ulc-casecoll-tests: Likewise.
28738         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
28739         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
28740         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
28741         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
28742         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
28743         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
28744         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
28745         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
28746         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
28747         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
28748         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
28749         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
28750         * modules/unictype/bidicategory-byname-tests: Likewise.
28751         * modules/unictype/bidicategory-name-tests: Likewise.
28752         * modules/unictype/bidicategory-of-tests: Likewise.
28753         * modules/unictype/bidicategory-test-tests: Likewise.
28754         * modules/unictype/block-list-tests: Likewise.
28755         * modules/unictype/block-of-tests: Likewise.
28756         * modules/unictype/block-test-tests: Likewise.
28757         * modules/unictype/category-C-tests: Likewise.
28758         * modules/unictype/category-Cc-tests: Likewise.
28759         * modules/unictype/category-Cf-tests: Likewise.
28760         * modules/unictype/category-Cn-tests: Likewise.
28761         * modules/unictype/category-Co-tests: Likewise.
28762         * modules/unictype/category-Cs-tests: Likewise.
28763         * modules/unictype/category-L-tests: Likewise.
28764         * modules/unictype/category-Ll-tests: Likewise.
28765         * modules/unictype/category-Lm-tests: Likewise.
28766         * modules/unictype/category-Lo-tests: Likewise.
28767         * modules/unictype/category-Lt-tests: Likewise.
28768         * modules/unictype/category-Lu-tests: Likewise.
28769         * modules/unictype/category-M-tests: Likewise.
28770         * modules/unictype/category-Mc-tests: Likewise.
28771         * modules/unictype/category-Me-tests: Likewise.
28772         * modules/unictype/category-Mn-tests: Likewise.
28773         * modules/unictype/category-N-tests: Likewise.
28774         * modules/unictype/category-Nd-tests: Likewise.
28775         * modules/unictype/category-Nl-tests: Likewise.
28776         * modules/unictype/category-No-tests: Likewise.
28777         * modules/unictype/category-P-tests: Likewise.
28778         * modules/unictype/category-Pc-tests: Likewise.
28779         * modules/unictype/category-Pd-tests: Likewise.
28780         * modules/unictype/category-Pe-tests: Likewise.
28781         * modules/unictype/category-Pf-tests: Likewise.
28782         * modules/unictype/category-Pi-tests: Likewise.
28783         * modules/unictype/category-Po-tests: Likewise.
28784         * modules/unictype/category-Ps-tests: Likewise.
28785         * modules/unictype/category-S-tests: Likewise.
28786         * modules/unictype/category-Sc-tests: Likewise.
28787         * modules/unictype/category-Sk-tests: Likewise.
28788         * modules/unictype/category-Sm-tests: Likewise.
28789         * modules/unictype/category-So-tests: Likewise.
28790         * modules/unictype/category-Z-tests: Likewise.
28791         * modules/unictype/category-Zl-tests: Likewise.
28792         * modules/unictype/category-Zp-tests: Likewise.
28793         * modules/unictype/category-Zs-tests: Likewise.
28794         * modules/unictype/category-and-not-tests: Likewise.
28795         * modules/unictype/category-and-tests: Likewise.
28796         * modules/unictype/category-byname-tests: Likewise.
28797         * modules/unictype/category-name-tests: Likewise.
28798         * modules/unictype/category-none-tests: Likewise.
28799         * modules/unictype/category-of-tests: Likewise.
28800         * modules/unictype/category-or-tests: Likewise.
28801         * modules/unictype/category-test-withtable-tests: Likewise.
28802         * modules/unictype/combining-class-tests: Likewise.
28803         * modules/unictype/ctype-alnum-tests: Likewise.
28804         * modules/unictype/ctype-alpha-tests: Likewise.
28805         * modules/unictype/ctype-blank-tests: Likewise.
28806         * modules/unictype/ctype-cntrl-tests: Likewise.
28807         * modules/unictype/ctype-digit-tests: Likewise.
28808         * modules/unictype/ctype-graph-tests: Likewise.
28809         * modules/unictype/ctype-lower-tests: Likewise.
28810         * modules/unictype/ctype-print-tests: Likewise.
28811         * modules/unictype/ctype-punct-tests: Likewise.
28812         * modules/unictype/ctype-space-tests: Likewise.
28813         * modules/unictype/ctype-upper-tests: Likewise.
28814         * modules/unictype/ctype-xdigit-tests: Likewise.
28815         * modules/unictype/decimal-digit-tests: Likewise.
28816         * modules/unictype/digit-tests: Likewise.
28817         * modules/unictype/mirror-tests: Likewise.
28818         * modules/unictype/numeric-tests: Likewise.
28819         * modules/unictype/property-alphabetic-tests: Likewise.
28820         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
28821         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
28822         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
28823         * modules/unictype/property-bidi-block-separator-tests: Likewise.
28824         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
28825         * modules/unictype/property-bidi-common-separator-tests: Likewise.
28826         * modules/unictype/property-bidi-control-tests: Likewise.
28827         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
28828         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
28829         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
28830         * modules/unictype/property-bidi-european-digit-tests: Likewise.
28831         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
28832         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
28833         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
28834         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
28835         * modules/unictype/property-bidi-pdf-tests: Likewise.
28836         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
28837         * modules/unictype/property-bidi-whitespace-tests: Likewise.
28838         * modules/unictype/property-byname-tests: Likewise.
28839         * modules/unictype/property-combining-tests: Likewise.
28840         * modules/unictype/property-composite-tests: Likewise.
28841         * modules/unictype/property-currency-symbol-tests: Likewise.
28842         * modules/unictype/property-dash-tests: Likewise.
28843         * modules/unictype/property-decimal-digit-tests: Likewise.
28844         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
28845         * modules/unictype/property-deprecated-tests: Likewise.
28846         * modules/unictype/property-diacritic-tests: Likewise.
28847         * modules/unictype/property-extender-tests: Likewise.
28848         * modules/unictype/property-format-control-tests: Likewise.
28849         * modules/unictype/property-grapheme-base-tests: Likewise.
28850         * modules/unictype/property-grapheme-extend-tests: Likewise.
28851         * modules/unictype/property-grapheme-link-tests: Likewise.
28852         * modules/unictype/property-hex-digit-tests: Likewise.
28853         * modules/unictype/property-hyphen-tests: Likewise.
28854         * modules/unictype/property-id-continue-tests: Likewise.
28855         * modules/unictype/property-id-start-tests: Likewise.
28856         * modules/unictype/property-ideographic-tests: Likewise.
28857         * modules/unictype/property-ids-binary-operator-tests: Likewise.
28858         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
28859         * modules/unictype/property-ignorable-control-tests: Likewise.
28860         * modules/unictype/property-iso-control-tests: Likewise.
28861         * modules/unictype/property-join-control-tests: Likewise.
28862         * modules/unictype/property-left-of-pair-tests: Likewise.
28863         * modules/unictype/property-line-separator-tests: Likewise.
28864         * modules/unictype/property-logical-order-exception-tests: Likewise.
28865         * modules/unictype/property-lowercase-tests: Likewise.
28866         * modules/unictype/property-math-tests: Likewise.
28867         * modules/unictype/property-non-break-tests: Likewise.
28868         * modules/unictype/property-not-a-character-tests: Likewise.
28869         * modules/unictype/property-numeric-tests: Likewise.
28870         * modules/unictype/property-other-alphabetic-tests: Likewise.
28871         * modules/unictype/property-other-default-ignorable-code-point-tests:
28872         Likewise.
28873         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
28874         * modules/unictype/property-other-id-continue-tests: Likewise.
28875         * modules/unictype/property-other-id-start-tests: Likewise.
28876         * modules/unictype/property-other-lowercase-tests: Likewise.
28877         * modules/unictype/property-other-math-tests: Likewise.
28878         * modules/unictype/property-other-uppercase-tests: Likewise.
28879         * modules/unictype/property-paired-punctuation-tests: Likewise.
28880         * modules/unictype/property-paragraph-separator-tests: Likewise.
28881         * modules/unictype/property-pattern-syntax-tests: Likewise.
28882         * modules/unictype/property-pattern-white-space-tests: Likewise.
28883         * modules/unictype/property-private-use-tests: Likewise.
28884         * modules/unictype/property-punctuation-tests: Likewise.
28885         * modules/unictype/property-quotation-mark-tests: Likewise.
28886         * modules/unictype/property-radical-tests: Likewise.
28887         * modules/unictype/property-sentence-terminal-tests: Likewise.
28888         * modules/unictype/property-soft-dotted-tests: Likewise.
28889         * modules/unictype/property-space-tests: Likewise.
28890         * modules/unictype/property-terminal-punctuation-tests: Likewise.
28891         * modules/unictype/property-test-tests: Likewise.
28892         * modules/unictype/property-titlecase-tests: Likewise.
28893         * modules/unictype/property-unassigned-code-value-tests: Likewise.
28894         * modules/unictype/property-unified-ideograph-tests: Likewise.
28895         * modules/unictype/property-uppercase-tests: Likewise.
28896         * modules/unictype/property-variation-selector-tests: Likewise.
28897         * modules/unictype/property-white-space-tests: Likewise.
28898         * modules/unictype/property-xid-continue-tests: Likewise.
28899         * modules/unictype/property-xid-start-tests: Likewise.
28900         * modules/unictype/property-zero-width-tests: Likewise.
28901         * modules/unictype/scripts-tests: Likewise.
28902         * modules/unictype/syntax-c-ident-tests: Likewise.
28903         * modules/unictype/syntax-c-whitespace-tests: Likewise.
28904         * modules/unictype/syntax-java-ident-tests: Likewise.
28905         * modules/unictype/syntax-java-whitespace-tests: Likewise.
28906         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
28907         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
28908         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
28909         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
28910         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
28911         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
28912         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
28913         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
28914         * modules/uniname/uniname-tests: Likewise.
28915         * modules/uninorm/canonical-decomposition-tests: Likewise.
28916         * modules/uninorm/compat-decomposition-tests: Likewise.
28917         * modules/uninorm/composition-tests: Likewise.
28918         * modules/uninorm/decomposing-form-tests: Likewise.
28919         * modules/uninorm/decomposition-tests: Likewise.
28920         * modules/uninorm/filter-tests: Likewise.
28921         * modules/uninorm/nfc-tests: Likewise.
28922         * modules/uninorm/nfd-tests: Likewise.
28923         * modules/uninorm/nfkc-tests: Likewise.
28924         * modules/uninorm/nfkd-tests: Likewise.
28925         * modules/uninorm/u8-normcmp-tests: Likewise.
28926         * modules/uninorm/u8-normcoll-tests: Likewise.
28927         * modules/uninorm/u16-normcmp-tests: Likewise.
28928         * modules/uninorm/u16-normcoll-tests: Likewise.
28929         * modules/uninorm/u32-normcmp-tests: Likewise.
28930         * modules/uninorm/u32-normcoll-tests: Likewise.
28931         * modules/unistdio/u8-asnprintf-tests: Likewise.
28932         * modules/unistdio/u8-vasnprintf-tests: Likewise.
28933         * modules/unistdio/u8-vasprintf-tests: Likewise.
28934         * modules/unistdio/u8-vsnprintf-tests: Likewise.
28935         * modules/unistdio/u8-vsprintf-tests: Likewise.
28936         * modules/unistdio/u16-asnprintf-tests: Likewise.
28937         * modules/unistdio/u16-vasnprintf-tests: Likewise.
28938         * modules/unistdio/u16-vasprintf-tests: Likewise.
28939         * modules/unistdio/u16-vsnprintf-tests: Likewise.
28940         * modules/unistdio/u16-vsprintf-tests: Likewise.
28941         * modules/unistdio/u32-asnprintf-tests: Likewise.
28942         * modules/unistdio/u32-vasnprintf-tests: Likewise.
28943         * modules/unistdio/u32-vasprintf-tests: Likewise.
28944         * modules/unistdio/u32-vsnprintf-tests: Likewise.
28945         * modules/unistdio/u32-vsprintf-tests: Likewise.
28946         * modules/unistdio/ulc-asnprintf-tests: Likewise.
28947         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
28948         * modules/unistdio/ulc-vasprintf-tests: Likewise.
28949         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
28950         * modules/unistdio/ulc-vsprintf-tests: Likewise.
28951         * modules/unistr/u8-check-tests: Likewise.
28952         * modules/unistr/u8-chr-tests: Likewise.
28953         * modules/unistr/u8-cmp-tests: Likewise.
28954         * modules/unistr/u8-cmp2-tests: Likewise.
28955         * modules/unistr/u8-cpy-alloc-tests: Likewise.
28956         * modules/unistr/u8-cpy-tests: Likewise.
28957         * modules/unistr/u8-mblen-tests: Likewise.
28958         * modules/unistr/u8-mbsnlen-tests: Likewise.
28959         * modules/unistr/u8-mbtouc-tests: Likewise.
28960         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
28961         * modules/unistr/u8-mbtoucr-tests: Likewise.
28962         * modules/unistr/u8-move-tests: Likewise.
28963         * modules/unistr/u8-next-tests: Likewise.
28964         * modules/unistr/u8-prev-tests: Likewise.
28965         * modules/unistr/u8-set-tests: Likewise.
28966         * modules/unistr/u8-stpcpy-tests: Likewise.
28967         * modules/unistr/u8-stpncpy-tests: Likewise.
28968         * modules/unistr/u8-strcat-tests: Likewise.
28969         * modules/unistr/u8-strcmp-tests: Likewise.
28970         * modules/unistr/u8-strcoll-tests: Likewise.
28971         * modules/unistr/u8-strcpy-tests: Likewise.
28972         * modules/unistr/u8-strdup-tests: Likewise.
28973         * modules/unistr/u8-strlen-tests: Likewise.
28974         * modules/unistr/u8-strmblen-tests: Likewise.
28975         * modules/unistr/u8-strmbtouc-tests: Likewise.
28976         * modules/unistr/u8-strncat-tests: Likewise.
28977         * modules/unistr/u8-strncmp-tests: Likewise.
28978         * modules/unistr/u8-strncpy-tests: Likewise.
28979         * modules/unistr/u8-strnlen-tests: Likewise.
28980         * modules/unistr/u8-to-u16-tests: Likewise.
28981         * modules/unistr/u8-to-u32-tests: Likewise.
28982         * modules/unistr/u8-uctomb-tests: Likewise.
28983         * modules/unistr/u16-check-tests: Likewise.
28984         * modules/unistr/u16-chr-tests: Likewise.
28985         * modules/unistr/u16-cmp-tests: Likewise.
28986         * modules/unistr/u16-cmp2-tests: Likewise.
28987         * modules/unistr/u16-cpy-alloc-tests: Likewise.
28988         * modules/unistr/u16-cpy-tests: Likewise.
28989         * modules/unistr/u16-mblen-tests: Likewise.
28990         * modules/unistr/u16-mbsnlen-tests: Likewise.
28991         * modules/unistr/u16-mbtouc-tests: Likewise.
28992         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
28993         * modules/unistr/u16-mbtoucr-tests: Likewise.
28994         * modules/unistr/u16-move-tests: Likewise.
28995         * modules/unistr/u16-next-tests: Likewise.
28996         * modules/unistr/u16-prev-tests: Likewise.
28997         * modules/unistr/u16-set-tests: Likewise.
28998         * modules/unistr/u16-stpcpy-tests: Likewise.
28999         * modules/unistr/u16-stpncpy-tests: Likewise.
29000         * modules/unistr/u16-strcat-tests: Likewise.
29001         * modules/unistr/u16-strcmp-tests: Likewise.
29002         * modules/unistr/u16-strcoll-tests: Likewise.
29003         * modules/unistr/u16-strcpy-tests: Likewise.
29004         * modules/unistr/u16-strdup-tests: Likewise.
29005         * modules/unistr/u16-strlen-tests: Likewise.
29006         * modules/unistr/u16-strmblen-tests: Likewise.
29007         * modules/unistr/u16-strmbtouc-tests: Likewise.
29008         * modules/unistr/u16-strncat-tests: Likewise.
29009         * modules/unistr/u16-strncmp-tests: Likewise.
29010         * modules/unistr/u16-strncpy-tests: Likewise.
29011         * modules/unistr/u16-strnlen-tests: Likewise.
29012         * modules/unistr/u16-to-u32-tests: Likewise.
29013         * modules/unistr/u16-to-u8-tests: Likewise.
29014         * modules/unistr/u16-uctomb-tests: Likewise.
29015         * modules/unistr/u32-check-tests: Likewise.
29016         * modules/unistr/u32-chr-tests: Likewise.
29017         * modules/unistr/u32-cmp-tests: Likewise.
29018         * modules/unistr/u32-cmp2-tests: Likewise.
29019         * modules/unistr/u32-cpy-alloc-tests: Likewise.
29020         * modules/unistr/u32-cpy-tests: Likewise.
29021         * modules/unistr/u32-mblen-tests: Likewise.
29022         * modules/unistr/u32-mbsnlen-tests: Likewise.
29023         * modules/unistr/u32-mbtouc-tests: Likewise.
29024         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
29025         * modules/unistr/u32-mbtoucr-tests: Likewise.
29026         * modules/unistr/u32-move-tests: Likewise.
29027         * modules/unistr/u32-next-tests: Likewise.
29028         * modules/unistr/u32-prev-tests: Likewise.
29029         * modules/unistr/u32-set-tests: Likewise.
29030         * modules/unistr/u32-stpcpy-tests: Likewise.
29031         * modules/unistr/u32-stpncpy-tests: Likewise.
29032         * modules/unistr/u32-strcat-tests: Likewise.
29033         * modules/unistr/u32-strcmp-tests: Likewise.
29034         * modules/unistr/u32-strcoll-tests: Likewise.
29035         * modules/unistr/u32-strcpy-tests: Likewise.
29036         * modules/unistr/u32-strdup-tests: Likewise.
29037         * modules/unistr/u32-strlen-tests: Likewise.
29038         * modules/unistr/u32-strmblen-tests: Likewise.
29039         * modules/unistr/u32-strmbtouc-tests: Likewise.
29040         * modules/unistr/u32-strncat-tests: Likewise.
29041         * modules/unistr/u32-strncmp-tests: Likewise.
29042         * modules/unistr/u32-strncpy-tests: Likewise.
29043         * modules/unistr/u32-strnlen-tests: Likewise.
29044         * modules/unistr/u32-to-u16-tests: Likewise.
29045         * modules/unistr/u32-to-u8-tests: Likewise.
29046         * modules/unistr/u32-uctomb-tests: Likewise.
29047         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
29048         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
29049         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
29050         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
29051         * modules/uniwidth/u8-strwidth-tests: Likewise.
29052         * modules/uniwidth/u8-width-tests: Likewise.
29053         * modules/uniwidth/u16-strwidth-tests: Likewise.
29054         * modules/uniwidth/u16-width-tests: Likewise.
29055         * modules/uniwidth/u32-strwidth-tests: Likewise.
29056         * modules/uniwidth/u32-width-tests: Likewise.
29057         * modules/uniwidth/width-tests: Likewise.
29058
29059 2010-05-18  Richard Jones  <rjones@redhat.com>
29060
29061         doc: users.txt: list hivex
29062         * users.txt: Add hivex.
29063
29064 2010-05-18  Richard Jones  <rjones@redhat.com>
29065
29066         doc: users.txt: list febootstrap
29067         * users.txt: Add febootstrap.
29068
29069 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
29070
29071         bootstrap: fix an error when gnulib is not used as a git submodule
29072         * build-aux/bootstrap (gnulib_path): If its length is zero then
29073         assign "gnulib" to it.
29074         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
29075
29076 2010-05-16  Bruno Haible  <bruno@clisp.org>
29077
29078         Avoid autoconf warnings about AM_ICONV.
29079         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
29080         2.64.
29081
29082 2010-05-16  Bruno Haible  <bruno@clisp.org>
29083
29084         absolute-header: Make the macro usable in more situations.
29085         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
29086         from gl_ABSOLUTE_HEADER.
29087         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
29088
29089 2010-05-16  James Youngman  <jay@gnu.org>
29090
29091         doc: update users.txt
29092         * users.txt: Add CSSC.
29093
29094 2010-05-16  Jim Meyering  <meyering@redhat.com>
29095
29096         init.sh: fix an error in the previous change; add more comments
29097         * tests/init.sh: Compare exit code in loop against 9, not 2.
29098         Patch by Bruno Haible.
29099         Make the two tests more similar by adding an empty "then" clause.
29100         Add comments.
29101
29102         init.sh: avoid unnecessary shell re-exec
29103         * tests/init.sh: Improve the re-exec-required check to first test the
29104         current shell.  If it passes the test, do not search for a shell that
29105         does pass, and do not re-exec.  This test is particularly contorted to
29106         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
29107         of $(...) evokes a syntax error and causes immediate shell exit with
29108         status 2.  Bruno Haible reported that the re-exec made it impossible
29109         to single-step through any init.sh-using script.
29110
29111 2010-05-16  Bruno Haible  <bruno@clisp.org>
29112
29113         Fix collision between gnulib's and libintl's printf replacements.
29114         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
29115         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
29116         (printf): When using GNU C, map the __printf__ function to rpl_printf
29117         via __asm__. When not using GNU C, define rpl_printf instead of
29118         __printf__.
29119         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
29120         commit.
29121         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
29122         commit.
29123         * m4/asm-underscore.m4: New file.
29124         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
29125         * modules/stdio (Files): Add m4/asm-underscore.m4.
29126         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
29127         Reported by Ben Pfaff.
29128
29129 2010-05-16  Bruno Haible  <bruno@clisp.org>
29130
29131         verify: Avoid skipping the test on openSUSE 11.0.
29132         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
29133
29134 2010-05-13  Bruno Haible  <bruno@clisp.org>
29135
29136         Avoid useless warnings from G++.
29137         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
29138         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
29139         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29140
29141 2010-05-11  Jim Meyering  <meyering@redhat.com>
29142
29143         maint.mk: tweak preceding change
29144         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
29145         regexps tighter by anchoring at EOL, and make the new group "shy"
29146         for slightly decreased overhead.
29147
29148 2010-05-11  Eric Blake  <eblake@redhat.com>
29149
29150         maint.mk: gnulib doesn't guarantee NSIG
29151         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
29152
29153 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29154
29155         test-pwrite.c: Remove unused variable declaration.
29156         * tests/test-pwrite.c (main): Remove read_buf declaration.
29157
29158         Remove useless test-pwrite.sh file.
29159         * tests/test-pwrite.sh: Delete file.
29160         * modules/pwrite-tests: Remove references.
29161         Reported by Bruno Haible.
29162
29163 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29164
29165         init.sh: fix a typo
29166         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
29167
29168 2010-05-10  Jim Meyering  <meyering@redhat.com>
29169
29170         maint.mk: avoid using a temporary file in the always-defined-macros check
29171         * top/maint.mk (.re-defmac): Remove rule.
29172         (gl_trap_): Remove definition.
29173         (sc_prohibit_always-defined_macros): Rewrite not to create and
29174         depend on a temporary file.  Instead, depend on GNU grep's ability
29175         to read a list of regular expressions from stdin when given "-f -".
29176
29177 2010-05-09  Bruno Haible  <bruno@clisp.org>
29178
29179         Update to GNU gettext 0.18, part 1.
29180         * m4/gettext.m4: Update to GNU gettext 0.18.
29181         * m4/intl.m4: Likewise.
29182         * m4/po.m4: Likewise.
29183         * modules/gettext (Files): Add m4/fcntl-o.m4.
29184         (configure.ac): Require gettext infrastructure from version 0.18.
29185
29186 2010-05-09  Jim Meyering  <meyering@redhat.com>
29187
29188         init.sh: enable MALLOC_PERTURB_
29189         * tests/init.sh: Enable glibc's malloc-perturbing option.
29190
29191         maint.mk: improve sc_cross_check_PATH_usage_in_tests
29192         With my recent change in init.sh from the two-line form:
29193             -#   : ${srcdir=.}
29194             -#   . "$srcdir/init.sh"; path_prepend_ .
29195             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
29196         I noticed that using the one-line form would cause this test
29197         to fail with a false-positive, or to stop working altogether,
29198         depending on whether help-version changed or all the tests did.
29199         * top/maint.mk (_hv_regex): Remove this definition.
29200         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
29201         (_hv_regex_strong): Use a stronger regex to check for conformance.
29202         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
29203         Give a separate diagnostic for lack of conforming use.
29204
29205         maint.mk: prohibit definition of symbols defined by gnulib
29206         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
29207         definition of symbols defined by gnulib.
29208
29209 2010-05-09  Bruno Haible  <bruno@clisp.org>
29210
29211         acl: Avoid test failure on Cygwin-hosted mingw.
29212         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
29213
29214 2010-05-09  Bruno Haible  <bruno@clisp.org>
29215
29216         error: Use system's fcntl function.
29217         * lib/error.c (fcntl): Undefine.
29218
29219 2010-05-09  Jim Meyering  <meyering@redhat.com>
29220
29221         verify: adjust formatting to be more consistent
29222         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
29223         argument-list '('s, and after one comma.
29224
29225 2010-05-09  Bruno Haible  <bruno@clisp.org>
29226
29227         error: More reliable output on mingw.
29228         * lib/error.c: Include <windows.h>.
29229         (is_open): New function.
29230         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
29231         defined.
29232
29233 2010-05-09  Bruno Haible  <bruno@clisp.org>
29234
29235         vasnprintf: Fix syntax errors in libintl build on mingw.
29236         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
29237         pad_ourselves and prec_ourselves after use.
29238
29239 2010-05-08  Bruno Haible  <bruno@clisp.org>
29240
29241         * lib/config.charset: Update comments for Cygwin 1.7.
29242         * lib/localcharset.c: Likewise.
29243
29244 2010-05-07  Jim Meyering  <meyering@redhat.com>
29245
29246         init.sh: improve comments
29247         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
29248         . "${srcdir=.}/init.sh"; path_prepend_ .
29249         Add a note about path_prepend_ and the alternative of using
29250         TESTS_ENVIRONMENT.
29251
29252 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
29253
29254         exclude: Unescape hashed patterns in wildcard mode.
29255         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
29256         to the hash list.
29257         * tests/test-exclude8.sh: New test case.
29258         * modules/exclude-tests: Add new test.
29259
29260 2010-05-05  Eric Blake  <eblake@redhat.com>
29261
29262         verify: automate tests
29263         * modules/verify-tests: New module.
29264         * tests/test-verify.sh: New file.
29265         * tests/test-verify.c: Guard each negative test with a unique id.
29266         Also avoid warning about unused left hand of comma expressions.
29267
29268 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
29269
29270         Further improvements to verify.h, suggested by Eric Blake.
29271         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
29272         the GL_* versions, to avoid collision with OpenGL.
29273         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
29274         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
29275         than testing merely whether it's defined.
29276
29277         Modify verify.h to pacify gcc -Wredundant_decls.
29278         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
29279         These use the prefix "GL_" since they're likely to be useful elsewhere.
29280         We may need to break them out into a different .h file.
29281         (__COUNTER__): Define to 0 if the compiler doesn't support it.
29282         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
29283         of verify_function__.
29284
29285 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29286
29287         Tests for module pwrite.
29288         * modules/pwrite-tests: New file.
29289         * tests/test-pwrite.sh: New file.
29290         * tests/test-pwrite.c: New file.
29291
29292         New module pwrite.
29293         * lib/unistd.in.h (pwrite): New declaration.
29294         * lib/pwrite.c: New file, from glibc with modifications.
29295         * m4/pwrite.m4: New file.
29296         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
29297         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
29298         REPLACE_PWRITE.
29299         * modules/pwrite: New file.
29300         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
29301         REPLACE_PWRITE.
29302         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
29303         * doc/posix-functions/pwrite.texi: Mention the new module.
29304
29305 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29306
29307         pread: Update documentation.
29308         * doc/posix-functions/pread.texi: Mention the 'pread' module.
29309
29310 2010-05-04  Eric Blake  <eblake@redhat.com>
29311
29312         docs: update cygwin progress
29313         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
29314         this bug.
29315         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
29316         Added in cygwin 1.7.2.
29317         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
29318         Likewise.
29319         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
29320         Likewise.
29321         * doc/glibc-functions/dup3.texi (dup3): Likewise.
29322         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
29323         * doc/glibc-functions/accept4.texi (accept4): Likewise.
29324         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
29325         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
29326         Mention nproc module.
29327         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
29328         bug in cygwin 1.7.5 addition.
29329         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
29330         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
29331         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
29332         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
29333         1.7.5.
29334         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
29335         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
29336         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
29337         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
29338         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
29339         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
29340         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
29341         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
29342         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
29343         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
29344         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
29345         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
29346         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
29347         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
29348         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
29349         Likewise.
29350         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
29351         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
29352         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
29353         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
29354         Likewise.
29355         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
29356         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
29357         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
29358         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
29359         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
29360         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
29361         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
29362         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
29363         Likewise.
29364         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
29365         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
29366         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
29367         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
29368         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
29369         Likewise.
29370         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
29371         Likewise.
29372         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
29373         Likewise.
29374         * doc/glibc-functions/xdrrec_endofrecord.texi
29375         (xdrrec_endofrecord): Likewise.
29376         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
29377         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
29378         Likewise.
29379         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
29380         Likewise.
29381
29382 2010-05-04  Jim Meyering  <meyering@redhat.com>
29383
29384         gendocs.sh: make its "-s FILE" option more useful
29385         * build-aux/gendocs.sh: When honoring the -s FILE option, update
29386         $PACKAGE to reflect the probably-different basename of "FILE".
29387
29388 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29389
29390         bootstrap: don't ignore download_po_files failure
29391         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
29392         failure.
29393
29394 2010-05-03  Jim Meyering  <meyering@redhat.com>
29395
29396         maint.mk: allow to pass options to gendocs.sh
29397         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
29398         (gendocs_options_): New overridable variable.
29399
29400         gnu-web-doc-update: don't ignore configure or build failure
29401         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
29402
29403         announce-gen: backslash-escape '@'s in --help output
29404         * build-aux/announce-gen: Fix syntax errors.
29405
29406         maint.mk, announce-gen: allow project-specific announcement mail headers
29407         * top/maint.mk (translation_project_): Define default.
29408         (announcement_Cc_, announcement_mail_headers_): Likewise.
29409         (announcement): Invoke announce-gen with new --mail-headers option.
29410         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
29411
29412         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
29413         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
29414         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
29415         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
29416         line in the "err2" output file when running "make check" in verbose
29417         mode (i.e., with set -x enabled).
29418
29419 2010-05-03  Bruno Haible  <bruno@clisp.org>
29420
29421         wctob: Fix for weird platforms.
29422         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
29423         argument value.
29424
29425 2010-05-03  Jim Meyering  <meyering@redhat.com>
29426
29427         maint.mk: prohibit unwarranted use of <strings.h>
29428         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
29429         strings.h in a file that does not also use strcasecmp, strncasecmp,
29430         ffs or ffsll.
29431
29432         maint.mk: remove obsolete comments
29433         * top/maint.mk: Remove stale, commented-out rules.
29434
29435 2010-05-02  Bruno Haible  <bruno@clisp.org>
29436
29437         wcwidth: Declare also when it's aliased.
29438         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
29439         macro.
29440
29441 2010-05-02  Bruno Haible  <bruno@clisp.org>
29442
29443         Fix regression from 2010-04-25.
29444         * gnulib-tool (func_modules_transitive_closure): Check the status of
29445         all modules, not only of the tests that are of the form foo-tests where
29446         foo is a module.
29447
29448 2010-05-02  Bruno Haible  <bruno@clisp.org>
29449
29450         wctob: Work around nasty Cygwin 1.7.2 bug.
29451         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
29452         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
29453
29454 2010-05-01  Bruno Haible  <bruno@clisp.org>
29455
29456         fpurge: Sharper test.
29457         * tests/test-fpurge.c (main): Add one more ftell check.
29458         * modules/fpurge-tests (Depends-on): Add ftell.
29459         Suggested by Eric Blake.
29460
29461 2010-05-01  Bruno Haible  <bruno@clisp.org>
29462
29463         ftello: Another test.
29464         * tests/test-ftello3.c: New file.
29465         * modules/ftello-tests (Files): Add it.
29466         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29467         MOSTLYCLEANFILES.
29468
29469         ftell: Another test.
29470         * tests/test-ftell3.c: New file.
29471         * modules/ftell-tests (Files): Add it.
29472         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29473         MOSTLYCLEANFILES.
29474
29475 2010-05-01  Bruno Haible  <bruno@clisp.org>
29476
29477         ftell, ftello: Work around Solaris bug.
29478         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
29479         * lib/ftello.c: Include stdio-impl.h.
29480         (ftello): On Solaris, when _IOWRT is set, compute the result without
29481         looking at _IOREAD.
29482         * modules/ftello (Files): Add lib/stdio-impl.h.
29483         * doc/posix-functions/ftell.texi: Mention Solaris bug.
29484         * doc/posix-functions/ftello.texi: Likewise.
29485         Reported by Eric Blake.
29486
29487 2010-05-01  Bruno Haible  <bruno@clisp.org>
29488
29489         freading: Adapt to special meaning of _IOREAD flag on Solaris.
29490         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
29491         the _IOWRT flag is also set.
29492
29493 2010-05-01  Bruno Haible  <bruno@clisp.org>
29494
29495         Fix doc about a HP-UX stdio bug.
29496         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
29497         * doc/posix-functions/ftello.texi: Likewise.
29498
29499 2010-05-01  Bruno Haible  <bruno@clisp.org>
29500
29501         lseek test: Fix failure on Solaris.
29502         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
29503         output.
29504
29505 2010-04-30  Jim Meyering  <meyering@redhat.com>
29506
29507         bootstrap: don't ignore failure to generate po*/Makevars
29508         * build-aux/bootstrap (with_gettext): Don't ignore failure
29509         to create po/Makevars or runtime-po/Makevars.
29510
29511 2010-04-29  Eric Blake  <eblake@redhat.com>
29512
29513         headers: relax license to LGPLv2+
29514         * modules/fcntl-h (License): Relax license.
29515         * modules/getopt-posix (License): Likewise.
29516         * modules/locale (License): Likewise.
29517         * modules/math (License): Likewise.
29518         * modules/pty (License): Likewise.
29519         * modules/sched (License): Likewise.
29520         * modules/search (License): Likewise.
29521         * modules/spawn (License): Likewise.
29522         * modules/stdarg (License): Likewise.
29523         * modules/sysexits (License): Likewise.
29524
29525 2010-04-29  Jim Meyering  <meyering@redhat.com>
29526
29527         inttypes: relax license to LGPLv2+
29528         * modules/inttypes (License): Relax license.
29529
29530 2010-04-29  Simon Josefsson  <simon@josefsson.org>
29531
29532         * top/maint.mk (indent): Run twice to produce idempotent results.
29533
29534 2010-04-28  Bruno Haible  <bruno@clisp.org>
29535
29536         getdate: Generate getdate.c in the source directory.
29537         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
29538         MOSTLYCLEANFILES.
29539         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
29540
29541 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
29542
29543         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
29544         is not declared as a const *; avoid warnings in that case.
29545
29546 2010-04-28  Eric Blake  <eblake@redhat.com>
29547
29548         canonicalize-lgpl: avoid compiler warning
29549         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
29550         declaration' / 'extraneous semicolon' warning with some compilers.
29551         Reported by Andreas Gruenbacher.
29552
29553 2010-04-28  Jim Meyering  <meyering@redhat.com>
29554
29555         init.sh: ensure a more reliable exit status when exiting via trap
29556         * tests/init.sh (setup_): Don't rely on $? in signal handler.
29557         Inspired by patches from Dmitry V. Levin.
29558         Also trap on signal 3 (SIGQUIT).
29559
29560 2010-04-27  Bruno Haible  <bruno@clisp.org>
29561
29562         Update doc about utimes().
29563         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
29564         'utimens' module.
29565         Reported by Andreas Gruenbacher <agruen@suse.de>.
29566
29567 2010-04-27  Eric Blake  <eblake@redhat.com>
29568
29569         full-read, full-write: relax license
29570         * modules/full-read (License): Drop to LGPLv2+.
29571         * modules/full-write (License): Likewise.
29572         * modules/safe-read (License): Likewise.
29573         * modules/safe-write (License): Likewise.
29574
29575         pthread: mention library for linking
29576         * modules/pthread (Link): Mention $(LIB_PTHREAD).
29577
29578 2010-04-27  Jim Meyering  <meyering@redhat.com>
29579
29580         maint.mk: fix a bug introduced in last change
29581         * top/maint.mk (gl_assured_headers_): Now that all names are on
29582         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
29583         is not anchored to end of word, it should be adequate.
29584
29585         maint.mk: avoid side-effect in latest syntax-check
29586         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
29587         to run commands via $(shell...), and hence to incur cost only when
29588         the new rule is actually run.
29589
29590         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
29591         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
29592         and use that to create a regexp used to detect all #if HAVE_..._H uses.
29593         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
29594         (gl_assured_headers_, az_, AZ_): Define.
29595         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
29596
29597 2010-04-26  Jim Meyering  <jim@meyering.net>
29598             Bruno Haible  <bruno@clisp.org>
29599
29600         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
29601         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
29602         Prompted by an exchange with Gilles Espinasse.
29603
29604 2010-04-26  Jim Meyering  <meyering@redhat.com>
29605
29606         git-version-gen: aesthetic tweak
29607         * build-aux/git-version-gen: Use "$nl" rather than a literal,
29608         so that the command remains on a single line.
29609
29610 2010-04-26  Eric Blake  <eblake@redhat.com>
29611
29612         git-version-gen: allow use on EBCDIC hosts
29613         * build-aux/git-version-gen (dirty): Use literal rather than tying
29614         ourselves to ascii.
29615         Reported by Steve Goetze.
29616
29617 2010-04-25  Bruno Haible  <bruno@clisp.org>
29618
29619         netdb: Add support for GNULIB_POSIXCHECK.
29620         * lib/netdb.in.h: Include warn-on-use.h.
29621         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
29622         functions are used when GNULIB_POSIXCHECK is defined and the
29623         getaddrinfo module is not in use.
29624         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
29625         freeaddrinfo, gai_strerror, getnameinfo are declared.
29626         * modules/netdb (Depends-on): Add warn-on-use.
29627         (Makefile.am): Include warn-on-use.h in netdb.h.
29628
29629 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
29630
29631         build: avoid "make check" failure without .git/ directory
29632         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
29633         there is no .git/ directory.
29634
29635 2010-04-25  Bruno Haible  <bruno@clisp.org>
29636
29637         ptsname: Fix misuse of ttyname_r.
29638         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
29639         of errno.
29640
29641 2010-04-25  Bruno Haible  <bruno@clisp.org>
29642
29643         ttyname_r: Make it work on Solaris 10.
29644         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
29645         if the system function has the POSIX declaration. Test whether the
29646         function fails if the buffer is less than 128 bytes large.
29647         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
29648         system's ttyname_r function. Provide a reasonably large buffer.
29649         * modules/ttyname_r (Depends-on): Add extensions.
29650         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
29651
29652 2010-04-25  Bruno Haible  <bruno@clisp.org>
29653
29654         Use the 'extensions' module for some more functions on Solaris.
29655         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
29656         module.
29657         * doc/posix-functions/ctime_r.texi: Likewise.
29658         * doc/posix-functions/getgrgid_r.texi: Likewise.
29659         * doc/posix-functions/getgrnam_r.texi: Likewise.
29660         * doc/posix-functions/getpwnam_r.texi: Likewise.
29661         * doc/posix-functions/getpwuid_r.texi: Likewise.
29662         * doc/posix-functions/readdir_r.texi: Likewise.
29663         * doc/posix-functions/sigwait.texi: Likewise.
29664         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
29665         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
29666
29667 2010-04-25  Bruno Haible  <bruno@clisp.org>
29668
29669         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
29670         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
29671         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
29672         * lib/ttyname_r.c: Include <limits.h>.
29673         (ttyname_r): Define using the system's ttyname_r function, if it exists
29674         and not on Solaris.
29675         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
29676         set.
29677         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
29678         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
29679         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
29680         Reported by Simon Josefsson.
29681
29682 2010-04-25  Bruno Haible  <bruno@clisp.org>
29683
29684         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
29685         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
29686         * doc/posix-functions/ctime_r.texi: Likewise.
29687         * doc/posix-functions/getgrgid_r.texi: Likewise.
29688         * doc/posix-functions/getgrnam_r.texi: Likewise.
29689         * doc/posix-functions/getlogin_r.texi: Likewise.
29690         * doc/posix-functions/getpwnam_r.texi: Likewise.
29691         * doc/posix-functions/getpwuid_r.texi: Likewise.
29692         * doc/posix-functions/readdir_r.texi: Likewise.
29693         * doc/posix-functions/sigwait.texi: Likewise.
29694         * doc/posix-functions/ttyname_r.texi: Likewise.
29695         Reported by Simon Josefsson.
29696
29697 2010-04-25  Bruno Haible  <bruno@clisp.org>
29698
29699         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
29700         * gnulib-tool (func_usage): Document that --with-*-tests options apply
29701         also to --create-testdir.
29702         (func_acceptable): Don't consider the status of *-tests modules here.
29703         (func_modules_transitive_closure): Consider it here, before including a
29704         test module.
29705         (func_import, func_create_testdir): Set inc_all_direct_tests,
29706         inc_all_indirect_tests.
29707         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
29708         --create-testdir and --create-megatestdir.
29709
29710 2010-04-25  Bruno Haible  <bruno@clisp.org>
29711
29712         gnulib-tool: Add --without-*-tests options.
29713         * gnulib-tool (func_usage): Document the --without-*-tests options.
29714         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
29715         excl_unportable_tests): New variables.
29716         Fail if they are specified with --import or --update.
29717         (func_acceptable): Respect the excl_*_tests variables.
29718         (func_import): Set the excl_*_tests variables to empty.
29719
29720 2010-04-25  Simon Josefsson  <simon@josefsson.org>
29721             Bruno Haible  <bruno@clisp.org>
29722
29723         Work around a MacOS X 10.4 bug with openpty.
29724         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
29725         * tests/test-openpty.c (main): Close the master side explicitly.
29726
29727 2010-04-25  Bruno Haible  <bruno@clisp.org>
29728
29729         strnlen: Fix a C++ test error on MacOS X and Solaris.
29730         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
29731         the function is not declared.
29732         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
29733         Simon Josefsson.
29734
29735 2010-04-24  Bruno Haible  <bruno@clisp.org>
29736
29737         Avoid a gcc warning.
29738         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
29739         of correct type for %08lx directive.
29740         Reported by Eric Blake.
29741
29742 2010-04-24  Bruno Haible  <bruno@clisp.org>
29743
29744         vasnprintf: Correct errno value in case of out-of-memory.
29745         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
29746         or sprintf. Use the errno value from SNPRINTF or sprintf.
29747         Reported by Ian Beckwith <ianb@erislabs.net>.
29748
29749 2010-04-24  Bruno Haible  <bruno@clisp.org>
29750
29751         ansi-c++-opt: Find correct compiler when cross-compiling.
29752         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
29753         AC_CHECK_PROGS.
29754         Reported by Simon Josefsson.
29755
29756 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
29757
29758         vc-list-files: Add support for subversion
29759         * build-aux/vc-list-files: Use "svn list" to generate the list of
29760         files controlled by subversion.
29761
29762 2010-04-23  Jim Meyering  <meyering@redhat.com>
29763
29764         vc-list-files tests: convert to use init.sh
29765         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
29766         path_prepend_.
29767         Use Exit, not exit.
29768         Use skip_ rather than open coding it.
29769         Remove trap set-up and compare definitions.
29770         * tests/test-vc-list-files-git.sh: Likewise.
29771         * modules/vc-list-files-tests (Files): Add tests/init.sh.
29772
29773 2010-04-22  Simon Josefsson  <simon@josefsson.org>
29774
29775         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
29776         backup files.
29777
29778 2010-04-21  Simon Josefsson  <simon@josefsson.org>
29779
29780         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
29781
29782 2010-04-20  Eric Blake  <eblake@redhat.com>
29783
29784         tests: be robust to ignored SIGPIPE
29785         * tests/test-select-in.sh: Consume all output.
29786         * tests/test-lseek.sh: Check correct exit status, while avoiding
29787         EPIPE.
29788
29789 2010-04-20  Simon Josefsson  <simon@josefsson.org>
29790             Bruno Haible  <bruno@clisp.org>
29791
29792         visibility: Don't use -fvisibility if it leads to a warning.
29793         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
29794         yes, don't pretend that visibility works if it leads to a warning.
29795         Reported by Mike Gran <spk121@yahoo.com>.
29796
29797 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
29798
29799         * build-aux/bootstrap: Use "git -h" for testing for supported options
29800         instead of "git --help".  The short-form option only shows a summary,
29801         and doesn't layout the full man page.  Grep for the full option name
29802         in the summary, too.
29803
29804 2010-04-19  Bruno Haible  <bruno@clisp.org>
29805
29806         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
29807         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
29808         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
29809         mention of RELOCATABLE_STRIP.
29810         Reported by Sylvain Beucler <beuc@beuc.net>.
29811
29812 2010-04-19  Bruno Haible  <bruno@clisp.org>
29813
29814         * lib/diffseq.h: Fix typo in comment.
29815         Reported by Eric Blake.
29816
29817 2010-04-19  Bruno Haible  <bruno@clisp.org>
29818
29819         ioctl: Move autoconf macro to a .m4 file.
29820         * m4/ioctl.m4: New file, extracted from modules/ioctl.
29821         * modules/ioctl (Files): Add it.
29822         (configure.ac): Simply invoke gl_FUNC_IOCTL.
29823         Reported by Ian Beckwith <ianb@erislabs.net>.
29824
29825 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
29826             Bruno Haible  <bruno@clisp.org>
29827
29828         diffseq: Accommodate use-case with abstract arrays.
29829         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
29830         is not defined.
29831         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
29832         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
29833
29834 2010-04-18  Bruno Haible  <bruno@clisp.org>
29835
29836         * doc/posix-headers/stdbool.texi: More precise wording.
29837
29838 2010-04-17  Jim Meyering  <meyering@redhat.com>
29839
29840         maint.mk: use gnu-style indentation in an embedded perl script
29841         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
29842         Rename variable: s/two/last_two_bytes/
29843
29844 2010-04-16  Eric Blake  <eblake@redhat.com>
29845
29846         test-stdbool: skip test that fails with Solaris CC
29847         * tests/test-stdbool.c (f): Skip test that causes compilation
29848         error under buggy C++ compiler.
29849         * lib/stdbool.in.h: Document the limitation.
29850         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
29851
29852         setenv: allow compilation with C++
29853         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
29854         register keyword.
29855
29856         stdint: allow test to pass with C++
29857         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
29858
29859         getopt: allow compilation with C++
29860         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
29861         struct.
29862         * lib/getopt.c (_getopt_internal_r): Use correct type.
29863         Reported by Dagobert Michelson, via Joel E. Denny.
29864
29865 2010-04-16  Bruno Haible  <bruno@clisp.org>
29866
29867         Override netdb.h always.
29868         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
29869         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
29870         Reported by Ludovic Courtès <ludo@gnu.org>.
29871
29872 2010-04-15  Bruno Haible  <bruno@clisp.org>
29873
29874         openpty: Fix mistake from 2010-03-21.
29875         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
29876         Reported by Simon Josefsson.
29877
29878 2010-04-15  Eric Blake  <eblake@redhat.com>
29879
29880         test-forkpty: fix expected signature
29881         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
29882         Reported by Simon Josefsson.
29883
29884 2010-04-15  Jim Meyering  <meyering@redhat.com>
29885
29886         maint.mk: texinfo_suffix_re_: correct the default regexp
29887         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
29888
29889         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
29890         make it configurable via texinfo_suffix_re_.
29891
29892 2010-04-14  Eric Blake  <eblake@redhat.com>
29893
29894         strtok_r: relax license to LGPLv2+
29895         * modules/strtok_r (License): Relax license.
29896         Reported by Matthias Bolte.
29897
29898 2010-04-14  Simon Josefsson  <simon@josefsson.org>
29899
29900         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
29901         version 1.4.4 by default instead of requiring the libgcrypt
29902         version used during build.  This makes it possible to use the
29903         application with older but still binary compatible libgcrypt
29904         versions.
29905
29906 2010-04-13  Eric Blake  <eblake@redhat.com>
29907
29908         getopt-gnu: match recent glibc fixes and posix ruling
29909         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
29910         '+' handling, when requesting extensions.
29911         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
29912         'W;' handling.
29913         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
29914         * doc/posix-functions/getopt.texi (getopt): Document this.
29915         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29916         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29917         Likewise.
29918
29919         getopt: merge bug fixes from glibc
29920         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
29921         diagnostics.  Honor '+:' correctly.  Reject ';'.
29922
29923         getopt-posix: detect MacOS bug
29924         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
29925         optind when missing a required argument.
29926         * doc/posix-functions/getopt.texi (getopt): Document the bug.
29927         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29928         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29929         Likewise.
29930
29931         getopt-posix: avoid spurious failure on Solaris
29932         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
29933         an indicator that setting optind=1 is sufficient for reset.
29934
29935         getopt-posix: avoid spurious failure on FreeBSD
29936         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
29937         in POSIX mode, since the m4 test uses it.
29938
29939         gnulib-tool: silence warning on BSD sh
29940         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
29941
29942 2010-04-13  Jim Meyering  <meyering@redhat.com>
29943
29944         doc: users.txt: GNU patch now uses gnulib
29945         * users.txt: Add patch.
29946
29947 2010-04-12  Jim Meyering  <meyering@redhat.com>
29948
29949         maint.mk: generate more concise timing data for syntax-check rules
29950         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
29951         " done" from each line that reports a syntax-check test duration.
29952
29953 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
29954
29955         git-version-gen: use "git update-index..." rather than "git status"
29956         * build-aux/git-version-gen: Use git update-index --refresh, not
29957         "git status".  With some versions of git, "git status" would fail
29958         to update the index and result in an unwarranted "-dirty" suffix.
29959
29960 2010-04-11  Jim Meyering  <meyering@redhat.com>
29961
29962         openat: correct formatting (no semantic change)
29963         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
29964         Suggested by Bruno Haible.
29965
29966 2010-04-11  Bruno Haible  <bruno@clisp.org>
29967
29968         Stricter declaration checking in testdirs.
29969         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29970         If for_tests is true, augment AM_CPPFLAGS to define
29971         GNULIB_STRICT_CHECKING.
29972         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
29973         GNULIB_STRICT_CHECKING is defined, verify that the function is
29974         declared.
29975
29976 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
29977             Bruno Haible  <bruno@clisp.org>
29978
29979         libunistring: Improve configure output.
29980         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
29981         Don't say "consider installing GNU libunistring" when checking again
29982         with libiconv.
29983
29984 2010-04-11  Bruno Haible  <bruno@clisp.org>
29985
29986         libunistring: Correct value of $LTLIBUNISTRING.
29987         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
29988         correct the value of $LTLIBUNISTRING.
29989
29990 2010-04-11  Bruno Haible  <bruno@clisp.org>
29991
29992         havelib: Add static libraries to LIBS in the right order.
29993         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
29994         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
29995
29996 2010-04-11  Bruno Haible  <bruno@clisp.org>
29997
29998         libunistring: Detect libunistring also when it depends on libiconv.
29999         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
30000         the second AC_LIB_HAVE_LINKFLAGS invocation.
30001
30002 2010-04-11  James Youngman  <jay@gnu.org>
30003
30004         close-stream: declare local scalars to be "const"
30005         * lib/close-stream.c (close_stream): Make boolean variables const
30006         to document the fact that we set but do not change them.
30007
30008 2010-04-11  Bruno Haible  <bruno@clisp.org>
30009
30010         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
30011
30012 2010-04-11  Jim Meyering  <meyering@redhat.com>
30013
30014         maint.mk: don't include dist-check.mk
30015         * top/maint.mk: Remove bogus include directive.
30016
30017         maint.mk: improve empty-line-at-EOF check
30018         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
30019         solution, rather than tail+Perl-based one.  The latter would read
30020         a few kilobytes from the end of each file, and did not handle empty
30021         files properly.
30022
30023         maint.mk: print the elapsed time for each syntax-check rule
30024         * top/maint.mk (sc_m_rules_): Save start time in a file.
30025         (sc_z_rules_): New rules: remove temp file and print elapsed time.
30026         (local-check): Interpose the .z rules
30027
30028 2010-04-11  Jim Meyering  <meyering@redhat.com>
30029
30030         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
30031         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
30032         empty file with one that ends in an empty line.
30033
30034 2010-04-10  Bruno Haible  <bruno@clisp.org>
30035
30036         mkdir: Make it work on mingw64.
30037         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
30038         * lib/mkdir.c: Update comment.
30039         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
30040
30041 2010-04-10  Bruno Haible  <bruno@clisp.org>
30042
30043         Don't override improved macro from newer autoconf.
30044         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
30045         autoconf >= 2.62.
30046         Reported by Joel E. Denny <jdenny@clemson.edu>.
30047
30048 2010-04-10  Jim Meyering  <meyering@redhat.com>
30049
30050         maint.mk: new syntax-check rule: prohibit empty lines at end of file
30051         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
30052
30053         maint.mk: correct a diagnostic
30054         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
30055         in diagnostic; now use $prohibit.
30056
30057 2010-04-10  Bruno Haible  <address@hidden>
30058
30059         fchownat: Fix a C++ test error on Solaris 8.
30060         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
30061         the function does not exist.
30062
30063 2010-04-10  Bruno Haible  <bruno@clisp.org>
30064
30065         vasnprintf: Add more tests.
30066         * tests/test-vasnprintf-posix.c: Include <errno.h>.
30067         (test_function): Test converting an invalid wide string.
30068
30069         vasnprintf: Correct handling of unconvertible wide string arguments.
30070         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
30071         VASNPRINTF.
30072         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
30073         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
30074         smaller than the expected maximum need for the directive. Set errno to
30075         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
30076         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
30077         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
30078         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
30079         * modules/vasnprintf (Files): Add m4/printf.m4.
30080         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30081
30082 2010-04-10  Bruno Haible  <bruno@clisp.org>
30083
30084         vasnprintf: Fix crash in %ls directive.
30085         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
30086         string is passed as argument to %ls, with no precision and no width.
30087         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30088
30089 2010-04-10  Bruno Haible  <bruno@clisp.org>
30090
30091         vasnprintf: Fix multiple test failures on mingw.
30092         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
30093         _snprintf, or snwprintf, not _snwprintf.
30094
30095 2010-04-10  Bruno Haible  <bruno@clisp.org>
30096
30097         write: Fix a C++ test error on mingw.
30098         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
30099
30100 2010-04-10  Bruno Haible  <bruno@clisp.org>
30101
30102         vasnprintf test: Reduce code duplication.
30103         * tests/test-vasnprintf.c (test_function): New function, extracted from
30104         test_vasnprintf.
30105         (test_vasnprintf, test_asnprintf): Invoke it.
30106
30107 2010-04-10  Bruno Haible  <bruno@clisp.org>
30108
30109         strnlen: Fix warning in C++ mode on MacOS X.
30110         * lib/string.in.h (strnlen): Use the modern idiom.
30111         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
30112         defining strnlen as a macro already in <config.h>.
30113         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30114         REPLACE_STRNLEN.
30115         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
30116         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30117
30118 2010-04-08  James Youngman  <jay@gnu.org>
30119
30120         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
30121         the example.
30122
30123 2010-04-09  Jim Meyering  <meyering@redhat.com>
30124
30125         maint.mk: print better diagnostic when there is no $(_hv_file)
30126         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
30127         announce that when $(_hv_file) (aka help-version) does not exist.
30128
30129         init.sh: run tr in the "C" locale to avoid multibyte interpretation
30130         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
30131         not try to interpret its random input bytes.  Jarno Rajahalme reported
30132         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
30133         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
30134         (mktempd_): Likewise, just in case.
30135
30136         ftruncate: add two years to projected module removal date: 2012
30137         * m4/ftruncate.m4: Adjust comments.
30138
30139         ftruncate: mark module as obsolete; even MinGW provides it, now
30140         * modules/ftruncate (Status): Obsolete.
30141         (Notice): Say that.
30142         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
30143         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
30144
30145 2010-04-08  Bruno Haible  <bruno@clisp.org>
30146
30147         Fix side effects from tests-related modules.
30148         * modules/dprintf-posix (Comment): New section.
30149         * modules/fprintf-posix (Comment): Likewise.
30150         * modules/obstack-printf-posix (Comment): Likewise.
30151         * modules/printf-posix (Comment): Likewise.
30152         * modules/snprintf-posix (Comment): Likewise.
30153         * modules/sprintf-posix (Comment): Likewise.
30154         * modules/vasnprintf-posix (Comment): Likewise.
30155         * modules/vasprintf-posix (Comment): Likewise.
30156         * modules/vdprintf-posix (Comment): Likewise.
30157         * modules/vfprintf-posix (Comment): Likewise.
30158         * modules/vprintf-posix (Comment): Likewise.
30159         * modules/vsnprintf-posix (Comment): Likewise.
30160         * modules/vsprintf-posix (Comment): Likewise.
30161         * modules/xprintf-posix (Comment): Likewise.
30162         * modules/xvasprintf-posix (Comment): Likewise.
30163         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
30164         * modules/floorf-tests (Depends-on): Likewise.
30165         * modules/round-tests (Depends-on): Likewise.
30166         * modules/roundf-tests (Depends-on): Likewise.
30167         * modules/trunc-tests (Depends-on): Likewise.
30168         * modules/truncf-tests (Depends-on): Likewise.
30169         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
30170         'fprintf-posix' module is not present.
30171         * tests/test-floorf2.c (check): Likewise.
30172         * tests/test-trunc2.c (check): Likewise.
30173         * tests/test-truncf2.c (check): Likewise.
30174         * tests/test-round2.c (equal): Likewise.
30175         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30176
30177 2010-04-07  Karl Berry  <karl@gnu.org>
30178
30179         * config/srclist.txt,
30180         * config/srclistvars.sh,
30181         * config/srclist-update: doc fixes.
30182
30183 2010-04-07  Jim Meyering  <meyering@redhat.com>
30184
30185         maint.mk: add a PATH crosschecking syntax-check rule
30186         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
30187         Useful if you use a test like the one in help-version (coreutils,
30188         diffutils, grep, gzip) that ensures $(VERSION) matches what is
30189         printed by prog --version.
30190
30191 2010-04-06  Bruno Haible  <bruno@clisp.org>
30192
30193         Fix link error on mingw.
30194         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
30195         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
30196
30197 2010-04-06  Bruno Haible  <bruno@clisp.org>
30198
30199         Assume rmdir exists.
30200         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
30201
30202 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
30203
30204         doc: update users.txt
30205         * users.txt: Add gcal.
30206
30207 2010-04-06  Jim Meyering  <meyering@redhat.com>
30208
30209         init.sh: simply unset TMPDIR rather than risking env -i
30210         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
30211         although it probably works fine on all Unix-based systems, some
30212         systems (Cygwin?) cannot tolerate a totally cleared environment.
30213         Suggestion from Eric Blake.
30214
30215 2010-04-06  Jim Meyering  <meyering@redhat.com>
30216
30217         init.sh: portability fix: use env's POSIX-specified -i option not -u
30218         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
30219         than unportable env -u.  Solaris 5.11's env lacks support for -u.
30220
30221 2010-04-05  Bruno Haible  <bruno@clisp.org>
30222
30223         btowc: Work around Cygwin 1.7.2 bug.
30224         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
30225         does not map NUL to 0.
30226         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
30227
30228 2010-04-05  Bruno Haible  <bruno@clisp.org>
30229
30230         Make the multithread modules work on Cygwin 1.7.2.
30231         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
30232         imported symbols can be declared weak, so that it returns "no" on
30233         Cygwin 1.7.2.
30234
30235 2010-04-05  Bruno Haible  <bruno@clisp.org>
30236
30237         Use the module 'strncat'.
30238         * modules/unistr/u8-strncat (Depends-on): Add strncat.
30239
30240         Tests for module 'strncat'.
30241         * modules/strncat-tests: New file.
30242         * tests/test-strncat.c: New file.
30243
30244         New module 'strncat'.
30245         * lib/string.in.h (strncat): New declaration.
30246         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
30247         * m4/strncat.m4: New file, based on m4/memchr.m4.
30248         * modules/strncat: New file.
30249         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
30250         is declared.
30251         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
30252         REPLACE_STRNCAT.
30253         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
30254         REPLACE_STRNCAT.
30255         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
30256         module.
30257         * tests/test-string-c++.cc: Check signature of strncat.
30258
30259 2010-04-05  Jim Meyering  <meyering@redhat.com>
30260
30261         xstrtoumax-tests: convert to use init.sh
30262         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
30263         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30264         Use Exit, not exit.
30265         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30266
30267         xstrtoimax-tests: convert to use init.sh
30268         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
30269         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30270         Use Exit, not exit.
30271         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30272
30273 2010-04-05  Bruno Haible  <bruno@clisp.org>
30274
30275         sys_socket: Avoid #define replacements in C++ mode.
30276         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
30277         warning to the function if possible, rather than #defining the symbol
30278         to a dysfunctional alias.
30279
30280 2010-04-05  Bruno Haible  <bruno@clisp.org>
30281
30282         fseeko: Fix C++ test error on mingw.
30283         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
30284         gl_FUNC_FSEEKO.
30285         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
30286         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
30287         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
30288         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
30289
30290 2010-04-05  Bruno Haible  <bruno@clisp.org>
30291
30292         duplocale: Improve test output.
30293         * tests/test-duplocale.c (main): Print reason for skipped test.
30294
30295 2010-04-05  Bruno Haible  <bruno@clisp.org>
30296
30297         Assume rmdir exists.
30298         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
30299         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
30300
30301 2010-04-05  Bruno Haible  <bruno@clisp.org>
30302
30303         Fix link error on Solaris 8 with cc.
30304         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
30305
30306 2010-04-05  Bruno Haible  <bruno@clisp.org>
30307
30308         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30309         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
30310
30311 2010-04-05  Bruno Haible  <bruno@clisp.org>
30312
30313         vasprintf: Update documentation.
30314         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
30315
30316 2010-04-05  Bruno Haible  <bruno@clisp.org>
30317
30318         ptsname: Improve test.
30319         * tests/test-ptsname.c (main): Also try the various master names of BSD
30320         systems.
30321
30322 2010-04-05  Bruno Haible  <bruno@clisp.org>
30323
30324         memchr: Avoid a possible C++ test error.
30325         * lib/string.in.h (memchr): Provide declaration if function is missing.
30326         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
30327         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
30328         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
30329         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
30330
30331 2010-04-05  Bruno Haible  <bruno@clisp.org>
30332
30333         strtok_r: Improve idiom.
30334         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
30335         AC_LIBOBJ is used.
30336
30337 2010-04-05  Bruno Haible  <bruno@clisp.org>
30338
30339         strdup: Improve idiom.
30340         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
30341         AC_LIBOBJ is used.
30342         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
30343         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
30344         when AC_LIBOBJ is used.
30345
30346 2010-04-05  Bruno Haible  <bruno@clisp.org>
30347
30348         mbsinit, mbrtowc, wcrtomb: Improve idioms.
30349         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
30350         don't set REPLACE_MBSINIT to 1.
30351         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
30352         don't set REPLACE_MBRTOWC to 1.
30353         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
30354         exist, don't set REPLACE_MBSRTOWCS to 1.
30355         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
30356         exist, don't set REPLACE_MBSNRTOWCS to 1.
30357         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
30358         don't set REPLACE_WCRTOMB to 1.
30359         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
30360         exist, don't set REPLACE_WCSRTOMBS to 1.
30361         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
30362         exist, don't set REPLACE_WCSNRTOMBS to 1.
30363
30364 2010-04-05  Bruno Haible  <bruno@clisp.org>
30365
30366         ldexpl: Improve idiom.
30367         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
30368         make sure to set HAVE_DECL_LDEXPL to 0.
30369
30370 2010-04-05  Jim Meyering  <meyering@redhat.com>
30371
30372         xstrtol-tests: convert to use init.sh
30373         * modules/xstrtol-tests (Files): Add tests/init.sh.
30374         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30375         Use Exit, not exit.
30376         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30377
30378         atexit-tests: convert to use init.sh
30379         * modules/atexit-tests (Files): Add tests/init.sh.
30380         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30381         Use Exit, not exit.
30382         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30383
30384         init.sh: fix typo
30385         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
30386
30387         init.sh: make it easier for a test script to write to the tty, ...
30388         when using automake's parallel-tests mode.
30389         * tests/init.sh (stderr_fileno_): Define overridable variable.
30390         (warn_): New function, to use it.
30391         (fail_, skip_, framework_failure_): Use warn_.
30392
30393 2010-04-04  Bruno Haible  <bruno@clisp.org>
30394
30395         btowc: Avoid warning.
30396         * lib/btowc.c: Include <stdlib.h>.
30397         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
30398
30399 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30400             Bruno Haible  <bruno@clisp.org>
30401
30402         wchar: Port to NetBSD 1.5.
30403         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
30404         * lib/wctype.in.h (WEOF): Likewise.
30405
30406 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30407             Bruno Haible  <bruno@clisp.org>
30408
30409         Port extended stdio to NetBSD 1.5.
30410         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
30411         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
30412         older.
30413
30414 2010-04-04  Bruno Haible  <bruno@clisp.org>
30415
30416         string: Remove unused substitution.
30417         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
30418         HAVE_DECL_STRERROR.
30419         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
30420
30421 2010-04-04  Bruno Haible  <bruno@clisp.org>
30422
30423         strtod: Avoid a possible C++ test error.
30424         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
30425         set REPLACE_STRTOD.
30426
30427 2010-04-04  Bruno Haible  <bruno@clisp.org>
30428
30429         strerror: Update documentation.
30430         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
30431
30432 2010-04-04  Bruno Haible  <bruno@clisp.org>
30433
30434         stdio: Fix some C++ test errors on Solaris 8 with GCC.
30435         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
30436         _GL_CXXALIAS_SYS_CAST.
30437
30438 2010-04-04  Bruno Haible  <bruno@clisp.org>
30439
30440         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30441         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
30442         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
30443         REPLACE_FREXPL to 1.
30444         * doc/posix-functions/frexpl.texi: Update documentation.
30445
30446 2010-04-04  Bruno Haible  <bruno@clisp.org>
30447
30448         math: Fix some C++ test errors on Solaris 8 and Cygwin.
30449         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
30450
30451 2010-04-04  Bruno Haible  <bruno@clisp.org>
30452
30453         Implement nanosleep for native Windows.
30454         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
30455
30456 2010-04-04  Bruno Haible  <bruno@clisp.org>
30457
30458         math: Fix some C++ test errors on Solaris 8.
30459         * lib/math.in.h (truncf, trunc): Use simpler idiom.
30460
30461 2010-04-04  Bruno Haible  <bruno@clisp.org>
30462
30463         math: Fix some C++ test errors on Cygwin.
30464         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
30465         truncl): Provide declaration if the system does not have it.
30466         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
30467         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
30468         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
30469         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
30470         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
30471         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
30472         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
30473         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
30474         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
30475         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
30476         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
30477         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
30478         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
30479         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
30480         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
30481         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
30482         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
30483         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30484         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30485         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
30486         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30487         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30488
30489 2010-04-04  Bruno Haible  <bruno@clisp.org>
30490
30491         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
30492         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
30493         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
30494         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30495         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30496         * m4/isinf.m4 (gl_ISINF): Likewise.
30497         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30498
30499 2010-04-04  Bruno Haible  <bruno@clisp.org>
30500
30501         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
30502         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30503
30504 2010-04-04  Bruno Haible  <bruno@clisp.org>
30505
30506         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
30507         * modules/tmpfile (configure.ac): Update.
30508
30509         tmpfile: Fix C++ test error on mingw.
30510         * lib/stdio.in.h (tmpfile): New declaration.
30511         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
30512         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
30513         * modules/tmpfile (Depends-on): Add stdio.
30514         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
30515         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
30516         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
30517         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
30518         REPLACE_TMPFILE.
30519         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
30520
30521 2010-04-04  Bruno Haible  <bruno@clisp.org>
30522
30523         ioctl: Fix C++ test error on mingw.
30524         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
30525         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
30526         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
30527
30528 2010-04-03  Bruno Haible  <bruno@clisp.org>
30529
30530         wcwidth: Fix C++ test error on mingw.
30531         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
30532         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
30533         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
30534
30535 2010-04-03  Bruno Haible  <bruno@clisp.org>
30536
30537         nanosleep: Fix C++ test error on mingw.
30538         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
30539         * lib/time.in.h (nanosleep): Use modern idiom.
30540         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
30541         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
30542         REPLACE_NANOSLEEP to 1.
30543         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
30544         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
30545
30546 2010-04-03  Bruno Haible  <bruno@clisp.org>
30547
30548         strptime: Fix C++ test error on mingw.
30549         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
30550         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
30551         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
30552         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
30553         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
30554         not REPLACE_STRPTIME.
30555         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
30556         REPLACE_STRPTIME.
30557
30558 2010-04-03  Bruno Haible  <bruno@clisp.org>
30559
30560         timegm: Fix C++ test error on mingw.
30561         * lib/time.in.h (timegm): Use modern idiom.
30562         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
30563         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
30564         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
30565         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
30566
30567 2010-04-03  Bruno Haible  <bruno@clisp.org>
30568
30569         timegm: Assume declaration if function exists.
30570         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
30571         if it exists. Don't clobber ac_cv_func_timegm.
30572
30573 2010-04-03  Bruno Haible  <bruno@clisp.org>
30574
30575         time_r: Fix C++ test error on mingw.
30576         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
30577         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
30578         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
30579         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
30580         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
30581
30582 2010-04-03  Bruno Haible  <bruno@clisp.org>
30583
30584         time_r: Minor updates.
30585         * modules/time_r (Description): Mention the provided functions.
30586         * lib/time_r.c: Don't include <string.h>.
30587         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
30588         * doc/posix-functions/localtime_r.texi: Likewise.
30589
30590 2010-04-03  Bruno Haible  <bruno@clisp.org>
30591
30592         time: Fix regression introduced on 2010-03-08.
30593         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
30594         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
30595
30596 2010-04-03  Jim Meyering  <meyering@redhat.com>
30597
30598         maint.mk: don't silently disable project-specific syntax-check rules
30599         * top/maint.mk (_prohibit_regexp): Define, to help people realize
30600         that they need to convert their project-specific syntax-check rules
30601         to use the new _sc_search_regexp.
30602
30603 2010-04-03  Bruno Haible  <bruno@clisp.org>
30604
30605         fchdir: Fix regression introduced on 2010-03-08.
30606         * lib/unistd.in.h (fchdir): Fix declaration.
30607         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
30608         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
30609         REPLACE_FCHDIR.
30610         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
30611         REPLACE_FCHDIR.
30612
30613 2010-04-03  Bruno Haible  <bruno@clisp.org>
30614
30615         getpagesize: Fix C++ test error on mingw.
30616         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
30617         system does not declare the function.
30618         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
30619         declared.
30620         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30621         HAVE_DECL_GETPAGESIZE.
30622         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
30623
30624 2010-04-03  Bruno Haible  <bruno@clisp.org>
30625
30626         stdio: Make C++ tests work on mingw.
30627         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
30628         does not declare the function.
30629
30630 2010-04-03  Bruno Haible  <bruno@clisp.org>
30631
30632         ftello: Fix C++ test error on mingw.
30633         * lib/stdio.in.h (ftello): Use modern idiom.
30634         * lib/ftello.c (ftello): Renamed from rpl_ftello.
30635         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
30636         is missing and that it needs to be replaced.
30637         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
30638         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
30639         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
30640
30641 2010-04-03  Bruno Haible  <bruno@clisp.org>
30642
30643         fseeko: Fix C++ test error on mingw.
30644         * lib/stdio.in.h (fseeko): Use modern idiom.
30645         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
30646         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
30647         is missing and that it needs to be replaced.
30648         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
30649         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
30650         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
30651
30652 2010-04-03  Bruno Haible  <bruno@clisp.org>
30653
30654         mkstemp: Fix C++ test error on mingw.
30655         * lib/stdlib.in.h (mkstemp): Use modern idiom.
30656         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
30657         function is missing and that it needs to be replaced.
30658         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
30659         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
30660
30661 2010-04-03  Bruno Haible  <bruno@clisp.org>
30662
30663         stpncpy: Fix C++ test error on mingw.
30664         * lib/string.in.h (stpncpy): Use modern idiom.
30665         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
30666         function is missing and that it needs to be replaced.
30667         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30668         REPLACE_STPNCPY.
30669         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
30670
30671 2010-04-03  Bruno Haible  <bruno@clisp.org>
30672
30673         sys_stat: Fix C++ test error on mingw.
30674         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
30675         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
30676
30677 2010-04-03  Bruno Haible  <bruno@clisp.org>
30678
30679         pty: Update doc.
30680         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
30681
30682 2010-04-03  Bruno Haible  <bruno@clisp.org>
30683
30684         unistd: Fix C++ test error on mingw.
30685         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
30686
30687 2010-04-03  Bruno Haible  <bruno@clisp.org>
30688
30689         Update doc regarding mingw.
30690         * doc/glibc-functions/openpty.texi: Update regarding mingw.
30691         * doc/glibc-functions/login_tty.texi: Likewise.
30692         * doc/glibc-functions/forkpty.texi: Likewise.
30693
30694 2010-04-03  Bruno Haible  <bruno@clisp.org>
30695
30696         stdlib: Avoid compilation failure of c-strtold on mingw.
30697         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
30698
30699 2010-04-03  Bruno Haible  <bruno@clisp.org>
30700
30701         locale: Make C++ tests work on Cygwin and mingw.
30702         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
30703         cannot provide the function.
30704         Reported by Simon Josefsson.
30705
30706 2010-04-03  Bruno Haible  <bruno@clisp.org>
30707
30708         localename: Port to MacOS X 10.6.
30709         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
30710         memory layout of the locales in MacOS X 10.6 as well.
30711         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
30712
30713 2010-04-02  Bruno Haible  <bruno@clisp.org>
30714
30715         gnulib-tool: Ensure that long-running tests are executed last.
30716         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
30717         running tests after the one for the other tests.
30718
30719 2010-04-02  Bruno Haible  <bruno@clisp.org>
30720
30721         gnulib-tool: Ensure the tests in the main directory are executed first.
30722         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
30723         start with the current directory.
30724
30725 2010-04-02  Bruno Haible  <bruno@clisp.org>
30726
30727         Tests for module 'havelib', moved here from GNU gettext.
30728         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
30729         modifications.
30730         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
30731         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
30732         with modifications.
30733         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
30734         modifications.
30735         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
30736         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
30737         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
30738         with modifications.
30739         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
30740         with modifications.
30741         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
30742         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
30743         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
30744         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
30745         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
30746         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
30747         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
30748         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
30749         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
30750         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
30751         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
30752         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
30753         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
30754         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
30755         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
30756         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
30757         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
30758         with modifications.
30759         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
30760         with modifications.
30761         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
30762         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
30763         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
30764         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
30765         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
30766         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
30767         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
30768         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
30769         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
30770         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
30771         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
30772         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
30773         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
30774         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
30775         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
30776         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
30777         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
30778         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
30779         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
30780         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
30781         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
30782         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
30783         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
30784         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
30785         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
30786         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
30787         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
30788         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
30789         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
30790         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
30791         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
30792         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
30793         * tests/havelib/rpathx/rpathx.c: New file, from
30794         gettext/autoconf-lib-link.
30795         * tests/havelib/rpathx/Makefile.am: New file, from
30796         gettext/autoconf-lib-link.
30797         * tests/havelib/rpathx/configure.ac: New file, from
30798         gettext/autoconf-lib-link with modifications.
30799         * tests/havelib/rpathy/rpathy.c: New file, from
30800         gettext/autoconf-lib-link.
30801         * tests/havelib/rpathy/Makefile.am: New file, from
30802         gettext/autoconf-lib-link.
30803         * tests/havelib/rpathy/configure.ac: New file, from
30804         gettext/autoconf-lib-link with modifications.
30805         * tests/havelib/rpathz/rpathz.c: New file, from
30806         gettext/autoconf-lib-link.
30807         * tests/havelib/rpathz/Makefile.am: New file, from
30808         gettext/autoconf-lib-link.
30809         * tests/havelib/rpathz/configure.ac: New file, from
30810         gettext/autoconf-lib-link with modifications.
30811         * tests/havelib/rpathlx/usex.c: New file, from
30812         gettext/autoconf-lib-link.
30813         * tests/havelib/rpathlx/Makefile.am: New file, from
30814         gettext/autoconf-lib-link.
30815         * tests/havelib/rpathlx/configure.ac: New file, from
30816         gettext/autoconf-lib-link with modifications.
30817         * tests/havelib/rpathly/usey.c: New file, from
30818         gettext/autoconf-lib-link.
30819         * tests/havelib/rpathly/Makefile.am: New file, from
30820         gettext/autoconf-lib-link.
30821         * tests/havelib/rpathly/configure.ac: New file, from
30822         gettext/autoconf-lib-link with modifications.
30823         * tests/havelib/rpathlz/usez.c: New file, from
30824         gettext/autoconf-lib-link.
30825         * tests/havelib/rpathlz/Makefile.am: New file, from
30826         gettext/autoconf-lib-link.
30827         * tests/havelib/rpathlz/configure.ac: New file, from
30828         gettext/autoconf-lib-link with modifications.
30829         * tests/havelib/rpathlyx/usey.c: New file, from
30830         gettext/autoconf-lib-link.
30831         * tests/havelib/rpathlyx/Makefile.am: New file, from
30832         gettext/autoconf-lib-link.
30833         * tests/havelib/rpathlyx/configure.ac: New file, from
30834         gettext/autoconf-lib-link with modifications.
30835         * tests/havelib/rpathlzyx/usez.c: New file, from
30836         gettext/autoconf-lib-link.
30837         * tests/havelib/rpathlzyx/Makefile.am: New file, from
30838         gettext/autoconf-lib-link.
30839         * tests/havelib/rpathlzyx/configure.ac: New file, from
30840         gettext/autoconf-lib-link with modifications.
30841         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
30842         with modifications.
30843
30844 2010-04-02  Bruno Haible  <bruno@clisp.org>
30845
30846         gnulib-tool: Create distributed built sources also for the tests.
30847         * gnulib-tool (func_create_testdir): Also generate distributed built
30848         sources in the tests directory.
30849
30850 2010-04-02  Bruno Haible  <bruno@clisp.org>
30851
30852         gnulib-tool: Obey user's environment variables.
30853         * gnulib-tool (func_create_testdir): When creating built sources,
30854         respect the environment variables for autoconf, automake, etc. given by
30855         the user.
30856
30857 2010-04-02  Bruno Haible  <bruno@clisp.org>
30858
30859         gnulib-tool: Provide the value of --m4-base to modules.
30860         * gnulib-tool (func_import, func_create_testdir): Emit a definition
30861         of gl_m4_base.
30862
30863 2010-04-02  Eric Blake  <eblake@redhat.com>
30864
30865         maint.mk: fix some fallout
30866         * NEWS: Document the incompatible change, and its effect on cfg.mk.
30867         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
30868
30869 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30870
30871         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
30872         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
30873         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
30874         (sc_cast_of_x_alloc_return_value): Likewise.
30875         (sc_cast_of_alloca_return_value): Likewise.
30876         (sc_space_tab): Likewise.
30877         (sc_prohibit_atoi_atof): Likewise.
30878         (sc_prohibit_magic_number_exit): Likewise.
30879         (sc_error_exit_success): Likewise.
30880         (sc_file_system): Likewise.
30881         (sc_prohibit_have_config_h): Likewise.
30882         (sc_require_config_h): Likewise.
30883         (sc_prohibit_HAVE_MBRTOWC): Likewise.
30884         (sc_obsolete_symbols): Likewise.
30885         (sc_changelog): Likewise.
30886         (sc_program_name): Likewise.
30887         (sc_the_the): Likewise.
30888         (sc_trailing_blank): Likewise.
30889         (sc_two_space_separator_in_usage): Likewise.
30890         (sc_useless_cpp_parens): Likewise.
30891         (sc_GPL_version): Likewise.
30892         (sc_GFDL_version): Likewise.
30893         (sc_texinfo_acronym): Likewise.
30894         (sc_prohibit_cvs_keyword): Likewise.
30895         (sc_prohibit_stat_st_blocks): Likewise.
30896         (sc_prohibit_S_IS_definition): Likewise.
30897         (sc_redundant_const): Likewise.
30898         (sc_makefile_TAB_only_indentation): Likewise.
30899         (sc_m4_quote_check): Likewise.
30900         (sc_makefile_path_separator_check): Likewise.
30901         (sc_copyright_check): Likewise.
30902         (sc_Wundef_boolean): Likewise.
30903         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30904
30905         maint.mk: match 0 or more whitespace-before-function-call '('
30906         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
30907         that have zero or two-and-more spaces between the function name
30908         and the open parenthesis.
30909         (sc_error_message_warn_fatal): Likewise.
30910         (sc_error_message_uppercase): Likewise.
30911         (sc_error_message_period): Likewise.
30912
30913 2010-03-31  Eric Blake  <eblake@redhat.com>
30914
30915         maint.mk: check for [ as well as test
30916         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
30917         Based on a libvirt report by Matthias Bolte.
30918
30919         gnumakefile: don't squelch _version output
30920         * top/GNUmakefile (_version): Create one-shot dependency rather
30921         than using $(shell) when version must be regenerated.
30922         (_autoreconf): Run verbosely, by default.
30923
30924         sys_time: avoid compiler warnings
30925         * lib/sys_time.in.h (includes): Ensure gcc pragma is
30926         unconditional, fixing regression from 2010-03-29.
30927         Reported by Simon Josefsson.
30928
30929 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30930
30931         maint.mk: s/_header_without_use/_sc_header_without_use/
30932         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
30933         (sc_prohibit_assert_without_use): Use the new name.
30934         (sc_prohibit_close_stream_without_use): Likewise.
30935         (sc_prohibit_getopt_without_use): Likewise.
30936         (sc_prohibit_quotearg_without_use): Likewise.
30937         (sc_prohibit_quote_without_use): Likewise.
30938         (sc_prohibit_long_options_without_use): Likewise.
30939         (sc_prohibit_inttostr_without_use): Likewise.
30940         (sc_prohibit_ignore_value_without_use): Likewise.
30941         (sc_prohibit_error_without_use): Likewise.
30942         (sc_prohibit_xalloc_without_use): Likewise.
30943         (sc_prohibit_hash_without_use): Likewise.
30944         (sc_prohibit_hash_pjw_without_use): Likewise.
30945         (sc_prohibit_safe_read_without_use): Likewise.
30946         (sc_prohibit_argmatch_without_use): Likewise.
30947         (sc_prohibit_canonicalize_without_use): Likewise.
30948         (sc_prohibit_root_dev_ino_without_use): Likewise.
30949         (sc_prohibit_openat_without_use): Likewise.
30950         (sc_prohibit_c_ctype_without_use): Likewise.
30951         (sc_prohibit_signal_without_use): Likewise.
30952         (sc_prohibit_intprops_without_use): Likewise.
30953
30954 2010-03-30  Eric Blake  <eblake@redhat.com>
30955
30956         maint: improve module indicators
30957         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
30958         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
30959         columns, and avoid extra macro expansion.
30960
30961         fdopendir: work around FreeBSD bug
30962         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30963         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
30964         * modules/dirent (Makefile.am): Substitute it.
30965         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
30966         declaration.
30967         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
30968         fix.
30969         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30970
30971 2010-03-29  Bruno Haible  <bruno@clisp.org>
30972
30973         Emit #pragma system_header after the inclusion guard, not before.
30974         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
30975         guard that spans the entire file, not before. This enables an
30976         optimization in GCC's preprocessor.
30977         * lib/ctype.in.h: Likewise.
30978         * lib/dirent.in.h: Likewise.
30979         * lib/errno.in.h: Likewise.
30980         * lib/float.in.h: Likewise.
30981         * lib/getopt.in.h: Likewise.
30982         * lib/iconv.in.h: Likewise.
30983         * lib/langinfo.in.h: Likewise.
30984         * lib/locale.in.h: Likewise.
30985         * lib/math.in.h: Likewise.
30986         * lib/netdb.in.h: Likewise.
30987         * lib/netinet_in.in.h: Likewise.
30988         * lib/pty.in.h: Likewise.
30989         * lib/sched.in.h: Likewise.
30990         * lib/se-selinux.in.h: Likewise.
30991         * lib/search.in.h: Likewise.
30992         * lib/spawn.in.h: Likewise.
30993         * lib/stdarg.in.h: Likewise.
30994         * lib/stdint.in.h: Likewise.
30995         * lib/string.in.h: Likewise.
30996         * lib/strings.in.h: Likewise.
30997         * lib/sys_file.in.h: Likewise.
30998         * lib/sys_ioctl.in.h: Likewise.
30999         * lib/sys_time.in.h: Likewise.
31000         * lib/sys_times.in.h: Likewise.
31001         * lib/sys_utsname.in.h: Likewise.
31002         * lib/sys_wait.in.h: Likewise.
31003         * lib/sysexits.in.h: Likewise.
31004         * lib/wctype.in.h: Likewise.
31005
31006 2010-03-28  James Youngman  <jay@gnu.org>
31007
31008         save-cwd: don't leak a file descriptor when the caller execs.
31009         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
31010         saved file descriptor.
31011         * modules/save-cwd (Depends-on): Depend on cloexec.
31012
31013 2010-03-29  Bruno Haible  <bruno@clisp.org>
31014
31015         Remove vestiges of fts-lgpl module.
31016         * lib/fts_.h: Assume GNULIB_FTS is 1.
31017         * lib/fts.c: Likewise.
31018         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31019
31020 2010-03-28  Bruno Haible  <bruno@clisp.org>
31021
31022         Fix definition of tests witness macro.
31023         * gnulib-tool (func_import): Fix definition of witness macro.
31024
31025 2010-03-28  Bruno Haible  <bruno@clisp.org>
31026
31027         Fix ioctl's protoype on glibc systems.
31028         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
31029         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
31030         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
31031         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
31032         signature. If not, arrange to replace the ioctl function.
31033         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31034         REPLACE_IOCTL.
31035         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
31036         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
31037         Reported by Ludovic Courtès <ludo@gnu.org>.
31038
31039 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
31040
31041         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
31042         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
31043         made it so grep -r --include=GLOB* ... did not work.
31044
31045 2010-03-26  Jim Meyering  <meyering@redhat.com>
31046             Eric Blake  <eblake@redhat.com>
31047
31048         maint.mk: prohibit use of test's -o and -a operators
31049         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
31050
31051 2010-03-28  Bruno Haible  <bruno@clisp.org>
31052
31053         Remove unused GNULIB_XYZ macro definitions.
31054         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
31055         invocation.
31056
31057 2010-03-28  Bruno Haible  <bruno@clisp.org>
31058
31059         Mark privileged tests modules.
31060         * modules/idpriv-drop-tests (Status): New section.
31061         * modules/idpriv-droptemp-tests (Status): New section.
31062
31063 2010-03-28  Bruno Haible  <bruno@clisp.org>
31064
31065         Split C++ tests into separate tests modules.
31066         * modules/dirent-c++-tests: New file, extracted from
31067         modules/dirent-tests.
31068         * modules/dirent-tests: Depend on it.
31069         * modules/fcntl-h-c++-tests: New file, extracted from
31070         modules/fcntl-h-tests.
31071         * modules/fcntl-h-tests: Depend on it.
31072         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
31073         * modules/glob-tests: Depend on it.
31074         * modules/iconv-h-c++-tests: New file, extracted from
31075         modules/iconv-h-tests.
31076         * modules/iconv-h-tests: Depend on it.
31077         * modules/langinfo-c++-tests: New file, extracted from
31078         modules/langinfo-tests.
31079         * modules/langinfo-tests: Depend on it.
31080         * modules/locale-c++-tests: New file, extracted from
31081         modules/locale-tests.
31082         * modules/locale-tests: Depend on it.
31083         * modules/math-c++-tests: New file, extracted from modules/math-tests.
31084         * modules/math-tests: Depend on it.
31085         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
31086         * modules/pty-tests: Depend on it.
31087         * modules/search-c++-tests: New file, extracted from
31088         modules/search-tests.
31089         * modules/search-tests: Depend on it.
31090         * modules/signal-c++-tests: New file, extracted from
31091         modules/signal-tests.
31092         * modules/signal-tests: Depend on it.
31093         * modules/spawn-c++-tests: New file, extracted from
31094         modules/spawn-tests.
31095         * modules/spawn-tests: Depend on it.
31096         * modules/stdio-c++-tests: New file, extracted from
31097         modules/stdio-tests.
31098         * modules/stdio-tests: Depend on it.
31099         * modules/stdlib-c++-tests: New file, extracted from
31100         modules/stdlib-tests.
31101         * modules/stdlib-tests: Depend on it.
31102         * modules/string-c++-tests: New file, extracted from
31103         modules/string-tests.
31104         * modules/string-tests: Depend on it.
31105         * modules/sys_ioctl-c++-tests: New file, extracted from
31106         modules/sys_ioctl-tests.
31107         * modules/sys_ioctl-tests: Depend on it.
31108         * modules/sys_select-c++-tests: New file, extracted from
31109         modules/sys_select-tests.
31110         * modules/sys_select-tests: Depend on it.
31111         * modules/sys_socket-c++-tests: New file, extracted from
31112         modules/sys_socket-tests.
31113         * modules/sys_socket-tests: Depend on it.
31114         * modules/sys_stat-c++-tests: New file, extracted from
31115         modules/sys_stat-tests.
31116         * modules/sys_stat-tests: Depend on it.
31117         * modules/sys_time-c++-tests: New file, extracted from
31118         modules/sys_time-tests.
31119         * modules/sys_time-tests: Depend on it.
31120         * modules/time-c++-tests: New file, extracted from modules/time-tests.
31121         * modules/time-tests: Depend on it.
31122         * modules/unistd-c++-tests: New file, extracted from
31123         modules/unistd-tests.
31124         * modules/unistd-tests: Depend on it.
31125         * modules/wchar-c++-tests: New file, extracted from
31126         modules/wchar-tests.
31127         * modules/wchar-tests: Depend on it.
31128         * modules/wctype-c++-tests: New file, extracted from
31129         modules/wctype-tests.
31130         * modules/wctype-tests: Depend on it.
31131         Reported by Simon Josefsson.
31132
31133 2010-03-28  Bruno Haible  <bruno@clisp.org>
31134
31135         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
31136         * gnulib-tool (func_exists_module): New function, extracted from
31137         func_verify_module.
31138         (func_verify_module): Use it.
31139         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
31140         'foo' only if 'foo' exists.
31141         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
31142         module.
31143
31144 2010-03-28  Bruno Haible  <bruno@clisp.org>
31145
31146         gnulib-tool: Add support for special categories of tests.
31147         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
31148         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
31149         (func_usage): Document them.
31150         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
31151         inc_unportable_tests, inc_all_tests): New variables.
31152         (func_acceptable): Consider these variables.
31153         (func_modules_transitive_closure): Make it work when the 'Status' field
31154         consists of multiple words.
31155         (func_import): Store and restore the values of inc_cxx_tests,
31156         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
31157         inc_all_tests in gnulib-comp.m4.
31158         (func_create_testdir): Set inc_all_tests to true.
31159         * doc/gnulib.texi (Extra tests modules): New section.
31160         Suggested by Jim Meyering.
31161
31162 2010-03-28  Bruno Haible  <bruno@clisp.org>
31163
31164         ansi-c++-opt: Allow turning off the C++ build by default.
31165         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
31166         gl_CXX_CHOICE_DEFAULT_NO is defined.
31167         Requested by Eric Blake.
31168
31169 2010-03-28  Bruno Haible  <bruno@clisp.org>
31170
31171         unistd: Avoid #define replacements in C++ mode.
31172         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
31173         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
31174         setsockopt, shutdown, select): In C++, attach a warning to the function
31175         if possible, rather than #defining the symbol to a dysfunctional alias.
31176         Reported by John W. Eaton <jwe@gnu.org>.
31177
31178 2010-03-28  Bruno Haible  <bruno@clisp.org>
31179
31180         Fix link errors on mingw.
31181         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
31182         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
31183         $(LIBSOCKET).
31184         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
31185         $(LIBSOCKET).
31186
31187 2010-03-28  Bruno Haible  <bruno@clisp.org>
31188             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31189
31190         lib-ignore: Determine different options for different compilers.
31191         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
31192         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
31193         Add comments.
31194         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
31195         * NEWS: Mention the change.
31196
31197 2010-03-27  Bruno Haible  <bruno@clisp.org>
31198
31199         Remove unused GNULIB_XYZ macro definitions.
31200         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31201         * modules/fseek (configure.ac): Likewise.
31202         * modules/ioctl (configure.ac): Likewise.
31203         * modules/open (configure.ac): Likewise.
31204         * modules/stdlib-safer (configure.ac): Likewise.
31205
31206 2010-03-27  Bruno Haible  <bruno@clisp.org>
31207
31208         Add a remark about certain modules.
31209         * modules/malloc (Comment): New section.
31210         * modules/realloc (Comment): Likewise.
31211         * modules/sigpipe (Comment): Likewise.
31212
31213 2010-03-27  Bruno Haible  <bruno@clisp.org>
31214
31215         Resolve conflict between the two kinds of module indicators.
31216         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
31217         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
31218         * modules/canonicalize (configure.ac): Invoke
31219         gl_MODULE_INDICATOR_FOR_TESTS.
31220         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
31221         GNULIB_XYZ.
31222         * tests/test-dirent-c++.cc: Likewise.
31223         * tests/test-dirent-safer.c: Likewise.
31224         * tests/test-dup2.c: Likewise.
31225         * tests/test-fchdir.c: Likewise.
31226         * tests/test-fcntl-h-c++.cc: Likewise.
31227         * tests/test-getopt.c: Likewise.
31228         * tests/test-getopt.h: Likewise.
31229         * tests/test-langinfo-c++.cc: Likewise.
31230         * tests/test-locale-c++.cc: Likewise.
31231         * tests/test-math-c++.cc: Likewise.
31232         * tests/test-pty-c++.cc: Likewise.
31233         * tests/test-search-c++.cc: Likewise.
31234         * tests/test-signal-c++.cc: Likewise.
31235         * tests/test-spawn-c++.cc: Likewise.
31236         * tests/test-stdio-c++.cc: Likewise.
31237         * tests/test-stdlib-c++.cc: Likewise.
31238         * tests/test-string-c++.cc: Likewise.
31239         * tests/test-sys_ioctl-c++.cc: Likewise.
31240         * tests/test-sys_select-c++.cc: Likewise.
31241         * tests/test-sys_socket-c++.cc: Likewise.
31242         * tests/test-sys_stat-c++.cc: Likewise.
31243         * tests/test-sys_time-c++.cc: Likewise.
31244         * tests/test-time-c++.cc: Likewise.
31245         * tests/test-unistd-c++.cc: Likewise.
31246         * tests/test-wchar-c++.cc: Likewise.
31247         * tests/uninorm/test-u8-nfc.c: Likewise.
31248         * tests/uninorm/test-u8-nfd.c: Likewise.
31249         * tests/uninorm/test-u8-nfkc.c: Likewise.
31250         * tests/uninorm/test-u8-nfkd.c: Likewise.
31251         * tests/uninorm/test-u16-nfc.c: Likewise.
31252         * tests/uninorm/test-u16-nfd.c: Likewise.
31253         * tests/uninorm/test-u16-nfkc.c: Likewise.
31254         * tests/uninorm/test-u16-nfkd.c: Likewise.
31255         * tests/uninorm/test-u32-nfc.c: Likewise.
31256         * tests/uninorm/test-u32-nfc-big.c: Likewise.
31257         * tests/uninorm/test-u32-nfd.c: Likewise.
31258         * tests/uninorm/test-u32-nfd-big.c: Likewise.
31259         * tests/uninorm/test-u32-nfkc.c: Likewise.
31260         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
31261         * tests/uninorm/test-u32-nfkd.c: Likewise.
31262         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
31263         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31264
31265 2010-03-27  Bruno Haible  <bruno@clisp.org>
31266
31267         Distinguish two kinds of module indicators.
31268         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
31269         gl_MODULE_INDICATOR.
31270         (gl_MODULE_INDICATOR): New macro.
31271         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31272         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
31273         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31274         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31275         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31276         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31277         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31278         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31279         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31280         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31281         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31282         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31283         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31284         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31285         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31286         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31287         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31288         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31289         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31290         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31291         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31292         * modules/cloexec (configure.ac): Likewise.
31293         * modules/getopt-gnu (configure.ac): Likewise.
31294         * modules/uninorm/u8-normalize (configure.ac): Likewise.
31295         * modules/uninorm/u16-normalize (configure.ac): Likewise.
31296         * modules/uninorm/u32-normalize (configure.ac): Likewise.
31297         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
31298
31299 2010-03-27  Bruno Haible  <bruno@clisp.org>
31300
31301         New module description field 'Comment'.
31302         * gnulib-tool: New option --extract-comment.
31303         (func_usage): Document it.
31304         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
31305         (func_get_comment): New function.
31306         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
31307
31308 2010-03-27  Bruno Haible  <bruno@clisp.org>
31309
31310         Addendum to 2010-02-07 commit.
31311         * gnulib-tool (func_usage): Document --extract-applicability option.
31312
31313 2010-03-27  Bruno Haible  <bruno@clisp.org>
31314
31315         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
31316         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
31317         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
31318         rather than link errors.
31319
31320 2010-03-27  Bruno Haible  <bruno@clisp.org>
31321
31322         Avoid side effects from tests-related modules on the compilation of lib.
31323         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
31324         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
31325         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
31326         parameter. Emit into AM_CPPFLAGS a definition of the designated C
31327         macro.
31328         (func_import): Define a witness macro. Assign it a value that depends
31329         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
31330         tests-related modules.
31331         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
31332         Reported by Jim Meyering.
31333
31334 2010-03-27  Bruno Haible  <bruno@clisp.org>
31335
31336         Factorize common .m4 code.
31337         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
31338         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
31339         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
31340         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
31341         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31342         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
31343         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
31344         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31345         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31346         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31347         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
31348         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31349         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31350         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31351         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31352         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
31353         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31354         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31355         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31356         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
31357         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
31358         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31359         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31360         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31361         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31362         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31363         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
31364         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
31365         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
31366         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31367         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31368         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31369
31370 2010-03-27  Bruno Haible  <bruno@clisp.org>
31371
31372         Fix a compilation error on Cygwin with g++ >= 4.3.
31373         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
31374         if it is undefined or if we alias it to chmod.
31375         (lstat): Don't warn about the use of this function if it is undefined
31376         or if we alias it to stat.
31377         Reported by Simon Josefsson.
31378
31379 2010-03-27  Bruno Haible  <bruno@clisp.org>
31380
31381         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
31382         * modules/getlogin (configure.ac): Update.
31383
31384         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
31385         * modules/getlogin_r (configure.ac): Update.
31386
31387         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
31388         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
31389         * modules/inet_ntop (configure.ac): Update.
31390
31391         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
31392         * modules/inet_pton (configure.ac): Update.
31393
31394         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
31395         * modules/mbslen (configure.ac): Update.
31396
31397         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
31398         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
31399         * modules/forkpty (configure.ac): Update.
31400         * modules/openpty (configure.ac): Update.
31401
31402 2010-03-26  Simon Josefsson  <simon@josefsson.org>
31403
31404         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
31405         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
31406
31407 2010-03-25  Eric Blake  <eblake@redhat.com>
31408
31409         maint: use pragma consistently across replacement headers
31410         * lib/ctype.in.h (system_header): Hoist for consistent placement.
31411         * lib/dirent.in.h (system_header): Likewise.
31412         * lib/errno.in.h (system_header): Likewise.
31413         * lib/float.in.h (system_header): Likewise.
31414         * lib/getopt.in.h (system_header): Likewise.
31415         * lib/iconv.in.h (system_header): Likewise.
31416         * lib/inttypes.in.h (system_header): Likewise.
31417         * lib/langinfo.in.h (system_header): Likewise.
31418         * lib/locale.in.h (system_header): Likewise.
31419         * lib/math.in.h (system_header): Likewise.
31420         * lib/netdb.in.h (system_header): Likewise.
31421         * lib/netinet_in.in.h (system_header): Likewise.
31422         * lib/pty.in.h (system_header): Likewise.
31423         * lib/sched.in.h (system_header): Likewise.
31424         * lib/se-selinux.in.h (system_header): Likewise.
31425         * lib/search.in.h (system_header): Likewise.
31426         * lib/spawn.in.h (system_header): Likewise.
31427         * lib/stdarg.in.h (system_header): Likewise.
31428         * lib/stdint.in.h (system_header): Likewise.
31429         * lib/string.in.h (system_header): Likewise.
31430         * lib/strings.in.h (system_header): Likewise.
31431         * lib/sys_file.in.h (system_header): Likewise.
31432         * lib/sys_ioctl.in.h (system_header): Likewise.
31433         * lib/sys_socket.in.h (system_header): Likewise.
31434         * lib/sys_times.in.h (system_header): Likewise.
31435         * lib/sys_utsname.in.h (system_header): Likewise.
31436         * lib/sys_wait.in.h (system_header): Likewise.
31437         * lib/sysexits.in.h (system_header): Likewise.
31438         * lib/unistd.in.h (system_header): Likewise.
31439         * lib/wctype.in.h (system_header): Likewise.
31440
31441         arpa/inet: fix mingw compilation warning
31442         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
31443         Reported by Matthew Bolte.
31444
31445 2010-03-25  Bruno Haible  <bruno@clisp.org>
31446
31447         Avoid collision between gnulib wrapper and libintl wrapper.
31448         * lib/printf.c (printf): Don't define if a printf wrapper is already
31449         defined in intl/printf.c.
31450         Reported by Michel Boaventura <michel@michelboaventura.com>.
31451
31452 2010-03-25  Bruno Haible  <bruno@clisp.org>
31453
31454         Use ANSI C.
31455         * lib/readutmp.h (getutent): Provide ANSI C prototype.
31456
31457 2010-03-25  Bruno Haible  <bruno@clisp.org>
31458
31459         Minor formatting changes.
31460         * lib/acosl.c: Insert space before function argument list.
31461         * lib/argz.c: Likewise.
31462         * lib/asinl.c: Likewise.
31463         * lib/expl.c: Likewise.
31464         * lib/gen-uni-tables.c: Likewise.
31465         * lib/gettext.h: Likewise.
31466         * lib/glthread/lock.h: Likewise.
31467         * lib/tanl.c: Likewise.
31468         * lib/uniname/uniname.c: Likewise.
31469         * tests/test-idpriv-drop.c: Likewise.
31470         * tests/test-idpriv-droptemp.c: Likewise.
31471         * tests/test-lock.c: Likewise.
31472         * tests/test-tls.c: Likewise.
31473         * lib/argp-help.c: Insert space before function-like macro argument
31474         list.
31475         * lib/memcmp.c: Likewise.
31476         * tests/test-base64.c: Likewise.
31477         * lib/localename.c: Insert space before sizeof's argument list.
31478         * lib/safe-alloc.h: Likewise.
31479         * lib/file-set.h: Insert space before macro argument list.
31480         * tests/test-argp.c: Likewise.
31481         * lib/argp-namefrob.h: Insert space before function parameter list.
31482         * lib/getaddrinfo.c: Likewise.
31483         * lib/netdb.in.h: Likewise.
31484         * lib/parse-duration.h: Likewise.
31485         * lib/parse-duration.c: Likewise.
31486         * lib/poll.c: Likewise.
31487         * lib/select.c: Likewise.
31488         * lib/trim.h: Likewise.
31489         * tests/test-usleep.c: Likewise.
31490         * lib/ldexpl.c: Insert space before function parameter list and before
31491         function argument list.
31492         * lib/logl.c: Likewise.
31493         * lib/sqrtl.c: Likewise.
31494         * lib/trim.c: Likewise.
31495         * lib/cosl.c: Use GNU style indentation. Insert space before function
31496         argument list.
31497         * lib/sinl.c: Likewise.
31498         * lib/tsearch.c: Insert space after 'for'.
31499         Reported by Jim Meyering.
31500
31501 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
31502
31503         * maint.mk (sc_Wundef_boolean): Check for the presence of the
31504         config header before grepping, as it's not present before
31505         autoreconf/configure are run.  Reported by Simon Josefsson.
31506
31507 2010-03-23  Bruno Haible  <bruno@clisp.org>
31508
31509         pt_chown: Make it work with automake < 1.11.
31510         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
31511         Reported by Simon Josefsson.
31512
31513 2010-03-23  Bruno Haible  <bruno@clisp.org>
31514
31515         pt_chown: Don't depend on GPLed modules.
31516         * lib/pt_chown.c: Don't include idpriv.h.
31517         (main): Don't drop privileges.
31518         * modules/pt_chown (Depends-on): Remove idpriv-drop.
31519         Reported by Simon Josefsson.
31520
31521 2010-03-24  Simon Josefsson  <simon@josefsson.org>
31522
31523         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
31524         suggestions from karl@freefriends.org (Karl Berry).
31525
31526 2010-03-22  Eric Blake  <eblake@redhat.com>
31527
31528         gethostname: further tweaks
31529         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
31530         are overriding gethostname.
31531         Suggested by Bruno Haible.
31532
31533 2010-03-21  Bruno Haible  <bruno@clisp.org>
31534
31535         Fix comments.
31536         * lib/forkpty.c (rpl_forkpty): Fix comment.
31537         * lib/openpty.c (rpl_openpty): Likewise.
31538         Reported by Eric Blake.
31539
31540 2010-03-22  Eric Blake  <eblake@redhat.com>
31541
31542         gethostname: fix build on mingw
31543         * lib/unistd.in.h (includes): Work around fact that mingw
31544         <winsock2.h> re-includes <unistd.h>, by avoiding any
31545         redeclarations if we are being included by <winsock2.h>.
31546         Reported by Matthias Bolte.
31547
31548 2010-03-21  Bruno Haible  <bruno@clisp.org>
31549
31550         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31551         * lib/forkpty.c (forkpty): New replacement function, from glibc with
31552         modifications.
31553         * lib/pty.in.h (forkpty): Update declaration. Add comments.
31554         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
31555         provide the replacement.
31556         * modules/forkpty (Depends-on): Add openpty, login_tty.
31557         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
31558         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
31559         * doc/glibc-functions/forkpty.texi: More supported platforms.
31560         * config/srclist.txt: Add forkpty.c (commented).
31561
31562 2010-03-21  Bruno Haible  <bruno@clisp.org>
31563
31564         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
31565         (Makefile.am): Verify that PTY_LIB is defined.
31566
31567         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
31568
31569 2010-03-21  Bruno Haible  <bruno@clisp.org>
31570
31571         Tests for module 'login_tty'.
31572         * modules/login_tty-tests: New file.
31573         * tests/test-login_tty.c: New file.
31574
31575         New module 'login_tty'.
31576         * lib/login_tty.c: New file.
31577         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
31578         * modules/login_tty: New file.
31579         * doc/glibc-functions/login_tty.texi: Mention the new module.
31580
31581 2010-03-21  Bruno Haible  <bruno@clisp.org>
31582
31583         login_tty: Documentation.
31584         * doc/glibc-functions/login_tty.texi: New file.
31585         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
31586
31587 2010-03-21  Bruno Haible  <bruno@clisp.org>
31588
31589         pty: Consistent macro naming.
31590         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
31591         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
31592         * modules/pty (configure.ac): Update.
31593
31594 2010-03-21  Bruno Haible  <bruno@clisp.org>
31595
31596         Tests for openpty: Make stricter.
31597         * tests/test-openpty.c (main): Add test of canonical processing and
31598         erase.
31599         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
31600
31601         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31602         * lib/openpty.c (openpty): New replacement function.
31603         * lib/pty.in.h: Include <termios.h>.
31604         (openpty): Update declaration. Add comments.
31605         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
31606         is not declared, arrange to provide the replacement. Check for _getpty
31607         and posix_openpt.
31608         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
31609         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
31610         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
31611         * modules/pty-tests (test_pty_c___LDADD): New variable.
31612         * doc/glibc-functions/openpty.texi: More supported platforms.
31613
31614 2010-03-21  Bruno Haible  <bruno@clisp.org>
31615
31616         setenv: Tweaks.
31617         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
31618         the test program.
31619         * doc/posix-functions/setenv.texi: Update platforms list.
31620
31621 2010-03-21  Bruno Haible  <bruno@clisp.org>
31622
31623         New module 'unlockpt'.
31624         * lib/unlockpt.c: New file, from glibc with modifications.
31625         * m4/unlockpt.m4: New file.
31626         * modules/unlockpt: New file.
31627         * lib/stdlib.in.h (unlockpt): New declaration.
31628         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
31629         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
31630         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
31631         HAVE_UNLOCKPT.
31632         * doc/posix-functions/unlockpt.texi: Mention the new module.
31633         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
31634         * config/srclist.txt: Add unlockpt.c (commented).
31635
31636 2010-03-21  Jim Meyering  <meyering@redhat.com>
31637
31638         maint.mk: prohibit inclusion of "intprops.h" without use
31639         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
31640
31641 2010-03-21  Bruno Haible  <bruno@clisp.org>
31642
31643         New module 'grantpt'.
31644         * lib/grantpt.c: New file, from glibc with modifications.
31645         * m4/grantpt.m4: New file.
31646         * modules/grantpt: New file.
31647         * lib/stdlib.in.h (grantpt): New declaration.
31648         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
31649         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
31650         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
31651         HAVE_GRANTPT.
31652         * doc/posix-functions/grantpt.texi: Mention the new module.
31653         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
31654         * config/srclist.txt: Add grantpt.c (commented).
31655
31656 2010-03-21  Bruno Haible  <bruno@clisp.org>
31657
31658         New module 'pt_chown'.
31659         * lib/pt_chown.c: New file, from glibc with modifications.
31660         * lib/pty-private.h: New file, from glibc with modifications.
31661         * modules/pt_chown: New file.
31662         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
31663
31664 2010-03-21  Bruno Haible  <bruno@clisp.org>
31665
31666         Tests for module 'ptsname'.
31667         * modules/ptsname-tests: New file.
31668         * tests/test-ptsname.c: New file.
31669
31670         New module 'ptsname'.
31671         * lib/ptsname.c: New file, from glibc with modifications.
31672         * m4/ptsname.m4: New file.
31673         * modules/ptsname: New file.
31674         * lib/stdlib.in.h (ptsname): New declaration.
31675         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
31676         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
31677         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
31678         HAVE_PTSNAME.
31679         * doc/posix-functions/ptsname.texi: Mention the new module.
31680         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
31681         * config/srclist.txt: Add ptsname.c (commented).
31682
31683 2010-03-21  Bruno Haible  <bruno@clisp.org>
31684
31685         Tests for module 'ttyname_r'.
31686         * modules/ttyname_r-tests: New file.
31687         * tests/test-ttyname_r.c: New file.
31688
31689         New module 'ttyname_r'.
31690         * lib/ttyname_r.c: New file.
31691         * m4/ttyname_r.m4: New file.
31692         * modules/ttyname_r: New file.
31693         * lib/unistd.in.h (ttyname_r): New declaration.
31694         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
31695         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
31696         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
31697         HAVE_TTYNAME_R.
31698         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
31699         * doc/posix-functions/ttyname_r.texi: Mention the new module.
31700
31701 2010-03-20  Bruno Haible  <bruno@clisp.org>
31702
31703         signal: Undefine macro definitions in C++ mode.
31704         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
31705         sigfillset): Undefine macro definitions from the system header in C++
31706         mode.
31707         Reported by John W. Eaton <jwe@gnu.org>.
31708
31709 2010-03-20  Bruno Haible  <bruno@clisp.org>
31710
31711         Ensure no #include statements inside extern "C" { ... }.
31712         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
31713         contain #include statements.
31714         * lib/time.in.h: Likewise.
31715
31716 2010-03-20  Bruno Haible  <bruno@clisp.org>
31717
31718         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
31719         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
31720         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
31721         Reported by John W. Eaton <jwe@gnu.org>.
31722
31723 2010-03-20  Bruno Haible  <bruno@clisp.org>
31724
31725         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
31726         Reported by Jim Meyering.
31727
31728 2010-03-20  Bruno Haible  <bruno@clisp.org>
31729
31730         pipe: Set errno upon failure.
31731         * lib/pipe.h: Specify that when -1 is returned, errno is set.
31732         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
31733         errno value in error message.
31734
31735 2010-03-20  Bruno Haible  <bruno@clisp.org>
31736             Jim Meyering  <meyering@redhat.com>
31737
31738         lchown: Avoid "unused variable" warning.
31739         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
31740
31741 2010-03-20  Bruno Haible  <bruno@clisp.org>
31742
31743         Work around unlink() bug on MacOS X 10.5.6.
31744         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
31745         attempting to unlink a parent directory.
31746         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
31747         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
31748         activate for the replacement function.
31749         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
31750
31751 2010-03-20  Bruno Haible  <bruno@clisp.org>
31752
31753         Fix link errors on Solaris 8.
31754         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
31755         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
31756
31757 2010-03-19  Jim Meyering  <meyering@redhat.com>
31758
31759         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
31760         The _LIBC implementation of build_range_exp correctly honors the
31761         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
31762         However, the non-_LIBC implementation would ignore that syntax-bit
31763         flag and return REG_ERANGE unconditionally.
31764         This change makes it honor that flag.
31765         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
31766         Make two pointer parameters "const".
31767         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
31768         (parse_bracket_exp): Update caller.
31769
31770         regex.m4: correct the reversed range endpoint ([b-a]) test
31771         * m4/regex.m4: When requiring that [b-a] evoke failure,
31772         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
31773         test pass once again for x86-based systems.
31774
31775 2010-03-19  Bruno Haible  <bruno@clisp.org>
31776
31777         scandir: Fix link error on Solaris 8.
31778         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
31779         macros.
31780
31781 2010-03-19  Bruno Haible  <bruno@clisp.org>
31782
31783         getusershell: Fix documentation.
31784         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
31785         module.
31786         * doc/glibc-functions/setusershell.texi: Likewise.
31787
31788         getusershell: Provide declaration, missing on Solaris 9.
31789         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
31790         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
31791         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
31792         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
31793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31794         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
31795         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
31796         HAVE_GETUSERSHELL.
31797         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
31798
31799 2010-03-19  Bruno Haible  <bruno@clisp.org>
31800
31801         wctype: Provide iswblank function.
31802         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
31803         exists and is fine.
31804         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
31805         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
31806         * tests/test-wctype.c (main): Re-enable the iswblank tests.
31807         * doc/posix-functions/iswblank.texi: Update.
31808
31809 2010-03-19  Bruno Haible  <bruno@clisp.org>
31810
31811         Tests of module 'pty' in C++ mode.
31812         * modules/pty-tests: New file.
31813         * tests/test-pty-c++.cc: New file.
31814         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31815
31816 2010-03-19  Eric Blake  <eblake@redhat.com>
31817
31818         logb: fix documentation
31819         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
31820         1.5 declaration bug.
31821
31822         forkpty, openpty: prefer glibc's const-safe prototype
31823         * lib/forkpty.c (rpl_forkpty): New file.
31824         * lib/openpty.c (rpl_openpty): Likewise.
31825         * modules/forkpty (Files): Distribute it.
31826         * modules/openpty (Files): Likewise.
31827         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
31828         check...
31829         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
31830         replacement for for non-const BSD signature.
31831         * modules/pty (Makefile.am): Substitute witnesses.
31832         * lib/pty.in.h (forkpty, openpty): Declare replacements.
31833         * tests/test-forkpty.c: Update signature check.
31834         * tests/test-openpty.c: Likewise.
31835         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
31836         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31837
31838         forkpty, openpty: split functions into new modules
31839         * modules/pty (Makefile.am): Substitute new witnesses.
31840         (Libraries): Move library detection...
31841         * modules/forkpty: ...into new module.
31842         * modules/openpty: Another new module.
31843         * modules/pty-tests: Rename and split...
31844         * modules/forkpty-tests: ...to this...
31845         * modules/openpty-tests: ...and this.
31846         * tests/test-pty.c: Rename and split...
31847         * tests/test-forkpty.c: ...to this...
31848         * tests/test-openpty.c: ...and this.
31849         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
31850         (gl_PTY): Split library searching...
31851         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
31852         (gl_FORKPTY, gl_OPENPTY): New macros.
31853         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
31854         * NEWS: Mention the split.
31855         * MODULES.html.sh (Misc): Document the modules.
31856         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
31857         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31858
31859         pty: improve replacement header
31860         * lib/pty.in.h: New file.
31861         * modules/pty (Files): Ship it.
31862         (Makefile.am): Always build replacement.
31863         * m4/pty.m4: Rename...
31864         * m4/pty_h.m4: ...to this.
31865         (gl_PTY): Modernize setting of witness macros; update check of
31866         forkpty to take proper advantage of cache.
31867         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
31868
31869         getopt: avoid compiler warning
31870         * lib/getopt.c (attribute_hidden): Remove unused macro.
31871
31872 2010-03-18  Bruno Haible  <bruno@clisp.org>
31873
31874         Fix link errors on Solaris 8.
31875         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
31876         * modules/search-tests (test_search_c___LDADD): Likewise.
31877         * modules/signal-tests (test_signal_c___LDADD): Likewise.
31878         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
31879         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
31880         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
31881         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
31882         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
31883         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
31884
31885 2010-03-18  Bruno Haible  <bruno@clisp.org>
31886
31887         Fix bug introduced on 2010-03-14.
31888         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
31889         (gl_SPAWN_H): Require it.
31890         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
31891         Reported by Simon Josefsson.
31892
31893 2010-03-18  Bruno Haible  <bruno@clisp.org>
31894
31895         Fix typo introduced on 2009-12-31.
31896         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
31897         posix_spawn_file_actions_adddup2.
31898
31899 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
31900         and Eric Blake  <eblake@redhat.com>
31901
31902         test-vc-list-files-git: make more robust
31903         * tests/test-vc-list-files-git.sh: Unset problematic environment
31904         variables.  Chain commands together.
31905
31906 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
31907
31908         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
31909         `AC_CHECK_DECL' invocation.
31910
31911 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
31912
31913         * lib/inttostr.c (inttostr): Make sure the invocation of verify
31914         appears before executable statements. Suggested by Petr Sumbera
31915         <Petr.Sumbera@Sun.COM>.
31916
31917 2010-03-14  Bruno Haible  <bruno@clisp.org>
31918
31919         * tests/test-flock.c (test_exclusive): Comment out a test that causes
31920         portability problems. Instead use a simpler test.
31921         (main): Check that invalid arguments are rejected only on Linux.
31922
31923 2010-03-14  Bruno Haible  <bruno@clisp.org>
31924
31925         Fix bug introduced on 2009-12-31.
31926         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31927         gl_PREREQ_SYS_H_WINSOCK2 always.
31928         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
31929         SYS_SOCKET_H variable.
31930         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
31931         Update comments.
31932         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
31933         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31934         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31935         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31936         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
31937
31938 2010-03-14  Bruno Haible  <bruno@clisp.org>
31939
31940         Fix values returned by sinl, cosl.
31941         * lib/trigl.h: Add specification comments.
31942         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
31943         that combines the values from the precomputed table with the values of
31944         the Chebyshev polynomials.
31945
31946 2010-03-14  Bruno Haible  <bruno@clisp.org>
31947
31948         Fix compilation error when modules 'posix_spawn[p]' are not used.
31949         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
31950         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
31951
31952 2010-03-14  Bruno Haible  <bruno@clisp.org>
31953
31954         Fix compilation error on mingw when module 'time_r' is not used.
31955         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
31956         is 1.
31957         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
31958         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31959         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
31960         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
31961
31962 2010-03-14  Bruno Haible  <bruno@clisp.org>
31963
31964         Fix compilation error with Sun C.
31965         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
31966         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
31967         instead of GCC specific ULONG_LONG_MAX.
31968         * lib/xstrtoll.c: Likewise.
31969         * lib/xstrtoull.c: Likewise.
31970
31971 2010-03-13  Bruno Haible  <bruno@clisp.org>
31972
31973         Allow the user to disable C++ code and tests.
31974         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
31975         (gl_PROG_ANSI_CXX): Require it.
31976
31977 2010-03-13  Bruno Haible  <bruno@clisp.org>
31978
31979         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
31980         cases.
31981
31982 2010-03-13  Bruno Haible  <bruno@clisp.org>
31983
31984         Test that gnulib does not break the standard C++ headers.
31985         * tests/test-locale-c++2.cc: New file.
31986         * modules/locale-tests (Files): Add it.
31987         (Makefile.am): Compile it for test-locale-c++.
31988         * tests/test-math-c++2.cc: New file.
31989         * modules/math-tests (Files): Add it.
31990         (Makefile.am): Compile it for test-math-c++.
31991         * tests/test-signal-c++2.cc: New file.
31992         * modules/signal-tests (Files): Add it.
31993         (Makefile.am): Compile it for test-signal-c++.
31994         * tests/test-stdio-c++2.cc: New file.
31995         * modules/stdio-tests (Files): Add it.
31996         (Makefile.am): Compile it for test-stdio-c++.
31997         * tests/test-stdlib-c++2.cc: New file.
31998         * modules/stdlib-tests (Files): Add it.
31999         (Makefile.am): Compile it for test-stdlib-c++.
32000         * tests/test-string-c++2.cc: New file.
32001         * modules/string-tests (Files): Add it.
32002         (Makefile.am): Compile it for test-string-c++.
32003         * tests/test-time-c++2.cc: New file.
32004         * modules/time-tests (Files): Add it.
32005         (Makefile.am): Compile it for test-time-c++.
32006         Reported by John W. Eaton <jwe@gnu.org>.
32007
32008 2010-03-13  Bruno Haible  <bruno@clisp.org>
32009
32010         * gnulib-tool (func_usage): Clarify which options are available for
32011         --create-testdir and --create-megatestdir.
32012
32013 2010-03-13  Bruno Haible  <bruno@clisp.org>
32014
32015         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
32016         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
32017         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
32018         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
32019         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
32020         when appropriate.
32021         Reported by Jim Meyering.
32022
32023 2010-03-12  Simon Josefsson  <simon@josefsson.org>
32024
32025         * gnulib-tool (func_import): Explain origin of code.
32026
32027 2010-03-12  Bruno Haible  <bruno@clisp.org>
32028
32029         Fix problem with automake's definition of CXXLINK.
32030         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
32031         Reported by Simon Josefsson and Ludovic Courtès.
32032
32033 2010-03-12  Bruno Haible  <bruno@clisp.org>
32034
32035         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
32036         stable releases.
32037
32038 2010-03-11  Bruno Haible  <bruno@clisp.org>
32039
32040         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
32041         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
32042         whether the system provides one variant or multiple variants of the
32043         function.
32044         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
32045         C++ compilers.
32046         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
32047         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
32048         Reported by Jim Meyering.
32049
32050 2010-03-09  Simon Josefsson  <simon@josefsson.org>
32051
32052         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
32053
32054 2010-03-08  Bruno Haible  <bruno@clisp.org>
32055
32056         gnulib-tool: Add support for --libtool in --create-testdir.
32057         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
32058         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
32059
32060 2010-03-08  Eric Blake  <eblake@redhat.com>
32061
32062         gnulib-tool.texi: mention possibility of git submodule
32063         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
32064         submodules.
32065         * doc/.gitignore: Ignore another generated file.
32066
32067 2010-03-08  Karl Berry  <karl@gnu.org>
32068
32069         * doc/gnulib-tool.texi (VCS Issues): Mention third option
32070         of committing gnulib files while skipping others.
32071
32072 2010-03-07  Bruno Haible  <bruno@clisp.org>
32073
32074         Tests of module 'wctype' in C++ mode.
32075         * tests/test-wctype-c++.cc: New file.
32076         * modules/wctype-tests (Files): Add it and tests/signature.h.
32077         (Depends-on): Add ansi-c++-opt.
32078         (Makefile.am): Arrange to compile and run test-wctype-c++.
32079
32080         Tests of module 'wchar' in C++ mode.
32081         * tests/test-wchar-c++.cc: New file.
32082         * modules/wchar-tests (Files): Add it and tests/signature.h.
32083         (Depends-on): Add ansi-c++-opt.
32084         (Makefile.am): Arrange to compile and run test-wchar-c++.
32085         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
32086         gl_MODULE_INDICATOR.
32087
32088         Tests of module 'unistd' in C++ mode.
32089         * tests/test-unistd-c++.cc: New file.
32090         * modules/unistd-tests (Files): Add it and tests/signature.h.
32091         (Depends-on): Add ansi-c++-opt.
32092         (Makefile.am): Arrange to compile and run test-unistd-c++.
32093         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
32094         gl_MODULE_INDICATOR.
32095
32096         Tests of module 'time' in C++ mode.
32097         * tests/test-time-c++.cc: New file.
32098         * modules/time-tests (Files): Add it and tests/signature.h.
32099         (Depends-on): Add ansi-c++-opt.
32100         (Makefile.am): Arrange to compile and run test-time-c++.
32101         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32102
32103         Tests of module 'sys_time' in C++ mode.
32104         * tests/test-sys_time-c++.cc: New file.
32105         * modules/sys_time-tests (Files): Add it and tests/signature.h.
32106         (Depends-on): Add ansi-c++-opt.
32107         (Makefile.am): Arrange to compile and run test-sys_time-c++.
32108         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
32109         gl_MODULE_INDICATOR.
32110
32111         Tests of module 'sys_stat' in C++ mode.
32112         * tests/test-sys_stat-c++.cc: New file.
32113         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
32114         (Depends-on): Add ansi-c++-opt.
32115         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
32116         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
32117         gl_MODULE_INDICATOR.
32118
32119         Tests of module 'sys_socket' in C++ mode.
32120         * tests/test-sys_socket-c++.cc: New file.
32121         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
32122         (Depends-on): Add ansi-c++-opt.
32123         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
32124         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
32125         gl_MODULE_INDICATOR.
32126
32127         Tests of module 'sys_select' in C++ mode.
32128         * tests/test-sys_select-c++.cc: New file.
32129         * modules/sys_select-tests (Files): Add it and tests/signature.h.
32130         (Depends-on): Add ansi-c++-opt.
32131         (Makefile.am): Arrange to compile and run test-sys_select-c++.
32132         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
32133         gl_MODULE_INDICATOR.
32134
32135         Tests of module 'sys_ioctl' in C++ mode.
32136         * tests/test-sys_ioctl-c++.cc: New file.
32137         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
32138         (Depends-on): Add ansi-c++-opt.
32139         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
32140         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
32141         gl_MODULE_INDICATOR.
32142
32143         Tests of module 'string' in C++ mode.
32144         * tests/test-string-c++.cc: New file.
32145         * modules/string-tests (Files): Add it and tests/signature.h.
32146         (Depends-on): Add ansi-c++-opt.
32147         (Makefile.am): Arrange to compile and run test-string-c++.
32148         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
32149         gl_MODULE_INDICATOR.
32150
32151         Tests of module 'stdlib' in C++ mode.
32152         * tests/test-stdlib-c++.cc: New file.
32153         * modules/stdlib-tests (Files): Add it and tests/signature.h.
32154         (Depends-on): Add ansi-c++-opt.
32155         (Makefile.am): Arrange to compile and run test-stdlib-c++.
32156         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
32157         gl_MODULE_INDICATOR.
32158
32159         Tests of module 'stdio' in C++ mode.
32160         * tests/test-stdio-c++.cc: New file.
32161         * modules/stdio-tests (Files): Add it and tests/signature.h.
32162         (Depends-on): Add ansi-c++-opt.
32163         (Makefile.am): Arrange to compile and run test-stdio-c++.
32164         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
32165         gl_MODULE_INDICATOR.
32166
32167         Tests of module 'spawn' in C++ mode.
32168         * tests/test-spawn-c++.cc: New file.
32169         * modules/spawn-tests (Files): Add it and tests/signature.h.
32170         (Depends-on): Add ansi-c++-opt.
32171         (Makefile.am): Arrange to compile and run test-spawn-c++.
32172         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
32173         gl_MODULE_INDICATOR.
32174
32175         Tests of module 'signal' in C++ mode.
32176         * tests/test-signal-c++.cc: New file.
32177         * modules/signal-tests (Files): Add it and tests/signature.h.
32178         (Depends-on): Add ansi-c++-opt.
32179         (Makefile.am): Arrange to compile and run test-signal-c++.
32180         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
32181         gl_MODULE_INDICATOR.
32182
32183         Tests of module 'search' in C++ mode.
32184         * tests/test-search-c++.cc: New file.
32185         * modules/search-tests (Files): Add it and tests/signature.h.
32186         (Depends-on): Add ansi-c++-opt.
32187         (Makefile.am): Arrange to compile and run test-search-c++.
32188         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
32189         gl_MODULE_INDICATOR.
32190
32191         Tests of module 'math' in C++ mode.
32192         * tests/test-math-c++.cc: New file.
32193         * modules/math-tests (Files): Add it and tests/signature.h.
32194         (Depends-on): Add ansi-c++-opt.
32195         (Makefile.am): Arrange to compile and run test-math-c++.
32196         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32197
32198         Tests of module 'locale' in C++ mode.
32199         * tests/test-locale-c++.cc: New file.
32200         * modules/locale-tests (Files): Add it and tests/signature.h.
32201         (Depends-on): Add ansi-c++-opt.
32202         (Makefile.am): Arrange to compile and run test-locale-c++.
32203         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
32204         gl_MODULE_INDICATOR.
32205
32206         Tests of module 'langinfo' in C++ mode.
32207         * tests/test-langinfo-c++.cc: New file.
32208         * modules/langinfo-tests (Files): Add it and tests/signature.h.
32209         (Depends-on): Add ansi-c++-opt.
32210         (Makefile.am): Arrange to compile and run test-langinfo-c++.
32211         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
32212         gl_MODULE_INDICATOR.
32213
32214         Tests of module 'iconv-h' in C++ mode.
32215         * tests/test-iconv-h-c++.cc: New file.
32216         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
32217         (Depends-on): Add ansi-c++-opt.
32218         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
32219
32220         Tests of module 'glob' in C++ mode.
32221         * tests/test-glob-c++.cc: New file.
32222         * modules/glob-tests (Files): Add it.
32223         (Depends-on): Add ansi-c++-opt.
32224         (Makefile.am): Arrange to compile and run test-glob-c++.
32225
32226         Tests of module 'fcntl-h' in C++ mode.
32227         * tests/test-fcntl-h-c++.cc: New file.
32228         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
32229         (Depends-on): Add ansi-c++-opt.
32230         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
32231         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
32232         gl_MODULE_INDICATOR.
32233
32234         Tests of module 'dirent' in C++ mode.
32235         * tests/test-dirent-c++.cc: New file.
32236         * modules/dirent-tests (Files): Add it and tests/signature.h.
32237         (Depends-on): Add ansi-c++-opt.
32238         (Makefile.am): Arrange to compile and run test-dirent-c++.
32239         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32240         gl_MODULE_INDICATOR.
32241
32242         New module 'ansi-c++-opt'.
32243         * modules/ansi-c++-opt: New file.
32244         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
32245
32246         Document C++ namespace mode.
32247         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
32248
32249         wctype: Avoid #define replacements in C++ mode.
32250         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
32251         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
32252         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
32253         In C++, define a namespaced alias symbol.
32254         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
32255         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
32256         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
32257         rule.
32258
32259         wchar: Avoid #define replacements in C++ mode.
32260         * lib/wchar.in.h: Include c++defs.h.
32261         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
32262         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
32263         symbol.
32264         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
32265         * modules/wchar (Depends-on): Add c++defs.
32266         (Makefile.am): Update wchar.h rule.
32267
32268         unistd: Avoid #define replacements in C++ mode.
32269         * lib/unistd.in.h: Include c++defs.h.
32270         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
32271         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
32272         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
32273         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
32274         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
32275         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
32276         symbol.
32277         (environ): Update.
32278         * modules/unistd (Depends-on): Add c++defs.
32279         (Makefile.am): Update unistd.h rule.
32280
32281         time: Avoid #define replacements in C++ mode.
32282         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
32283         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
32284         define a namespaced alias symbol.
32285         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
32286         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
32287         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
32288         * modules/time (Depends-on): Add c++defs, warn-on-use.
32289         (Makefile.am): Update time.h rule.
32290         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32291         * modules/nanosleep (configure.ac): Likewise.
32292         * modules/strptime (configure.ac): Likewise.
32293         * modules/timegm (configure.ac): Likewise.
32294
32295         sys_time: Avoid #define replacements in C++ mode.
32296         * lib/sys_time.in.h: Include c++defs.h.
32297         (gettimeofday): In C++, define a namespaced alias symbol.
32298         * modules/sys_time (Depends-on): Add c++defs.
32299         (Makefile.am): Update sys/time.h rule.
32300
32301         sys_stat: Avoid #define replacements in C++ mode.
32302         * lib/sys_stat.in.h: Include c++defs.h.
32303         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
32304         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
32305         namespaced alias symbol.
32306         In C++, define a namespaced alias symbol.
32307         * modules/sys_stat (Depends-on): Add c++defs.
32308         (Makefile.am): Update sys/stat.h rule.
32309
32310         sys_socket: Avoid #define replacements in C++ mode.
32311         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
32312         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
32313         definitions also when the system has a <sys/socket.h>.
32314         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
32315         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
32316         In C++, define a namespaced alias symbol.
32317         * modules/sys_socket (Depends-on): Add c++defs.
32318         (Makefile.am): Update sys/socket.h rule.
32319
32320         sys_select: Avoid #define replacements in C++ mode.
32321         * lib/sys_select.in.h: Include c++defs.h. Enable the function
32322         definitions also when the system has a <sys/select.h>.
32323         (select): In C++, define a namespaced alias symbol.
32324         * modules/sys_select (Depends-on): Add c++defs.
32325         (Makefile.am): Update sys/select.h rule.
32326
32327         sys_ioctl: Avoid #define replacements in C++ mode.
32328         * lib/sys_ioctl.in.h: Include c++defs.h.
32329         (ioctl): In C++, define a namespaced alias symbol.
32330         * modules/sys_ioctl (Depends-on): Add c++defs.
32331         (Makefile.am): Update sys/ioctl.h rule.
32332
32333         string: Avoid #define replacements in C++ mode.
32334         * lib/string.in.h: Include c++defs.h.
32335         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
32336         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32337         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32338         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
32339         strsignal, strverscmp): In C++, define a namespaced alias symbol.
32340         * modules/string (Depends-on): Add c++defs.
32341         (Makefile.am): Update string.h rule.
32342
32343         stdlib: Avoid #define replacements in C++ mode.
32344         * lib/stdlib.in.h: Include c++defs.h.
32345         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
32346         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
32347         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
32348         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
32349         symbol.
32350         * modules/stdlib (Depends-on): Add c++defs.
32351         (Makefile.am): Update stdlib.h rule.
32352
32353         stdio: Avoid #define replacements in C++ mode.
32354         * lib/stdio.in.h: Include c++defs.h.
32355         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
32356         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
32357         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
32358         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
32359         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
32360         namespaced alias symbol.
32361         * modules/stdio (Depends-on): Add c++defs.
32362         (Makefile.am): Update stdio.h rule.
32363
32364         spawn: Avoid #define replacements in C++ mode.
32365         * lib/spawn.in.h: Include c++defs.h.
32366         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32367         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32368         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32369         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32370         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32371         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32372         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32373         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32374         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32375         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32376         In C++, define a namespaced alias symbol.
32377         * modules/spawn (Depends-on): Add c++defs.
32378         (Makefile.am): Update spawn.h rule.
32379
32380         signal: Avoid #define replacements in C++ mode.
32381         * lib/signal.in.h: Include c++defs.h.
32382         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32383         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
32384         namespaced alias symbol.
32385         * modules/signal (Depends-on): Add c++defs.
32386         (Makefile.am): Update signal.h rule.
32387
32388         search: Avoid #define replacements in C++ mode.
32389         * lib/search.in.h: Include c++defs.h.
32390         (_gl_search_compar_fn, _gl_search_action_fn): New types.
32391         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
32392         symbol.
32393         * modules/search (Depends-on): Add c++defs.
32394         (Makefile.am): Update search.h rule.
32395
32396         math: Avoid #define replacements in C++ mode.
32397         * lib/math.in.h: Include c++defs.h.
32398         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
32399         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
32400         trunc, truncl): In C++, define a namespaced alias symbol.
32401         * modules/math (Depends-on): Add c++defs.
32402         (Makefile.am): Update math.h rule.
32403
32404         locale: Avoid #define replacements in C++ mode.
32405         * lib/locale.in.h: Include c++defs.h.
32406         (duplocale): In C++, define a namespaced alias symbol.
32407         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
32408         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
32409         * modules/locale (Depends-on): Add c++defs.
32410         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
32411
32412         langinfo: Avoid #define replacements in C++ mode.
32413         * lib/langinfo.in.h: Include c++defs.h.
32414         (nl_langinfo): In C++, define a namespaced alias symbol.
32415         * modules/langinfo (Depends-on): Add c++defs.
32416         (Makefile.am): Update langinfo.h rule.
32417
32418         iconv-h: Avoid #define replacements in C++ mode.
32419         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
32420         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
32421         symbol.
32422         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
32423         whenever iconv is present.
32424         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
32425         (Makefile.am): Update iconv.h rule.
32426
32427         glob: Avoid #define replacements in C++ mode.
32428         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
32429         (_gl_glob_errfunc_fn): New type.
32430         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
32431         symbol.
32432         * modules/glob (Depends-on): Add c++defs, warn-on-use.
32433         (Makefile.am): Update glob.h rule.
32434
32435         fcntl-h: Avoid #define replacements in C++ mode.
32436         * lib/fcntl.in.h: Include c++defs.h.
32437         (fcntl, open, openat): In C++, define a namespaced alias symbol.
32438         * modules/fcntl-h (Depends-on): Add c++defs.
32439         (Makefile.am): Update fcntl.h rule.
32440
32441         dirent: Avoid #define replacements in C++ mode.
32442         * lib/dirent.in.h: Include c++defs.h.
32443         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
32444         namespaced alias symbol.
32445         (dirfd): Update declaration.
32446         * modules/dirent (Depends-on): Add c++defs.
32447         (Makefile.am): Update dirent.h rule.
32448
32449         ctype: Make it usable in C++ code.
32450         * lib/ctype.in.h: Include c++defs.h.
32451         (isblank): Declare as extern "C".
32452         * modules/ctype (Depends-on): Add c++defs.
32453         (Makefile.am): Update ctype.h rule.
32454
32455         New module 'c++defs'.
32456         * modules/c++defs: New file.
32457         * build-aux/c++defs.h: New file.
32458         Reported by John W. Eaton <jwe@gnu.org>.
32459
32460 2010-03-07  Bruno Haible  <bruno@clisp.org>
32461
32462         logb: Provide missing declaration for Cygwin.
32463         * lib/math.in.h (logb): New declaration.
32464         * m4/logb.m4: New file.
32465         * modules/logb (Files): Add m4/logb.m4.
32466         (Depends-on): Add math.
32467         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
32468         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
32469         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
32470         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
32471         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
32472
32473 2010-03-07  Bruno Haible  <bruno@clisp.org>
32474
32475         Fix test-cond link error.
32476         * tests/test-cond.c: Include <stdio.h>.
32477
32478 2010-03-07  Bruno Haible  <bruno@clisp.org>
32479
32480         Fix test-dirent-safer link error.
32481         * modules/dirent-safer-tests (Makefile.am): Define
32482         test_dirent_safer_LDADD.
32483
32484 2010-03-07  Bruno Haible  <bruno@clisp.org>
32485
32486         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
32487         among default module list.
32488
32489 2010-03-07  Bruno Haible  <bruno@clisp.org>
32490
32491         Fix link error on platforms with GNU libiconv.
32492         * modules/unistr/u8-strcoll-tests (Makefile): Define
32493         test_u8_strcoll_LDADD.
32494         * modules/unistr/u16-strcoll-tests (Makefile): Define
32495         test_u16_strcoll_LDADD.
32496         * modules/unistr/u32-strcoll-tests (Makefile): Define
32497         test_u32_strcoll_LDADD.
32498
32499 2010-03-07  Bruno Haible  <bruno@clisp.org>
32500
32501         Use POSIX declarations for socket functions.
32502         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
32503         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
32504         rpl_sendto): Change declaration to match POSIX.
32505         * lib/connect.c (rpl_connect): Likewise.
32506         * lib/accept.c (rpl_accept): Likewise.
32507         * lib/bind.c (rpl_bind): Likewise.
32508         * lib/getpeername.c (rpl_getpeername): Likewise.
32509         * lib/getsockname.c (rpl_getsockname): Likewise.
32510         * lib/recv.c (rpl_recv): Likewise.
32511         * lib/send.c (rpl_send): Likewise.
32512         * lib/recvfrom.c (rpl_recvfrom): Likewise.
32513         * lib/sendto.c (rpl_sendto): Likewise.
32514
32515 2010-03-06  Bruno Haible  <bruno@clisp.org>
32516
32517         Clarify access, euidaccess, faccessat.
32518         * doc/posix-functions/faccessat.texi: Mention security problem under
32519         "Other problems", not "Portability problems".
32520         * doc/posix-functions/access.texi: Likewise. Mention a related security
32521         problem.
32522         * doc/glibc-functions/euidaccess.texi: Mention security problems.
32523         * lib/euidaccess.c: Add comments about platforms.
32524         * lib/unistd.in.h (access, euidaccess): Add warnings.
32525
32526 2010-03-07  Bruno Haible  <bruno@clisp.org>
32527
32528         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
32529         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
32530         (POSIX_SPAWN_SETSCHEDULER): Likewise.
32531         (POSIX_SPAWN_USEVFORK): Define in a way that works when
32532         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32533         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
32534         declare when POSIX_SPAWN_SETSCHEDULER is zero.
32535         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
32536         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
32537         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
32538         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
32539         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
32540         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
32541         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
32542         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
32543         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
32544         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
32545         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
32546         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
32547         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
32548         Likewise.
32549         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
32550         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
32551         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
32552         Likewise.
32553         * tests/test-spawn.c (main): Make it work when
32554         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32555
32556 2010-03-07  Bruno Haible  <bruno@clisp.org>
32557
32558         Fix incorrect Makefile.am generation in German locale.
32559         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32560         Execute sed command with character range in C locale.
32561
32562 2010-03-06  Bruno Haible  <bruno@clisp.org>
32563
32564         Tests for module 'iconv-h'.
32565         * modules/iconv-h-tests: New file.
32566         * tests/test-iconv-h.c: New file.
32567
32568         New module 'iconv-h'.
32569         * modules/iconv-h: New file.
32570         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
32571         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
32572         (configure.ac): Remove gl_ICONV_H.
32573         (Makefile.am): Remove rule for iconv.h.
32574
32575 2010-03-06  Bruno Haible  <bruno@clisp.org>
32576
32577         More consistent naming of *.m4 files.
32578         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
32579         * modules/wctype (Files): Update.
32580
32581         More consistent naming of *.m4 files.
32582         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
32583         * modules/wchar (Files): Update.
32584
32585 2010-03-06  Jim Meyering  <meyering@redhat.com>
32586
32587         euidaccess: relax license to LGPLv2+
32588         * modules/euidaccess (License): Relax to LGPLv2+.
32589
32590 2010-03-06  Bruno Haible  <bruno@clisp.org>
32591
32592         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
32593         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
32594         (Makefile.am): Augment lib_SOURCES instead.
32595
32596 2010-03-04  Jim Meyering  <meyering@redhat.com>
32597
32598         utime: remove obsolete module
32599         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
32600         unnecessary for years, and has been marked as obsolete for 10 months.
32601         * modules/utime: Remove file.
32602         * lib/utime.c: Remove file.
32603         * m4/utime.m4: Remove file.
32604         * m4/utimes-null.m4: Remove file.
32605         * doc/posix-functions/utime.texi (utime): Remove reference to
32606         the module.  Move the sole "fixed by gnulib" item into the
32607         "problems not fixed by Gnulib" list.
32608         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
32609
32610 2010-03-05  Simon Josefsson  <simon@josefsson.org>
32611
32612         * modules/exit (License): Relax license to LGPLv2+.
32613         (Status): Mark as obsolete.
32614         * NEWS: Mention deprecated 'exit' module.
32615         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
32616         of now obsolete 'exit'.
32617
32618 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32619
32620         fts-lgpl: remove unused module
32621         * modules/fts-lgpl: Remove.
32622         * MODULES.html.sh (func_all_modules): Adjust.
32623         * check-module (find_included_lib_files): Adjust.
32624         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
32625
32626 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
32627
32628         copy-acl: enhance Solaris ACL error handling
32629         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
32630         * lib/set-mode-acl.c (qset_acl): Likewise.
32631
32632 2010-03-02  Bruno Haible  <bruno@clisp.org>
32633
32634         spawn: Don't override the system defined values on FreeBSD 8.
32635         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
32636         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
32637         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
32638         if HAVE_POSIX_SPAWN is 1.
32639         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
32640
32641 2010-03-01  Bruno Haible  <bruno@clisp.org>
32642
32643         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
32644         regarding Automake.
32645
32646 2010-02-25  Bruno Haible  <bruno@clisp.org>
32647
32648         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
32649         * gnulib-tool: Define 'echo' as a function only before the ksh alias
32650         setting, not afterwards.
32651         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
32652
32653 2010-02-24  Eric Blake  <eblake@redhat.com>
32654
32655         bootstrap, git-version-gen: use timestamp
32656         * build-aux/git-version-gen (scriptversion): Force UTC.
32657         * build-aux/bootstrap (scriptversion): New variable.
32658
32659         bootstrap: allow older git
32660         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
32661         older than 1.6.4.  Requested by the libvirt project.
32662
32663 2010-02-23  Eric Blake  <eblake@redhat.com>
32664
32665         warn-on-use: work with old autoconf
32666         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
32667         AS_VAR semantics of autoconf 2.60.
32668         Reported by Bruno Haible.
32669
32670         bootstrap: improve some comments
32671         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
32672         clarification comments.
32673
32674         gettimeofday: provide correct function
32675         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
32676         when replacement is declared, otherwise provide gettimeofday.
32677         Reported by Michael Goffioul.
32678
32679 2010-02-23  Jim Meyering  <meyering@redhat.com>
32680
32681         lib-ignore: relax license to "unlimited", not LGPLv2+
32682         * modules/lib-ignore (License): Relax to "unlimited".
32683
32684 2010-02-23  Jim Meyering  <meyering@redhat.com>
32685
32686         lib-ignore: relax license to LGPLv2+
32687         * modules/lib-ignore (License): Relax to LGPLv2+.
32688
32689 2010-02-22  Eric Blake  <eblake@redhat.com>
32690
32691         lseek: avoid bash 3.2 broken pipe bug
32692         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
32693         warning from bash 3.2.
32694         Reported by Ben Pfaff, with analysis from Bruno Haible.
32695
32696         bootstrap: support non-FSF copyright holder
32697         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
32698         bootstrap.conf override of COPYRIGHT_HOLDER.
32699         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
32700
32701         bootstrap: interoperate with gettext 0.14.1
32702         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
32703
32704         bootstrap: allow for alternate submodule location
32705         * build-aux/bootstrap (gnulib_path): New variable; use instead of
32706         hardcoding submodule location.
32707         (gnulib_mk): Allow direct use of Makefile.am.
32708
32709         bootstrap: use GNULIB_SRCDIR to reduce disk usage
32710         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
32711         rather than reconfiguring where the submodule points.
32712
32713         gettimeofday: restore support for platforms that lack function
32714         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
32715         replacement if function is missing.
32716         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
32717         * modules/sys_time (Makefile.am): Substitute it.
32718         * lib/sys_time.in.h (gettimeofday): Check it.
32719         Reported by Michael Goffioul.
32720
32721 2010-02-21  Bruno Haible  <bruno@clisp.org>
32722
32723         * lib/stdio.in.h (obstack_printf): Fix typo.
32724
32725 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
32726
32727         vc-list-files: use bzr ls's -R option
32728         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
32729         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
32730
32731 2010-02-21  Jim Meyering  <meyering@redhat.com>
32732
32733         init.sh: fix EXEEXT shims to work also for names like test-prog
32734         * tests/init.sh: Re-exec a better shell, when needed.
32735         If the current shell lacks support for posix $(...), an init.sh-using
32736         test will now try to find a shell that supports that.  If EXEEXT is
32737         nonempty, we also require support for hyphen-in-alias-name and shell
32738         substitutions like ${var#glob}.  Failure to find such a shell results
32739         in a skipped test.
32740
32741 2010-02-21  Bruno Haible  <bruno@clisp.org>
32742
32743         Really work around around "broken pipe" error message from bash 3.2.
32744         * gnulib-tool (func_reset_sigpipe): Remove function.
32745         (echo): In bash 3.2, define to a function that uses printf.
32746         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
32747
32748 2010-02-20  Bruno Haible  <bruno@clisp.org>
32749
32750         Restore support for automake 1.9.6 with autoconf 2.61.
32751         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
32752         Reported by James Youngman <jay@gnu.org>.
32753
32754 2010-02-20  Bruno Haible  <bruno@clisp.org>
32755
32756         Improve *printf warning condition.
32757         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
32758         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
32759         and the function is overridden due to SIGPIPE emulation.
32760
32761 2010-02-20  Bruno Haible  <bruno@clisp.org>
32762
32763         * lib/stdio.in.h: Tweak comments.
32764
32765 2010-02-19  Bruno Haible  <bruno@clisp.org>
32766
32767         Make it easier to find modules. New gnulib-tool option '--find'.
32768         * gnulib-tool: New option --find.
32769         (func_usage): Document it.
32770         (func_sanitize_modulelist): New function, extracted from
32771         func_all_modules.
32772         (func_all_modules): Invoke it.
32773         * doc/gnulib-tool.texi (Which modules?): New node.
32774
32775 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
32776
32777         * lib/sys_select.in.h: Provide select replacement even if
32778         sys/select.h exists on a system, for Interix.
32779
32780 2010-02-18  Jim Meyering  <meyering@redhat.com>
32781
32782         init.sh: don't use $(...) just yet
32783         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
32784         to accommodate e.g., Solaris' /bin/sh.
32785
32786 2010-02-17  Bruno Haible  <bruno@clisp.org>
32787
32788         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
32789         Reported by Ludovic Courtès <ludo@gnu.org>.
32790
32791 2010-02-16  Simon Josefsson  <simon@josefsson.org>
32792
32793         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
32794         linking with -lintl.
32795
32796 2010-02-17  Simon Josefsson  <simon@josefsson.org>
32797
32798         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
32799         if not provided by the system's netdb.h.  Reported by
32800         ludo@gnu.org (Ludovic Courtès).
32801
32802 2010-02-15  Jim Meyering  <meyering@redhat.com>
32803
32804         init.sh: improve portability and efficiency
32805         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
32806         "dummy" in a for loop.
32807         Use '!', not '^' to select the complement of a character set used
32808         in a "case" statement.
32809         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
32810         Suggestions from Eric Blake.
32811
32812         init.sh: automatically accommodate programs with the .exe suffix
32813         Automatically arrange for an invocation of "prog" to execute the
32814         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
32815         may use the simpler "prog", yet still work when built on a system
32816         that requires specifying the added suffix.
32817         Do this by constructing a function named "prog" that invokes
32818         "prog.exe" for each .exe file in selected directories.
32819         * tests/init.sh (find_exe_basenames_): New function.
32820         (create_exe_shim_functions_): New function.
32821         (path_prepend_): Use it.
32822
32823         maint.mk: mark syntax-check sc_*.m rules as .PHONY
32824         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
32825         "make -t syntax-check" doesn't create a ton of sc_*.m files.
32826
32827 2010-02-14  Jim Meyering  <meyering@redhat.com>
32828
32829         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
32830         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
32831         (sc_prohibit_hash_pjw_without_use): New rule.
32832
32833         maint.mk: allow the default upload destination dir to be overridden
32834         * top/maint.mk (upload_dest_dir_): Define with a default that
32835         preserves the status quo.
32836         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
32837         Reported by Peter Simons.
32838
32839         maint.mk: prohibit inclusion of "hash.h" without_use
32840         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
32841
32842 2010-02-10  Jim Meyering  <meyering@redhat.com>
32843
32844         maint.mk: prohibit inclusion of "ignore-value.h" without_use
32845         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
32846
32847 2010-02-09  Eric Blake  <ebb9@byu.net>
32848         and Bruno Haible  <bruno@clisp.org>
32849
32850         obstack-printf-posix: ensure declaration
32851         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
32852         extracted from gl_FUNC_OBSTACK_PRINTF.
32853         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
32854         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32855         Likewise.
32856         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
32857         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
32858         0.
32859
32860 2010-02-08  Bruno Haible  <bruno@clisp.org>
32861
32862         gnulib-tool: Fix typo in 2010-02-07 commit.
32863         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
32864         Reported by Eric Blake.
32865
32866 2010-02-07  Bruno Haible  <bruno@clisp.org>
32867
32868         gnulib-tool: Fix up caching patches.
32869         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
32870         option --no-cache. Use associative arrays when supported by the shell.
32871         (sed_comments): New variable.
32872         (modcache): Renamed from do_cache.
32873         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
32874         abbreviate unnecessarily.
32875         (have_associative): New variable.
32876         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
32877         way also for ksh and zsh.
32878         (func_init_sed_convert_to_cache_statements): New function, extracted
32879         from func_cache_lookup_module. Add support for associative arrays.
32880         Don't set the c_MODULE_cached variable here. Ignore all lines before
32881         the first field header. Remove only the final newline, not all trailing
32882         newlines. Support empty fields correctly. Limit the use of 'eval' to
32883         assignments.
32884         (func_get_description, func_get_status, func_get_notice,
32885         func_get_applicability, func_get_filelist, func_get_dependencies,
32886         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
32887         func_get_automake_snippet, func_get_include_directive,
32888         func_get_link_directive, func_get_license, func_get_maintainer):
32889         Update documentation. List the unoptimized code first. Add support for
32890         associative arrays. Limit the use of 'eval' to assignments.
32891         (func_get_applicability): Undo stylistic pessimisations.
32892         (func_get_automake_snippet, func_get_include_directive): Reduce code
32893         duplication.
32894         (func_modules_transitive_closure, func_modules_add_dummy,
32895         func_modules_notice, func_modules_to_filelist, func_add_file,
32896         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
32897         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
32898         func_create_testdir, func_create_megatestdir): Update documentation.
32899
32900 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32901
32902         * gnulib-tool (func_cache_lookup_module): Store the module name
32903         belonging to the cache variable; error out if two different
32904         module names map to the same cache variable name.
32905
32906 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32907
32908         gnulib-tool: Make caching optional.
32909         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
32910         Update matching short versions of --no-changelog.
32911         (func_usage): Update.
32912         (sed_extract_cache_prog): Renamed from ...
32913         (sed_extract_prog): ... this; revert to old extraction script.
32914         (func_get_description, func_get_status)
32915         (func_get_notice, func_get_applicability, func_get_filelist)
32916         (func_get_dependencies, func_get_autoconf_early_snippet)
32917         (func_get_autoconf_snippet, func_get_automake_snippet)
32918         (func_get_include_directive, func_get_link_directive)
32919         (func_get_license, func_get_maintainer): If $do_cache is false,
32920         use old, non-caching extraction scripts.
32921         Suggestion by Bruno Haible.
32922
32923 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32924
32925         gnulib-tool: cache module metainformation.
32926         * gnulib-tool (sed_extract_prog): Match newline before each
32927         header, and rewrite header to a shell variable suffix.
32928         (func_cache_var, func_cache_lookup_module): New functions,
32929         to turn a module name into a cache variable prefix, and to
32930         look up and cache module metainformation.
32931         (func_get_description, func_get_status)
32932         (func_get_notice, func_get_applicability, func_get_filelist)
32933         (func_get_dependencies, func_get_autoconf_early_snippet)
32934         (func_get_autoconf_snippet, func_get_automake_snippet)
32935         (func_get_include_directive, func_get_link_directive)
32936         (func_get_license, func_get_maintainer): Use
32937         func_cache_lookup_module.
32938
32939 2010-02-07  Bruno Haible  <bruno@clisp.org>
32940
32941         fnctl: Fix missing dependency.
32942         * modules/fcntl (Depends-on): Add getdtablesize.
32943         Reported by John W. Eaton <jwe@gnu.org>.
32944
32945 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32946
32947         Argp: fix recognition of short alias options.
32948
32949         * lib/argp-parse.c (convert_options): Fix improper use of
32950         `|' between character values.
32951         * tests/test-argp.c (group1_option): New alias option
32952         --read (-r).
32953         (group1_parser): Special handling for 'r'.
32954         (test15): New test case.
32955         (test_fun): Add test15.
32956         * tests/test-argp-2.sh: Update expected --help and --usage
32957         outputs.
32958
32959 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32960
32961         * tests/test-argp.c: Fix indentation.
32962
32963 2010-02-04  Eric Blake  <ebb9@byu.net>
32964
32965         gettimeofday: expose type of second argument
32966         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
32967         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
32968         * tests/test-gettimeofday.c: Use it to silence warning.
32969         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
32970         the issue.
32971
32972 2010-02-03  Jim Meyering  <meyering@redhat.com>
32973
32974         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
32975         * lib/regcomp.c (TYPE_SIGNED): Define.
32976         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
32977
32978         regcomp.c: avoid a new -Wshadow warning
32979         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
32980
32981 2010-02-01  Jim Meyering  <meyering@redhat.com>
32982
32983         removing useless parentheses in cpp #define directives
32984         For motivation, see commit c0221df4, "define STREQ(a,b)
32985         consistently, removing useless parentheses"
32986         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
32987         * lib/mountlist.c (MNT_IGNORE): Likewise.
32988         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
32989
32990 2010-02-01  Eric Blake  <ebb9@byu.net>
32991
32992         sys_time: use link-warning
32993         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
32994         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
32995         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
32996         * modules/sys_time (Depends-on): Add warn-on-use.
32997         (Makefile.am): Always build replacement.
32998         (configure.ac): Update substitutions.
32999         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
33000         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
33001         bother with SYS_TIME_H.
33002         * modules/gettimeofday (configure.ac): Declare indicator.
33003         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
33004         in use.
33005
33006         closein-tests: silence compiler warning
33007         * tests/test-closein.c (main): Ignore fread result.
33008         * modules/closein-tests (Depends-on): Add ignore-value.
33009
33010         tests: silence warning about system return
33011         * tests/test-areadlink-with-size.c (main): Ignore system result.
33012         * tests/test-areadlink.c (main): Likewise.
33013         * tests/test-areadlinkat-with-size.c (main): Likewise.
33014         * tests/test-areadlinkat.c (main): Likewise.
33015         * tests/test-canonicalize-lgpl.c (main): Likewise.
33016         * tests/test-canonicalize.c (main): Likewise.
33017         * tests/test-chown.c (main): Likewise.
33018         * tests/test-fchownat.c (main): Likewise.
33019         * tests/test-fdutimensat.c (main): Likewise.
33020         * tests/test-fstatat.c (main): Likewise.
33021         * tests/test-futimens.c (main): Likewise.
33022         * tests/test-lchown.c (main): Likewise.
33023         * tests/test-link.c (main): Likewise.
33024         * tests/test-linkat.c (main): Likewise.
33025         * tests/test-lstat.c (main): Likewise.
33026         * tests/test-mkdir.c (main): Likewise.
33027         * tests/test-mkdirat.c (main): Likewise.
33028         * tests/test-mkfifo.c (main): Likewise.
33029         * tests/test-mkfifoat.c (main): Likewise.
33030         * tests/test-mknod.c (main): Likewise.
33031         * tests/test-readlink.c (main): Likewise.
33032         * tests/test-remove.c (main): Likewise.
33033         * tests/test-rename.c (main): Likewise.
33034         * tests/test-renameat.c (main): Likewise.
33035         * tests/test-rmdir.c (main): Likewise.
33036         * tests/test-symlink.c (main): Likewise.
33037         * tests/test-symlinkat.c (main): Likewise.
33038         * tests/test-unlink.c (main): Likewise.
33039         * tests/test-unlinkat.c (main): Likewise.
33040         * tests/test-utimens.c (main): Likewise.
33041         * tests/test-utimensat.c (main): Likewise.
33042         * modules/areadlink-tests (Depends-on): Add ignore-value.
33043         * modules/areadlink-with-size-tests (Depends-on): Likewise.
33044         * modules/areadlinkat-tests (Depends-on): Likewise.
33045         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
33046         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33047         * modules/canonicalize-tests (Depends-on): Likewise.
33048         * modules/chown-tests (Depends-on): Likewise.
33049         * modules/fdutimensat-tests (Depends-on): Likewise.
33050         * modules/futimens-tests (Depends-on): Likewise.
33051         * modules/lchown-tests (Depends-on): Likewise.
33052         * modules/link-tests (Depends-on): Likewise.
33053         * modules/linkat-tests (Depends-on): Likewise.
33054         * modules/lstat-tests (Depends-on): Likewise.
33055         * modules/mkdir-tests (Depends-on): Likewise.
33056         * modules/mkfifo-tests (Depends-on): Likewise.
33057         * modules/mkfifoat-tests (Depends-on): Likewise.
33058         * modules/mknod-tests (Depends-on): Likewise.
33059         * modules/openat-tests (Depends-on): Likewise.
33060         * modules/readlink-tests (Depends-on): Likewise.
33061         * modules/remove-tests (Depends-on): Likewise.
33062         * modules/rename-tests (Depends-on): Likewise.
33063         * modules/renameat-tests (Depends-on): Likewise.
33064         * modules/rmdir-tests (Depends-on): Likewise.
33065         * modules/symlink-tests (Depends-on): Likewise.
33066         * modules/symlinkat-tests (Depends-on): Likewise.
33067         * modules/unlink-tests (Depends-on): Likewise.
33068         * modules/utimens-tests (Depends-on): Likewise.
33069         * modules/utimensat-tests (Depends-on): Likewise.
33070
33071 2010-01-31  Bruno Haible  <bruno@clisp.org>
33072
33073         Perform the same test for many <math.h> functions.
33074         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
33075         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
33076         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
33077         of gl_MATHFUNC.
33078         * modules/acos (configure.ac): Likewise.
33079         * modules/asin (configure.ac): Likewise.
33080         * modules/atan (configure.ac): Likewise.
33081         * modules/atan2 (configure.ac): Likewise.
33082         * modules/cbrt (configure.ac): Likewise.
33083         * modules/copysign (configure.ac): Likewise.
33084         * modules/cos (configure.ac): Likewise.
33085         * modules/cosh (configure.ac): Likewise.
33086         * modules/erf (configure.ac): Likewise.
33087         * modules/erfc (configure.ac): Likewise.
33088         * modules/exp (configure.ac): Likewise.
33089         * modules/fmod (configure.ac): Likewise.
33090         * modules/hypot (configure.ac): Likewise.
33091         * modules/j0 (configure.ac): Likewise.
33092         * modules/j1 (configure.ac): Likewise.
33093         * modules/jn (configure.ac): Likewise.
33094         * modules/lgamma (configure.ac): Likewise.
33095         * modules/log (configure.ac): Likewise.
33096         * modules/log10 (configure.ac): Likewise.
33097         * modules/log1p (configure.ac): Likewise.
33098         * modules/pow (configure.ac): Likewise.
33099         * modules/remainder (configure.ac): Likewise.
33100         * modules/sin (configure.ac): Likewise.
33101         * modules/sinh (configure.ac): Likewise.
33102         * modules/tan (configure.ac): Likewise.
33103         * modules/tanh (configure.ac): Likewise.
33104         * modules/y0 (configure.ac): Likewise.
33105         * modules/y1 (configure.ac): Likewise.
33106         * modules/yn (configure.ac): Likewise.
33107         Suggested by Paolo Bonzini.
33108
33109 2010-01-31  Bruno Haible  <bruno@clisp.org>
33110
33111         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
33112
33113 2010-01-31  Bruno Haible  <bruno@clisp.org>
33114
33115         Work around getdelim() bug on FreeBSD 8.0.
33116         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
33117         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
33118         not work.
33119         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
33120         is 1.
33121         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
33122         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
33123         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
33124         a non-zero size.
33125         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
33126
33127 2010-01-31  Bruno Haible  <bruno@clisp.org>
33128
33129         Work around getline() bug on FreeBSD 8.0.
33130         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
33131         and a non-zero size.
33132         * tests/test-getline.c (main): Likewise.
33133         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
33134         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
33135
33136 2010-01-28  Eric Blake  <ebb9@byu.net>
33137
33138         regex: fix build failure
33139         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
33140         platforms.
33141
33142 2010-01-28  Jim Meyering  <meyering@redhat.com>
33143
33144         regex: do not ignore memory allocation failure
33145         * lib/regex_internal.c (create_cd_newstate): Detect
33146         re_node_set_init_copy failure.   Extracted from glibc commit
33147         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33148
33149         regex: sync more white-space changes from libc
33150         * lib/regex_internal.c: White-space only changes.
33151         * lib/regexec.c: Likewise.
33152
33153         regex: add many uses of __attribute_warn_unused_result__
33154         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
33155         * lib/regexec.c: Likewise.
33156         Extracted from a messy glibc commit.
33157
33158         regcomp.c: spelling and merge-artifact from glibc
33159         * lib/regcomp.c: Merge remainder of glibc's
33160         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33161
33162         regcomp.c: sync white-space changes from glibc
33163         * lib/regcomp.c: Merge to accommodate white space
33164         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33165
33166         regcomp.c: do not ignore internal return values
33167         * lib/regcomp.c: Do not ignore internal return values.
33168         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
33169         but without its white-space changes and spelling fixes.
33170
33171         regex_internal.h: define __attribute_warn_unused_result__
33172         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
33173
33174         maint: add a syntax-check rule to check for vulnerable Makefile.in
33175         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
33176
33177 2010-01-27  Jim Meyering  <meyering@redhat.com>
33178
33179         ncftpput-ftp: clean up spaces
33180         * build-aux/ncftpput-ftp: Make Copyright line consistent.
33181         Remove trailing blanks.
33182
33183 2010-01-27  Simon Josefsson  <simon@josefsson.org>
33184
33185         * build-aux/git-version-gen: Fix copyright statement.
33186         * build-aux/gnupload: Likewise.
33187         * tests/test-arcfour.c: Likewise.
33188         * tests/test-arctwo.c: Likewise.
33189         * tests/test-count-one-bits.c: Likewise.
33190         * tests/test-crc.c: Likewise.
33191         * tests/test-des.c: Likewise.
33192         * tests/test-gc-arcfour.c: Likewise.
33193         * tests/test-gc-arctwo.c: Likewise.
33194         * tests/test-gc-des.c: Likewise.
33195         * tests/test-gc-hmac-md5.c: Likewise.
33196         * tests/test-gc-hmac-sha1.c: Likewise.
33197         * tests/test-gc-md2.c: Likewise.
33198         * tests/test-gc-md4.c: Likewise.
33199         * tests/test-gc-md5.c: Likewise.
33200         * tests/test-gc-pbkdf2-sha1.c: Likewise.
33201         * tests/test-gc-rijndael.c: Likewise.
33202         * tests/test-gc-sha1.c: Likewise.
33203         * tests/test-gc.c: Likewise.
33204         * tests/test-gethostname.c: Likewise.
33205         * tests/test-gettimeofday.c: Likewise.
33206         * tests/test-hash.c: Likewise.
33207         * tests/test-hmac-md5.c: Likewise.
33208         * tests/test-hmac-sha1.c: Likewise.
33209         * tests/test-md2.c: Likewise.
33210         * tests/test-md4.c: Likewise.
33211         * tests/test-md5.c: Likewise.
33212         * tests/test-memchr.c: Likewise.
33213         * tests/test-memchr2.c: Likewise.
33214         * tests/test-memcmp.c: Likewise.
33215         * tests/test-memmem.c: Likewise.
33216         * tests/test-memrchr.c: Likewise.
33217         * tests/test-rawmemchr.c: Likewise.
33218         * tests/test-read-file.c: Likewise.
33219         * tests/test-rijndael.c: Likewise.
33220         * tests/test-sockets.c: Likewise.
33221         * tests/test-strchrnul.c: Likewise.
33222         * tests/test-strstr.c: Likewise.
33223         * tests/test-strtod.c: Likewise.
33224         * build-aux/ncftpput-ftp: Likewise.
33225
33226 2010-01-26  Eric Blake  <ebb9@byu.net>
33227
33228         ignore-value: update recommended header name
33229         * modules/ignore-value (Include): Only use <> for headers that
33230         exist in glibc.
33231
33232 2010-01-26  Jim Meyering  <meyering@redhat.com>
33233
33234         test-userspec.c: avoid compiler warnings
33235         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
33236         and "initialization discards qualifiers..." warnings.
33237         Put the first "uid" in its own scope, and make char* members "const".
33238
33239 2010-01-25  Bruno Haible  <bruno@clisp.org>
33240
33241         gnulib-tool: Make warning diagnostics consistent.
33242         * gnulib-tool (func_warning): New function.
33243         Use it everywhere where gnulib-tool produces output to stderr and it is
33244         not a fatal error.
33245
33246 2010-01-25  Bruno Haible  <bruno@clisp.org>
33247
33248         Fix test dependencies.
33249         * modules/xstrtol-tests (Depends-on): Add inttypes.
33250         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
33251
33252 2010-01-25 Pádraig Brady <P@draigBrady.com>
33253
33254         syntax-check: detect incorrect boolean macro values in config.h
33255         * modules/maintainer-makefile (configure.ac): Parameterize the location
33256         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
33257         The logic is from Eric Blake and the location indicated by Jim Meyering.
33258         Note the more natural CONFIG_HEADER name is prohibited by automake
33259         for backwards compatibility reasons.
33260         * top/maint.mk (sc_Wundef_boolean): New rule.
33261
33262 2010-01-25  Jim Meyering  <meyering@redhat.com>
33263
33264         bootstrap: detect MacOS 10.6's shasum, too
33265         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
33266         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
33267
33268 2010-01-23  Jim Meyering  <meyering@redhat.com>
33269
33270         xstrtoll: new module
33271         * modules/xstrtoll: New file.
33272         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
33273         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
33274         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
33275         ./configure fails if you use this module and lack "long long".
33276         * modules/xstrtoll-tests: New module.
33277         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
33278         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
33279         new init.sh-based test framework.
33280
33281 2010-01-24  Bruno Haible  <bruno@clisp.org>
33282
33283         Tests for module 'yn'.
33284         * modules/yn-tests: New file.
33285         * tests/test-yn.c: New file.
33286
33287         Tests for module 'y1'.
33288         * modules/y1-tests: New file.
33289         * tests/test-y1.c: New file.
33290
33291         Tests for module 'y0'.
33292         * modules/y0-tests: New file.
33293         * tests/test-y0.c: New file.
33294
33295         Tests for module 'tanh'.
33296         * modules/tanh-tests: New file.
33297         * tests/test-tanh.c: New file.
33298
33299         Tests for module 'tan'.
33300         * modules/tan-tests: New file.
33301         * tests/test-tan.c: New file.
33302
33303         Tests for module 'sqrt'.
33304         * modules/sqrt-tests: New file.
33305         * tests/test-sqrt.c: New file.
33306
33307         Tests for module 'sinh'.
33308         * modules/sinh-tests: New file.
33309         * tests/test-sinh.c: New file.
33310
33311         Tests for module 'sin'.
33312         * modules/sin-tests: New file.
33313         * tests/test-sin.c: New file.
33314
33315         Tests for module 'rint'.
33316         * modules/rint-tests: New file.
33317         * tests/test-rint.c: New file.
33318
33319         Tests for module 'remainder'.
33320         * modules/remainder-tests: New file.
33321         * tests/test-remainder.c: New file.
33322
33323         Tests for module 'pow'.
33324         * modules/pow-tests: New file.
33325         * tests/test-pow.c: New file.
33326
33327         Tests for module 'nextafter'.
33328         * modules/nextafter-tests: New file.
33329         * tests/test-nextafter.c: New file.
33330
33331         Tests for module 'modf'.
33332         * modules/modf-tests: New file.
33333         * tests/test-modf.c: New file.
33334
33335         Tests for module 'logb'.
33336         * modules/logb-tests: New file.
33337         * tests/test-logb.c: New file.
33338
33339         Tests for module 'log1p'.
33340         * modules/log1p-tests: New file.
33341         * tests/test-log1p.c: New file.
33342
33343         Tests for module 'log10'.
33344         * modules/log10-tests: New file.
33345         * tests/test-log10.c: New file.
33346
33347         Tests for module 'log'.
33348         * modules/log-tests: New file.
33349         * tests/test-log.c: New file.
33350
33351         Tests for module 'lgamma'.
33352         * modules/lgamma-tests: New file.
33353         * tests/test-lgamma.c: New file.
33354
33355         Tests for module 'ldexp'.
33356         * modules/ldexp-tests: New file.
33357         * tests/test-ldexp.c: New file.
33358
33359         Tests for module 'jn'.
33360         * modules/jn-tests: New file.
33361         * tests/test-jn.c: New file.
33362
33363         Tests for module 'j1'.
33364         * modules/j1-tests: New file.
33365         * tests/test-j1.c: New file.
33366
33367         Tests for module 'j0'.
33368         * modules/j0-tests: New file.
33369         * tests/test-j0.c: New file.
33370
33371         Tests for module 'hypot'.
33372         * modules/hypot-tests: New file.
33373         * tests/test-hypot.c: New file.
33374
33375         Tests for module 'fmod'.
33376         * modules/fmod-tests: New file.
33377         * tests/test-fmod.c: New file.
33378
33379         Tests for module 'fabs'.
33380         * modules/fabs-tests: New file.
33381         * tests/test-fabs.c: New file.
33382
33383         Tests for module 'exp'.
33384         * modules/exp-tests: New file.
33385         * tests/test-exp.c: New file.
33386
33387         Tests for module 'erfc'.
33388         * modules/erfc-tests: New file.
33389         * tests/test-erfc.c: New file.
33390
33391         Tests for module 'erf'.
33392         * modules/erf-tests: New file.
33393         * tests/test-erf.c: New file.
33394
33395         Tests for module 'cosh'.
33396         * modules/cosh-tests: New file.
33397         * tests/test-cosh.c: New file.
33398
33399         Tests for module 'cos'.
33400         * modules/cos-tests: New file.
33401         * tests/test-cos.c: New file.
33402
33403         Tests for module 'copysign'.
33404         * modules/copysign-tests: New file.
33405         * tests/test-copysign.c: New file.
33406
33407         Tests for module 'cbrt'.
33408         * modules/cbrt-tests: New file.
33409         * tests/test-cbrt.c: New file.
33410
33411         Tests for module 'atan2'.
33412         * modules/atan2-tests: New file.
33413         * tests/test-atan2.c: New file.
33414
33415         Tests for module 'atan'.
33416         * modules/atan-tests: New file.
33417         * tests/test-atan.c: New file.
33418
33419         Tests for module 'asin'.
33420         * modules/asin-tests: New file.
33421         * tests/test-asin.c: New file.
33422
33423         Tests for module 'acos'.
33424         * modules/acos-tests: New file.
33425         * tests/test-acos.c: New file.
33426
33427 2010-01-24  Bruno Haible  <bruno@clisp.org>
33428
33429         Fix tests for common <math.h> functions.
33430         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
33431         code snippet that references the function pointer, rather than merely
33432         calling the function. Substitute the FUNC_LIBM variable.
33433         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
33434         * modules/acos (configure.ac): Likewise.
33435         * modules/asin (configure.ac): Likewise.
33436         * modules/atan (configure.ac): Likewise.
33437         * modules/atan2 (configure.ac): Likewise.
33438         * modules/cbrt (configure.ac): Likewise.
33439         * modules/copysign (configure.ac): Likewise.
33440         * modules/cos (configure.ac): Likewise.
33441         * modules/cosh (configure.ac): Likewise.
33442         * modules/erf (configure.ac): Likewise.
33443         * modules/erfc (configure.ac): Likewise.
33444         * modules/exp (configure.ac): Likewise.
33445         * modules/fabs (configure.ac): Likewise.
33446         * modules/fmod (configure.ac): Likewise.
33447         * modules/hypot (configure.ac): Likewise.
33448         * modules/j0 (configure.ac): Likewise.
33449         * modules/j1 (configure.ac): Likewise.
33450         * modules/jn (configure.ac): Likewise.
33451         * modules/ldexp (configure.ac): Likewise.
33452         * modules/lgamma (configure.ac): Likewise.
33453         * modules/log (configure.ac): Likewise.
33454         * modules/log10 (configure.ac): Likewise.
33455         * modules/log1p (configure.ac): Likewise.
33456         * modules/logb (configure.ac): Likewise.
33457         * modules/modf (configure.ac): Likewise.
33458         * modules/nextafter (configure.ac): Likewise.
33459         * modules/pow (configure.ac): Likewise.
33460         * modules/remainder (configure.ac): Likewise.
33461         * modules/rint (configure.ac): Likewise.
33462         * modules/sin (configure.ac): Likewise.
33463         * modules/sinh (configure.ac): Likewise.
33464         * modules/tan (configure.ac): Likewise.
33465         * modules/tanh (configure.ac): Likewise.
33466         * modules/y0 (configure.ac): Likewise.
33467         * modules/y1 (configure.ac): Likewise.
33468         * modules/yn (configure.ac): Likewise.
33469
33470 2010-01-24  Bruno Haible  <bruno@clisp.org>
33471
33472         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
33473         * tests/test-acosl.c (x): New variable.
33474         (main): Store argument in x and fetch it from x.
33475         * tests/test-asinl.c (x): New variable.
33476         (main): Store argument in x and fetch it from x.
33477         * tests/test-atanl.c (x): New variable.
33478         (main): Store argument in x and fetch it from x.
33479         * tests/test-cosl.c (x): New variable.
33480         (main): Store argument in x and fetch it from x.
33481         * tests/test-expl.c (x): New variable.
33482         (main): Store argument in x and fetch it from x.
33483         * tests/test-logl.c (x): New variable.
33484         (main): Store argument in x and fetch it from x.
33485         * tests/test-sinl.c (x): New variable.
33486         (main): Store argument in x and fetch it from x.
33487         * tests/test-sqrtl.c (x): New variable.
33488         (main): Store argument in x and fetch it from x.
33489         * tests/test-tanl.c (x): New variable.
33490         (main): Store argument in x and fetch it from x.
33491
33492 2010-01-24  Bruno Haible  <bruno@clisp.org>
33493
33494         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
33495         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
33496         assignments to the initial TESTS_ENVIRONMENT.
33497         * doc/gnulib.texi (Unit test modules): Document it.
33498         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
33499         TESTS_ENVIRONMENT.
33500         * modules/btowc-tests (Makefile.am): Likewise.
33501         * modules/c-stack-tests (Makefile.am): Likewise.
33502         * modules/c-strcase-tests (Makefile.am): Likewise.
33503         * modules/copy-file-tests (Makefile.am): Likewise.
33504         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
33505         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
33506         * modules/mbrtowc-tests (Makefile.am): Likewise.
33507         * modules/mbscasecmp-tests (Makefile.am): Likewise.
33508         * modules/mbscasestr-tests (Makefile.am): Likewise.
33509         * modules/mbschr-tests (Makefile.am): Likewise.
33510         * modules/mbscspn-tests (Makefile.am): Likewise.
33511         * modules/mbsinit-tests (Makefile.am): Likewise.
33512         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
33513         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
33514         * modules/mbspbrk-tests (Makefile.am): Likewise.
33515         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
33516         * modules/mbsrchr-tests (Makefile.am): Likewise.
33517         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
33518         * modules/mbsspn-tests (Makefile.am): Likewise.
33519         * modules/mbsstr-tests (Makefile.am): Likewise.
33520         * modules/nl_langinfo-tests (Makefile.am): Likewise.
33521         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
33522         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
33523         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
33524         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
33525         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
33526         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
33527         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
33528         * modules/wcrtomb-tests (Makefile.am): Likewise.
33529         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
33530         * modules/wcsrtombs-tests (Makefile.am): Likewise.
33531         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
33532         assignments from TESTS_ENVIRONMENT.
33533         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
33534         augmentation.
33535         * modules/argp-version-etc-tests (Makefile.am): Likewise.
33536         * modules/atexit-tests (Makefile.am): Likewise.
33537         * modules/binary-io-tests (Makefile.am): Likewise.
33538         * modules/closein-tests (Makefile.am): Likewise.
33539         * modules/dprintf-posix-tests (Makefile.am): Likewise.
33540         * modules/exclude-tests (Makefile.am): Likewise.
33541         * modules/fflush-tests (Makefile.am): Likewise.
33542         * modules/fpending-tests (Makefile.am): Likewise.
33543         * modules/fprintf-posix-tests (Makefile.am): Likewise.
33544         * modules/freadahead-tests (Makefile.am): Likewise.
33545         * modules/freadptr-tests (Makefile.am): Likewise.
33546         * modules/freadseek-tests (Makefile.am): Likewise.
33547         * modules/fseek-tests (Makefile.am): Likewise.
33548         * modules/fseeko-tests (Makefile.am): Likewise.
33549         * modules/ftell-tests (Makefile.am): Likewise.
33550         * modules/ftello-tests (Makefile.am): Likewise.
33551         * modules/idpriv-drop-tests (Makefile.am): Likewise.
33552         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
33553         * modules/lseek-tests (Makefile.am): Likewise.
33554         * modules/parse-duration-tests (Makefile.am): Likewise.
33555         * modules/perror-tests (Makefile.am): Likewise.
33556         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
33557         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
33558         * modules/pipe-tests (Makefile.am): Likewise.
33559         * modules/pread-tests (Makefile.am): Likewise.
33560         * modules/printf-posix-tests (Makefile.am): Likewise.
33561         * modules/select-tests (Makefile.am): Likewise.
33562         * modules/sigpipe-tests (Makefile.am): Likewise.
33563         * modules/tsearch-tests (Makefile.am): Likewise.
33564         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
33565         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
33566         * modules/uniname/uniname-tests (Makefile.am): Likewise.
33567         * modules/uniwidth/width-tests (Makefile.am): Likewise.
33568         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
33569         * modules/version-etc-tests (Makefile.am): Likewise.
33570         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
33571         * modules/vprintf-posix-tests (Makefile.am): Likewise.
33572         * modules/xalloc-die-tests (Makefile.am): Likewise.
33573         * modules/xprintf-posix-tests (Makefile.am): Likewise.
33574         * modules/xstrtoimax-tests (Makefile.am): Likewise.
33575         * modules/xstrtol-tests (Makefile.am): Likewise.
33576         * modules/xstrtoumax-tests (Makefile.am): Likewise.
33577         * modules/yesno-tests (Makefile.am): Likewise.
33578         Suggested by Jim Meyering.
33579
33580 2010-01-24  Bruno Haible  <bruno@clisp.org>
33581
33582         More documentation.
33583         * doc/gnulib.texi (Writing modules): New chapter.
33584         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
33585         the new chapter.
33586
33587 2010-01-24  Jim Meyering  <meyering@redhat.com>
33588
33589         maint.mk: do not prepend "./" after filtering
33590         * top/maint.mk (_prepend_srcdir_prefix): New variable
33591         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
33592         "./" when $(srcdir) is ".".
33593
33594         define STREQ(a,b) consistently, removing useless parentheses
33595         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
33596         since the only risk is that "a" or "b" contains an unparenthesized
33597         comma, but if either did that, STREQ would have 3 or more arguments.
33598         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
33599         * lib/fts.c (STREQ): Remove unnecessary parentheses.
33600         * lib/hash-triple.c (STREQ): Likewise.
33601         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
33602         * lib/getugroups.c (STREQ): Likewise.
33603
33604 2010-01-23  Jim Meyering  <meyering@redhat.com>
33605
33606         maint.mk: fix syntax-check in a non-srcdir build directory
33607         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
33608         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
33609
33610 2010-01-22  Jim Meyering  <meyering@redhat.com>
33611
33612         userspec: add unit tests
33613         * tests/test-userspec.c: New file.
33614         * modules/userspec-tests: Likewise.
33615
33616 2010-01-21  Jim Meyering  <meyering@redhat.com>
33617
33618         maint.mk: handle source file names containing "." robustly
33619         * top/maint.mk (_dot_escaped_srcdir): Define.
33620         (VC_LIST): Use it in LHS of sed substitution.
33621
33622 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
33623
33624         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
33625         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
33626         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
33627         from a non-srcdir build.
33628
33629 2010-01-20  Eric Blake  <ebb9@byu.net>
33630
33631         warn-on-use: use instead of link-warning
33632         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
33633         * modules/unistd (Depends-on, Makefile.am): Likewise.
33634         * modules/arpa_inet (Depends-on): Replace link-warning with
33635         warn-on-use.
33636         (Makefile.am): Update rules accordingly.
33637         * modules/ctype (Depends-on, Makefile.am): Likewise.
33638         * modules/dirent (Depends-on, Makefile.am): Likewise.
33639         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
33640         * modules/inttypes (Depends-on, Makefile.am): Likewise.
33641         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33642         * modules/locale (Depends-on, Makefile.am): Likewise.
33643         * modules/math (Depends-on, Makefile.am): Likewise.
33644         * modules/search (Depends-on, Makefile.am): Likewise.
33645         * modules/signal (Depends-on, Makefile.am): Likewise.
33646         * modules/spawn (Depends-on, Makefile.am): Likewise.
33647         * modules/stdlib (Depends-on, Makefile.am): Likewise.
33648         * modules/string (Depends-on, Makefile.am): Likewise.
33649         * modules/strings (Depends-on, Makefile.am): Likewise.
33650         * modules/sys_file (Depends-on, Makefile.am): Likewise.
33651         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
33652         * modules/sys_select (Depends-on, Makefile.am): Likewise.
33653         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
33654         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
33655         * modules/sys_times (Depends-on, Makefile.am): Likewise.
33656         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33657         * modules/wchar (Depends-on, Makefile.am): Likewise.
33658         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
33659         should be poisoned.
33660         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
33661         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
33662         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
33663         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33664         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33665         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33666         * m4/math_h.m4 (gl_MATH_H): Likewise.
33667         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33668         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33669         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33670         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33671         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33672         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33673         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
33674         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
33675         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
33676         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33677         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33678         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33679         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33680         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33681         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33682         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33683         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
33684         GL_LINK_WARNING.
33685         * lib/ctype.in.h: Likewise.
33686         * lib/dirent.in.h: Likewise.
33687         * lib/fcntl.in.h: Likewise.
33688         * lib/inttypes.in.h: Likewise.
33689         * lib/langinfo.in.h: Likewise.
33690         * lib/locale.in.h: Likewise.
33691         * lib/math.in.h: Likewise.
33692         * lib/search.in.h: Likewise.
33693         * lib/signal.in.h: Likewise.
33694         * lib/spawn.in.h: Likewise.
33695         * lib/stdio.in.h: Likewise.
33696         * lib/stdlib.in.h: Likewise.
33697         * lib/string.in.h: Likewise.
33698         * lib/strings.in.h: Likewise.
33699         * lib/sys_file.in.h: Likewise.
33700         * lib/sys_ioctl.in.h: Likewise.
33701         * lib/sys_select.in.h: Likewise.
33702         * lib/sys_socket.in.h: Likewise.
33703         * lib/sys_stat.in.h: Likewise.
33704         * lib/sys_times.in.h: Likewise.
33705         * lib/sys_utsname.in.h: Likewise.
33706         * lib/unistd.in.h: Likewise.
33707         * lib/wchar.in.h: Likewise.
33708
33709 2010-01-20  Bruno Haible  <bruno@clisp.org>
33710
33711         Avoid duplicate -lm.
33712         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
33713         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
33714         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
33715         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
33716         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
33717         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
33718         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
33719         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
33720         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
33721         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
33722         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
33723         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
33724         Reported by Paolo Bonzini.
33725
33726 2010-01-19  Bruno Haible  <bruno@clisp.org>
33727
33728         langinfo, nl_langinfo: Relicense under LGPLv2+.
33729         * modules/langinfo (License): Change to LGPLv2+.
33730         * modules/nl_langinfo (License): Likewise.
33731         Patch by David Lutterkort <lutter@redhat.com>.
33732
33733 2010-01-19  Bruno Haible  <bruno@clisp.org>
33734
33735         Avoid compilation error with cc on OSF/1 5.1.
33736         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
33737         statement, not before.
33738         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33739
33740 2010-01-18  Bruno Haible  <bruno@clisp.org>
33741
33742         Avoid a link error due to the __printf__ symbol.
33743         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
33744         and 2.6.x.
33745         (__format__, __printf__): Remove definitions.
33746         * lib/argp-fmtstream.h: Likewise.
33747         * lib/argp.h: Likewise.
33748         * lib/error.h: Likewise.
33749         * lib/vasnprintf.h: Likewise.
33750         * lib/xprintf.h: Likewise.
33751         * lib/xvasprintf.h: Likewise.
33752         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33753
33754 2010-01-18  Bruno Haible  <bruno@clisp.org>
33755
33756         Tests for module 'tanl'.
33757         * modules/tanl-tests: New file.
33758         * tests/test-tanl.c: New file.
33759
33760         Tests for module 'sqrtl'.
33761         * modules/sqrtl-tests: New file.
33762         * tests/test-sqrtl.c: New file.
33763
33764         Tests for module 'sinl'.
33765         * modules/sinl-tests: New file.
33766         * tests/test-sinl.c: New file.
33767
33768         Tests for module 'logl'.
33769         * modules/logl-tests: New file.
33770         * tests/test-logl.c: New file.
33771
33772         Tests for module 'expl'.
33773         * modules/expl-tests: New file.
33774         * tests/test-expl.c: New file.
33775
33776         Tests for module 'cosl'.
33777         * modules/cosl-tests: New file.
33778         * tests/test-cosl.c: New file.
33779
33780         Tests for module 'atanl'.
33781         * modules/atanl-tests: New file.
33782         * tests/test-atanl.c: New file.
33783
33784         Tests for module 'asinl'.
33785         * modules/asinl-tests: New file.
33786         * tests/test-asinl.c: New file.
33787
33788         Tests for module 'acosl'.
33789         * modules/acosl-tests: New file.
33790         * tests/test-acosl.c: New file.
33791
33792         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33793         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
33794         tanl): Use the standard gnulib idiom.
33795         * lib/cosl.c: Don't include trigl.c and sincosl.c.
33796         * lib/sinl.c: Likewise.
33797         * lib/tanl.c: Don't include trigl.c.
33798         (kernel_tanl): Make static.
33799         * lib/sincosl.c: Include trigl.h first.
33800         * lib/trigl.c: Likewise.
33801         * m4/acosl.m4: New file.
33802         * m4/asinl.m4: New file.
33803         * m4/atanl.m4: New file.
33804         * m4/cosl.m4: New file.
33805         * m4/expl.m4: New file.
33806         * m4/logl.m4: New file.
33807         * m4/sinl.m4: New file.
33808         * m4/sqrtl.m4: New file.
33809         * m4/tanl.m4: New file.
33810         * m4/mathl.m4: Remove file.
33811         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
33812         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33813         Don't initialize GNULIB_MATHL.
33814         * modules/acosl: New file.
33815         * modules/asinl: New file.
33816         * modules/atanl: New file.
33817         * modules/cosl: New file.
33818         * modules/expl: New file.
33819         * modules/logl: New file.
33820         * modules/sinl: New file.
33821         * modules/sqrtl: New file.
33822         * modules/tanl: New file.
33823         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
33824         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
33825         substitute GNULIB_MATHL.
33826         * modules/mathl: Rewritten.
33827         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
33828         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
33829         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
33830         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
33831         * doc/posix-functions/expl.texi: Mention the 'expl' module.
33832         * doc/posix-functions/logl.texi: Mention the 'logl' module.
33833         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
33834         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
33835         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
33836
33837 2010-01-18  Bruno Haible  <bruno@clisp.org>
33838
33839         sqrt: Make gl_FUNC_SQRT requirable.
33840         * m4/sqrt.m4: New file.
33841         * modules/sqrt (Files): Add it.
33842         (configure.ac): Invoke gl_FUNC_SQRT.
33843
33844 2010-01-18  Bruno Haible  <bruno@clisp.org>
33845
33846         New modules for common <math.h> functions.
33847         * m4/mathfunc.m4: New file.
33848         * modules/acos: New file.
33849         * modules/asin: New file.
33850         * modules/atan: New file.
33851         * modules/atan2: New file.
33852         * modules/cbrt: New file.
33853         * modules/copysign: New file.
33854         * modules/cos: New file.
33855         * modules/cosh: New file.
33856         * modules/erf: New file.
33857         * modules/erfc: New file.
33858         * modules/exp: New file.
33859         * modules/fabs: New file.
33860         * modules/fmod: New file.
33861         * modules/hypot: New file.
33862         * modules/j0: New file.
33863         * modules/j1: New file.
33864         * modules/jn: New file.
33865         * modules/ldexp: New file.
33866         * modules/lgamma: New file.
33867         * modules/log: New file.
33868         * modules/log10: New file.
33869         * modules/log1p: New file.
33870         * modules/logb: New file.
33871         * modules/modf: New file.
33872         * modules/nextafter: New file.
33873         * modules/pow: New file.
33874         * modules/remainder: New file.
33875         * modules/rint: New file.
33876         * modules/sin: New file.
33877         * modules/sinh: New file.
33878         * modules/sqrt: New file.
33879         * modules/tan: New file.
33880         * modules/tanh: New file.
33881         * modules/y0: New file.
33882         * modules/y1: New file.
33883         * modules/yn: New file.
33884         * doc/posix-functions/acos.texi: Mention the 'acos' module.
33885         * doc/posix-functions/asin.texi: Mention the 'asin' module.
33886         * doc/posix-functions/atan.texi: Mention the 'atan' module.
33887         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
33888         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
33889         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
33890         * doc/posix-functions/cos.texi: Mention the 'cos' module.
33891         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
33892         * doc/posix-functions/erf.texi: Mention the 'erf' module.
33893         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
33894         * doc/posix-functions/exp.texi: Mention the 'exp' module.
33895         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
33896         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
33897         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
33898         * doc/posix-functions/j0.texi: Mention the 'j0' module.
33899         * doc/posix-functions/j1.texi: Mention the 'j1' module.
33900         * doc/posix-functions/jn.texi: Mention the 'jn' module.
33901         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
33902         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
33903         * doc/posix-functions/log.texi: Mention the 'log' module.
33904         * doc/posix-functions/log10.texi: Mention the 'log10' module.
33905         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
33906         * doc/posix-functions/logb.texi: Mention the 'logb' module.
33907         * doc/posix-functions/modf.texi: Mention the 'modf' module.
33908         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
33909         * doc/posix-functions/pow.texi: Mention the 'pow' module.
33910         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
33911         * doc/posix-functions/rint.texi: Mention the 'rint' module.
33912         * doc/posix-functions/sin.texi: Mention the 'sin' module.
33913         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
33914         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
33915         * doc/posix-functions/tan.texi: Mention the 'tan' module.
33916         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
33917         * doc/posix-functions/y0.texi: Mention the 'y0' module.
33918         * doc/posix-functions/y1.texi: Mention the 'y1' module.
33919         * doc/posix-functions/yn.texi: Mention the 'yn' module.
33920
33921 2010-01-18  Jim Meyering  <meyering@redhat.com>
33922
33923         ignore-value: relax license to LGPLv2+
33924         * modules/ignore-value (License): Relax to LGPLv2+.
33925
33926         getdate: don't leak when TZ contains two or more '"'s
33927         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
33928         double quote in TZ after the first one.
33929
33930         readtokens: do not leak internal token_lengths buffer
33931         * lib/readtokens.c (readtokens): Free the local, lengths,
33932         when the supplied "token_lengths" parameter is NULL.
33933
33934 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33935
33936         Fix a couple of missing LIBTHREAD link failures on AIX.
33937         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
33938         $(LIBTHREAD).
33939         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
33940
33941         Link test-poll against INET_PTON_LIB.
33942         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
33943         for inet_pton on Solaris 10.
33944
33945 2010-01-17  Bruno Haible  <bruno@clisp.org>
33946
33947         unistdio/*-sprintf: Fix typo in module description.
33948         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
33949         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
33950         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
33951         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
33952         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
33953         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
33954         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
33955         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33956
33957 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33958
33959         gnulib-tool: fix filelist for AIX, HP-UX ksh.
33960         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
33961         variables in shell case patterns, for AIX and HP-UX ksh.
33962
33963         Split large sed scripts, for HP-UX sed.
33964         * modules/stdio: Split sed scripts around 50 sed commands,
33965         to avoid HP-UX limit of 99 commands, in the near future.
33966         * modules/string: Likewise.
33967         * modules/unistd: Likewise.
33968
33969         gnulib-tool: avoid writing in the current directory.
33970         * gnulib-tool (func_emit_lib_Makefile_am)
33971         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
33972         not in the current directory, so concurrent gnulib-tool
33973         instances do not interfere.
33974
33975 2010-01-16  Jim Meyering  <meyering@redhat.com>
33976
33977         doc: update users.txt
33978         * users.txt: Add grep.
33979         (diffutils, gzip): Update URLs.
33980
33981 2010-01-12  Bruno Haible  <bruno@clisp.org>
33982
33983         posix_spawn: Avoid test failure on Cygwin.
33984         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
33985         characters.
33986         Reported by Simon Josefsson.
33987
33988 2010-01-12  Bruno Haible  <bruno@clisp.org>
33989
33990         * tests/test-cond.c (main): When skipping the test, show the reason.
33991
33992 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33993
33994         * lib/striconv.c (str_cd_iconv): Avoid if before free.
33995
33996 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33997
33998         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
33999         VC_LIST_ALWAYS_EXCLUDE_REGEX.
34000
34001 2010-01-12  Eric Blake  <ebb9@byu.net>
34002
34003         build: guarantee AS_VAR_IF
34004         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
34005         (gl_AS_VAR_IF): Move...
34006         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
34007         Reported by Simon Josefsson.
34008
34009 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34010
34011         * lib/stdio.in.h: Fix typo.
34012
34013 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34014
34015         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
34016         libgpg-error.
34017
34018 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34019
34020         * tests/test-xalloc-die.sh: Use $EXEEXT.
34021
34022 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34023             Bruno Haible  <bruno@clisp.org>
34024
34025         getlogin, getlogin_r: Avoid test failure.
34026         * tests/test-getlogin.c: Include <stdio.h>.
34027         (main): Skip the test when the function fails because stdin is not a
34028         tty.
34029         * tests/test-getlogin_r.c: Include <stdio.h>.
34030         (main): Skip the test when the function fails because stdin is not a
34031         tty.
34032
34033 2010-01-11  Eric Blake  <ebb9@byu.net>
34034
34035         tests: avoid more large file warnings
34036         * tests/test-fflush.c: Avoid warning about ftell use.
34037         * tests/test-fseek.c: Avoid warning about fseek use.
34038
34039 2010-01-10  Bruno Haible  <bruno@clisp.org>
34040
34041         nproc: Work better on Linux when /proc and /sys are not mounted.
34042         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
34043         as lower bound when, on glibc/Linux systems,
34044         sysconf (_SC_NPROCESSORS_CONF) returns 1.
34045         Suggested by Pádraig Brady <P@draigbrady.com>.
34046         Reported by Dmitry V. Levin <ldv@altlinux.org>.
34047
34048         nproc: Refactor.
34049         * lib/nproc.c (num_processors_via_affinity_mask): New function,
34050         extracted from num_processors.
34051         (num_processors): Call it.
34052
34053 2010-01-11  Jim Meyering  <meyering@redhat.com>
34054
34055         utimecmp: avoid new warning from upcoming gcc-4.5.0
34056         * lib/utimecmp.c (BILLION): Define using #define rather than an
34057         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
34058
34059 2010-01-11  Eric Blake  <ebb9@byu.net>
34060
34061         math: add portability warnings for classification macros
34062         * modules/math (Depends-on): Add warn-on-use.
34063         (Makefile.am): Provide new substitutions.
34064         * m4/math_h.m4 (gl_MATH_H): Require inline.
34065         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
34066         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
34067         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
34068         implement warnings.
34069
34070         unistd: warn on use of environ without module
34071         * modules/unistd (Depends-on): Add warn-on-use.
34072         (Makefile.am): Provide new substitutions.
34073         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
34074         * lib/unistd.in.h (environ): Wrap with a warning helper function.
34075
34076         stdio: warn on suspicious uses
34077         * modules/stdio (Depends-on): Add warn-on-use.
34078         (Makefile.am): Provide new substitutions.
34079         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
34080         fseeko.
34081         * lib/stdio.in.h (gets): Always warn on use.
34082         (fseek, ftell): Adjust when warnings are issued, and honor
34083         _GL_NO_LARGE_FILES as a way to silence the warning.
34084         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
34085         any warning about large file offsets.
34086         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
34087         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
34088         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
34089         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
34090         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
34091         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
34092         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
34093         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
34094
34095         warn-on-use: new module
34096         * modules/warn-on-use: New file.
34097         * build-aux/warn-on-use.h: Likewise.
34098         * m4/warn-on-use.m4: Likewise.
34099         * MODULES.html.sh (Support for building): Mention it.
34100
34101 2010-01-10  Bruno Haible  <bruno@clisp.org>
34102
34103         Tests for module 'unistr/u32-strdup'.
34104         * modules/unistr/u32-strdup-tests: New file.
34105         * tests/unistr/test-u32-strdup.c: New file.
34106
34107         Tests for module 'unistr/u16-strdup'.
34108         * modules/unistr/u16-strdup-tests: New file.
34109         * tests/unistr/test-u16-strdup.c: New file.
34110
34111         Tests for module 'unistr/u8-strdup'.
34112         * modules/unistr/u8-strdup-tests: New file.
34113         * tests/unistr/test-u8-strdup.c: New file.
34114         * tests/unistr/test-strdup.h: New file.
34115
34116         Tests for module 'unistr/u32-strncmp'.
34117         * modules/unistr/u32-strncmp-tests: New file.
34118         * tests/unistr/test-u32-strncmp.c: New file.
34119
34120         Tests for module 'unistr/u16-strncmp'.
34121         * modules/unistr/u16-strncmp-tests: New file.
34122         * tests/unistr/test-u16-strncmp.c: New file.
34123
34124         Tests for module 'unistr/u8-strncmp'.
34125         * modules/unistr/u8-strncmp-tests: New file.
34126         * tests/unistr/test-u8-strncmp.c: New file.
34127         * tests/unistr/test-strncmp.h: New file.
34128
34129         Tests for module 'unistr/u32-strcoll'.
34130         * modules/unistr/u32-strcoll-tests: New file.
34131         * tests/unistr/test-u32-strcoll.c: New file.
34132
34133         Tests for module 'unistr/u16-strcoll'.
34134         * modules/unistr/u16-strcoll-tests: New file.
34135         * tests/unistr/test-u16-strcoll.c: New file.
34136
34137         Tests for module 'unistr/u8-strcoll'.
34138         * modules/unistr/u8-strcoll-tests: New file.
34139         * tests/unistr/test-u8-strcoll.c: New file.
34140
34141         Tests for module 'unistr/u32-strcmp'.
34142         * modules/unistr/u32-strcmp-tests: New file.
34143         * tests/unistr/test-u32-strcmp.c: New file.
34144         * tests/unistr/test-u32-strcmp.h: New file.
34145
34146         Tests for module 'unistr/u16-strcmp'.
34147         * modules/unistr/u16-strcmp-tests: New file.
34148         * tests/unistr/test-u16-strcmp.c: New file.
34149         * tests/unistr/test-u16-strcmp.h: New file.
34150
34151         Tests for module 'unistr/u8-strcmp'.
34152         * modules/unistr/u8-strcmp-tests: New file.
34153         * tests/unistr/test-u8-strcmp.c: New file.
34154         * tests/unistr/test-u8-strcmp.h: New file.
34155         * tests/unistr/test-strcmp.h: New file.
34156
34157         Tests for module 'unistr/u32-strncat'.
34158         * modules/unistr/u32-strncat-tests: New file.
34159         * tests/unistr/test-u32-strncat.c: New file.
34160
34161         Tests for module 'unistr/u16-strncat'.
34162         * modules/unistr/u16-strncat-tests: New file.
34163         * tests/unistr/test-u16-strncat.c: New file.
34164
34165         Tests for module 'unistr/u8-strncat'.
34166         * modules/unistr/u8-strncat-tests: New file.
34167         * tests/unistr/test-u8-strncat.c: New file.
34168         * tests/unistr/test-strncat.h: New file.
34169
34170         Tests for module 'unistr/u32-strcat'.
34171         * modules/unistr/u32-strcat-tests: New file.
34172         * tests/unistr/test-u32-strcat.c: New file.
34173
34174         Tests for module 'unistr/u16-strcat'.
34175         * modules/unistr/u16-strcat-tests: New file.
34176         * tests/unistr/test-u16-strcat.c: New file.
34177
34178         Tests for module 'unistr/u8-strcat'.
34179         * modules/unistr/u8-strcat-tests: New file.
34180         * tests/unistr/test-u8-strcat.c: New file.
34181         * tests/unistr/test-strcat.h: New file.
34182
34183         Tests for module 'unistr/u32-stpncpy'.
34184         * modules/unistr/u32-stpncpy-tests: New file.
34185         * tests/unistr/test-u32-stpncpy.c: New file.
34186
34187         Tests for module 'unistr/u16-stpncpy'.
34188         * modules/unistr/u16-stpncpy-tests: New file.
34189         * tests/unistr/test-u16-stpncpy.c: New file.
34190
34191         Tests for module 'unistr/u8-stpncpy'.
34192         * modules/unistr/u8-stpncpy-tests: New file.
34193         * tests/unistr/test-u8-stpncpy.c: New file.
34194         * tests/unistr/test-stpncpy.h: New file.
34195
34196         Tests for module 'unistr/u32-strncpy'.
34197         * modules/unistr/u32-strncpy-tests: New file.
34198         * tests/unistr/test-u32-strncpy.c: New file.
34199
34200         Tests for module 'unistr/u16-strncpy'.
34201         * modules/unistr/u16-strncpy-tests: New file.
34202         * tests/unistr/test-u16-strncpy.c: New file.
34203
34204         Tests for module 'unistr/u8-strncpy'.
34205         * modules/unistr/u8-strncpy-tests: New file.
34206         * tests/unistr/test-u8-strncpy.c: New file.
34207         * tests/unistr/test-strncpy.h: New file.
34208
34209         Tests for module 'unistr/u32-stpcpy'.
34210         * modules/unistr/u32-stpcpy-tests: New file.
34211         * tests/unistr/test-u32-stpcpy.c: New file.
34212
34213         Tests for module 'unistr/u16-stpcpy'.
34214         * modules/unistr/u16-stpcpy-tests: New file.
34215         * tests/unistr/test-u16-stpcpy.c: New file.
34216
34217         Tests for module 'unistr/u8-stpcpy'.
34218         * modules/unistr/u8-stpcpy-tests: New file.
34219         * tests/unistr/test-u8-stpcpy.c: New file.
34220         * tests/unistr/test-stpcpy.h: New file.
34221
34222         Tests for module 'unistr/u32-strcpy'.
34223         * modules/unistr/u32-strcpy-tests: New file.
34224         * tests/unistr/test-u32-strcpy.c: New file.
34225
34226         Tests for module 'unistr/u16-strcpy'.
34227         * modules/unistr/u16-strcpy-tests: New file.
34228         * tests/unistr/test-u16-strcpy.c: New file.
34229
34230         Tests for module 'unistr/u8-strcpy'.
34231         * modules/unistr/u8-strcpy-tests: New file.
34232         * tests/unistr/test-u8-strcpy.c: New file.
34233         * tests/unistr/test-strcpy.h: New file.
34234
34235         Tests for module 'unistr/u32-strnlen'.
34236         * modules/unistr/u32-strnlen-tests: New file.
34237         * tests/unistr/test-u32-strnlen.c: New file.
34238
34239         Tests for module 'unistr/u16-strnlen'.
34240         * modules/unistr/u16-strnlen-tests: New file.
34241         * tests/unistr/test-u16-strnlen.c: New file.
34242
34243         Tests for module 'unistr/u8-strnlen'.
34244         * modules/unistr/u8-strnlen-tests: New file.
34245         * tests/unistr/test-u8-strnlen.c: New file.
34246         * tests/unistr/test-strnlen.h: New file.
34247
34248         Tests for module 'unistr/u32-strlen'.
34249         * modules/unistr/u32-strlen-tests: New file.
34250         * tests/unistr/test-u32-strlen.c: New file.
34251
34252         Tests for module 'unistr/u16-strlen'.
34253         * modules/unistr/u16-strlen-tests: New file.
34254         * tests/unistr/test-u16-strlen.c: New file.
34255
34256         Tests for module 'unistr/u8-strlen'.
34257         * modules/unistr/u8-strlen-tests: New file.
34258         * tests/unistr/test-u8-strlen.c: New file.
34259
34260         Tests for module 'unistr/u32-prev'.
34261         * modules/unistr/u32-prev-tests: New file.
34262         * tests/unistr/test-u32-prev.c: New file.
34263
34264         Tests for module 'unistr/u16-prev'.
34265         * modules/unistr/u16-prev-tests: New file.
34266         * tests/unistr/test-u16-prev.c: New file.
34267
34268         Tests for module 'unistr/u8-prev'.
34269         * modules/unistr/u8-prev-tests: New file.
34270         * tests/unistr/test-u8-prev.c: New file.
34271
34272         Tests for module 'unistr/u32-next'.
34273         * modules/unistr/u32-next-tests: New file.
34274         * tests/unistr/test-u32-next.c: New file.
34275
34276         Tests for module 'unistr/u16-next'.
34277         * modules/unistr/u16-next-tests: New file.
34278         * tests/unistr/test-u16-next.c: New file.
34279
34280         Tests for module 'unistr/u8-next'.
34281         * modules/unistr/u8-next-tests: New file.
34282         * tests/unistr/test-u8-next.c: New file.
34283
34284         Tests for module 'unistr/u32-strmbtouc'.
34285         * modules/unistr/u32-strmbtouc-tests: New file.
34286         * tests/unistr/test-u32-strmbtouc.c: New file.
34287
34288         Tests for module 'unistr/u16-strmbtouc'.
34289         * modules/unistr/u16-strmbtouc-tests: New file.
34290         * tests/unistr/test-u16-strmbtouc.c: New file.
34291
34292         Tests for module 'unistr/u8-strmbtouc'.
34293         * modules/unistr/u8-strmbtouc-tests: New file.
34294         * tests/unistr/test-u8-strmbtouc.c: New file.
34295
34296         Tests for module 'unistr/u32-strmblen'.
34297         * modules/unistr/u32-strmblen-tests: New file.
34298         * tests/unistr/test-u32-strmblen.c: New file.
34299
34300         Tests for module 'unistr/u16-strmblen'.
34301         * modules/unistr/u16-strmblen-tests: New file.
34302         * tests/unistr/test-u16-strmblen.c: New file.
34303
34304         Tests for module 'unistr/u8-strmblen'.
34305         * modules/unistr/u8-strmblen-tests: New file.
34306         * tests/unistr/test-u8-strmblen.c: New file.
34307
34308         Tests for module 'unistr/u32-cpy-alloc'.
34309         * modules/unistr/u32-cpy-alloc-tests: New file.
34310         * tests/unistr/test-u32-cpy-alloc.c: New file.
34311
34312         Tests for module 'unistr/u16-cpy-alloc'.
34313         * modules/unistr/u16-cpy-alloc-tests: New file.
34314         * tests/unistr/test-u16-cpy-alloc.c: New file.
34315
34316         Tests for module 'unistr/u8-cpy-alloc'.
34317         * modules/unistr/u8-cpy-alloc-tests: New file.
34318         * tests/unistr/test-u8-cpy-alloc.c: New file.
34319         * tests/unistr/test-cpy-alloc.h: New file.
34320
34321         Tests for module 'unistr/u32-mbsnlen'.
34322         * modules/unistr/u32-mbsnlen-tests: New file.
34323         * tests/unistr/test-u32-mbsnlen.c: New file.
34324
34325         Tests for module 'unistr/u16-mbsnlen'.
34326         * modules/unistr/u16-mbsnlen-tests: New file.
34327         * tests/unistr/test-u16-mbsnlen.c: New file.
34328
34329         Tests for module 'unistr/u8-mbsnlen'.
34330         * modules/unistr/u8-mbsnlen-tests: New file.
34331         * tests/unistr/test-u8-mbsnlen.c: New file.
34332
34333         Tests for module 'unistr/u32-chr'.
34334         * modules/unistr/u32-chr-tests: New file.
34335         * tests/unistr/test-u32-chr.c: New file.
34336
34337         Tests for module 'unistr/u16-chr'.
34338         * modules/unistr/u16-chr-tests: New file.
34339         * tests/unistr/test-u16-chr.c: New file.
34340
34341         Tests for module 'unistr/u8-chr'.
34342         * modules/unistr/u8-chr-tests: New file.
34343         * tests/unistr/test-u8-chr.c: New file.
34344         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
34345
34346         Tests for module 'unistr/u32-cmp2'.
34347         * modules/unistr/u32-cmp2-tests: New file.
34348         * tests/unistr/test-u32-cmp2.c: New file.
34349
34350         Tests for module 'unistr/u16-cmp2'.
34351         * modules/unistr/u16-cmp2-tests: New file.
34352         * tests/unistr/test-u16-cmp2.c: New file.
34353
34354         Tests for module 'unistr/u8-cmp2'.
34355         * modules/unistr/u8-cmp2-tests: New file.
34356         * tests/unistr/test-u8-cmp2.c: New file.
34357         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
34358
34359         Tests for module 'unistr/u32-cmp'.
34360         * modules/unistr/u32-cmp-tests: New file.
34361         * tests/unistr/test-u32-cmp.c: New file.
34362
34363         Tests for module 'unistr/u16-cmp'.
34364         * modules/unistr/u16-cmp-tests: New file.
34365         * tests/unistr/test-u16-cmp.c: New file.
34366
34367         Tests for module 'unistr/u8-cmp'.
34368         * modules/unistr/u8-cmp-tests: New file.
34369         * tests/unistr/test-u8-cmp.c: New file.
34370         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
34371
34372         Tests for module 'unistr/u32-set'.
34373         * modules/unistr/u32-set-tests: New file.
34374         * tests/unistr/test-u32-set.c: New file.
34375
34376         Tests for module 'unistr/u16-set'.
34377         * modules/unistr/u16-set-tests: New file.
34378         * tests/unistr/test-u16-set.c: New file.
34379
34380         Tests for module 'unistr/u8-set'.
34381         * modules/unistr/u8-set-tests: New file.
34382         * tests/unistr/test-u8-set.c: New file.
34383         * tests/unistr/test-set.h: New file.
34384
34385         Tests for module 'unistr/u32-move'.
34386         * modules/unistr/u32-move-tests: New file.
34387         * tests/unistr/test-u32-move.c: New file.
34388
34389         Tests for module 'unistr/u16-move'.
34390         * modules/unistr/u16-move-tests: New file.
34391         * tests/unistr/test-u16-move.c: New file.
34392
34393         Tests for module 'unistr/u8-move'.
34394         * modules/unistr/u8-move-tests: New file.
34395         * tests/unistr/test-u8-move.c: New file.
34396         * tests/unistr/test-move.h: New file.
34397
34398         Tests for module 'unistr/u32-cpy'.
34399         * modules/unistr/u32-cpy-tests: New file.
34400         * tests/unistr/test-u32-cpy.c: New file.
34401
34402         Tests for module 'unistr/u16-cpy'.
34403         * modules/unistr/u16-cpy-tests: New file.
34404         * tests/unistr/test-u16-cpy.c: New file.
34405
34406         Tests for module 'unistr/u8-cpy'.
34407         * modules/unistr/u8-cpy-tests: New file.
34408         * tests/unistr/test-u8-cpy.c: New file.
34409         * tests/unistr/test-cpy.h: New file.
34410
34411 2010-01-09  Bruno Haible  <bruno@clisp.org>
34412
34413         Tests for module 'unistr/u32-uctomb'.
34414         * modules/unistr/u32-uctomb-tests: New file.
34415         * tests/unistr/test-u32-uctomb.c: New file.
34416
34417         Tests for module 'unistr/u16-uctomb'.
34418         * modules/unistr/u16-uctomb-tests: New file.
34419         * tests/unistr/test-u16-uctomb.c: New file.
34420
34421         Tests for module 'unistr/u8-uctomb'.
34422         * modules/unistr/u8-uctomb-tests: New file.
34423         * tests/unistr/test-u8-uctomb.c: New file.
34424
34425         Tests for module 'unistr/u32-mbtoucr'.
34426         * modules/unistr/u32-mbtoucr-tests: New file.
34427         * tests/unistr/test-u32-mbtoucr.c: New file.
34428
34429         Tests for module 'unistr/u16-mbtoucr'.
34430         * modules/unistr/u16-mbtoucr-tests: New file.
34431         * tests/unistr/test-u16-mbtoucr.c: New file.
34432
34433         Tests for module 'unistr/u8-mbtoucr'.
34434         * modules/unistr/u8-mbtoucr-tests: New file.
34435         * tests/unistr/test-u8-mbtoucr.c: New file.
34436
34437         Tests for module 'unistr/u32-mbtouc'.
34438         * modules/unistr/u32-mbtouc-tests: New file.
34439         * tests/unistr/test-u32-mbtouc.c: New file.
34440
34441         Tests for module 'unistr/u16-mbtouc'.
34442         * modules/unistr/u16-mbtouc-tests: New file.
34443         * tests/unistr/test-u16-mbtouc.c: New file.
34444
34445         Tests for module 'unistr/u8-mbtouc'.
34446         * modules/unistr/u8-mbtouc-tests: New file.
34447         * tests/unistr/test-u8-mbtouc.c: New file.
34448
34449         Tests for module 'unistr/u32-mbtouc-unsafe'.
34450         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
34451         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
34452         * tests/unistr/test-u32-mbtouc.h: New file.
34453
34454         Tests for module 'unistr/u16-mbtouc-unsafe'.
34455         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
34456         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
34457         * tests/unistr/test-u16-mbtouc.h: New file.
34458
34459         Tests for module 'unistr/u8-mbtouc-unsafe'.
34460         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
34461         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
34462         * tests/unistr/test-u8-mbtouc.h: New file.
34463
34464         Tests for module 'unistr/u32-mblen'.
34465         * modules/unistr/u32-mblen-tests: New file.
34466         * tests/unistr/test-u32-mblen.c: New file.
34467
34468         Tests for module 'unistr/u16-mblen'.
34469         * modules/unistr/u16-mblen-tests: New file.
34470         * tests/unistr/test-u16-mblen.c: New file.
34471
34472         Tests for module 'unistr/u8-mblen'.
34473         * modules/unistr/u8-mblen-tests: New file.
34474         * tests/unistr/test-u8-mblen.c: New file.
34475
34476         Tests for module 'unistr/u32-to-u16'.
34477         * modules/unistr/u32-to-u16-tests: New file.
34478         * tests/unistr/test-u32-to-u16.c: New file.
34479
34480         Tests for module 'unistr/u32-to-u8'.
34481         * modules/unistr/u32-to-u8-tests: New file.
34482         * tests/unistr/test-u32-to-u8.c: New file.
34483
34484         Tests for module 'unistr/u16-to-u32'.
34485         * modules/unistr/u16-to-u32-tests: New file.
34486         * tests/unistr/test-u16-to-u32.c: New file.
34487
34488         Tests for module 'unistr/u16-to-u8'.
34489         * modules/unistr/u16-to-u8-tests: New file.
34490         * tests/unistr/test-u16-to-u8.c: New file.
34491
34492         Tests for module 'unistr/u8-to-u32'.
34493         * modules/unistr/u8-to-u32-tests: New file.
34494         * tests/unistr/test-u8-to-u32.c: New file.
34495
34496         Tests for module 'unistr/u8-to-u16'.
34497         * modules/unistr/u8-to-u16-tests: New file.
34498         * tests/unistr/test-u8-to-u16.c: New file.
34499
34500         Tests for module 'unistr/u32-check'.
34501         * modules/unistr/u32-check-tests: New file.
34502         * tests/unistr/test-u32-check.c: New file.
34503
34504         Tests for module 'unistr/u16-check'.
34505         * modules/unistr/u16-check-tests: New file.
34506         * tests/unistr/test-u16-check.c: New file.
34507
34508         Tests for module 'unistr/u8-check'.
34509         * modules/unistr/u8-check-tests: New file.
34510         * tests/unistr/test-u8-check.c: New file.
34511
34512         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
34513         (category_equals): New function.
34514         (main): Add more tests.
34515         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
34516
34517         * tests/unictype/test-bidi_byname.c (main): Add more tests.
34518
34519 2010-01-10  Bruno Haible  <bruno@clisp.org>
34520
34521         unistr/u*-strcoll: Try harder to distinguish different strings.
34522         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
34523         compare s1 and s2 to see if they are different.
34524
34525 2010-01-10  Bruno Haible  <bruno@clisp.org>
34526
34527         unistr/u*-stpncpy: Fix the return value.
34528         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
34529         description of the return value consistent with stpncpy in glibc.
34530         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
34531         written non-NUL unit.
34532
34533 2010-01-10  Bruno Haible  <bruno@clisp.org>
34534
34535         unistr/u*-next: Add missing dependencies.
34536         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
34537         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
34538         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
34539
34540 2010-01-10  Bruno Haible  <bruno@clisp.org>
34541
34542         unistr/u8-mbsnlen: Fix return value for incomplete character.
34543         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
34544         u8_mblen.
34545         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
34546         Remove unistr/u8-mblen.
34547         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
34548         u16_mblen.
34549         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
34550         Remove unistr/u16-mblen.
34551
34552 2010-01-10  Bruno Haible  <bruno@clisp.org>
34553
34554         wchar: Fix compilation error when <wchar.h> is used from coreutils.
34555         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
34556         Reported by Brian Gough <bjg@gnu.org> and
34557         Chris Clayton <chris2553@googlemail.com> via
34558         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
34559
34560 2010-01-09  Bruno Haible  <bruno@clisp.org>
34561
34562         unistr/u16-to-u32: Reject invalid input.
34563         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
34564         u16_mbtouc.
34565         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
34566         Remove unistr/u16-mbtouc.
34567
34568         unistr/u16-to-u8: Reject invalid input.
34569         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
34570         u16_mbtouc.
34571         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
34572         Remove unistr/u16-mbtouc.
34573
34574         unistr/u8-to-u32: Reject invalid input.
34575         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
34576         u8_mbtouc.
34577         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
34578         Remove unistr/u8-mbtouc.
34579
34580         unistr/u8-to-u16: Reject invalid input.
34581         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
34582         u8_mbtouc.
34583         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
34584         Remove unistr/u8-mbtouc.
34585
34586 2010-01-09  Bruno Haible  <bruno@clisp.org>
34587
34588         Tests for module 'getlogin'.
34589         * modules/getlogin-tests: New file.
34590         * tests/test-getlogin.c: New file.
34591
34592         New module 'getlogin'.
34593         * lib/unistd.in.h (getlogin): New declaration.
34594         * lib/getlogin.c: New file.
34595         * m4/getlogin.m4: New file.
34596         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
34597         HAVE_GETLOGIN.
34598         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
34599         HAVE_GETLOGIN.
34600         * modules/getlogin: New file.
34601         * doc/posix-functions/getlogin.texi: Mention the new module.
34602         Reported by John W. Eaton <jwe@gnu.org>.
34603
34604 2010-01-09  Bruno Haible  <bruno@clisp.org>
34605
34606         getlogin_r: Support for native Windows.
34607         * lib/getlogin_r.c: Include <windows.h>
34608         (getlogin_r): Implement for native Windows.
34609         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
34610         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
34611         via John W. Eaton <jwe@gnu.org>.
34612
34613 2010-01-09  Bruno Haible  <bruno@clisp.org>
34614
34615         getlogin_r: Small fixes.
34616         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
34617         succeeds.
34618         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
34619         before testing whether getlogin_r is declared. No need to set
34620         HAVE_DECL_GETLOGIN_R to 1.
34621         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
34622
34623 2010-01-09  Bruno Haible  <bruno@clisp.org>
34624
34625         * lib/unistd.in.h (getlogin_r): Add comment.
34626
34627 2010-01-09  Bruno Haible  <bruno@clisp.org>
34628
34629         Tests for module 'getlogin_r'.
34630         * modules/getlogin_r-tests: New file.
34631         * tests/test-getlogin_r.c: New file.
34632
34633 2010-01-09  Jim Meyering  <meyering@redhat.com>
34634
34635         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
34636         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
34637         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
34638
34639 2010-01-08  Simon Josefsson  <simon@josefsson.org>
34640
34641         * lib/dup2.c (rpl_dup2): Improve comment.
34642
34643 2010-01-08  Eric Blake  <ebb9@byu.net>
34644
34645         maint.mk: allow packages to add makefile @@ exceptions
34646         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
34647         (sc_makefile_check): Rename...
34648         (sc_makefile_at_at_check): ...to this, and use hook.
34649
34650         dup2: work around mingw bug
34651         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
34652         Reported by Simon Josefsson.
34653
34654 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
34655
34656         glob: Fix C++ compilation.
34657         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
34658         C++.
34659
34660 2010-01-07  Bruno Haible  <bruno@clisp.org>
34661
34662         Fix indentation of wctype.in.h, broken since 2007-01-06.
34663         * lib/wctype.in.h: Fix indentation of preprocessor directives.
34664
34665 2010-01-07  Bruno Haible  <bruno@clisp.org>
34666
34667         mbslen: Avoid collision with system function.
34668         * lib/string.in.h [MirBSD]: Include <wchar.h>.
34669         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
34670         * m4/mbslen.m4: New file.
34671         * modules/mbslen (Files): Add it.
34672         (configure.ac): Invoke gl_MBSLEN.
34673         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
34674         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
34675         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
34676         via Ian Beckwith <ianb@erislabs.net>.
34677
34678 2010-01-07  Bruno Haible  <bruno@clisp.org>
34679
34680         dirent: Document the last fix.
34681         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
34682
34683 2010-01-07  Bruno Haible  <bruno@clisp.org>
34684
34685         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
34686         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
34687         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
34688         va_list are defined.
34689         * doc/posix-headers/stdio.texi: Document the bug of missing types.
34690         Reported by Eric Blake.
34691
34692 2010-01-07  Bruno Haible  <bruno@clisp.org>
34693
34694         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
34695         * modules/xlist (Depends-on): Add 'list',
34696         * modules/xoset (Depends-on): Add 'oset'.
34697         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34698
34699 2010-01-07  Bruno Haible  <bruno@clisp.org>
34700
34701         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
34702         * doc/posix-functions/strncasecmp.texi: Likewise.
34703
34704 2010-01-07  Bruno Haible  <bruno@clisp.org>
34705
34706         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
34707
34708 2010-01-07  John W. Eaton  <jwe@octave.org>
34709
34710         wctype: allow C++ use
34711         * lib/wctype.in.h: Add extern "C" block for C++.
34712
34713 2010-01-06  Eric Blake  <ebb9@byu.net>
34714
34715         maint.mk: detect incorrect GFDL usage
34716         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
34717
34718 2010-01-06  Jim Meyering  <meyering@redhat.com>
34719         and Eric Blake  <ebb9@byu.net>
34720
34721         maint.mk: ignore multi-line copyright in NEWS
34722         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
34723
34724 2010-01-06  Eric Blake  <ebb9@byu.net>
34725
34726         select: add missing dependency
34727         * modules/select-tests (Depends-on): Move sockets dependency...
34728         * modules/select (Depends-on): ...here.
34729         Reported by Ian Beckwith.
34730
34731         doc: regenerate INSTALL
34732         * doc/INSTALL: Reflect recent autoconf update.
34733         * doc/INSTALL.ISO: Likewise.
34734         * doc/INSTALL.UTF-8: Likewise.
34735
34736         pread: fix compilation on glibc
34737         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
34738         Reported by Ralf Wildenhues.
34739
34740         dirent: fix test failure
34741         * lib/dirent.in.h (includes): Guarantee ino_t.
34742         Reported by Ralf Wildenhues.
34743
34744 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
34745
34746         linkat, renameat: avoid bad free
34747         * lib/at-func2.c (at_func2): Fix typo.
34748         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
34749
34750 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34751
34752         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
34753         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
34754         to avoid failure of symlink test later.
34755
34756 2010-01-06  Eric Blake  <ebb9@byu.net>
34757
34758         stdio, unistd: guarantee ssize_t
34759         * lib/unistd.in.h (includes): Ensure that types required by POSIX
34760         2008 are exposed when needed.
34761         * lib/stdio.in.h (includes): Likewise.
34762         Reported by Ralf Wildenhues.
34763
34764 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
34765
34766         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
34767         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
34768         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
34769
34770 2010-01-06  Jim Meyering  <meyering@redhat.com>
34771
34772         readtokens: this module *does* require xalloc.h
34773         It uses only functions that were omitted by the old syntax-check rule.
34774         * lib/readtokens.c: Include "xalloc.h" once again.
34775         * modules/readtokens (Depends-on): Add xalloc.
34776         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
34777
34778 2010-01-05  Eric Blake  <ebb9@byu.net>
34779
34780         maint: support 'make announcement' from a VPATH build
34781         * top/maint.mk (announcement): Look for correct NEWS file.
34782
34783 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
34784
34785         utimens (fdutimens): ignore a negative FD, per contract
34786         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
34787         when we have a valid file descriptor.  Otherwise, using a brand
34788         new glibc (with just-patched futimens that now fails with EBADF)
34789         would cause this function to fail with ENOSYS.
34790         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
34791         See also http://bugzilla.redhat.com/552320.
34792
34793 2010-01-05  Eric Blake  <ebb9@byu.net>
34794
34795         strcase: document what it provides
34796         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
34797         gnulib module.
34798         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
34799         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
34800
34801 2010-01-05  Jim Meyering  <meyering@redhat.com>
34802
34803         maint: remove useless inclusions of "xalloc.h"
34804         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
34805         * lib/readtokens.c: Likewise.
34806         * lib/same.c: Likewise.
34807         * modules/getloadavg (Depends-on): Remove xalloc.
34808         * modules/readtokens: Likewise.
34809         * modules/same: Likewise.
34810
34811         maint.mk: include 4 more function names in alloca.h-checking regexp
34812         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
34813         regexp.  Before, we would give a false-positive (saying alloca.h
34814         is included unnecessarily) when the only uses involved omitted symbols.
34815
34816         xalloc.h: use consistent formatting
34817         * lib/xalloc.h: Move declarations to start in the first column.
34818
34819 2010-01-05  Eric Blake  <ebb9@byu.net>
34820
34821         mkdir: avoid xalloc
34822         * lib/mkdir.c (includes): Drop unused header.
34823         Reported by John W. Eaton.
34824
34825 2010-01-04  Jim Meyering  <meyering@redhat.com>
34826
34827         nl_langinfo: avoid configure-time syntax error
34828         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
34829         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
34830         the empty string.  Don't let that provoke a shell syntax error.
34831
34832         regcomp, regexec, fnmatch: avoid array bounds read error
34833         * lib/regcomp.c (build_equiv_class): From glibc:
34834         Use only the low 24 bits of a findidx return value as an index
34835         into the weights array.  Patch by Ulrich Drepper:
34836         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
34837         * lib/regexec.c (check_node_accept_bytes): Likewise.
34838         * lib/fnmatch_loop.c (FCT): Likewise.
34839
34840         regcomp: skip collseq lookup when there are no rules
34841         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
34842         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
34843
34844         regcomp: recognize ill-formed { } expressions
34845         * lib/regcomp.c (parse_dup_op): From glibc:
34846         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
34847
34848         regcomp: fix typo in comment
34849         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
34850         s/satisfy/satisfies/.
34851
34852         regcomp: sync from glibc: remove dead store
34853         * lib/regcomp.c (duplicate_node_closure): Remove useless
34854         search_duplicated_node call and dead store.
34855
34856         regcomp: sync from glibc; always use nl_langinfo
34857         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
34858         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
34859         * modules/regex (Depends-on): Add nl_langinfo.
34860
34861 2010-01-04  Eric Blake  <ebb9@byu.net>
34862
34863         fdopendir: fix configure test
34864         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
34865
34866 2010-01-01  Bruno Haible  <bruno@clisp.org>
34867
34868         wchar: Remove unused configure check.
34869         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
34870
34871 2010-01-01  Eric Blake  <ebb9@byu.net>
34872
34873         headers: make check of system header explicit
34874         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
34875         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
34876         ourselves.
34877         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34878         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34879         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34880         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
34881         internals.
34882         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
34883         missing.
34884         Suggested by Bruno Haible.
34885
34886 2010-01-01  Jim Meyering  <meyering@redhat.com>
34887
34888         ChangeLog: tweak to eliminate unnecessary copyright line
34889         * ChangeLog: Remove a copyright line that was mistakenly updated
34890         by today's update-copyright run.  Reported by Eric Blake.
34891
34892         test-update-copyright: don't let envvar setting cause test failure
34893         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34894
34895 2010-01-01  Bruno Haible  <bruno@clisp.org>
34896
34897         localename: Avoid gcc warning.
34898         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
34899         function if it is not used.
34900
34901 2010-01-01  Jim Meyering  <meyering@redhat.com>
34902
34903         update nearly all FSF copyright year lists to include 2010
34904         Use the same procedure as for 2009, outlined in
34905         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
34906
34907         version-etc: set COPYRIGHT_YEAR to 2010
34908         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
34909
34910 2009-12-31  Eric Blake  <ebb9@byu.net>
34911
34912         doc: correct availability of cygwin 1.5.x getopt
34913         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
34914         variables.
34915         * doc/posix-functions/opterr.texi (opterr): Likewise.
34916         * doc/posix-functions/optind.texi (optind): Likewise.
34917         * doc/posix-functions/optopt.texi (optopt): Likewise.
34918         * doc/posix-functions/tzname.texi (tzname): Likewise.
34919
34920         openat: update maintainer
34921         * modules/openat (Maintainer): Add myself.
34922
34923         utimens: avoid shadowing warning
34924         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
34925         buffers into one, to avoid shadowing, as well as avoiding a
34926         redundant stat.
34927         Reported by Jim Meyering.
34928
34929         test-dup2: avoid compiler warning
34930         * tests/test-dup2.c (is_inheritable): Only define if used.
34931
34932 2010-01-01  Bruno Haible  <bruno@clisp.org>
34933
34934         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
34935         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
34936         defined, use wctomb instead of wcrtomb.
34937
34938 2010-01-01  Bruno Haible  <bruno@clisp.org>
34939
34940         iconv: Reject native Solaris iconv.
34941         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
34942         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
34943
34944 2009-12-31  Bruno Haible  <bruno@clisp.org>
34945
34946         * tests/test-signal.c (main): Remove test of 'SIG'.
34947
34948 2009-12-31  Bruno Haible  <bruno@clisp.org>
34949
34950         spawn: Fix incomplete fix.
34951         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34952         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34953         warnings for GNULIB_POSIXCHECK again.
34954         Reported by Eric Blake.
34955
34956 2009-12-31  Bruno Haible  <bruno@clisp.org>
34957
34958         Avoid namespace pollution on glibc systems.
34959         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
34960         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
34961         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
34962         glibc systems.
34963
34964 2009-12-31  Bruno Haible  <bruno@clisp.org>
34965
34966         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
34967         (gl_REPLACE_WCHAR_H): Turn into a no-op.
34968         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
34969         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
34970         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
34971         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
34972         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
34973
34974 2009-12-31  Bruno Haible  <bruno@clisp.org>
34975
34976         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34977         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
34978         afterwards.
34979
34980 2009-12-31  Bruno Haible  <bruno@clisp.org>
34981
34982         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
34983         SYS_UTSNAME_H.
34984
34985 2009-12-31  Bruno Haible  <bruno@clisp.org>
34986
34987         spawn: Fix misapplied patch.
34988         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34989         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34990         warnings for GNULIB_POSIXCHECK.
34991
34992 2009-12-31  Bruno Haible  <bruno@clisp.org>
34993
34994         times: Update after sys_times changed.
34995         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
34996         * modules/times (Files): Add it.
34997         (configure.ac): Invoke gl_FUNC_TIMES.
34998
34999 2009-12-31  Bruno Haible  <bruno@clisp.org>
35000
35001         Use AC_C_INLINE where necessary.
35002         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
35003         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
35004         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
35005         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
35006         * m4/mbfile.m4 (gl_MBFILE): Likewise.
35007         * m4/mbiter.m4 (gl_MBITER): Likewise.
35008         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
35009         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35010         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
35011         * modules/u64 (configure.ac): Likewise.
35012
35013 2009-12-31  Bruno Haible  <bruno@clisp.org>
35014
35015         Use AC_C_INLINE instead of module 'inline' where possible.
35016         * modules/inline (Description): Clarify purpose.
35017         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
35018         * modules/count-one-bits (Depends-on): Remove inline.
35019         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
35020         * modules/openat (Depends-on): Remove inline.
35021         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
35022         instead of depending on module 'inline'.
35023         * modules/filevercmp (Depends-on, configure.ac): Likewise.
35024         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
35025         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
35026         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
35027         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
35028         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
35029         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
35030         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
35031         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
35032         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
35033         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
35034         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
35035         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
35036         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
35037         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
35038         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
35039         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
35040         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
35041         Likewise.
35042         * modules/unictype/property-ascii-hex-digit (Depends-on,
35043         configure.ac): Likewise.
35044         * modules/unictype/property-bidi-arabic-digit (Depends-on,
35045         configure.ac): Likewise.
35046         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
35047         configure.ac): Likewise.
35048         * modules/unictype/property-bidi-block-separator (Depends-on,
35049         configure.ac): Likewise.
35050         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
35051         configure.ac): Likewise.
35052         * modules/unictype/property-bidi-common-separator (Depends-on,
35053         configure.ac): Likewise.
35054         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
35055         Likewise.
35056         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
35057         configure.ac): Likewise.
35058         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
35059         configure.ac): Likewise.
35060         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
35061         configure.ac): Likewise.
35062         * modules/unictype/property-bidi-european-digit (Depends-on,
35063         configure.ac): Likewise.
35064         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
35065         configure.ac): Likewise.
35066         * modules/unictype/property-bidi-left-to-right (Depends-on,
35067         configure.ac): Likewise.
35068         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
35069         configure.ac): Likewise.
35070         * modules/unictype/property-bidi-other-neutral (Depends-on,
35071         configure.ac): Likewise.
35072         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
35073         Likewise.
35074         * modules/unictype/property-bidi-segment-separator (Depends-on,
35075         configure.ac): Likewise.
35076         * modules/unictype/property-bidi-whitespace (Depends-on,
35077         configure.ac): Likewise.
35078         * modules/unictype/property-combining (Depends-on, configure.ac):
35079         Likewise.
35080         * modules/unictype/property-composite (Depends-on, configure.ac):
35081         Likewise.
35082         * modules/unictype/property-currency-symbol (Depends-on,
35083         configure.ac): Likewise.
35084         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
35085         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
35086         Likewise.
35087         * modules/unictype/property-default-ignorable-code-point (Depends-on,
35088         configure.ac): Likewise.
35089         * modules/unictype/property-deprecated (Depends-on, configure.ac):
35090         Likewise.
35091         * modules/unictype/property-diacritic (Depends-on, configure.ac):
35092         Likewise.
35093         * modules/unictype/property-extender (Depends-on, configure.ac):
35094         Likewise.
35095         * modules/unictype/property-format-control (Depends-on, configure.ac):
35096         Likewise.
35097         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
35098         Likewise.
35099         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
35100         Likewise.
35101         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
35102         Likewise.
35103         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
35104         Likewise.
35105         * modules/unictype/property-hyphen (Depends-on, configure.ac):
35106         Likewise.
35107         * modules/unictype/property-id-continue (Depends-on, configure.ac):
35108         Likewise.
35109         * modules/unictype/property-id-start (Depends-on, configure.ac):
35110         Likewise.
35111         * modules/unictype/property-ideographic (Depends-on, configure.ac):
35112         Likewise.
35113         * modules/unictype/property-ids-binary-operator (Depends-on,
35114         configure.ac): Likewise.
35115         * modules/unictype/property-ids-trinary-operator (Depends-on,
35116         configure.ac): Likewise.
35117         * modules/unictype/property-ignorable-control (Depends-on,
35118         configure.ac): Likewise.
35119         * modules/unictype/property-iso-control (Depends-on, configure.ac):
35120         Likewise.
35121         * modules/unictype/property-join-control (Depends-on, configure.ac):
35122         Likewise.
35123         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
35124         Likewise.
35125         * modules/unictype/property-line-separator (Depends-on, configure.ac):
35126         Likewise.
35127         * modules/unictype/property-logical-order-exception (Depends-on,
35128         configure.ac): Likewise.
35129         * modules/unictype/property-lowercase (Depends-on, configure.ac):
35130         Likewise.
35131         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
35132         * modules/unictype/property-non-break (Depends-on, configure.ac):
35133         Likewise.
35134         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
35135         Likewise.
35136         * modules/unictype/property-numeric (Depends-on, configure.ac):
35137         Likewise.
35138         * modules/unictype/property-other-alphabetic (Depends-on,
35139         configure.ac): Likewise.
35140         * modules/unictype/property-other-default-ignorable-code-point
35141         (Depends-on, configure.ac): Likewise.
35142         * modules/unictype/property-other-grapheme-extend (Depends-on,
35143         configure.ac): Likewise.
35144         * modules/unictype/property-other-id-continue (Depends-on,
35145         configure.ac): Likewise.
35146         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
35147         Likewise.
35148         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
35149         Likewise.
35150         * modules/unictype/property-other-math (Depends-on, configure.ac):
35151         Likewise.
35152         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
35153         Likewise.
35154         * modules/unictype/property-paired-punctuation (Depends-on,
35155         configure.ac): Likewise.
35156         * modules/unictype/property-paragraph-separator (Depends-on,
35157         configure.ac): Likewise.
35158         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
35159         Likewise.
35160         * modules/unictype/property-pattern-white-space (Depends-on,
35161         configure.ac): Likewise.
35162         * modules/unictype/property-private-use (Depends-on, configure.ac):
35163         Likewise.
35164         * modules/unictype/property-punctuation (Depends-on, configure.ac):
35165         Likewise.
35166         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
35167         Likewise.
35168         * modules/unictype/property-radical (Depends-on, configure.ac):
35169         Likewise.
35170         * modules/unictype/property-sentence-terminal (Depends-on,
35171         configure.ac): Likewise.
35172         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
35173         Likewise.
35174         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
35175         * modules/unictype/property-terminal-punctuation (Depends-on,
35176         configure.ac): Likewise.
35177         * modules/unictype/property-titlecase (Depends-on, configure.ac):
35178         Likewise.
35179         * modules/unictype/property-unassigned-code-value (Depends-on,
35180         configure.ac): Likewise.
35181         * modules/unictype/property-unified-ideograph (Depends-on,
35182         configure.ac): Likewise.
35183         * modules/unictype/property-uppercase (Depends-on, configure.ac):
35184         Likewise.
35185         * modules/unictype/property-variation-selector (Depends-on,
35186         configure.ac): Likewise.
35187         * modules/unictype/property-white-space (Depends-on, configure.ac):
35188         Likewise.
35189         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
35190         Likewise.
35191         * modules/unictype/property-xid-start (Depends-on, configure.ac):
35192         Likewise.
35193         * modules/unictype/property-zero-width (Depends-on, configure.ac):
35194         Likewise.
35195         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
35196         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
35197         Likewise.
35198
35199 2009-12-31  Bruno Haible  <bruno@clisp.org>
35200
35201         Remove unnecessary AC_C_INLINE invocation.
35202         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
35203         since 2009-08-21.
35204
35205 2009-12-31  Jim Meyering  <meyering@redhat.com>
35206
35207         maint.mk: don't require explicit gpg_key_ID in cfg.mk
35208         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
35209         With this change, we can all remove the gpg_key_ID = ... definition
35210         from our respective cfg.mk files.
35211
35212         maint.mk: create announcement template in ~/, not in /tmp
35213         * top/maint.mk (emit_upload_commands): Adjust.
35214         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
35215         Remove temporary file, .ci-msg.
35216
35217 2009-12-31  Eric Blake  <ebb9@byu.net>
35218
35219         link-warning: always build headers with link warnings
35220         * modules/arpa_inet (Makefile.am): Always build replacement
35221         header.
35222         * modules/ctype (Makefile.am): Likewise.
35223         * modules/dirent (Makefile.am): Likewise.
35224         * modules/inttypes (Makefile.am): Likewise.
35225         * modules/langinfo (Makefile.am): Likewise.
35226         * modules/locale (Makefile.am): Likewise.
35227         * modules/spawn (Makefile.am): Likewise.
35228         * modules/sys_file (Makefile.am): Likewise.
35229         * modules/sys_ioctl (Makefile.am): Likewise.
35230         * modules/sys_select (Makefile.am): Likewise.
35231         * modules/sys_socket (Makefile.am): Likewise.
35232         * modules/sys_times (Makefile.am): Likewise.
35233         * modules/sys_utsname (Makefile.am): Likewise.
35234         * modules/sys_wait (Makefile.am): Likewise.
35235         * modules/wchar (Makefile.am): Likewise.
35236         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
35237         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
35238         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
35239         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
35240         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
35241         Likewise.
35242         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35243         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35244         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
35245         Likewise.
35246         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
35247         Likewise.
35248         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
35249         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
35250         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
35251         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35252         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35253         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35254         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35255         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
35256         (gl_WCHAR_H_DEFAULTS): Likewise.
35257
35258 2009-12-31  Eric Blake  <ebb9@byu.net>
35259
35260         signal, spawn: use link warnings
35261         * lib/signal.in.h (sigset_t): Make unconditional.
35262         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
35263         (sigpending, sigprocmask, sigaction): Add link warnings.
35264         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
35265         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
35266         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
35267         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
35268         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
35269         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
35270         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
35271         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
35272         (posix_spawn_file_actions_destroy)
35273         (posix_spawn_file_actions_addopen)
35274         (posix_spawn_file_actions_addclose)
35275         (posix_spawn_file_actions_adddup2): Likewise.
35276         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
35277         * tests/test-signal.c (main): Enhance test.
35278
35279         spawn: improve wrapper support
35280         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
35281         (gl_SPAWN_H_DEFAULTS): New defaults.
35282         * modules/spawn (Makefile.am): Substitute them.
35283         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
35284         Only declare if missing or broken.
35285
35286         sys_times, sys_utsname: use include_next
35287         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
35288         header.
35289         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
35290         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35291         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35292         * modules/sys_times (Depends-on): Add include_next.
35293         (Makefile.am): Substitute additional values.
35294         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
35295         * lib/sys_times.in.h (includes): Include native header, if
35296         available.
35297         * lib/sys_utsname.in.h (includes): Likewise.
35298         * tests/test-sys_times.c (main): Enhance test.
35299
35300         fdutimensat: revert prior patch
35301         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
35302         utimens.h.
35303         Reported by Bruno Haible.
35304
35305 2009-12-30  Eric Blake  <ebb9@byu.net>
35306
35307         sys_wait: drop link-warning dependency
35308         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
35309         link-warning efforts.
35310         * lib/sys_wait.in.h: Likewise.
35311
35312         fdutimensat: remove bogus dependency
35313         * modules/fdutimensat (Depends-on): Drop inline.
35314
35315         unistd: fix typo
35316         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
35317
35318 2009-12-30  Bruno Haible  <bruno@clisp.org>
35319
35320         Fix compilation error with Solaris cc.
35321         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
35322         * lib/unicase/u16-is-invariant.c: Likewise.
35323         * lib/unicase/u32-is-invariant.c: Likewise.
35324         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35325
35326 2009-12-30  Bruno Haible  <bruno@clisp.org>
35327
35328         Fix test crash.
35329         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
35330         locales.
35331         Reported by Simon Josefsson <simon@josefsson.org>.
35332
35333 2009-12-30  Bruno Haible  <bruno@clisp.org>
35334
35335         Fix compilation error on most platforms.
35336         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
35337         Reported by Simon Josefsson <simon@josefsson.org>
35338         and Nelson H. F. Beebe <beebe@math.utah.edu>.
35339
35340 2009-12-30  Eric Blake  <ebb9@byu.net>
35341
35342         futimens, utimensat: work around ntfs-3g bug
35343         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
35344         a ctime bug is present, and expand workaround to cover ntfs-3g.
35345         * lib/utimens.c (fdutimens, lutimens): Likewise.
35346         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
35347         (validate_timespec): Adjust return value.
35348         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
35349         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35350         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
35351
35352 2009-12-29  Eric Blake  <ebb9@byu.net>
35353
35354         link-warning: make usage consistent
35355         * modules/ctype (Depends-on): Add link-warning.
35356         (Makefile.am): Update rules accordingly.
35357         * modules/langinfo (Depends-on, Makefile.am): Likewise.
35358         * modules/locale (Depends-on, Makefile.am): Likewise.
35359         * modules/sys_file (Makefile.am): Likewise.
35360         * modules/getopt-posix (Makefile.am): Delete unused link warning
35361         efforts.
35362         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
35363         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
35364         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
35365         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
35366
35367         stdio: remove unused variables
35368         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
35369         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
35370         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
35371
35372         tests: test more substitute headers
35373         * modules/ctype-tests: New file.
35374         * modules/dirent-tests: Likewise.
35375         * modules/spawn-tests: Likewise.
35376         * modules/sys_file-tests: Likewise.
35377         * modules/sys_ioctl-tests: Likewise.
35378         * modules/sys_wait-tests: Likewise.
35379         * tests/test-ctype.c: Likewise.
35380         * tests/test-dirent.c: Likewise.
35381         * tests/test-spawn.c: Likewise.
35382         * tests/test-sys_file.c: Likewise.
35383         * tests/test-sys_ioctl.c: Likewise.
35384         * tests/test-sys_wait.c: Likewise.
35385         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
35386         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
35387         whether or not flock is in use.
35388
35389         tests: remove License section from module
35390         * modules/arpa_inet-tests: Remove unneeded section.
35391         * modules/byteswap-tests: Likewise.
35392         * modules/ceilf-tests: Likewise.
35393         * modules/ceill-tests: Likewise.
35394         * modules/crypto/des-tests: Likewise.
35395         * modules/crypto/gc-arcfour-tests: Likewise.
35396         * modules/crypto/gc-arctwo-tests: Likewise.
35397         * modules/crypto/gc-des-tests: Likewise.
35398         * modules/crypto/gc-hmac-md5-tests: Likewise.
35399         * modules/crypto/gc-hmac-sha1-tests: Likewise.
35400         * modules/crypto/gc-md2-tests: Likewise.
35401         * modules/crypto/gc-md4-tests: Likewise.
35402         * modules/crypto/gc-md5-tests: Likewise.
35403         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
35404         * modules/crypto/gc-rijndael-tests: Likewise.
35405         * modules/crypto/gc-sha1-tests: Likewise.
35406         * modules/crypto/gc-tests: Likewise.
35407         * modules/crypto/md2-tests: Likewise.
35408         * modules/crypto/md4-tests: Likewise.
35409         * modules/fcntl-h-tests: Likewise.
35410         * modules/floorf-tests: Likewise.
35411         * modules/floorl-tests: Likewise.
35412         * modules/frexp-nolibm-tests: Likewise.
35413         * modules/frexp-tests: Likewise.
35414         * modules/frexpl-nolibm-tests: Likewise.
35415         * modules/frexpl-tests: Likewise.
35416         * modules/getaddrinfo-tests: Likewise.
35417         * modules/inttypes-tests: Likewise.
35418         * modules/isfinite-tests: Likewise.
35419         * modules/isinf-tests: Likewise.
35420         * modules/ldexpl-tests: Likewise.
35421         * modules/locale-tests: Likewise.
35422         * modules/math-tests: Likewise.
35423         * modules/netdb-tests: Likewise.
35424         * modules/netinet_in-tests: Likewise.
35425         * modules/printf-frexp-tests: Likewise.
35426         * modules/printf-frexpl-tests: Likewise.
35427         * modules/priv-set-tests: Likewise.
35428         * modules/random_r-tests: Likewise.
35429         * modules/round-tests: Likewise.
35430         * modules/roundf-tests: Likewise.
35431         * modules/roundl-tests: Likewise.
35432         * modules/search-tests: Likewise.
35433         * modules/select-tests: Likewise.
35434         * modules/signal-tests: Likewise.
35435         * modules/stdbool-tests: Likewise.
35436         * modules/stddef-tests: Likewise.
35437         * modules/stdint-tests: Likewise.
35438         * modules/stdio-tests: Likewise.
35439         * modules/stdlib-tests: Likewise.
35440         * modules/string-tests: Likewise.
35441         * modules/strings-tests: Likewise.
35442         * modules/sys_select-tests: Likewise.
35443         * modules/sys_socket-tests: Likewise.
35444         * modules/sys_stat-tests: Likewise.
35445         * modules/sys_time-tests: Likewise.
35446         * modules/sys_utsname-tests: Likewise.
35447         * modules/sysexits-tests: Likewise.
35448         * modules/time-tests: Likewise.
35449         * modules/trunc-tests: Likewise.
35450         * modules/truncf-tests: Likewise.
35451         * modules/truncl-tests: Likewise.
35452         * modules/tsearch-tests: Likewise.
35453         * modules/unistd-tests: Likewise.
35454         * modules/wchar-tests: Likewise.
35455         * modules/wctype-tests: Likewise.
35456
35457         tests: fix license on several tests
35458         * tests/test-des.c: Update to GPLv3+.
35459         * tests/test-flock.c: Likewise.
35460         * tests/test-fsync.c: Likewise.
35461         * tests/test-futimens.h: Likewise.
35462         * tests/test-gc-arcfour.c: Likewise.
35463         * tests/test-gc-arctwo.c: Likewise.
35464         * tests/test-gc-des.c: Likewise.
35465         * tests/test-gc-hmac-md5.c: Likewise.
35466         * tests/test-gc-hmac-sha1.c: Likewise.
35467         * tests/test-gc-md2.c: Likewise.
35468         * tests/test-gc-md4.c: Likewise.
35469         * tests/test-gc-md5.c: Likewise.
35470         * tests/test-gc-pbkdf2-sha1.c: Likewise.
35471         * tests/test-gc-rijndael.c: Likewise.
35472         * tests/test-gc-sha1.c: Likewise.
35473         * tests/test-gc.c: Likewise.
35474         * tests/test-getcwd.c: Likewise.
35475         * tests/test-link.c: Likewise.
35476         * tests/test-link.h: Likewise.
35477         * tests/test-lutimens.h: Likewise.
35478         * tests/test-md2.c: Likewise.
35479         * tests/test-md4.c: Likewise.
35480         * tests/test-mkdir.h: Likewise.
35481         * tests/test-rename.c: Likewise.
35482         * tests/test-rename.h: Likewise.
35483         * tests/test-safe-alloc.c: Likewise.
35484         * tests/test-utimens-common.h: Likewise.
35485         * tests/test-utimens.h: Likewise.
35486
35487         maint: sync license texts
35488         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
35489         * doc/gpl-3.0.texi: Revert copyright year update.
35490         * doc/lgpl-3.0.texi: Likewise.
35491
35492 2009-12-29  Jim Meyering  <meyering@redhat.com>
35493
35494         update nearly all FSF copyright year lists to include 2009
35495         The files named by the following are exempted:
35496             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
35497               test -f "$dst" && { echo "$dst"; continue; }
35498               test -d "$dst" || continue
35499               echo "$dst"/$(basename "$src")
35500             done > exempt
35501             git ls-files tests/unictype >> exempt
35502         In the remaining files, convert to all-interval notation if
35503         - there is already at least one year interval like 2000-2003
35504         - the file is maintained by me
35505         - the file is in lib/uni*/, where that style already prevails
35506         Otherwise, use update-copyright's default.
35507
35508 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35509         and Eric Blake  <ebb9@byu.net>
35510
35511         tests: don't require debug system() to pass
35512         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
35513         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35514         * tests/test-unlink.h (test_unlink_func): Likewise.
35515         * tests/test-fstatat.c (main): ...into callers.
35516         * tests/test-lstat.c (main): Likewise.
35517         * tests/test-rmdir.c (main): Likewise.
35518         * tests/test-unlink.c (main): Likewise.
35519         * tests/test-unlinkat.c (main): Likewise.
35520         * tests/test-areadlink-with-size.c (main): Don't require a
35521         debug-only system call to pass, aiding cross-testing to mingw.
35522         * tests/test-areadlink.c (main): Likewise.
35523         * tests/test-areadlinkat-with-size.c (main): Likewise.
35524         * tests/test-areadlinkat.c (main): Likewise.
35525         * tests/test-canonicalize-lgpl.c (main): Likewise.
35526         * tests/test-canonicalize.c (main): Likewise.
35527         * tests/test-chown.c (main): Likewise.
35528         * tests/test-fchownat.c (main): Likewise.
35529         * tests/test-lchown.c (main): Likewise.
35530         * tests/test-fdutimensat.c (main): Likewise.
35531         * tests/test-futimens.c (main): Likewise.
35532         * tests/test-link.c (main): Likewise.
35533         * tests/test-linkat.c (main): Likewise.
35534         * tests/test-mkdir.c (main): Likewise.
35535         * tests/test-mkdirat.c (main): Likewise.
35536         * tests/test-mkfifo.c (main): Likewise.
35537         * tests/test-mkfifoat.c (main): Likewise.
35538         * tests/test-mknod.c (main): Likewise.
35539         * tests/test-readlink.c (main): Likewise.
35540         * tests/test-remove.c (main): Likewise.
35541         * tests/test-rename.c (main): Likewise.
35542         * tests/test-renameat.c (main): Likewise.
35543         * tests/test-symlink.c (main): Likewise.
35544         * tests/test-symlinkat.c (main): Likewise.
35545         * tests/test-utimens.c (main): Likewise.
35546         * tests/test-utimensat.c (main): Likewise.
35547
35548 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35549
35550         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
35551         on $(UNUSED_PARAMETER_H) to avoid build failure.
35552
35553 2009-12-28  Jim Meyering  <meyering@redhat.com>
35554
35555         update-copyright: you may specify a max. line length other than 72
35556         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35557
35558         maint: use consistent FSF copyright line syntax
35559         * lib/posixtm.c: Add missing comma in FSF copyright line.
35560         * lib/posixtm.h: Likewise.
35561         * lib/getugroups.c: Add missing ", Inc.".
35562
35563         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
35564         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
35565         FSF copyright line.  Remove trailing blanks.
35566
35567 2009-12-28  Eric Blake  <ebb9@byu.net>
35568
35569         test-dup2: reduce dependencies
35570         * modules/cloexec (Configure.ac): Set witness.
35571         * modules/dup2-tests (Depends-on): Drop cloexec.
35572         * tests/test-dup2.c (main): Skip portion of test if cloexec module
35573         not present.
35574         Suggested by Bruno Haible.
35575
35576 2009-12-26  Bruno Haible  <bruno@clisp.org>
35577
35578         Remove an unneeded dependency.
35579         * modules/fseterr (Depends-on): Remove dup2.
35580
35581 2009-12-26  Eric Blake  <ebb9@byu.net>
35582
35583         tests: use macros.h in more places
35584         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
35585         (ASSERT_STREAM): Provide default of stderr.
35586         * tests/test-dirent-safer.c: Include macros.h, using alternate
35587         stream for assertions.
35588         * tests/test-dup-safer.c: Likewise.
35589         * tests/test-freopen-safer.c: Likewise.
35590         * tests/test-getopt.c: Likewise.
35591         * tests/test-openat-safer.c: Likewise.
35592         * tests/test-pipe.c: Likewise.
35593         * tests/test-popen-safer.c: Likewise.
35594         * modules/dirent-safer-tests (Files): Include macros.h.
35595         * modules/unistd-safer-tests (Files): Likewise.
35596         * modules/freopen-safer-tests (Files): Likewise.
35597         * modules/getopt-posix-tests (Files): Likewise.
35598         * modules/openat-safer-tests (Files): Likewise.
35599         * modules/pipe-tests (Files): Likewise.
35600
35601 2009-12-26  Bruno Haible  <bruno@clisp.org>
35602
35603         javacomp: Portability fix.
35604         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
35605         that it also works on Solaris.
35606
35607 2009-12-26  Bruno Haible  <bruno@clisp.org>
35608
35609         localename: Fix storage allocation of gl_locale_name_thread's result.
35610         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
35611         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
35612         all platforms that have 'uselocale'.
35613         (gl_locale_name_thread_unsafe): New function, extracted from
35614         gl_locale_name_thread.
35615         (gl_locale_name_thread): Call struniq on all platforms that have
35616         'uselocale'.
35617         * tests/test-localename.c (test_locale_name_thread): Check that the
35618         resulting strings are permanently allocated.
35619         * modules/localename-tests (Depends-on): Add strdup.
35620
35621 2009-12-26  Bruno Haible  <bruno@clisp.org>
35622
35623         * tests/test-localename.c (categories): Fill in the strings.
35624
35625 2009-12-26  Jim Meyering  <meyering@redhat.com>
35626
35627         isdir: complete the removal of m4/isdir.m4
35628         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
35629
35630         isdir: clean up, since at least grep still uses it
35631         * lib/isdir.c: Include "isdir.h".
35632         (S_ISDIR): Remove now-unneeded definition.
35633         * modules/isdir (Files): Add lib/isdir.h.
35634         * lib/isdir.h: New file, with declaration.
35635         * m4/isdir.m4: Remove file -- unneeded.
35636
35637 2009-12-25  Bruno Haible  <bruno@clisp.org>
35638
35639         selinux-h: Make generated .h files standalone.
35640         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
35641         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
35642         * lib/se-selinux.in.h: Likewise.
35643         * modules/selinux-h (Depends-on): Add unused-parameter.
35644         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
35645         selinux/selinux.h and selinux/context.h.
35646         Suggested by Eric Blake.
35647
35648 2009-12-25  Bruno Haible  <bruno@clisp.org>
35649
35650         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
35651         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
35652         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
35653         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
35654         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
35655
35656 2009-12-24  Bruno Haible  <bruno@clisp.org>
35657
35658         openat: Fix warning.
35659         * lib/openat-proc.c: Include <unistd.h>.
35660
35661 2009-12-24  Bruno Haible  <bruno@clisp.org>
35662
35663         New module 'unused-parameter'.
35664         * build-aux/unused-parameter.h: New file, extracted from earlier
35665         gnulib-common.m4.
35666         * modules/unused-parameter: New file.
35667         * lib/unistr.h: Include unused-parameter.h.
35668         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
35669         _GL_UNUSED.
35670         * modules/unistr/base (Depends-on): Add unused-parameter.
35671
35672 2009-12-24  Bruno Haible  <bruno@clisp.org>
35673
35674         Add missing dependencies to 'extensions' module.
35675         * m4/extensions.m4: Add comment.
35676         * modules/accept4 (Depends-on): Add extensions.
35677         * modules/dup3 (Depends-on): Likewise.
35678         * modules/fcntl (Depends-on): Likewise.
35679         * modules/futimens (Depends-on): Likewise.
35680         * modules/mknod (Depends-on): Likewise.
35681         * modules/pipe2 (Depends-on): Likewise.
35682         * modules/stat-time (Depends-on): Likewise.
35683         * modules/strcasestr-simple (Depends-on): Likewise.
35684         * modules/strsignal (Depends-on): Likewise.
35685         * modules/utimensat (Depends-on): Likewise.
35686         * modules/localcharset (Depends-on): Likewise. Needed because of
35687         gl_FCNTL_O_FLAGS.
35688         * modules/wcrtomb (Depends-on): Likewise. Needed because of
35689         AC_TYPE_MBSTATE_T.
35690         * modules/wcsnrtombs (Depends-on): Likewise.
35691         * modules/wcsrtombs (Depends-on): Likewise.
35692
35693 2009-12-24  Bruno Haible  <bruno@clisp.org>
35694
35695         binary-io: Avoid gcc warning due to SET_BINARY.
35696         * lib/binary-io.h (SET_BINARY): Cast the result to void.
35697         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
35698
35699 2009-12-24  Bruno Haible  <bruno@clisp.org>
35700
35701         Avoid future namespace pollution on glibc systems.
35702         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
35703         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
35704         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
35705         glibc systems.
35706
35707 2009-12-24  Bruno Haible  <bruno@clisp.org>
35708
35709         Refactor common macros used in tests.
35710         * tests/macros.h: New file.
35711         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
35712         and/or <stdlib.h>, if appropriate.
35713         (ASSERT, SIZEOF): Remove macros.
35714         * tests/test-areadlink-with-size.c: Likewise.
35715         * tests/test-areadlinkat.c: Likewise.
35716         * tests/test-areadlinkat-with-size.c: Likewise.
35717         * tests/test-argmatch.c: Likewise.
35718         * tests/test-argv-iter.c: Likewise.
35719         * tests/test-array-mergesort.c: Likewise.
35720         * tests/test-array_list.c: Likewise.
35721         * tests/test-array_oset.c: Likewise.
35722         * tests/test-avltree_list.c: Likewise.
35723         * tests/test-avltree_oset.c: Likewise.
35724         * tests/test-avltreehash_list.c: Likewise.
35725         * tests/test-base64.c: Likewise.
35726         * tests/test-binary-io.c: Likewise.
35727         * tests/test-bitrotate.c: Likewise.
35728         * tests/test-btowc.c: Likewise.
35729         * tests/test-byteswap.c: Likewise.
35730         * tests/test-c-ctype.c: Likewise.
35731         * tests/test-c-stack.c: Likewise.
35732         * tests/test-c-strcasecmp.c: Likewise.
35733         * tests/test-c-strcasestr.c: Likewise.
35734         * tests/test-c-strncasecmp.c: Likewise.
35735         * tests/test-c-strstr.c: Likewise.
35736         * tests/test-canonicalize-lgpl.c: Likewise.
35737         * tests/test-canonicalize.c: Likewise.
35738         * tests/test-carray_list.c: Likewise.
35739         * tests/test-ceilf1.c: Likewise.
35740         * tests/test-ceilf2.c: Likewise.
35741         * tests/test-ceill.c: Likewise.
35742         * tests/test-chown.c: Likewise.
35743         * tests/test-cloexec.c: Likewise.
35744         * tests/test-copy-acl.c: Likewise.
35745         * tests/test-copy-file.c: Likewise.
35746         * tests/test-count-one-bits.c: Likewise.
35747         * tests/test-dprintf-posix.c: Likewise.
35748         * tests/test-dup2.c: Likewise.
35749         * tests/test-dup3.c: Likewise.
35750         * tests/test-duplocale.c: Likewise.
35751         * tests/test-fbufmode.c: Likewise.
35752         * tests/test-fchdir.c: Likewise.
35753         * tests/test-fchownat.c: Likewise.
35754         * tests/test-fcntl-safer.c: Likewise.
35755         * tests/test-fcntl.c: Likewise.
35756         * tests/test-fdopendir.c: Likewise.
35757         * tests/test-fdutimensat.c: Likewise.
35758         * tests/test-fflush2.c: Likewise.
35759         * tests/test-file-has-acl.c: Likewise.
35760         * tests/test-filevercmp.c: Likewise.
35761         * tests/test-flock.c: Likewise.
35762         * tests/test-floorf1.c: Likewise.
35763         * tests/test-floorf2.c: Likewise.
35764         * tests/test-floorl.c: Likewise.
35765         * tests/test-fnmatch.c: Likewise.
35766         * tests/test-fopen.h: Likewise.
35767         * tests/test-fpending.c: Likewise.
35768         * tests/test-fprintf-posix.c: Likewise.
35769         * tests/test-fpurge.c: Likewise.
35770         * tests/test-freadable.c: Likewise.
35771         * tests/test-freadahead.c: Likewise.
35772         * tests/test-freading.c: Likewise.
35773         * tests/test-freadptr.c: Likewise.
35774         * tests/test-freadptr2.c: Likewise.
35775         * tests/test-freadseek.c: Likewise.
35776         * tests/test-freopen.c: Likewise.
35777         * tests/test-frexp.c: Likewise.
35778         * tests/test-frexpl.c: Likewise.
35779         * tests/test-fseek.c: Likewise.
35780         * tests/test-fseeko.c: Likewise.
35781         * tests/test-fstatat.c: Likewise.
35782         * tests/test-fstrcmp.c: Likewise.
35783         * tests/test-fsync.c: Likewise.
35784         * tests/test-ftell.c: Likewise.
35785         * tests/test-ftello.c: Likewise.
35786         * tests/test-func.c: Likewise.
35787         * tests/test-futimens.c: Likewise.
35788         * tests/test-fwritable.c: Likewise.
35789         * tests/test-fwriting.c: Likewise.
35790         * tests/test-getcwd.c: Likewise.
35791         * tests/test-getdate.c: Likewise.
35792         * tests/test-getdelim.c: Likewise.
35793         * tests/test-getdtablesize.c: Likewise.
35794         * tests/test-getgroups.c: Likewise.
35795         * tests/test-getline.c: Likewise.
35796         * tests/test-getndelim2.c: Likewise.
35797         * tests/test-glob.c: Likewise.
35798         * tests/test-hash.c: Likewise.
35799         * tests/test-i-ring.c: Likewise.
35800         * tests/test-iconv-utf.c: Likewise.
35801         * tests/test-iconv.c: Likewise.
35802         * tests/test-idpriv-drop.c: Likewise.
35803         * tests/test-idpriv-droptemp.c: Likewise.
35804         * tests/test-inet_ntop.c: Likewise.
35805         * tests/test-inet_pton.c: Likewise.
35806         * tests/test-isblank.c: Likewise.
35807         * tests/test-isfinite.c: Likewise.
35808         * tests/test-isinf.c: Likewise.
35809         * tests/test-isnan.c: Likewise.
35810         * tests/test-isnand.h: Likewise.
35811         * tests/test-isnanf.h: Likewise.
35812         * tests/test-isnanl.h: Likewise.
35813         * tests/test-lchown.c: Likewise.
35814         * tests/test-ldexpl.c: Likewise.
35815         * tests/test-link.c: Likewise.
35816         * tests/test-linkat.c: Likewise.
35817         * tests/test-linked_list.c: Likewise.
35818         * tests/test-linkedhash_list.c: Likewise.
35819         * tests/test-localename.c: Likewise.
35820         * tests/test-lseek.c: Likewise.
35821         * tests/test-lstat.c: Likewise.
35822         * tests/test-mbmemcasecmp.c: Likewise.
35823         * tests/test-mbmemcasecoll.c: Likewise.
35824         * tests/test-mbrtowc.c: Likewise.
35825         * tests/test-mbscasecmp.c: Likewise.
35826         * tests/test-mbscasestr1.c: Likewise.
35827         * tests/test-mbscasestr2.c: Likewise.
35828         * tests/test-mbscasestr3.c: Likewise.
35829         * tests/test-mbscasestr4.c: Likewise.
35830         * tests/test-mbschr.c: Likewise.
35831         * tests/test-mbscspn.c: Likewise.
35832         * tests/test-mbsinit.c: Likewise.
35833         * tests/test-mbsncasecmp.c: Likewise.
35834         * tests/test-mbsnrtowcs.c: Likewise.
35835         * tests/test-mbspbrk.c: Likewise.
35836         * tests/test-mbspcasecmp.c: Likewise.
35837         * tests/test-mbsrchr.c: Likewise.
35838         * tests/test-mbsrtowcs.c: Likewise.
35839         * tests/test-mbsspn.c: Likewise.
35840         * tests/test-mbsstr1.c: Likewise.
35841         * tests/test-mbsstr2.c: Likewise.
35842         * tests/test-mbsstr3.c: Likewise.
35843         * tests/test-memchr.c: Likewise.
35844         * tests/test-memchr2.c: Likewise.
35845         * tests/test-memcmp.c: Likewise.
35846         * tests/test-memmem.c: Likewise.
35847         * tests/test-memrchr.c: Likewise.
35848         * tests/test-mkdir.c: Likewise.
35849         * tests/test-mkdirat.c: Likewise.
35850         * tests/test-mkfifo.c: Likewise.
35851         * tests/test-mkfifoat.c: Likewise.
35852         * tests/test-mknod.c: Likewise.
35853         * tests/test-nanosleep.c: Likewise.
35854         * tests/test-nl_langinfo.c: Likewise.
35855         * tests/test-obstack-printf.c: Likewise.
35856         * tests/test-open.c: Likewise.
35857         * tests/test-openat.c: Likewise.
35858         * tests/test-pipe-filter-gi1.c: Likewise.
35859         * tests/test-pipe-filter-gi2-main.c: Likewise.
35860         * tests/test-pipe-filter-ii1.c: Likewise.
35861         * tests/test-pipe-filter-ii2-main.c: Likewise.
35862         * tests/test-pipe2.c: Likewise.
35863         * tests/test-popen.h: Likewise.
35864         * tests/test-posixtm.c: Likewise.
35865         * tests/test-pread.c: Likewise.
35866         * tests/test-printf-frexp.c: Likewise.
35867         * tests/test-printf-frexpl.c: Likewise.
35868         * tests/test-printf-posix.c: Likewise.
35869         * tests/test-priv-set.c: Likewise.
35870         * tests/test-quotearg.c: Likewise.
35871         * tests/test-random_r.c: Likewise.
35872         * tests/test-rawmemchr.c: Likewise.
35873         * tests/test-rbtree_list.c: Likewise.
35874         * tests/test-rbtree_oset.c: Likewise.
35875         * tests/test-rbtreehash_list.c: Likewise.
35876         * tests/test-readlink.c: Likewise.
35877         * tests/test-remove.c: Likewise.
35878         * tests/test-rename.c: Likewise.
35879         * tests/test-renameat.c: Likewise.
35880         * tests/test-rmdir.c: Likewise.
35881         * tests/test-round1.c: Likewise.
35882         * tests/test-roundf1.c: Likewise.
35883         * tests/test-roundl.c: Likewise.
35884         * tests/test-safe-alloc.c: Likewise.
35885         * tests/test-sameacls.c: Likewise.
35886         * tests/test-set-mode-acl.c: Likewise.
35887         * tests/test-setenv.c: Likewise.
35888         * tests/test-sigaction.c: Likewise.
35889         * tests/test-signbit.c: Likewise.
35890         * tests/test-sleep.c: Likewise.
35891         * tests/test-snprintf-posix.c: Likewise.
35892         * tests/test-snprintf.c: Likewise.
35893         * tests/test-sprintf-posix.c: Likewise.
35894         * tests/test-stat-time.c: Likewise.
35895         * tests/test-stat.c: Likewise.
35896         * tests/test-strcasestr.c: Likewise.
35897         * tests/test-strchrnul.c: Likewise.
35898         * tests/test-strerror.c: Likewise.
35899         * tests/test-striconv.c: Likewise.
35900         * tests/test-striconveh.c: Likewise.
35901         * tests/test-striconveha.c: Likewise.
35902         * tests/test-strsignal.c: Likewise.
35903         * tests/test-strstr.c: Likewise.
35904         * tests/test-strtod.c: Likewise.
35905         * tests/test-strverscmp.c: Likewise.
35906         * tests/test-symlink.c: Likewise.
35907         * tests/test-symlinkat.c: Likewise.
35908         * tests/test-trunc1.c: Likewise.
35909         * tests/test-trunc2.c: Likewise.
35910         * tests/test-truncf1.c: Likewise.
35911         * tests/test-truncf2.c: Likewise.
35912         * tests/test-truncl.c: Likewise.
35913         * tests/test-uname.c: Likewise.
35914         * tests/test-unlink.c: Likewise.
35915         * tests/test-unlinkat.c: Likewise.
35916         * tests/test-unsetenv.c: Likewise.
35917         * tests/test-usleep.c: Likewise.
35918         * tests/test-utimens.c: Likewise.
35919         * tests/test-utimensat.c: Likewise.
35920         * tests/test-vasnprintf-posix.c: Likewise.
35921         * tests/test-vasnprintf-posix2.c: Likewise.
35922         * tests/test-vasnprintf.c: Likewise.
35923         * tests/test-vasprintf-posix.c: Likewise.
35924         * tests/test-vasprintf.c: Likewise.
35925         * tests/test-vdprintf-posix.c: Likewise.
35926         * tests/test-vfprintf-posix.c: Likewise.
35927         * tests/test-vprintf-posix.c: Likewise.
35928         * tests/test-vsnprintf-posix.c: Likewise.
35929         * tests/test-vsnprintf.c: Likewise.
35930         * tests/test-vsprintf-posix.c: Likewise.
35931         * tests/test-wcrtomb.c: Likewise.
35932         * tests/test-wcsnrtombs.c: Likewise.
35933         * tests/test-wcsrtombs.c: Likewise.
35934         * tests/test-wctype.c: Likewise.
35935         * tests/test-wcwidth.c: Likewise.
35936         * tests/test-xfprintf-posix.c: Likewise.
35937         * tests/test-xmemdup0.c: Likewise.
35938         * tests/test-xprintf-posix.c: Likewise.
35939         * tests/test-xvasprintf.c: Likewise.
35940         * tests/unicase/test-locale-language.c: Likewise.
35941         * tests/unicase/test-mapping-part1.h: Likewise.
35942         * tests/unicase/test-predicate-part1.h: Likewise.
35943         * tests/unicase/test-u8-casecmp.c: Likewise.
35944         * tests/unicase/test-u8-casecoll.c: Likewise.
35945         * tests/unicase/test-u8-casefold.c: Likewise.
35946         * tests/unicase/test-u8-is-cased.c: Likewise.
35947         * tests/unicase/test-u8-is-casefolded.c: Likewise.
35948         * tests/unicase/test-u8-is-lowercase.c: Likewise.
35949         * tests/unicase/test-u8-is-titlecase.c: Likewise.
35950         * tests/unicase/test-u8-is-uppercase.c: Likewise.
35951         * tests/unicase/test-u8-tolower.c: Likewise.
35952         * tests/unicase/test-u8-totitle.c: Likewise.
35953         * tests/unicase/test-u8-toupper.c: Likewise.
35954         * tests/unicase/test-u16-casecmp.c: Likewise.
35955         * tests/unicase/test-u16-casecoll.c: Likewise.
35956         * tests/unicase/test-u16-casefold.c: Likewise.
35957         * tests/unicase/test-u16-is-cased.c: Likewise.
35958         * tests/unicase/test-u16-is-casefolded.c: Likewise.
35959         * tests/unicase/test-u16-is-lowercase.c: Likewise.
35960         * tests/unicase/test-u16-is-titlecase.c: Likewise.
35961         * tests/unicase/test-u16-is-uppercase.c: Likewise.
35962         * tests/unicase/test-u16-tolower.c: Likewise.
35963         * tests/unicase/test-u16-totitle.c: Likewise.
35964         * tests/unicase/test-u16-toupper.c: Likewise.
35965         * tests/unicase/test-u32-casecmp.c: Likewise.
35966         * tests/unicase/test-u32-casecoll.c: Likewise.
35967         * tests/unicase/test-u32-casefold.c: Likewise.
35968         * tests/unicase/test-u32-is-cased.c: Likewise.
35969         * tests/unicase/test-u32-is-casefolded.c: Likewise.
35970         * tests/unicase/test-u32-is-lowercase.c: Likewise.
35971         * tests/unicase/test-u32-is-titlecase.c: Likewise.
35972         * tests/unicase/test-u32-is-uppercase.c: Likewise.
35973         * tests/unicase/test-u32-tolower.c: Likewise.
35974         * tests/unicase/test-u32-totitle.c: Likewise.
35975         * tests/unicase/test-u32-toupper.c: Likewise.
35976         * tests/unicase/test-ulc-casecmp.c: Likewise.
35977         * tests/unicase/test-ulc-casecoll.c: Likewise.
35978         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
35979         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
35980         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
35981         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
35982         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
35983         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
35984         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
35985         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
35986         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
35987         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
35988         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
35989         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
35990         * tests/unictype/test-bidi_byname.c: Likewise.
35991         * tests/unictype/test-bidi_name.c: Likewise.
35992         * tests/unictype/test-bidi_of.c: Likewise.
35993         * tests/unictype/test-bidi_test.c: Likewise.
35994         * tests/unictype/test-block_list.c: Likewise.
35995         * tests/unictype/test-block_of.c: Likewise.
35996         * tests/unictype/test-block_test.c: Likewise.
35997         * tests/unictype/test-categ_and.c: Likewise.
35998         * tests/unictype/test-categ_and_not.c: Likewise.
35999         * tests/unictype/test-categ_byname.c: Likewise.
36000         * tests/unictype/test-categ_name.c: Likewise.
36001         * tests/unictype/test-categ_none.c: Likewise.
36002         * tests/unictype/test-categ_of.c: Likewise.
36003         * tests/unictype/test-categ_or.c: Likewise.
36004         * tests/unictype/test-categ_test_withtable.c: Likewise.
36005         * tests/unictype/test-combining.c: Likewise.
36006         * tests/unictype/test-decdigit.c: Likewise.
36007         * tests/unictype/test-digit.c: Likewise.
36008         * tests/unictype/test-mirror.c: Likewise.
36009         * tests/unictype/test-numeric.c: Likewise.
36010         * tests/unictype/test-pr_byname.c: Likewise.
36011         * tests/unictype/test-pr_test.c: Likewise.
36012         * tests/unictype/test-predicate-part1.h: Likewise.
36013         * tests/unictype/test-scripts.c: Likewise.
36014         * tests/unictype/test-sy_c_ident.c: Likewise.
36015         * tests/unictype/test-sy_java_ident.c: Likewise.
36016         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
36017         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
36018         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
36019         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
36020         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
36021         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
36022         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
36023         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
36024         * tests/uninorm/test-canonical-decomposition.c: Likewise.
36025         * tests/uninorm/test-compat-decomposition.c: Likewise.
36026         * tests/uninorm/test-composition.c: Likewise.
36027         * tests/uninorm/test-decomposing-form.c: Likewise.
36028         * tests/uninorm/test-decomposition.c: Likewise.
36029         * tests/uninorm/test-u8-nfc.c: Likewise.
36030         * tests/uninorm/test-u8-nfd.c: Likewise.
36031         * tests/uninorm/test-u8-nfkc.c: Likewise.
36032         * tests/uninorm/test-u8-nfkd.c: Likewise.
36033         * tests/uninorm/test-u8-normcmp.c: Likewise.
36034         * tests/uninorm/test-u8-normcoll.c: Likewise.
36035         * tests/uninorm/test-u16-nfc.c: Likewise.
36036         * tests/uninorm/test-u16-nfd.c: Likewise.
36037         * tests/uninorm/test-u16-nfkc.c: Likewise.
36038         * tests/uninorm/test-u16-nfkd.c: Likewise.
36039         * tests/uninorm/test-u16-normcmp.c: Likewise.
36040         * tests/uninorm/test-u16-normcoll.c: Likewise.
36041         * tests/uninorm/test-u32-nfc.c: Likewise.
36042         * tests/uninorm/test-u32-nfd.c: Likewise.
36043         * tests/uninorm/test-u32-nfkc.c: Likewise.
36044         * tests/uninorm/test-u32-nfkd.c: Likewise.
36045         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36046         * tests/uninorm/test-u32-normcmp.c: Likewise.
36047         * tests/uninorm/test-u32-normcoll.c: Likewise.
36048         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
36049         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
36050         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
36051         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
36052         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
36053         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
36054         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
36055         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
36056         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
36057         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
36058         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
36059         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
36060         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
36061         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
36062         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
36063         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
36064         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
36065         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
36066         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
36067         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
36068         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
36069         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
36070         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
36071         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
36072         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
36073         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
36074         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
36075         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
36076         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
36077         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
36078         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
36079         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
36080         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
36081         * tests/uniwidth/test-u8-strwidth.c: Likewise.
36082         * tests/uniwidth/test-u8-width.c: Likewise.
36083         * tests/uniwidth/test-u16-strwidth.c: Likewise.
36084         * tests/uniwidth/test-u16-width.c: Likewise.
36085         * tests/uniwidth/test-u32-strwidth.c: Likewise.
36086         * tests/uniwidth/test-u32-width.c: Likewise.
36087         * tests/uniwidth/test-uc_width.c: Likewise.
36088         * tests/uniwidth/test-uc_width2.c: Likewise.
36089         * modules/acl-tests (Files): Add tests/macros.h.
36090         * modules/areadlink-tests (Files): Likewise.
36091         * modules/areadlink-with-size-tests (Files): Likewise.
36092         * modules/areadlinkat-tests (Files): Likewise.
36093         * modules/areadlinkat-with-size-tests (Files): Likewise.
36094         * modules/argmatch-tests (Files): Likewise.
36095         * modules/argv-iter-tests (Files): Likewise.
36096         * modules/array-list-tests (Files): Likewise.
36097         * modules/array-mergesort-tests (Files): Likewise.
36098         * modules/array-oset-tests (Files): Likewise.
36099         * modules/avltree-list-tests (Files): Likewise.
36100         * modules/avltree-oset-tests (Files): Likewise.
36101         * modules/avltreehash-list-tests (Files): Likewise.
36102         * modules/base64-tests (Files): Likewise.
36103         * modules/binary-io-tests (Files): Likewise.
36104         * modules/bitrotate-tests (Files): Likewise.
36105         * modules/btowc-tests (Files): Likewise.
36106         * modules/byteswap-tests (Files): Likewise.
36107         * modules/c-ctype-tests (Files): Likewise.
36108         * modules/c-stack-tests (Files): Likewise.
36109         * modules/c-strcase-tests (Files): Likewise.
36110         * modules/c-strcasestr-tests (Files): Likewise.
36111         * modules/c-strstr-tests (Files): Likewise.
36112         * modules/canonicalize-lgpl-tests (Files): Likewise.
36113         * modules/canonicalize-tests (Files): Likewise.
36114         * modules/carray-list-tests (Files): Likewise.
36115         * modules/ceilf-tests (Files): Likewise.
36116         * modules/ceill-tests (Files): Likewise.
36117         * modules/chown-tests (Files): Likewise.
36118         * modules/cloexec-tests (Files): Likewise.
36119         * modules/copy-file-tests (Files): Likewise.
36120         * modules/count-one-bits-tests (Files): Likewise.
36121         * modules/dprintf-posix-tests (Files): Likewise.
36122         * modules/dup2-tests (Files): Likewise.
36123         * modules/dup3-tests (Files): Likewise.
36124         * modules/duplocale-tests (Files): Likewise.
36125         * modules/fbufmode-tests (Files): Likewise.
36126         * modules/fchdir-tests (Files): Likewise.
36127         * modules/fcntl-safer-tests (Files): Likewise.
36128         * modules/fcntl-tests (Files): Likewise.
36129         * modules/fdopendir-tests (Files): Likewise.
36130         * modules/fdutimensat-tests (Files): Likewise.
36131         * modules/fflush-tests (Files): Likewise.
36132         * modules/filevercmp-tests (Files): Likewise.
36133         * modules/flock-tests (Files): Likewise.
36134         * modules/floorf-tests (Files): Likewise.
36135         * modules/floorl-tests (Files): Likewise.
36136         * modules/fnmatch-tests (Files): Likewise.
36137         * modules/fopen-safer-tests (Files): Likewise.
36138         * modules/fopen-tests (Files): Likewise.
36139         * modules/fpending-tests (Files): Likewise.
36140         * modules/fprintf-posix-tests (Files): Likewise.
36141         * modules/fpurge-tests (Files): Likewise.
36142         * modules/freadable-tests (Files): Likewise.
36143         * modules/freadahead-tests (Files): Likewise.
36144         * modules/freading-tests (Files): Likewise.
36145         * modules/freadptr-tests (Files): Likewise.
36146         * modules/freadseek-tests (Files): Likewise.
36147         * modules/freopen-tests (Files): Likewise.
36148         * modules/frexp-nolibm-tests (Files): Likewise.
36149         * modules/frexp-tests (Files): Likewise.
36150         * modules/frexpl-nolibm-tests (Files): Likewise.
36151         * modules/frexpl-tests (Files): Likewise.
36152         * modules/fseek-tests (Files): Likewise.
36153         * modules/fseeko-tests (Files): Likewise.
36154         * modules/fstrcmp-tests (Files): Likewise.
36155         * modules/fsync-tests (Files): Likewise.
36156         * modules/ftell-tests (Files): Likewise.
36157         * modules/ftello-tests (Files): Likewise.
36158         * modules/func-tests (Files): Likewise.
36159         * modules/futimens-tests (Files): Likewise.
36160         * modules/fwritable-tests (Files): Likewise.
36161         * modules/fwriting-tests (Files): Likewise.
36162         * modules/getcwd-tests (Files): Likewise.
36163         * modules/getdate-tests (Files): Likewise.
36164         * modules/getdelim-tests (Files): Likewise.
36165         * modules/getdtablesize-tests (Files): Likewise.
36166         * modules/getgroups-tests (Files): Likewise.
36167         * modules/getline-tests (Files): Likewise.
36168         * modules/getndelim2-tests (Files): Likewise.
36169         * modules/glob-tests (Files): Likewise.
36170         * modules/hash-tests (Files): Likewise.
36171         * modules/i-ring-tests (Files): Likewise.
36172         * modules/iconv-tests (Files): Likewise.
36173         * modules/iconv_open-utf-tests (Files): Likewise.
36174         * modules/idpriv-drop-tests (Files): Likewise.
36175         * modules/idpriv-droptemp-tests (Files): Likewise.
36176         * modules/inet_ntop-tests (Files): Likewise.
36177         * modules/inet_pton-tests (Files): Likewise.
36178         * modules/isblank-tests (Files): Likewise.
36179         * modules/isfinite-tests (Files): Likewise.
36180         * modules/isinf-tests (Files): Likewise.
36181         * modules/isnan-tests (Files): Likewise.
36182         * modules/isnand-nolibm-tests (Files): Likewise.
36183         * modules/isnand-tests (Files): Likewise.
36184         * modules/isnanf-nolibm-tests (Files): Likewise.
36185         * modules/isnanf-tests (Files): Likewise.
36186         * modules/isnanl-nolibm-tests (Files): Likewise.
36187         * modules/isnanl-tests (Files): Likewise.
36188         * modules/lchown-tests (Files): Likewise.
36189         * modules/ldexpl-tests (Files): Likewise.
36190         * modules/link-tests (Files): Likewise.
36191         * modules/linkat-tests (Files): Likewise.
36192         * modules/linked-list-tests (Files): Likewise.
36193         * modules/linkedhash-list-tests (Files): Likewise.
36194         * modules/localename-tests (Files): Likewise.
36195         * modules/lseek-tests (Files): Likewise.
36196         * modules/lstat-tests (Files): Likewise.
36197         * modules/mbmemcasecmp-tests (Files): Likewise.
36198         * modules/mbmemcasecoll-tests (Files): Likewise.
36199         * modules/mbrtowc-tests (Files): Likewise.
36200         * modules/mbscasecmp-tests (Files): Likewise.
36201         * modules/mbscasestr-tests (Files): Likewise.
36202         * modules/mbschr-tests (Files): Likewise.
36203         * modules/mbscspn-tests (Files): Likewise.
36204         * modules/mbsinit-tests (Files): Likewise.
36205         * modules/mbsncasecmp-tests (Files): Likewise.
36206         * modules/mbsnrtowcs-tests (Files): Likewise.
36207         * modules/mbspbrk-tests (Files): Likewise.
36208         * modules/mbspcasecmp-tests (Files): Likewise.
36209         * modules/mbsrchr-tests (Files): Likewise.
36210         * modules/mbsrtowcs-tests (Files): Likewise.
36211         * modules/mbsspn-tests (Files): Likewise.
36212         * modules/mbsstr-tests (Files): Likewise.
36213         * modules/memchr-tests (Files): Likewise.
36214         * modules/memchr2-tests (Files): Likewise.
36215         * modules/memcmp-tests (Files): Likewise.
36216         * modules/memmem-tests (Files): Likewise.
36217         * modules/memrchr-tests (Files): Likewise.
36218         * modules/mkdir-tests (Files): Likewise.
36219         * modules/mkfifo-tests (Files): Likewise.
36220         * modules/mkfifoat-tests (Files): Likewise.
36221         * modules/mknod-tests (Files): Likewise.
36222         * modules/nanosleep-tests (Files): Likewise.
36223         * modules/nl_langinfo-tests (Files): Likewise.
36224         * modules/obstack-printf-tests (Files): Likewise.
36225         * modules/open-tests (Files): Likewise.
36226         * modules/openat-tests (Files): Likewise.
36227         * modules/pipe-filter-gi-tests (Files): Likewise.
36228         * modules/pipe-filter-ii-tests (Files): Likewise.
36229         * modules/pipe2-tests (Files): Likewise.
36230         * modules/popen-safer-tests (Files): Likewise.
36231         * modules/popen-tests (Files): Likewise.
36232         * modules/posixtm-tests (Files): Likewise.
36233         * modules/pread-tests (Files): Likewise.
36234         * modules/printf-frexp-tests (Files): Likewise.
36235         * modules/printf-frexpl-tests (Files): Likewise.
36236         * modules/printf-posix-tests (Files): Likewise.
36237         * modules/priv-set-tests (Files): Likewise.
36238         * modules/quotearg-tests (Files): Likewise.
36239         * modules/random_r-tests (Files): Likewise.
36240         * modules/rawmemchr-tests (Files): Likewise.
36241         * modules/rbtree-list-tests (Files): Likewise.
36242         * modules/rbtree-oset-tests (Files): Likewise.
36243         * modules/rbtreehash-list-tests (Files): Likewise.
36244         * modules/readlink-tests (Files): Likewise.
36245         * modules/remove-tests (Files): Likewise.
36246         * modules/rename-tests (Files): Likewise.
36247         * modules/renameat-tests (Files): Likewise.
36248         * modules/rmdir-tests (Files): Likewise.
36249         * modules/round-tests (Files): Likewise.
36250         * modules/roundf-tests (Files): Likewise.
36251         * modules/roundl-tests (Files): Likewise.
36252         * modules/safe-alloc-tests (Files): Likewise.
36253         * modules/setenv-tests (Files): Likewise.
36254         * modules/sigaction-tests (Files): Likewise.
36255         * modules/signbit-tests (Files): Likewise.
36256         * modules/sleep-tests (Files): Likewise.
36257         * modules/snprintf-posix-tests (Files): Likewise.
36258         * modules/snprintf-tests (Files): Likewise.
36259         * modules/sprintf-posix-tests (Files): Likewise.
36260         * modules/stat-tests (Files): Likewise.
36261         * modules/stat-time-tests (Files): Likewise.
36262         * modules/strcasestr-tests (Files): Likewise.
36263         * modules/strchrnul-tests (Files): Likewise.
36264         * modules/strerror-tests (Files): Likewise.
36265         * modules/striconv-tests (Files): Likewise.
36266         * modules/striconveh-tests (Files): Likewise.
36267         * modules/striconveha-tests (Files): Likewise.
36268         * modules/strsignal-tests (Files): Likewise.
36269         * modules/strstr-tests (Files): Likewise.
36270         * modules/strtod-tests (Files): Likewise.
36271         * modules/strverscmp-tests (Files): Likewise.
36272         * modules/symlink-tests (Files): Likewise.
36273         * modules/symlinkat-tests (Files): Likewise.
36274         * modules/trunc-tests (Files): Likewise.
36275         * modules/truncf-tests (Files): Likewise.
36276         * modules/truncl-tests (Files): Likewise.
36277         * modules/uname-tests (Files): Likewise.
36278         * modules/unicase/cased-tests (Files): Likewise.
36279         * modules/unicase/ignorable-tests (Files): Likewise.
36280         * modules/unicase/locale-language-tests (Files): Likewise.
36281         * modules/unicase/tolower-tests (Files): Likewise.
36282         * modules/unicase/totitle-tests (Files): Likewise.
36283         * modules/unicase/toupper-tests (Files): Likewise.
36284         * modules/unicase/u8-casecmp-tests (Files): Likewise.
36285         * modules/unicase/u8-casecoll-tests (Files): Likewise.
36286         * modules/unicase/u8-casefold-tests (Files): Likewise.
36287         * modules/unicase/u8-is-cased-tests (Files): Likewise.
36288         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
36289         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
36290         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
36291         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
36292         * modules/unicase/u8-tolower-tests (Files): Likewise.
36293         * modules/unicase/u8-totitle-tests (Files): Likewise.
36294         * modules/unicase/u8-toupper-tests (Files): Likewise.
36295         * modules/unicase/u16-casecmp-tests (Files): Likewise.
36296         * modules/unicase/u16-casecoll-tests (Files): Likewise.
36297         * modules/unicase/u16-casefold-tests (Files): Likewise.
36298         * modules/unicase/u16-is-cased-tests (Files): Likewise.
36299         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
36300         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
36301         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
36302         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
36303         * modules/unicase/u16-tolower-tests (Files): Likewise.
36304         * modules/unicase/u16-totitle-tests (Files): Likewise.
36305         * modules/unicase/u16-toupper-tests (Files): Likewise.
36306         * modules/unicase/u32-casecmp-tests (Files): Likewise.
36307         * modules/unicase/u32-casecoll-tests (Files): Likewise.
36308         * modules/unicase/u32-casefold-tests (Files): Likewise.
36309         * modules/unicase/u32-is-cased-tests (Files): Likewise.
36310         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
36311         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
36312         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
36313         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
36314         * modules/unicase/u32-tolower-tests (Files): Likewise.
36315         * modules/unicase/u32-totitle-tests (Files): Likewise.
36316         * modules/unicase/u32-toupper-tests (Files): Likewise.
36317         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
36318         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
36319         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
36320         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
36321         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
36322         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
36323         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
36324         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
36325         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
36326         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
36327         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
36328         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
36329         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
36330         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
36331         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
36332         * modules/unictype/bidicategory-name-tests (Files): Likewise.
36333         * modules/unictype/bidicategory-of-tests (Files): Likewise.
36334         * modules/unictype/bidicategory-test-tests (Files): Likewise.
36335         * modules/unictype/block-list-tests (Files): Likewise.
36336         * modules/unictype/block-of-tests (Files): Likewise.
36337         * modules/unictype/block-test-tests (Files): Likewise.
36338         * modules/unictype/category-C-tests (Files): Likewise.
36339         * modules/unictype/category-Cc-tests (Files): Likewise.
36340         * modules/unictype/category-Cf-tests (Files): Likewise.
36341         * modules/unictype/category-Cn-tests (Files): Likewise.
36342         * modules/unictype/category-Co-tests (Files): Likewise.
36343         * modules/unictype/category-Cs-tests (Files): Likewise.
36344         * modules/unictype/category-L-tests (Files): Likewise.
36345         * modules/unictype/category-Ll-tests (Files): Likewise.
36346         * modules/unictype/category-Lm-tests (Files): Likewise.
36347         * modules/unictype/category-Lo-tests (Files): Likewise.
36348         * modules/unictype/category-Lt-tests (Files): Likewise.
36349         * modules/unictype/category-Lu-tests (Files): Likewise.
36350         * modules/unictype/category-M-tests (Files): Likewise.
36351         * modules/unictype/category-Mc-tests (Files): Likewise.
36352         * modules/unictype/category-Me-tests (Files): Likewise.
36353         * modules/unictype/category-Mn-tests (Files): Likewise.
36354         * modules/unictype/category-N-tests (Files): Likewise.
36355         * modules/unictype/category-Nd-tests (Files): Likewise.
36356         * modules/unictype/category-Nl-tests (Files): Likewise.
36357         * modules/unictype/category-No-tests (Files): Likewise.
36358         * modules/unictype/category-P-tests (Files): Likewise.
36359         * modules/unictype/category-Pc-tests (Files): Likewise.
36360         * modules/unictype/category-Pd-tests (Files): Likewise.
36361         * modules/unictype/category-Pe-tests (Files): Likewise.
36362         * modules/unictype/category-Pf-tests (Files): Likewise.
36363         * modules/unictype/category-Pi-tests (Files): Likewise.
36364         * modules/unictype/category-Po-tests (Files): Likewise.
36365         * modules/unictype/category-Ps-tests (Files): Likewise.
36366         * modules/unictype/category-S-tests (Files): Likewise.
36367         * modules/unictype/category-Sc-tests (Files): Likewise.
36368         * modules/unictype/category-Sk-tests (Files): Likewise.
36369         * modules/unictype/category-Sm-tests (Files): Likewise.
36370         * modules/unictype/category-So-tests (Files): Likewise.
36371         * modules/unictype/category-Z-tests (Files): Likewise.
36372         * modules/unictype/category-Zl-tests (Files): Likewise.
36373         * modules/unictype/category-Zp-tests (Files): Likewise.
36374         * modules/unictype/category-Zs-tests (Files): Likewise.
36375         * modules/unictype/category-and-not-tests (Files): Likewise.
36376         * modules/unictype/category-and-tests (Files): Likewise.
36377         * modules/unictype/category-byname-tests (Files): Likewise.
36378         * modules/unictype/category-name-tests (Files): Likewise.
36379         * modules/unictype/category-none-tests (Files): Likewise.
36380         * modules/unictype/category-of-tests (Files): Likewise.
36381         * modules/unictype/category-or-tests (Files): Likewise.
36382         * modules/unictype/category-test-withtable-tests (Files): Likewise.
36383         * modules/unictype/combining-class-tests (Files): Likewise.
36384         * modules/unictype/ctype-alnum-tests (Files): Likewise.
36385         * modules/unictype/ctype-alpha-tests (Files): Likewise.
36386         * modules/unictype/ctype-blank-tests (Files): Likewise.
36387         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
36388         * modules/unictype/ctype-digit-tests (Files): Likewise.
36389         * modules/unictype/ctype-graph-tests (Files): Likewise.
36390         * modules/unictype/ctype-lower-tests (Files): Likewise.
36391         * modules/unictype/ctype-print-tests (Files): Likewise.
36392         * modules/unictype/ctype-punct-tests (Files): Likewise.
36393         * modules/unictype/ctype-space-tests (Files): Likewise.
36394         * modules/unictype/ctype-upper-tests (Files): Likewise.
36395         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
36396         * modules/unictype/decimal-digit-tests (Files): Likewise.
36397         * modules/unictype/digit-tests (Files): Likewise.
36398         * modules/unictype/mirror-tests (Files): Likewise.
36399         * modules/unictype/numeric-tests (Files): Likewise.
36400         * modules/unictype/property-alphabetic-tests (Files): Likewise.
36401         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
36402         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
36403         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
36404         Likewise.
36405         * modules/unictype/property-bidi-block-separator-tests (Files):
36406         Likewise.
36407         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
36408         Likewise.
36409         * modules/unictype/property-bidi-common-separator-tests (Files):
36410         Likewise.
36411         * modules/unictype/property-bidi-control-tests (Files): Likewise.
36412         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
36413         Likewise.
36414         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
36415         Likewise.
36416         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
36417         Likewise.
36418         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
36419         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
36420         Likewise.
36421         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
36422         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
36423         Likewise.
36424         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
36425         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
36426         * modules/unictype/property-bidi-segment-separator-tests (Files):
36427         Likewise.
36428         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
36429         * modules/unictype/property-byname-tests (Files): Likewise.
36430         * modules/unictype/property-combining-tests (Files): Likewise.
36431         * modules/unictype/property-composite-tests (Files): Likewise.
36432         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
36433         * modules/unictype/property-dash-tests (Files): Likewise.
36434         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
36435         * modules/unictype/property-default-ignorable-code-point-tests (Files):
36436         Likewise.
36437         * modules/unictype/property-deprecated-tests (Files): Likewise.
36438         * modules/unictype/property-diacritic-tests (Files): Likewise.
36439         * modules/unictype/property-extender-tests (Files): Likewise.
36440         * modules/unictype/property-format-control-tests (Files): Likewise.
36441         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
36442         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
36443         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
36444         * modules/unictype/property-hex-digit-tests (Files): Likewise.
36445         * modules/unictype/property-hyphen-tests (Files): Likewise.
36446         * modules/unictype/property-id-continue-tests (Files): Likewise.
36447         * modules/unictype/property-id-start-tests (Files): Likewise.
36448         * modules/unictype/property-ideographic-tests (Files): Likewise.
36449         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
36450         * modules/unictype/property-ids-trinary-operator-tests (Files):
36451         Likewise.
36452         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
36453         * modules/unictype/property-iso-control-tests (Files): Likewise.
36454         * modules/unictype/property-join-control-tests (Files): Likewise.
36455         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
36456         * modules/unictype/property-line-separator-tests (Files): Likewise.
36457         * modules/unictype/property-logical-order-exception-tests (Files):
36458         Likewise.
36459         * modules/unictype/property-lowercase-tests (Files): Likewise.
36460         * modules/unictype/property-math-tests (Files): Likewise.
36461         * modules/unictype/property-non-break-tests (Files): Likewise.
36462         * modules/unictype/property-not-a-character-tests (Files): Likewise.
36463         * modules/unictype/property-numeric-tests (Files): Likewise.
36464         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
36465         * modules/unictype/property-other-default-ignorable-code-point-tests
36466         (Files): Likewise.
36467         * modules/unictype/property-other-grapheme-extend-tests (Files):
36468         Likewise.
36469         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
36470         * modules/unictype/property-other-id-start-tests (Files): Likewise.
36471         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
36472         * modules/unictype/property-other-math-tests (Files): Likewise.
36473         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
36474         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
36475         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
36476         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
36477         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
36478         * modules/unictype/property-private-use-tests (Files): Likewise.
36479         * modules/unictype/property-punctuation-tests (Files): Likewise.
36480         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
36481         * modules/unictype/property-radical-tests (Files): Likewise.
36482         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
36483         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
36484         * modules/unictype/property-space-tests (Files): Likewise.
36485         * modules/unictype/property-terminal-punctuation-tests (Files):
36486         Likewise.
36487         * modules/unictype/property-test-tests (Files): Likewise.
36488         * modules/unictype/property-titlecase-tests (Files): Likewise.
36489         * modules/unictype/property-unassigned-code-value-tests (Files):
36490         Likewise.
36491         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
36492         * modules/unictype/property-uppercase-tests (Files): Likewise.
36493         * modules/unictype/property-variation-selector-tests (Files): Likewise.
36494         * modules/unictype/property-white-space-tests (Files): Likewise.
36495         * modules/unictype/property-xid-continue-tests (Files): Likewise.
36496         * modules/unictype/property-xid-start-tests (Files): Likewise.
36497         * modules/unictype/property-zero-width-tests (Files): Likewise.
36498         * modules/unictype/scripts-tests (Files): Likewise.
36499         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
36500         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
36501         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
36502         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
36503         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
36504         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
36505         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
36506         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
36507         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
36508         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
36509         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
36510         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
36511         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
36512         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
36513         * modules/uninorm/composition-tests (Files): Likewise.
36514         * modules/uninorm/decomposing-form-tests (Files): Likewise.
36515         * modules/uninorm/decomposition-tests (Files): Likewise.
36516         * modules/uninorm/filter-tests (Files): Likewise.
36517         * modules/uninorm/nfc-tests (Files): Likewise.
36518         * modules/uninorm/nfd-tests (Files): Likewise.
36519         * modules/uninorm/nfkc-tests (Files): Likewise.
36520         * modules/uninorm/nfkd-tests (Files): Likewise.
36521         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
36522         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
36523         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
36524         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
36525         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
36526         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
36527         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
36528         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
36529         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
36530         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
36531         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
36532         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
36533         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
36534         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
36535         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
36536         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
36537         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
36538         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
36539         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
36540         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
36541         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
36542         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
36543         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
36544         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
36545         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
36546         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
36547         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
36548         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
36549         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
36550         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
36551         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
36552         * modules/uniwidth/u8-width-tests (Files): Likewise.
36553         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
36554         * modules/uniwidth/u16-width-tests (Files): Likewise.
36555         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
36556         * modules/uniwidth/u32-width-tests (Files): Likewise.
36557         * modules/uniwidth/width-tests (Files): Likewise.
36558         * modules/unlink-tests (Files): Likewise.
36559         * modules/unsetenv-tests (Files): Likewise.
36560         * modules/usleep-tests (Files): Likewise.
36561         * modules/utimens-tests (Files): Likewise.
36562         * modules/utimensat-tests (Files): Likewise.
36563         * modules/vasnprintf-posix-tests (Files): Likewise.
36564         * modules/vasnprintf-tests (Files): Likewise.
36565         * modules/vasprintf-posix-tests (Files): Likewise.
36566         * modules/vasprintf-tests (Files): Likewise.
36567         * modules/vdprintf-posix-tests (Files): Likewise.
36568         * modules/vfprintf-posix-tests (Files): Likewise.
36569         * modules/vprintf-posix-tests (Files): Likewise.
36570         * modules/vsnprintf-posix-tests (Files): Likewise.
36571         * modules/vsnprintf-tests (Files): Likewise.
36572         * modules/vsprintf-posix-tests (Files): Likewise.
36573         * modules/wcrtomb-tests (Files): Likewise.
36574         * modules/wcsnrtombs-tests (Files): Likewise.
36575         * modules/wcsrtombs-tests (Files): Likewise.
36576         * modules/wctype-tests (Files): Likewise.
36577         * modules/wcwidth-tests (Files): Likewise.
36578         * modules/xmemdup0-tests (Files): Likewise.
36579         * modules/xprintf-posix-tests (Files): Likewise.
36580         * modules/xvasprintf-tests (Files): Likewise.
36581
36582 2009-12-24  Eric Blake  <ebb9@byu.net>
36583
36584         test-nanosleep: fix typo
36585         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
36586         patch.
36587         Reported by Bruno Haible.
36588
36589 2009-12-24  Bruno Haible  <bruno@clisp.org>
36590
36591         Reduce namespace pollution on glibc systems.
36592         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
36593         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
36594         systems.
36595         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
36596         <getopt.h> on glibc systems.
36597         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
36598         systems.
36599         * lib/fcntl.c: Include <unistd.h> here instead.
36600
36601 2009-12-24  Bruno Haible  <bruno@clisp.org>
36602
36603         * lib/stdlib.in.h (includes): Fix typo in today's commit.
36604
36605 2009-12-24  Eric Blake  <ebb9@byu.net>
36606
36607         tests: add signature checks
36608         * tests/signature.h (SIGNATURE_CHECK): New file.
36609         * modules/atexit-tests (Files): Use it.
36610         * modules/btowc-tests (Files): Likewise.
36611         * modules/canonicalize-lgpl-tests (Files): Likewise.
36612         * modules/ceilf-tests (Files): Likewise.
36613         * modules/ceill-tests (Files): Likewise.
36614         * modules/chown-tests (Files): Likewise.
36615         * modules/dprintf-posix-tests (Files): Likewise.
36616         * modules/dup2-tests (Files): Likewise.
36617         * modules/dup3-tests (Files): Likewise.
36618         * modules/duplocale-tests (Files): Likewise.
36619         * modules/fchdir-tests (Files): Likewise.
36620         * modules/fcntl-tests (Files): Likewise.
36621         * modules/fdopendir-tests (Files): Likewise.
36622         * modules/fflush-tests (Files): Likewise.
36623         * modules/flock-tests (Files): Likewise.
36624         * modules/floorf-tests (Files): Likewise.
36625         * modules/floorl-tests (Files): Likewise.
36626         * modules/fnmatch-tests (Files): Likewise.
36627         * modules/fopen-tests (Files): Likewise.
36628         * modules/fprintf-posix-tests (Files): Likewise.
36629         * modules/freopen-tests (Files): Likewise.
36630         * modules/frexp-nolibm-tests (Files): Likewise.
36631         * modules/frexp-tests (Files): Likewise.
36632         * modules/frexpl-nolibm-tests (Files): Likewise.
36633         * modules/frexpl-tests (Files): Likewise.
36634         * modules/fseek-tests (Files): Likewise.
36635         * modules/fseeko-tests (Files): Likewise.
36636         * modules/fsync-tests (Files): Likewise.
36637         * modules/ftell-tests (Files): Likewise.
36638         * modules/ftello-tests (Files): Likewise.
36639         * modules/futimens-tests (Files): Likewise.
36640         * modules/getaddrinfo-tests (Files): Likewise.
36641         * modules/getcwd-tests (Files): Likewise.
36642         * modules/getdelim-tests (Files): Likewise.
36643         * modules/getdtablesize-tests (Files): Likewise.
36644         * modules/getgroups-tests (Files): Likewise.
36645         * modules/gethostname-tests (Files): Likewise.
36646         * modules/getline-tests (Files): Likewise.
36647         * modules/getopt-posix-tests (Files): Likewise.
36648         * modules/gettimeofday-tests (Files): Likewise.
36649         * modules/glob-tests (Files): Likewise.
36650         * modules/iconv-tests (Files): Likewise.
36651         * modules/inet_ntop-tests (Files): Likewise.
36652         * modules/inet_pton-tests (Files): Likewise.
36653         * modules/isblank-tests (Files): Likewise.
36654         * modules/lchown-tests (Files): Likewise.
36655         * modules/ldexpl-tests (Files): Likewise.
36656         * modules/link-tests (Files): Likewise.
36657         * modules/linkat-tests (Files): Likewise.
36658         * modules/lseek-tests (Files): Likewise.
36659         * modules/lstat-tests (Files): Likewise.
36660         * modules/mbrtowc-tests (Files): Likewise.
36661         * modules/mbsinit-tests (Files): Likewise.
36662         * modules/mbsnrtowcs-tests (Files): Likewise.
36663         * modules/mbsrtowcs-tests (Files): Likewise.
36664         * modules/memchr-tests (Files): Likewise.
36665         * modules/memcmp-tests (Files): Likewise.
36666         * modules/memmem-tests (Files): Likewise.
36667         * modules/memrchr-tests (Files): Likewise.
36668         * modules/mkdir-tests (Files): Likewise.
36669         * modules/mkfifo-tests (Files): Likewise.
36670         * modules/mkfifoat-tests (Files): Likewise.
36671         * modules/mknod-tests (Files): Likewise.
36672         * modules/nanosleep-tests (Files): Likewise.
36673         * modules/nl_langinfo-tests (Files): Likewise.
36674         * modules/obstack-printf-tests (Files): Likewise.
36675         * modules/open-tests (Files): Likewise.
36676         * modules/openat-tests (Files): Likewise.
36677         * modules/perror-tests (Files): Likewise.
36678         * modules/pipe2-tests (Files): Likewise.
36679         * modules/poll-tests (Files): Likewise.
36680         * modules/popen-tests (Files): Likewise.
36681         * modules/posix_spawn-tests (Files): Likewise.
36682         * modules/posix_spawnp-tests (Files): Likewise.
36683         * modules/pread-tests (Files): Likewise.
36684         * modules/printf-posix-tests (Files): Likewise.
36685         * modules/pty-tests (Files): Likewise.
36686         * modules/random_r-tests (Files): Likewise.
36687         * modules/rawmemchr-tests (Files): Likewise.
36688         * modules/readlink-tests (Files): Likewise.
36689         * modules/remove-tests (Files): Likewise.
36690         * modules/rename-tests (Files): Likewise.
36691         * modules/renameat-tests (Files): Likewise.
36692         * modules/rmdir-tests (Files): Likewise.
36693         * modules/round-tests (Files): Likewise.
36694         * modules/roundf-tests (Files): Likewise.
36695         * modules/roundl-tests (Files): Likewise.
36696         * modules/select-tests (Files): Likewise.
36697         * modules/setenv-tests (Files): Likewise.
36698         * modules/sigaction-tests (Files): Likewise.
36699         * modules/sleep-tests (Files): Likewise.
36700         * modules/snprintf-posix-tests (Files): Likewise.
36701         * modules/snprintf-tests (Files): Likewise.
36702         * modules/sprintf-posix-tests (Files): Likewise.
36703         * modules/stat-tests (Files): Likewise.
36704         * modules/strcasestr-tests (Files): Likewise.
36705         * modules/strchrnul-tests (Files): Likewise.
36706         * modules/strerror-tests (Files): Likewise.
36707         * modules/strsignal-tests (Files): Likewise.
36708         * modules/strstr-tests (Files): Likewise.
36709         * modules/strtod-tests (Files): Likewise.
36710         * modules/strverscmp-tests (Files): Likewise.
36711         * modules/symlink-tests (Files): Likewise.
36712         * modules/symlinkat-tests (Files): Likewise.
36713         * modules/times-tests (Files): Likewise.
36714         * modules/trunc-tests (Files): Likewise.
36715         * modules/truncf-tests (Files): Likewise.
36716         * modules/truncl-tests (Files): Likewise.
36717         * modules/tsearch-tests (Files): Likewise.
36718         * modules/uname-tests (Files): Likewise.
36719         * modules/unlink-tests (Files): Likewise.
36720         * modules/unsetenv-tests (Files): Likewise.
36721         * modules/usleep-tests (Files): Likewise.
36722         * modules/utimensat-tests (Files): Likewise.
36723         * modules/vasprintf-tests (Files): Likewise.
36724         * modules/vdprintf-posix-tests (Files): Likewise.
36725         * modules/vfprintf-posix-tests (Files): Likewise.
36726         * modules/vprintf-posix-tests (Files): Likewise.
36727         * modules/vsnprintf-posix-tests (Files): Likewise.
36728         * modules/vsnprintf-tests (Files): Likewise.
36729         * modules/vsprintf-posix-tests (Files): Likewise.
36730         * modules/wcrtomb-tests (Files): Likewise.
36731         * modules/wcsnrtombs-tests (Files): Likewise.
36732         * modules/wcsrtombs-tests (Files): Likewise.
36733         * modules/wcwidth-tests (Files): Likewise.
36734         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
36735         * tests/test-isinf.c (isinf): Likewise.
36736         * tests/test-isnan.c (isnan): Likewise.
36737         * tests/test-signbit.c (signbit): Likewise.
36738         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
36739         declaration, either as macro or with correct signature.
36740         (select): Ensure function under test is declared with correct
36741         signature in correct header.
36742         * tests/test-atexit.c (atexit): Likewise.
36743         * tests/test-btowc.c (btowc): Likewise.
36744         * tests/test-canonicalize-lgpl.c (realpath)
36745         (canonicalize_file_name): Likewise.
36746         * tests/test-ceilf1.c (ceilf): Likewise.
36747         * tests/test-ceill.c (ceill): Likewise.
36748         * tests/test-chown.c (chown): Likewise.
36749         * tests/test-dprintf-posix.c (dprintf): Likewise.
36750         * tests/test-dup2.c (dup2): Likewise.
36751         * tests/test-dup3.c (dup3): Likewise.
36752         * tests/test-duplocale.c (duplocale): Likewise.
36753         * tests/test-fchdir.c (fchdir): Likewise.
36754         * tests/test-fchownat.c (fchownat): Likewise.
36755         * tests/test-fcntl.c (fcntl): Likewise.
36756         * tests/test-fdopendir.c (fdopendir): Likewise.
36757         * tests/test-fflush.c (fflush): Likewise.
36758         * tests/test-flock.c (flock): Likewise.
36759         * tests/test-floorf1.c (floorf): Likewise.
36760         * tests/test-floorl.c (floorl): Likewise.
36761         * tests/test-fnmatch.c (fnmatch): Likewise.
36762         * tests/test-fopen.c (fopen): Likewise.
36763         * tests/test-fprintf-posix.c (fprintf): Likewise.
36764         * tests/test-freopen.c (freopen): Likewise.
36765         * tests/test-frexp.c (frexp): Likewise.
36766         * tests/test-frexpl.c (frexpl): Likewise.
36767         * tests/test-fseek.c (fseek): Likewise.
36768         * tests/test-fseeko.c (fseeko): Likewise.
36769         * tests/test-fstatat.c (fstatat): Likewise.
36770         * tests/test-fsync.c (fsync): Likewise.
36771         * tests/test-ftell.c (ftell): Likewise.
36772         * tests/test-ftello.c (ftello): Likewise.
36773         * tests/test-futimens.c (futimens): Likewise.
36774         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
36775         (gai_strerror): Likewise.
36776         * tests/test-getcwd.c (getcwd): Likewise.
36777         * tests/test-getdelim.c (getdelim): Likewise.
36778         * tests/test-getdtablesize.c (getdtablesize): Likewise.
36779         * tests/test-getgroups.c (getgroups): Likewise.
36780         * tests/test-gethostname.c (gethostname): Likewise.
36781         * tests/test-getline.c (getline): Likewise.
36782         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
36783         Likewise.
36784         * tests/test-gettimeofday.c (gettimeofday): Likewise.
36785         * tests/test-glob.c (glob, globfree): Likewise.
36786         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
36787         * tests/test-inet_ntop.c (inet_ntop): Likewise.
36788         * tests/test-inet_pton.c (inet_pton): Likewise.
36789         * tests/test-isblank.c (isblank): Likewise.
36790         * tests/test-lchown.c (lchown): Likewise.
36791         * tests/test-ldexpl.c (ldexpl): Likewise.
36792         * tests/test-link.c (link): Likewise.
36793         * tests/test-linkat.c (linkat): Likewise.
36794         * tests/test-lseek.c (lseek): Likewise.
36795         * tests/test-lstat.c (lstat): Likewise.
36796         * tests/test-mbrtowc.c (mbrtowc): Likewise.
36797         * tests/test-mbsinit.c (mbsinit): Likewise.
36798         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
36799         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
36800         * tests/test-memchr.c (memchr): Likewise.
36801         * tests/test-memcmp.c (memcmp): Likewise.
36802         * tests/test-memmem.c (memmem): Likewise.
36803         * tests/test-memrchr.c (memrchr): Likewise.
36804         * tests/test-mkdir.c (mkdir): Likewise.
36805         * tests/test-mkdirat.c (mkdirat): Likewise.
36806         * tests/test-mkfifo.c (mkfifo): Likewise.
36807         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
36808         * tests/test-mknod.c (mknod): Likewise.
36809         * tests/test-nanosleep.c (nanosleep): Likewise.
36810         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
36811         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
36812         Likewise.
36813         * tests/test-open.c (open): Likewise.
36814         * tests/test-openat.c (openat): Likewise.
36815         * tests/test-perror.c (perror): Likewise.
36816         * tests/test-pipe2.c (pipe2): Likewise.
36817         * tests/test-poll.c (poll): Likewise.
36818         * tests/test-popen.c (popen, pclose): Likewise.
36819         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
36820         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
36821         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
36822         (posix_spawn_file_actions_destroy)
36823         (posix_spawn_file_actions_addclose)
36824         (posix_spawn_file_actions_addopen)
36825         (posix_spawn_file_actions_adddup2): Likewise.
36826         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
36827         * tests/test-pread.c (pread): Likewise.
36828         * tests/test-printf-posix.c (printf): Likewise.
36829         * tests/test-pty.c (openpty, forkpty): Likewise.
36830         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
36831         (random_r): Likewise.
36832         * tests/test-rawmemchr.c (rawmemchr): Likewise.
36833         * tests/test-readlink.c (readlink): Likewise.
36834         * tests/test-remove.c (remove): Likewise.
36835         * tests/test-rename.c (rename): Likewise.
36836         * tests/test-renameat.c (renameat): Likewise.
36837         * tests/test-rmdir.c (rmdir): Likewise.
36838         * tests/test-round1.c (round): Likewise.
36839         * tests/test-roundf1.c (roundf): Likewise.
36840         * tests/test-roundl.c (roundl): Likewise.
36841         * tests/test-setenv.c (setenv): Likewise.
36842         * tests/test-sigaction.c (sigaction): Likewise.
36843         * tests/test-sleep.c (sleep): Likewise.
36844         * tests/test-snprintf.c (snprintf): Likewise.
36845         * tests/test-sprintf-posix.c (sprintf): Likewise.
36846         * tests/test-stat.c (stat): Likewise.
36847         * tests/test-stpncpy.c (stpncpy): Likewise.
36848         * tests/test-strcasestr.c (strcasestr): Likewise.
36849         * tests/test-strchrnul.c (strchrnul): Likewise.
36850         * tests/test-strerror.c (strerror): Likewise.
36851         * tests/test-strsignal.c (strsignal): Likewise.
36852         * tests/test-strstr.c (strstr): Likewise.
36853         * tests/test-strtod.c (strtod): Likewise.
36854         * tests/test-strverscmp.c (strverscmp): Likewise.
36855         * tests/test-symlink.c (symlink): Likewise.
36856         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
36857         * tests/test-times.c (times): Likewise.
36858         * tests/test-trunc1.c (trunc): Likewise.
36859         * tests/test-truncf1.c (truncf): Likewise.
36860         * tests/test-truncl.c (truncl): Likewise.
36861         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
36862         Likewise.
36863         * tests/test-uname.c (uname): Likewise.
36864         * tests/test-unlink.c (unlink): Likewise.
36865         * tests/test-unlinkat.c (unlinkat): Likewise.
36866         * tests/test-unsetenv.c (unsetenv): Likewise.
36867         * tests/test-usleep.c (usleep): Likewise.
36868         * tests/test-utimensat.c (utimensat): Likewise.
36869         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
36870         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
36871         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
36872         * tests/test-vprintf-posix.c (vprintf): Likewise.
36873         * tests/test-vsnprintf.c (vsnprintf): Likewise.
36874         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
36875         * tests/test-wcrtomb.c (wcrtomb): Likewise.
36876         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
36877         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
36878         * tests/test-wcwidth.c (wcwidth): Likewise.
36879
36880         build: pull in conditional headers during GNULIB_POSIXCHECK
36881         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
36882         definitions from any conditionally-included headers.
36883         * lib/stdlib.in.h (includes): Likewise.
36884         * lib/unistd.in.h (includes): Likewise.
36885
36886 2009-12-24  Bruno Haible  <bruno@clisp.org>
36887
36888         * tests/test-argv-iter.c: Include header file being tested immediately
36889         after config.h.
36890         * tests/test-base64.c: Likewise.
36891         * tests/test-flock.c: Likewise.
36892         * tests/test-fsync.c: Likewise.
36893         * tests/test-getdate.c: Likewise.
36894         * tests/test-getndelim2.c: Likewise.
36895         * tests/test-isfinite.c: Likewise.
36896         * tests/test-isinf.c: Likewise.
36897         * tests/test-strerror.c: Likewise.
36898         * tests/test-strsignal.c: Likewise.
36899
36900 2009-12-23  Eric Blake  <ebb9@byu.net>
36901
36902         unistd: work around cygwin bug
36903         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
36904         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
36905         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36906
36907 2009-12-23  Bruno Haible  <bruno@clisp.org>
36908
36909         localename: More tests.
36910         * tests/test-localename.c (SIZEOF): New macro.
36911         (categories): New variable.
36912         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
36913         test_locale_name_default): Add test w.r.t. thread locale.
36914         (test_locale_name_thread): New function.
36915         (main): Invoke it.
36916
36917         localename: Make aware of thread locale.
36918         * lib/localename.h (gl_locale_name_thread): New declaration.
36919         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
36920         behaviour with respect to thread locale.
36921         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
36922         <langinfo.h>, glthread/lock.h.
36923         (SIZE_BITS): New macro.
36924         (string_hash): New function.
36925         (struct hash_node): New type.
36926         (HASH_TABLE_SIZE): New macro.
36927         (struniq_hash_table, struniq_lock): New variables.
36928         (struniq): New function.
36929         (gl_locale_name_thread): New function.
36930         (gl_locale_name): Invoke it.
36931         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
36932         * modules/localename (Depends-on): Add lock.
36933         Reported by Mike Gran <spk121@yahoo.com>.
36934
36935 2009-12-23  Eric Blake  <ebb9@byu.net>
36936
36937         va-args: new module
36938         * modules/va-args: New file.
36939         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
36940         * MODULES.html.sh (Core language properties): Mention it.
36941
36942         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
36943         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
36944         named alias for __attribute__((__unused__)).
36945         * lib/chown.c: Update client.
36946         * lib/fchmodat.c: Likewise.
36947         * lib/fts.c: Likewise.
36948         * lib/getdate.y: Likewise.
36949         * lib/getgroups.c: Likewise.
36950         * lib/getopt.c: Likewise.
36951         * lib/getugroups.c: Likewise.
36952         * lib/mkdir.c: Likewise.
36953         * lib/mkfifo.c: Likewise.
36954         * lib/mkfifoat.c: Likewise.
36955         * lib/mknod.c: Likewise.
36956         * lib/mknodat.c: Likewise.
36957         * lib/readlink.c: Likewise.
36958         * lib/se-context.in.h: Likewise.
36959         * lib/se-selinux.in.h: Likewise.
36960         * lib/sockets.c: Likewise.
36961         * lib/symlink.c: Likewise.
36962         * lib/symlinkat.c: Likewise.
36963         * lib/unicodeio.c: Likewise.
36964         * lib/unistr.h: Likewise.
36965         * tests/test-areadlink.c: Likewise.
36966         * tests/test-areadlinkat.c: Likewise.
36967         * tests/test-filenamecat.c: Likewise.
36968         * tests/test-fseeko.c: Likewise.
36969         * tests/test-ftello.c: Likewise.
36970         * tests/test-getdate.c: Likewise.
36971         * tests/test-getgroups.c: Likewise.
36972         * tests/test-gethostname.c: Likewise.
36973         * tests/test-quotearg.c: Likewise.
36974         * tests/test-version-etc.c: Likewise.
36975         * tests/test-xalloc-die.c: Likewise.
36976         * tests/test-xfprintf-posix.c: Likewise.
36977         * tests/test-xprintf-posix.c: Likewise.
36978         * tests/test-xvasprintf.c: Likewise.
36979
36980         tests: avoid compiler warnings
36981         * tests/test-fcntl.c (main): Delete unused parameters.
36982         * tests/test-freopen-safer.c (main): Likewise.
36983         * tests/test-xalloc-die.c (main): Mark unused parameters.
36984         * tests/test-fseeko.c (main): Likewise.
36985         * tests/test-ftello.c (main): Likewise.
36986         * tests/test-nanosleep.c (main): Avoid declaration warning.
36987         * tests/test-sleep.c (main): Likewise.
36988         * tests/test-unsetenv.c (main): Silence warning about string
36989         literal.
36990         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
36991
36992 2009-12-23  Bruno Haible  <bruno@clisp.org>
36993
36994         * tests/test-localename.c (test_locale_name): New function, extracted
36995         from main. Also test mixed situations.
36996         (test_locale_name_posix, test_locale_name_environ,
36997         test_locale_name_default): New functions.
36998         (main): Invoke them all.
36999         * modules/localename-tests (configure.ac): Test for newlocale.
37000
37001 2009-12-23  Bruno Haible  <bruno@clisp.org>
37002
37003         unistd: Ensure getcwd gets declared before being overridden.
37004         * lib/unistd.in.h: Conditionally include <io.h>.
37005
37006 2009-12-22  Bruno Haible  <bruno@clisp.org>
37007
37008         wchar: Diagnose broken combination of glibc and gcc versions and flags.
37009         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
37010         (gl_WCHAR_H): Invoke it.
37011         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
37012         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
37013         Reported by Karl Berry <karl@freefriends.org>.
37014
37015 2009-12-22  Eric Blake  <ebb9@byu.net>
37016
37017         math, unistd: avoid redundant includes
37018         * lib/math.in.h (isnan): No need to re-include <math.h>.
37019         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
37020
37021         getsubopt: work around cygwin bug
37022         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
37023         avoid conflicting with system getsubopt.
37024         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
37025         bug.
37026
37027         getopt: synchronize from glibc
37028         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
37029         parameter order.  Adjust all callers.
37030         (_getopt_internal_r, main): Adjust quoting in error messages.
37031         Drop considerations for outdated POSIX 1003.2 error message.
37032         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
37033         callers.
37034         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
37035
37036         test-getopt: test stderr behavior
37037         * modules/getopt-posix-tests (Depends-on): Add dup2.
37038         * tests/test-getopt.c (ASSERT): Avoid stderr.
37039         (main): Move stderr to a temporary file.
37040         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
37041         Instead, add parameter to inform caller if output occurred.
37042         (test_getopt): Adjust all existing tests to expect silence, and
37043         add new tests of leading ":".
37044         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37045         glibc shortcomings with leading "-:" or "+:" in optstring.
37046         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37047         Likewise.
37048         * doc/posix-functions/getopt.texi (getopt): Likewise.
37049
37050         test-getopt: enhance test
37051         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
37052         supports optind=0.
37053         * tests/test-getopt.c (OPTIND_MIN): Move...
37054         * tests/test-getopt.h (OPTIND_MIN): ...here.
37055         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
37056         Require that optind=0 works, since modern BSD supports it in
37057         addition to optreset, and since coreutils expects it.
37058         (test_getopt_long_only): New test.
37059         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37060         glibc shortcomings with 'W;', and enforcement of optind=0.
37061         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37062         Likewise.
37063
37064 2009-12-21  Bruno Haible  <bruno@clisp.org>
37065
37066         localename: Improvements for MacOS X and Cygwin.
37067         * lib/localename.h (gl_locale_name_environ): New declaration.
37068         * lib/localename.c (gl_locale_name_environ): New function, extracted from
37069         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
37070         (gl_locale_name_posix): Invoke it.
37071         (gl_locale_name_default): Add comments. Use Windows native API also on
37072         Cygwin.
37073
37074 2009-12-21  Bruno Haible  <bruno@clisp.org>
37075
37076         Update list of Win32 locale ids.
37077         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
37078         (LANG_SAMI): Renamed from LANG_SAAMI.
37079         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
37080         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
37081         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
37082         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
37083         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
37084         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
37085         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
37086         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
37087         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
37088         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
37089         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
37090         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
37091         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
37092         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
37093         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
37094         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
37095         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
37096         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
37097         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
37098         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
37099         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
37100         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
37101         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
37102         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
37103         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
37104         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
37105         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
37106         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
37107         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
37108         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
37109         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
37110         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
37111         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
37112         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
37113         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
37114         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
37115         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
37116         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
37117         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
37118         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
37119         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
37120         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
37121         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
37122         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
37123         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
37124         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
37125         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
37126         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
37127         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
37128         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
37129         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
37130         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
37131         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
37132         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
37133         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
37134         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
37135         Add more languages and countries for Sami, Sorbian. Add more countries
37136         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
37137         for Pashto. Change country for Syriac, Tswana.
37138
37139 2009-12-21  Eric Blake  <ebb9@byu.net>
37140
37141         test-utimens: avoid spurious failure
37142         * tests/test-chown.h (nap): Factor...
37143         * tests/nap.h: ...into new file.
37144         * tests/test-lchown.h (nap): Avoid duplication.
37145         * tests/test-utimens-common.h (nap): Use shared implementation,
37146         necessary on file systems with 1-second resolution.
37147         * modules/chown-tests (Files): Include new file.
37148         * modules/fdutimensat-tests (Files): Likewise.
37149         * modules/futimens-tests (Files): Likewise.
37150         * modules/lchown-tests (Files): Likewise.
37151         * modules/openat-tests (Files): Likewise.
37152         * modules/utimens-tests (Files): Likewise.
37153         * modules/utimensat-tests (Files): Likewise.
37154
37155 2009-12-19  Eric Blake  <ebb9@byu.net>
37156
37157         futimens, utimensat: work around Linux bug
37158         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
37159         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37160         * lib/utimensat.c (rpl_utimensat): Work around it.
37161         * lib/futimens.c (rpl_futimens): Adjust comment.
37162
37163         utimens: work around Linux ctime bug
37164         * lib/utimens.c (detect_ctime_bug): New helper function.
37165         (update_timespec): Differentiate between workaround needed for
37166         this bug vs. what is needed for systems that lack utimensat.
37167         (fdutimens, lutimens): Work around bug.
37168
37169         utimens: check for ctime update
37170         * tests/test-utimens-common.h (check_ctime): Define.
37171         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
37172         * tests/test-futimens.h (test_futimens): Likewise.
37173         * tests/test-lutimens.h (test_lutimens): Likewise.
37174         * doc/posix-functions/futimens.texi (futimens): Document the bug.
37175         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37176
37177 2009-12-19  Bruno Haible  <bruno@clisp.org>
37178
37179         dprintf-posix: Check against memory leak fixed on 2009-12-15.
37180         * tests/test-dprintf-posix2.sh: New file.
37181         * tests/test-dprintf-posix2.c: New file.
37182         * modules/dprintf-posix-tests (Files): Add them.
37183         (configure.ac): Check for getrlimit and setrlimit.
37184         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37185
37186 2009-12-19  Bruno Haible  <bruno@clisp.org>
37187
37188         fprintf-posix: Check against memory leak fixed on 2009-12-15.
37189         * tests/test-fprintf-posix3.sh: New file.
37190         * tests/test-fprintf-posix3.c: New file.
37191         * modules/fprintf-posix-tests (Files): Add them.
37192         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37193
37194 2009-12-19  Eric Blake  <ebb9@byu.net>
37195
37196         dirfd: fix prototype
37197         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
37198         * lib/dirfd.c (dirfd): Likewise.
37199
37200         canonicalize: reduce memory usage
37201         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
37202         allocation to size.
37203         Reported by Solar Designer <solar@openwall.com>.
37204
37205 2009-12-19  Bruno Haible  <bruno@clisp.org>
37206
37207         New module attribute 'Applicability'.
37208         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
37209         * gnulib-tool: New option --extract-applicability.
37210         (func_usage): Document it.
37211         (sed_extract_prog): Recognize it.
37212         (func_get_applicability): New function.
37213         (func_import): Generalize handling of 'link-warning' module.
37214         * modules/link-warning (Applicability): New section.
37215         * modules/arg-nonnull (Applicability): New section.
37216         Repoted by Simon Josefsson <simon@josefsson.org>.
37217
37218 2009-12-19  Bruno Haible  <bruno@clisp.org>
37219
37220         fflush: tweak
37221         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
37222         * lib/fseeko.c (rpl_fseeko): Likewise.
37223
37224 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
37225
37226         * lib/gl_list.h: Fix typo in comment.
37227
37228 2009-12-16  Eric Blake  <ebb9@byu.net>
37229
37230         fcntl: use to simplify other modules
37231         * modules/cloexec (Depends-on): Add fcntl.
37232         * modules/fchdir (Depends-on): Likewise.
37233         * modules/fd-safer-flag (Depends-on): Likewise.
37234         * modules/unistd-safer (Depends-on): Likewise.
37235         * modules/dup3 (configure.ac): Set module indicator.
37236         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
37237         missing.
37238         * lib/fchdir.c (_gl_register_dup): Fix comment.
37239         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
37240         * lib/dup-safer.c (dup_safer): Likewise.
37241         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
37242         * lib/dup3.c (dup3): Likewise.
37243         * tests/test-fchdir.c (main): Enhance test.
37244         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
37245
37246         fcntl: port portions of fcntl to mingw
37247         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
37248         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
37249         replacement for mingw.
37250         * modules/fcntl (Description): Update.
37251         (Depends-on): Add dup2.
37252         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
37253         * modules/fcntl-h (Makefile.am): Substitute it.
37254         * lib/fcntl.in.h (fcntl): Update declaration.
37255         (F_DUPFD, F_GETFD): New macros, when needed.
37256         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37257         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
37258         * tests/test-fcntl.c (check_flags, main): Enhance test for items
37259         we now guarantee.
37260
37261         fcntl: work around cygwin bug in F_DUPFD
37262         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
37263         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
37264         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
37265         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
37266         * doc/posix-functions/fcntl.texi (fcntl): Document it.
37267
37268         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
37269         * modules/fcntl (Files): List new files.
37270         (configure.ac): Run a test.
37271         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
37272         * lib/fcntl.c (rpl_fcntl): Likewise.
37273         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
37274         (gl_FCNTL_H): Always replace fcntl.h.
37275         * modules/fcntl-h (Makefile.am): Substitute witnesses.
37276         * lib/fcntl.in.h (fcntl): Declare replacement.
37277         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
37278         needed, plus a witness.
37279         * doc/posix-functions/fcntl.texi (fcntl): Document this.
37280         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37281         * tests/test-fcntl.c: New file.
37282         * modules/fcntl-tests: Likewise.
37283
37284         binary-io: avoid potential compilation warning
37285         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
37286         directives.
37287
37288         fflush: avoid compilation error on NetBSD
37289         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
37290         between off_t and fpos_t, since the latter is sometimes a struct.
37291         * lib/fseeko.c (rpl_fseeko): Likewise.
37292         Reported by Alexander Nasonov <alnsn@yandex.ru>.
37293
37294 2009-12-15  Eric Blake  <ebb9@byu.net>
37295
37296         fcntl-h, stdio, sys_ioctl: fix declarations
37297         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
37298         function must not take arguments.
37299         * lib/sys_ioctl.in.h (ioctl): Likewise.
37300         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
37301         (open): Add a link warning.
37302
37303 2009-12-15  Jim Meyering  <meyering@redhat.com>
37304
37305         areadlink, areadlink-with-size: relax license to LGPLv2+
37306         * modules/areadlink (License): Relax to LGPLv2+.
37307         * modules/areadlink-with-size (License): Likewise.
37308
37309 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
37310             Bruno Haible  <bruno@clisp.org>
37311
37312         *printf: Fix memory leak.
37313         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
37314         * lib/vfprintf.c (vfprintf): Likewise.
37315         * lib/dprintf.c (dprintf): Likewise.
37316         * lib/vdprintf.c (vdprintf): Likewise.
37317
37318 2009-12-14  Eric Blake  <ebb9@byu.net>
37319
37320         accept4: adjust module dependencies
37321         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
37322
37323         utimens: one more try at avoiding compiler warning
37324         * lib/utimens.c (lutimens): Lower scope of result.
37325
37326 2009-12-13  Bruno Haible  <bruno@clisp.org>
37327
37328         Move the malloc checking from module 'list' to new module 'xlist'.
37329         * modules/xlist: New file.
37330         * lib/gl_xlist.h: New file.
37331         * lib/gl_xlist.c: New file.
37332         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
37333         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
37334         gl_list_add_last, gl_list_add_before, gl_list_add_after,
37335         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
37336         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
37337         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
37338         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
37339         gl_sortedlist_nx_add): New declarations.
37340         (struct gl_list_implementation): Rename and change methods accordingly.
37341         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
37342         (gl_list_nx_create): Renamed from gl_list_create.
37343         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37344         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37345         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37346         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37347         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37348         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37349         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37350         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37351         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
37352         gl_list_create_empty.
37353         (gl_list_nx_create): Renamed from gl_list_create.
37354         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37355         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37356         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37357         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37358         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37359         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37360         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37361         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37362         * lib/gl_array_list.c: Don't include xalloc.h.
37363         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
37364         NULL upon out-of-memory.
37365         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
37366         out-of-memory.
37367         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
37368         Change return type to 'int'.
37369         (gl_array_nx_set_at): Renamed from gl_array_set_at.
37370         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37371         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
37372         upon out-of-memory.
37373         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
37374         upon out-of-memory.
37375         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
37376         upon out-of-memory.
37377         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
37378         upon out-of-memory.
37379         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
37380         out-of-memory.
37381         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
37382         Update.
37383         (gl_array_list_implementation): Update.
37384         * lib/gl_carray_list.c: Don't include xalloc.h.
37385         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
37386         Return NULL upon out-of-memory.
37387         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
37388         out-of-memory.
37389         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
37390         Change return type to 'int'.
37391         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
37392         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37393         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
37394         upon out-of-memory.
37395         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
37396         upon out-of-memory.
37397         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
37398         out-of-memory.
37399         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
37400         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
37401         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
37402         Update.
37403         (gl_carray_list_implementation): Update.
37404         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
37405         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
37406         gl_linked_create_empty. Return NULL upon out-of-memory.
37407         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
37408         out-of-memory.
37409         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
37410         Change return type to 'int'. Return -1 upon out-of-memory.
37411         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
37412         out-of-memory.
37413         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
37414         upon out-of-memory.
37415         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
37416         upon out-of-memory.
37417         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
37418         NULL upon out-of-memory.
37419         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
37420         upon out-of-memory.
37421         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
37422         out-of-memory.
37423         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
37424         Update.
37425         * lib/gl_linked_list.c: Don't include xalloc.h.
37426         (gl_linked_list_implementation): Update.
37427         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
37428         (add_to_bucket): Change return type to 'int'.
37429         (gl_linkedhash_list_implementation): Update.
37430         * lib/gl_anytree_list1.h (free_subtree): New function.
37431         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
37432         gl_tree_create_empty. Return NULL upon out-of-memory.
37433         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
37434         Change return type to 'int'. Return -1 upon out-of-memory.
37435         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
37436         out-of-memory.
37437         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
37438         (gl_tree_remove_node): New function, moved here from
37439         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
37440         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
37441         Update.
37442         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
37443         malloc, not xmalloc. Return NULL upon out-of-memory.
37444         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37445         out-of-memory.
37446         (gl_tree_remove_node_from_tree): New function, extracted from
37447         gl_tree_remove_node.
37448         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37449         upon out-of-memory.
37450         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37451         out-of-memory.
37452         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37453         upon out-of-memory.
37454         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37455         upon out-of-memory.
37456         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37457         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
37458         not xmalloc. Return NULL upon out-of-memory.
37459         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37460         out-of-memory.
37461         (gl_tree_remove_node_from_tree): New function, extracted from
37462         gl_tree_remove_node.
37463         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37464         upon out-of-memory.
37465         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37466         out-of-memory.
37467         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37468         upon out-of-memory.
37469         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37470         upon out-of-memory.
37471         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37472         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
37473         gl_anytree_list1.h before gl_anyavltree_list2.h.
37474         (gl_avltree_list_implementation): Update.
37475         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
37476         gl_anytree_list1.h before gl_anyavltree_list2.h.
37477         (gl_rbtree_list_implementation): Update.
37478         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
37479         Change return type to 'int'. Return -1 upon out-of-memory. Use
37480         __builtin_expect.
37481         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
37482         (gl_avltreehash_list_implementation): Update.
37483         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
37484         (gl_rbtreehash_list_implementation): Update.
37485         * modules/array-list (Depends-on): Remove xalloc.
37486         * modules/carray-list (Depends-on): Likewise.
37487         * modules/linked-list (Depends-on): Likewise.
37488         * modules/linkedhash-list (Depends-on): Likewise.
37489         * modules/avltree-list (Depends-on): Likewise.
37490         * modules/rbtree-list (Depends-on): Likewise.
37491         * modules/avltreehash-list (Depends-on): Likewise.
37492         * modules/rbtreehash-list (Depends-on): Likewise.
37493
37494         * modules/xsublist: New file.
37495         * lib/gl_xsublist.h: New file.
37496         * lib/gl_xsublist.c: New file.
37497         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
37498         (gl_sublist_nx_create): New declaration.
37499         * lib/gl_sublist.c: Don't include xalloc.h.
37500         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
37501         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
37502         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
37503         Change return type to 'int'. Return -1 upon out-of-memory.
37504         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
37505         upon out-of-memory.
37506         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
37507         NULL upon out-of-memory.
37508         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
37509         upon out-of-memory.
37510         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
37511         NULL upon out-of-memory.
37512         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
37513         NULL upon out-of-memory.
37514         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
37515         upon out-of-memory.
37516         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
37517         (gl_sublist_list_implementation): Update.
37518         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
37519         upon out-of-memory.
37520         * modules/sublist (Depends-on): Remove xalloc.
37521
37522         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
37523         * tests/test-carray_list.c: Likewise.
37524         * tests/test-linked_list.c: Likewise.
37525         * tests/test-linkedhash_list.c: Likewise.
37526         * tests/test-avltree_list.c: Likewise.
37527         * tests/test-rbtree_list.c: Likewise.
37528         * tests/test-avltreehash_list.c: Likewise.
37529         * tests/test-rbtreehash_list.c: Likewise.
37530         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
37531         * modules/carray-list-tests (Makefile.am): Likewise.
37532         * modules/linked-list-tests (Makefile.am): Likewise.
37533         * modules/linkedhash-list-tests (Makefile.am): Likewise.
37534         * modules/avltree-list-tests (Makefile.am): Likewise.
37535         * modules/rbtree-list-tests (Makefile.am): Likewise.
37536         * modules/avltreehash-list-tests (Makefile.am): Likewise.
37537         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
37538
37539         * NEWS: Mention the changes.
37540
37541         * lib/clean-temp.c: Include gl_xlist.h.
37542         * modules/clean-temp (Depends-on): Add xlist.
37543
37544         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
37545         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
37546
37547         * tests/test-array_oset.c: Include gl_xlist.h.
37548         * modules/array-oset-tests (Depends-on): Add xlist.
37549
37550         Reported by José E. Marchesi <jemarch@gnu.org>.
37551
37552 2009-12-13  Bruno Haible  <bruno@clisp.org>
37553
37554         Move the malloc checking from module 'oset' to new module 'xoset'.
37555         * modules/xoset: New file.
37556         * lib/gl_xoset.h: New file.
37557         * lib/gl_xoset.c: New file.
37558         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
37559         declarations.
37560         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
37561         (struct gl_oset_implementation): Rename and change methods accordingly.
37562         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
37563         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37564         'int'. Mark as __warn_unused_result__.
37565         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
37566         gl_oset_create_empty.
37567         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37568         'int'.
37569         * lib/gl_array_oset.c: Don't include xalloc.h.
37570         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
37571         malloc, not xmalloc.
37572         (grow): Change return type to 'int'. Don't call xalloc_die.
37573         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
37574         to 'int'.
37575         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
37576         'int'.
37577         (gl_array_oset_implementation): Update.
37578         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
37579         gl_tree_create_empty.
37580         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
37581         'int'.
37582         * lib/gl_avltree_oset.c: Don't include xalloc.h.
37583         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37584         xmalloc.
37585         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37586         not xmalloc.
37587         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37588         xmalloc.
37589         (gl_avltree_oset_implementation): Update.
37590         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
37591         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37592         xmalloc.
37593         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37594         not xmalloc.
37595         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37596         xmalloc.
37597         (gl_rbtree_oset_implementation): Update.
37598         * modules/array-oset (Depends-on): Remove xalloc.
37599         * modules/avltree-oset (Depends-on): Likewise.
37600         * modules/rbtree-oset (Depends-on): Likewise.
37601         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
37602         * tests/test-avltree_oset.c: Likewise.
37603         * tests/test-rbtree_oset.c: Likewise.
37604         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
37605         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
37606         * modules/rbtree-oset-tests (Makefile.am): Likewise.
37607         * NEWS: Mention the change.
37608
37609 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
37610
37611         maint.mk: allow a project to override release-prep commands
37612         * top/maint.mk (alpha, beta, stable): Move release-preparatory
37613         commands into a new rule.
37614         (release-prep): New rule.
37615         (release-prep-hook): New overridable variable.
37616
37617 2009-12-13  Bruno Haible  <bruno@clisp.org>
37618
37619         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
37620
37621 2009-12-13  Jim Meyering  <meyering@redhat.com>
37622
37623         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
37624         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
37625
37626 2009-12-12  Bruno Haible  <bruno@clisp.org>
37627
37628         duplocale: Tweak.
37629         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
37630
37631 2009-12-12  Karl Berry  <karl@gnu.org>
37632
37633         * config/srclist.txt (strtoll.c): tab changes, no more sync.
37634
37635 2009-12-12  Bruno Haible  <bruno@clisp.org>
37636
37637         * m4/po.m4: Undo incorrect untabification.
37638
37639 2009-12-12  Bruno Haible  <bruno@clisp.org>
37640
37641         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
37642         * modules/c-strtod (Depends-on): Add locale.
37643         * modules/c-strtold (Depends-on): Likewise.
37644
37645 2009-12-12  Bruno Haible  <bruno@clisp.org>
37646
37647         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
37648
37649 2009-12-11  Eric Blake  <ebb9@byu.net>
37650
37651         setenv: relax requirement in light of POSIX ruling
37652         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
37653         not NULL.
37654         * tests/test-setenv.c (main): Relax test.
37655         * tests/test-unsetenv.c (main): Likewise.
37656         * doc/posix-functions/setenv.texi (setenv): Document this.
37657         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37658
37659 2009-12-11  Bruno Haible  <bruno@clisp.org>
37660
37661         New module 'fd-safer-flag'.
37662         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
37663         * lib/dup-safer.c (dup_safer_flag): Remove function.
37664         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
37665         * lib/fd-safer.c (fd_safer_flag): Remove function.
37666         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
37667         * modules/cloexec (configure.ac): Drop indicator macro.
37668         * modules/fd-safer-flag: New file.
37669         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
37670         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
37671         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
37672
37673 2009-12-11  Bruno Haible  <bruno@clisp.org>
37674
37675         Tests for module 'nl_langinfo'.
37676         * modules/nl_langinfo-tests: New file.
37677         * tests/test-nl_langinfo.sh: New file.
37678         * tests/test-nl_langinfo.c: New file.
37679
37680         New module 'nl_langinfo'.
37681         * lib/nl_langinfo.c: New file.
37682         * m4/nl_langinfo.m4: New file.
37683         * modules/nl_langinfo: New file.
37684         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
37685
37686 2009-12-11  Bruno Haible  <bruno@clisp.org>
37687
37688         Tests for module 'langinfo'.
37689         * modules/langinfo-tests: New file.
37690         * tests/test-langinfo.c: New file.
37691
37692         New module 'langinfo'.
37693         * lib/langinfo.in.h: New file.
37694         * m4/langinfo_h.m4: New file.
37695         * modules/langinfo: New file.
37696         * doc/posix-headers/langinfo.texi: Mention the new module.
37697
37698 2009-12-11  Bruno Haible  <bruno@clisp.org>
37699
37700         * lib/config.charset: Untabify.
37701
37702 2009-12-11  Bruno Haible  <bruno@clisp.org>
37703
37704         * modules/unistd-safer (configure.ac): Drop indicator macro.
37705
37706 2009-12-11  Bruno Haible  <bruno@clisp.org>
37707
37708         Move pipe2-safer code to its own file.
37709         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
37710         * lib/pipe-safer.c (pipe2_safer): Remove function.
37711         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
37712         (Makefile.am): Add it to lib_SOURCES.
37713
37714 2009-12-10  Bruno Haible  <bruno@clisp.org>
37715
37716         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
37717
37718 2009-12-10  Bruno Haible  <bruno@clisp.org>
37719
37720         Declare which arguments expect non-NULL values, for GCC and clang.
37721         * build-aux/arg-nonnull.h: New file.
37722         * modules/arg-nonnull: New file.
37723         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
37724         (inet_ntop, inet_pton): Use it.
37725         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
37726         (closedir, dirfd, opendir, scandir, alphasort): Use it.
37727         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
37728         (open, openat): Use it.
37729         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
37730         (fnmatch): Use it.
37731         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
37732         (getopt, getopt_long, getopt_long_only): Use it.
37733         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
37734         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
37735         Use it.
37736         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
37737         (iconv_open): Use it.
37738         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
37739         (strtoimax, strtoumax): Use it.
37740         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
37741         (duplocale): Use it.
37742         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
37743         (frexp, frexpl): Use it.
37744         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
37745         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
37746         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
37747         (tsearch, tfind, tdelete, twalk): Use it.
37748         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
37749         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37750         sigpending): Use it.
37751         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
37752         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37753         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37754         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37755         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37756         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37757         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37758         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37759         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37760         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37761         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37762         Use it.
37763         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
37764         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
37765         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
37766         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
37767         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
37768         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
37769         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
37770         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
37771         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
37772         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
37773         strtoull, unsetenv): Use it.
37774         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
37775         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37776         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37777         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
37778         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
37779         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
37780         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
37781         (strcasecmp, strncasecmp): Use it.
37782         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
37783         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
37784         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
37785         rpl_setsockopt): Use it.
37786         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
37787         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
37788         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
37789         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
37790         (gettimeofday): Use it.
37791         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
37792         (times): Use it.
37793         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
37794         (uname): Use it.
37795         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
37796         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
37797         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
37798         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
37799         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
37800         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
37801         unlinkat, write): Use it.
37802         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
37803         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
37804         * lib/argv-iter.h: Include arg-nonnull.h.
37805         (_ATTRIBUTE_NONNULL_): Remove macro.
37806         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
37807         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
37808         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
37809         optimization.
37810         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
37811         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
37812         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
37813         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
37814         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
37815         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
37816         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
37817         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
37818         * modules/arpa_inet (Depends-on): Add arg-nonnull.
37819         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
37820         * modules/dirent (Depends-on): Add arg-nonnull.
37821         (Makefile.am): Insert arg-nonnull.h into dirent.h.
37822         * modules/fcntl-h (Depends-on): Add arg-nonnull.
37823         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
37824         * modules/fnmatch (Depends-on): Add arg-nonnull.
37825         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
37826         * modules/getopt-posix (Depends-on): Add arg-nonnull.
37827         (Makefile.am): Insert arg-nonnull.h into getopt.h.
37828         * modules/glob (Depends-on): Add arg-nonnull.
37829         (Makefile.am): Insert arg-nonnull.h into glob.h.
37830         * modules/iconv_open (Depends-on): Add arg-nonnull.
37831         (Makefile.am): Insert arg-nonnull.h into iconv.h.
37832         * modules/inttypes (Depends-on): Add arg-nonnull.
37833         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
37834         * modules/locale (Depends-on): Add arg-nonnull.
37835         (Makefile.am): Insert arg-nonnull.h into locale.h.
37836         * modules/math (Depends-on): Add arg-nonnull.
37837         (Makefile.am): Insert arg-nonnull.h into math.h.
37838         * modules/netdb (Depends-on): Add arg-nonnull.
37839         (Makefile.am): Insert arg-nonnull.h into netdb.h.
37840         * modules/search (Depends-on): Add arg-nonnull.
37841         (Makefile.am): Insert arg-nonnull.h into search.h.
37842         * modules/signal (Depends-on): Add arg-nonnull.
37843         (Makefile.am): Insert arg-nonnull.h into signal.h.
37844         * modules/spawn (Depends-on): Add arg-nonnull.
37845         (Makefile.am): Insert arg-nonnull.h into spawn.h.
37846         * modules/stdio (Depends-on): Add arg-nonnull.
37847         (Makefile.am): Insert arg-nonnull.h into stdio.h.
37848         * modules/stdlib (Depends-on): Add arg-nonnull.
37849         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
37850         * modules/string (Depends-on): Add arg-nonnull.
37851         (Makefile.am): Insert arg-nonnull.h into string.h.
37852         * modules/strings (Depends-on): Add arg-nonnull.
37853         (Makefile.am): Insert arg-nonnull.h into strings.h.
37854         * modules/sys_socket (Depends-on): Add arg-nonnull.
37855         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
37856         * modules/sys_stat (Depends-on): Add arg-nonnull.
37857         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
37858         * modules/sys_time (Depends-on): Add arg-nonnull.
37859         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
37860         * modules/sys_times (Depends-on): Add arg-nonnull.
37861         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
37862         * modules/sys_utsname (Depends-on): Add arg-nonnull.
37863         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
37864         * modules/time (Depends-on): Add arg-nonnull.
37865         (Makefile.am): Insert arg-nonnull.h into time.h.
37866         * modules/unistd (Depends-on): Add arg-nonnull.
37867         (Makefile.am): Insert arg-nonnull.h into unistd.h.
37868         * modules/wchar (Depends-on): Add arg-nonnull.
37869         (Makefile.am): Insert arg-nonnull.h into wchar.h.
37870         * modules/argv-iter (Depends-on): Add arg-nonnull.
37871         * tests/test-canonicalize.c (null_ptr): New function.
37872         (main): Use it.
37873         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
37874         (main): Use it.
37875         * tests/test-memmem.c (null_ptr): New function.
37876         (main): Use it.
37877         Reported by Jim Meyering.
37878
37879 2009-12-10  Bruno Haible  <bruno@clisp.org>
37880
37881         Use spaces for indentation, not tabs.
37882         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
37883         * m4/*.m4: Untabify.
37884         * build-aux/*.h: Untabify.
37885         * tests/**/*.[hc]: Untabify.
37886         * README: New section "Indent with spaces, not TABs", based on
37887         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
37888         * NEWS: Mention the change.
37889
37890 2009-12-10  Bruno Haible  <bruno@clisp.org>
37891
37892         pty test: Fix link error.
37893         * modules/pty-tests (Makefile.am): Add the default LDADD value to
37894         test_pty_LDADD.
37895
37896 2009-12-07  Simon Josefsson  <simon@josefsson.org>
37897
37898         * modules/pty: New file.
37899         * modules/pty-tests: New file.
37900         * m4/pty.m4: New file.
37901         * tests/test-pty.c: New file.
37902         * doc/glibc-headers/pty.texi: Modified.
37903         * doc/glibc-functions/forkpty.texi: Modified.
37904         * doc/glibc-functions/openpty.texi: Modified.
37905
37906 2009-12-10  Bruno Haible  <bruno@clisp.org>
37907
37908         Avoid syntax error in C++ mode.
37909         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
37910
37911 2009-12-10  Bruno Haible  <bruno@clisp.org>
37912
37913         Use sed with option -e.
37914         * gnulib-tool (func_version, func_emit_copyright_notice,
37915         func_emit_initmacro_end, func_import, func_create_testdir): Pass
37916         option -e to sed.
37917         * modules/link-warning (Makefile.am): Likewise.
37918
37919 2009-12-10  Jim Meyering  <meyering@redhat.com>
37920
37921         mgetgroups: do not write bytes beyond end of malloc'd buffer
37922         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
37923         username, we call getgroups with a one-element-shorter buffer,
37924         but still told it the length was original, max_n_groups.
37925
37926 2009-12-09  Eric Blake  <ebb9@byu.net>
37927
37928         cloexec: relax license
37929         * modules/cloexec (Maintainer): Add myself.
37930         (License): Use LGPL, not GPL.
37931
37932         link-warning: optimize generation
37933         * modules/link-warning (Makefile.am): Reduce process usage.
37934
37935 2009-12-09  Bruno Haible  <bruno@clisp.org>
37936
37937         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
37938         workaround was added on 2009-11-17.
37939
37940 2009-12-09  Jim Meyering  <meyering@redhat.com>
37941             Bruno Haible  <bruno@clisp.org>
37942
37943         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
37944         * modules/link-warning (Makefile.am): Make the comment-removing sed
37945         command more robust in the face of bootstrap-prepended comment lines.
37946
37947 2009-12-09  Bruno Haible  <bruno@clisp.org>
37948
37949         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
37950         most one group.
37951
37952 2009-12-09  Simon Josefsson <simon@josefsson.org>
37953             Bruno Haible  <bruno@clisp.org>
37954
37955         * build-aux/link-warning.h: Add copyright notice.
37956         * modules/link-warning (Makefile.am): Generate link-warning.h from
37957         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
37958         * NEWS: Mention change in link-warning module.
37959         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
37960         * modules/dirent (Makefile.am): Add dependency to dirent.h.
37961         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
37962         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
37963         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
37964         * modules/math (Makefile.am): Add dependency to math.h.
37965         * modules/search (Makefile.am): Add dependency to search.h.
37966         * modules/signal (Makefile.am): Add dependency to signal.h.
37967         * modules/spawn (Makefile.am): Add dependency to spawn.h.
37968         * modules/stdio (Makefile.am): Add dependency to stdio.h.
37969         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
37970         * modules/string (Makefile.am): Add dependency to string.h.
37971         * modules/strings (Makefile.am): Add dependency to strings.h.
37972         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
37973         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
37974         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
37975         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
37976         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
37977         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
37978         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
37979         * modules/unistd (Makefile.am): Add dependency to unistd.h.
37980         * modules/wchar (Makefile.am): Add dependency to wchar.h.
37981
37982 2009-12-09  Bruno Haible  <bruno@clisp.org>
37983
37984         fchdir: Optimize away rpl_fstat when possible.
37985         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
37986         REPLACE_OPEN_DIRECTORY.
37987         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
37988
37989 2009-12-09  Bruno Haible  <bruno@clisp.org>
37990
37991         * lib/fchdir.c: Update comment.
37992
37993 2009-12-09  Bruno Haible  <bruno@clisp.org>
37994
37995         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
37996
37997 2009-12-08  Eric Blake  <ebb9@byu.net>
37998
37999         fchdir: avoid memory leak on re-registration.
38000         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
38001
38002 2009-12-08  Jim Meyering  <meyering@redhat.com>
38003
38004         init.sh: avoid Solaris 10 /bin/sh portability problem
38005         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
38006         sourced script:
38007           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
38008           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
38009           bar
38010         tests/init.sh relied on that, accepting a --set-path=DIR argument,
38011         and two tests used that idiom.
38012         * tests/init.sh: Update suggested usage comments.
38013         (path_prepend_): New function, to be used in place
38014         of the --src-path=DIR option.
38015         (setup_): Move PATH-prepending code into path_prepend_.
38016         * tests/test-pread.sh: Adapt to new usage.
38017         * tests/test-xalloc-die.sh: Likewise.
38018
38019 2009-12-08  Simon Josefsson  <simon@josefsson.org>
38020
38021         * doc/gnulib.texi (Glibc pty.h): Add.
38022         * doc/glibc-functions/forkpty.texi: Add.
38023         * doc/glibc-functions/openpty.texi: Add.
38024         Suggested by Bruno Haible.
38025
38026 2009-12-08  Eric Blake  <ebb9@byu.net>
38027
38028         fchdir: fix logic bugs
38029         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
38030         * tests/test-fchdir.c (main): Enhance test.
38031         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
38032         is in use.
38033
38034         dup2: fix logic bugs
38035         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
38036         REPLACE_DUP2 to decide when rpl_dup2 is needed.
38037         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
38038         exists.
38039         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
38040
38041 2009-12-07  Eric Blake  <ebb9@byu.net>
38042
38043         unlink: fix m4 detection
38044         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
38045
38046         unistd-safer: add unit test
38047         * modules/unistd-safer-tests: New file.
38048         * tests/test-dup-safer.c: Likewise.
38049         * tests/test-cloexec.c (setmode): Avoid compiler warning.
38050         * tests/test-dup2.c (setmode): Likewise.
38051         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
38052
38053         cloexec: preserve text vs. binary across dup_cloexec
38054         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
38055         mode.
38056         * modules/dup2-tests (Depends-on): Add binary-io.
38057         * modules/cloexec-tests (Depends-on): Likewise.
38058         * tests/test-dup2.c (setmode, is_mode): New helpers.
38059         (main): Add tests that translation mode is preserved.
38060         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
38061         Reported by Bruno Haible.
38062
38063         mgetgroups: reduce duplicate listings
38064         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
38065         resulting array.
38066         * tests/test-chown.h (test_chown): Simplify client.
38067         * tests/test-lchown.h (test_lchown): Likewise.
38068
38069 2009-12-06  Bruno Haible  <bruno@clisp.org>
38070
38071         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
38072         value.
38073
38074 2009-12-06  Bruno Haible  <bruno@clisp.org>
38075
38076         * lib/progname.c: Include stdio.h, stdlib.h.
38077         (set_program_name): Reject a NULL argument.
38078
38079 2009-12-05  Eric Blake  <ebb9@byu.net>
38080
38081         pipe2-safer: new module
38082         * modules/pipe2-safer: New file.
38083         * lib/unistd-safer.h (pipe2_safer): New prototype.
38084         * lib/unistd--.h (pipe2): New wrapper.
38085         * lib/pipe-safer.c (pipe2_safer): New function.
38086         * modules/pipe (Depends-on): Add pipe2-safer.
38087         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
38088
38089         stdlib-safer: preserve cloexec flag for mkostemp[s]
38090         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
38091         fd_safer_flag.
38092
38093         unistd-safer: allow preservation of cloexec status via flag
38094         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
38095         prototypes.
38096         * lib/dup-safer.c (dup_safer_flag): New function.
38097         * lib/fd-safer.c (fd_safer_flag): Likewise.
38098         * modules/cloexec (configure.ac): Set witness.
38099
38100         test-dup2: enhance test
38101         * modules/dup2-tests (Depends-on): Add cloexec.
38102         * tests/test-dup2.c (main): Enhance test.
38103
38104         cloexec: add dup_cloexec
38105         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
38106         header and comments.
38107         * lib/cloexec.c (set_cloexec_flag): Add comments.
38108         (dup_cloexec): New function, with mingw implementation borrowed
38109         from...
38110         * lib/w32spawn.h (dup_noinherit): ...here.
38111         * modules/execute (Depends-on): Add cloexec.
38112         * modules/pipe (Depends-on): Likewise.
38113         * modules/cloexec (Depends-on): Add dup2.
38114         * modules/cloexec-tests (Files): New file.
38115         * tests/test-cloexec.c: Likewise.
38116
38117         test-xalloc-die: fix test for mingw
38118         * modules/xalloc-die-tests (Files): Add tests/init.sh.
38119         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
38120         directory and .exe suffix off argv[0] output.
38121
38122         test-fseeko: fix test for mingw
38123         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
38124         than undefining fseek, so test will pass on mingw.
38125
38126 2009-12-05  Bruno Haible  <bruno@clisp.org>
38127
38128         * lib/progname.h (set_program_name): Clarify specification.
38129         * lib/progname.c (set_program_name): Likewise.
38130         Reported by Jim Meyering.
38131
38132 2009-12-05  Jim Meyering  <meyering@redhat.com>
38133
38134         maint.mk: backslash-escape parens in default regexp
38135         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
38136         backslash-escape the literal parentheses.
38137
38138         maint.mk: news-date-check: use grep -E
38139         * top/maint.mk (today): Define a Make variable, not a...
38140         (news-date-check): ...shell variable.
38141         (news-date-regexp): Use the Make variable.
38142         Use grep's -E option.  Change the failing diagnostic to mention
38143         the variable, $(news-date-regexp).
38144
38145 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
38146
38147         maintainer-makefile: allow customization of NEWS entry format
38148         * top/maint.mk (news-date-regexp): New overridable variable.
38149         (news-date-check): Use it.
38150
38151 2009-12-04  Eric Blake  <ebb9@byu.net>
38152
38153         mgetgroups: add xgetgroups, and avoid ENOSYS failures
38154         * lib/mgetgroups.h (xgetgroups): New prototype.
38155         * lib/mgetgroups.c (xgetgroups): New wrapper.
38156         (mgetgroups): Handle ENOSYS.
38157         * modules/mgetgroups (Depends-on): Add realloc.
38158         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
38159
38160         mgetgroups: avoid argument promotion issues with -1
38161         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
38162         for invalid gid_t.
38163         * tests/test-chown.h (getegid, test_chown): Likewise.
38164         * tests/test-lchown.h (getegid, test_lchown): Likewise.
38165
38166 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
38167
38168         exclude: Fix header file problems.
38169         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
38170
38171 2009-12-01  Jim Meyering  <meyering@redhat.com>
38172
38173         fts: fts_open: do not let an empty string cause immediate failure
38174         This is required in support of GNU rm, for which the command
38175         "rm A '' B" must process and remove both A and B, in spite of
38176         the empty string argument.
38177         * lib/fts.c (fts_open): Do not let the presence of an empty string
38178         cause fts_open to fail immediately.  Most fts-using tools must be
38179         able to process all arguments, in order, and can be expected to
38180         diagnose such arguments themselves.
38181
38182 2009-11-30  Eric Blake  <ebb9@byu.net>
38183
38184         utimens: fix compilation error
38185         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
38186         Declare variable at right scope.
38187
38188 2009-11-29  Jim Meyering  <meyering@redhat.com>
38189
38190         bootstrap: handle perl-5.11's changed --version output
38191         * build-aux/bootstrap (get_version): Handle perl separately,
38192         since perl-5.11's --version output is different.
38193
38194 2009-11-28  Jim Meyering  <meyering@redhat.com>
38195
38196         userspec: depend on the inttostr module, too
38197         * modules/userspec (Depends-on): Add inttostr.
38198
38199         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
38200         * lib/userspec.c (parse_with_separator): Do not accept a user ID
38201         number of MAXUID when it evaluates to (uid_t) -1.
38202         Likewise for group ID.  Reported by Matt McCutchen in
38203         <http://savannah.gnu.org/bugs/?28113>
38204
38205         userspec: reformat to use spaces, not TABs
38206         * lib/userspec.c: Expand TABs to spaces.
38207         Add Emacs' "indent-tabs-mode: nil" hint.
38208
38209 2009-11-27  Eric Blake  <ebb9@byu.net>
38210
38211         getopt-gnu: flush out another BSD bug
38212         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
38213         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
38214         flush out BSD bug.
38215         * tests/test-getopt.h (test_getopt): End lists with NULL.
38216         * tests/test-getopt_long.h (test_getopt_long): Likewise.
38217         (test_getopt_long_posix): Enhance test.
38218         * modules/getopt-posix-tests (Depends-on): Add stdbool.
38219         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
38220         getopt-gnu.
38221         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38222         Likewise.
38223
38224 2009-11-27  Simon Josefsson  <simon@josefsson.org>
38225
38226         * modules/idpriv-droptemp-tests (Notice): Fix text.
38227
38228 2009-11-27  Jim Meyering  <meyering@redhat.com>
38229
38230         test-xalloc-die: avoid spurious failure due to libtool argv difference
38231         In a libtool-enabled project, this test would fail due to a difference
38232         in the emitted program name, e.g.,
38233         -test-xalloc-die: memory exhausted
38234         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
38235         Use program to avoid that.
38236         * modules/xalloc-die-tests (Depends-on): Add progname.
38237         * tests/test-xalloc-die.c: Include progname.h".
38238         (program_name): Remove decl.
38239         (main): Call set_program_name.
38240         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
38241
38242 2009-11-26  Richard Jones  <rjones@redhat.com>
38243
38244         w32sock: leave win32 error in place.
38245         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
38246
38247 2009-11-26  Eric Blake  <ebb9@byu.net>
38248
38249         init.sh: suggest to use skip_ and fail_ functions in comments
38250         * tests/init.sh: Add a sentence.
38251
38252 2009-11-25  Bruno Haible  <bruno@clisp.org>
38253
38254         init.sh: add documentation in comments
38255         * tests/init.sh: Add some developer and user documentation.
38256
38257 2009-11-26  Jim Meyering  <meyering@redhat.com>
38258
38259         init.sh: accommodate even those who specify bogus srcdir manually
38260         * tests/init.sh: Normally, srcdir is guaranteed by automake and
38261         configure-time tests to be sanitized, so that there is no need to
38262         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
38263         (with no double quotes) suffices.  However, since tests may be
38264         invoked manually, and since you may explicitly set srcdir to the
38265         name of a directory containing spaces, do quote its uses here.
38266         * tests/test-pread.sh: Likewise.
38267         Suggested by Bruno Haible.
38268
38269         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
38270         * tests/test-pread.sh: Write no data into the pipe, because
38271         test-pread actually reads none.  This avoids a diagnostic,
38272         "bash: echo: write error: Broken pipe", that arises in the unusual
38273         event something is ignoring SIGPIPE, and might be interpreted
38274         as some sort of failure.  Reported by Bruno Haible.
38275
38276 2009-11-25  Jim Meyering  <meyering@redhat.com>
38277
38278         test-pread: cover failure with ESPIPE and EINVAL
38279         * tests/test-pread.c (main): Test for failure, too.
38280         * tests/test-pread.sh: Invoke with stdin on a pipe.
38281         Suggested by Eric Blake.
38282
38283         pread: improvement and fix
38284         * modules/pread (Depends-on): Depend on lseek, for portability to
38285         e.g., mingw.  Suggested by Eric Blake.
38286         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
38287
38288         unistd.in.h: correct declaration of pread
38289         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
38290         Reported by Richard W.M. Jones.
38291
38292         test-pread.sh: distribute the test script
38293         * modules/pread-tests (Files): Include test-pread.sh.
38294
38295         test-pread.sh: clean up
38296         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
38297         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
38298         That is unnecessary, since it's always ".".
38299         Suggestion from Eric Blake.
38300
38301         test-pread.sh: make executable
38302         * tests/test-pread.sh: Set executable bit.
38303         Reported by Eric Blake.
38304
38305         correct typo in test-pread.sh
38306         * tests/test-pread.sh: Add #! line.
38307
38308         test pread
38309         * tests/test-pread.c: New file.
38310         * tests/test-pread.sh: Likewise.
38311         * modules/pread-tests: Likewise.
38312
38313         pread: new module
38314         * modules/pread: New file.
38315         * lib/unistd.in.h (pread): Define/declare.
38316         * lib/pread.c (pread): New file.
38317         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
38318         * modules/unistd (Makefile.am): Substitute witnesses.
38319         * doc/posix-functions/pread.texi (pread): Update.
38320         * MODULES.html.sh: Add pread.
38321
38322 2009-11-25  Jim Meyering  <meyering@redhat.com>
38323
38324         tests/init.sh: new file to be used via most *.sh tests
38325         * tests/init.sh: New file.
38326
38327 2009-11-25  Eric Blake  <ebb9@byu.net>
38328
38329         utimens: work around older Linux failure with symlinks
38330         * lib/utimens.c (lutimensat_works_really): New variable.
38331         (fdutimens, lutimens): Use it to manage kernels that support
38332         nanosecond times on files, but not on symlinks.
38333         Reported by OndÅ™ej Vašík.
38334
38335         utimes: fix configure grammar
38336         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
38337
38338 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
38339
38340         regex: Fix fastmap for multibyte character ranges.
38341         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
38342         characters when a multibyte character range is included.
38343
38344 2009-11-22  Andy Wingo  <wingo@pobox.com>
38345
38346         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
38347         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
38348
38349 2009-11-24  Bruno Haible  <bruno@clisp.org>
38350
38351         doc: Most *_l functions exist in MacOS X 10.5.
38352         * doc/posix-functions/duplocale.texi: Update platforms list.
38353         * doc/posix-functions/freelocale.texi: Likewise.
38354         * doc/posix-functions/newlocale.texi: Likewise.
38355         * doc/posix-functions/uselocale.texi: Likewise.
38356         * doc/posix-functions/isalnum_l.texi: Likewise.
38357         * doc/posix-functions/isalpha_l.texi: Likewise.
38358         * doc/posix-functions/isblank_l.texi: Likewise.
38359         * doc/posix-functions/iscntrl_l.texi: Likewise.
38360         * doc/posix-functions/isdigit_l.texi: Likewise.
38361         * doc/posix-functions/isgraph_l.texi: Likewise.
38362         * doc/posix-functions/islower_l.texi: Likewise.
38363         * doc/posix-functions/isprint_l.texi: Likewise.
38364         * doc/posix-functions/ispunct_l.texi: Likewise.
38365         * doc/posix-functions/isspace_l.texi: Likewise.
38366         * doc/posix-functions/isupper_l.texi: Likewise.
38367         * doc/posix-functions/iswalnum_l.texi: Likewise.
38368         * doc/posix-functions/iswalpha_l.texi: Likewise.
38369         * doc/posix-functions/iswblank_l.texi: Likewise.
38370         * doc/posix-functions/iswcntrl_l.texi: Likewise.
38371         * doc/posix-functions/iswctype_l.texi: Likewise.
38372         * doc/posix-functions/iswdigit_l.texi: Likewise.
38373         * doc/posix-functions/iswgraph_l.texi: Likewise.
38374         * doc/posix-functions/iswlower_l.texi: Likewise.
38375         * doc/posix-functions/iswprint_l.texi: Likewise.
38376         * doc/posix-functions/iswpunct_l.texi: Likewise.
38377         * doc/posix-functions/iswspace_l.texi: Likewise.
38378         * doc/posix-functions/iswupper_l.texi: Likewise.
38379         * doc/posix-functions/iswxdigit_l.texi: Likewise.
38380         * doc/posix-functions/isxdigit_l.texi: Likewise.
38381         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
38382         * doc/posix-functions/strcasecmp_l.texi: Likewise.
38383         * doc/posix-functions/strcoll_l.texi: Likewise.
38384         * doc/posix-functions/strfmon_l.texi: Likewise.
38385         * doc/posix-functions/strftime_l.texi: Likewise.
38386         * doc/posix-functions/strncasecmp_l.texi: Likewise.
38387         * doc/posix-functions/strxfrm_l.texi: Likewise.
38388         * doc/posix-functions/tolower_l.texi: Likewise.
38389         * doc/posix-functions/toupper_l.texi: Likewise.
38390         * doc/posix-functions/towctrans_l.texi: Likewise.
38391         * doc/posix-functions/towlower_l.texi: Likewise.
38392         * doc/posix-functions/towupper_l.texi: Likewise.
38393         * doc/posix-functions/wcscoll_l.texi: Likewise.
38394         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
38395         * doc/posix-functions/wctrans_l.texi: Likewise.
38396         * doc/posix-functions/wctype_l.texi: Likewise.
38397         * doc/glibc-functions/strptime_l.texi: Likewise.
38398         * doc/glibc-functions/strtod_l.texi: Likewise.
38399         * doc/glibc-functions/strtof_l.texi: Likewise.
38400         * doc/glibc-functions/strtol_l.texi: Likewise.
38401         * doc/glibc-functions/strtold_l.texi: Likewise.
38402         * doc/glibc-functions/strtoll_l.texi: Likewise.
38403         * doc/glibc-functions/strtoul_l.texi: Likewise.
38404         * doc/glibc-functions/strtoull_l.texi: Likewise.
38405         * doc/glibc-functions/wcsftime_l.texi: Likewise.
38406         * doc/glibc-functions/wcstod_l.texi: Likewise.
38407         * doc/glibc-functions/wcstof_l.texi: Likewise.
38408         * doc/glibc-functions/wcstol_l.texi: Likewise.
38409         * doc/glibc-functions/wcstold_l.texi: Likewise.
38410         * doc/glibc-functions/wcstoll_l.texi: Likewise.
38411         * doc/glibc-functions/wcstoul_l.texi: Likewise.
38412         * doc/glibc-functions/wcstoull_l.texi: Likewise.
38413
38414 2009-11-24  Bruno Haible  <bruno@clisp.org>
38415
38416         duplocale: Fix logic bug.
38417         * lib/duplocale.c: Don't include <langinfo.h>.
38418         (_NL_LOCALE_NAME): Remove macro.
38419         (rpl_duplocale): Use setlocale instead of nl_langinfo.
38420         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
38421
38422 2009-11-23  Jim Meyering  <meyering@redhat.com>
38423
38424         test-update-copyright: don't hard-code /usr/bin/perl
38425         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
38426         perl to print the current year.  Gilles Espinasse reported that
38427         the replaced use of perl was hard-coded as /usr/bin/perl.
38428
38429 2009-11-23  Bruno Haible  <bruno@clisp.org>
38430
38431         duplocale: Add support for glibc 2.3.x.
38432         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
38433
38434 2009-11-22  Bruno Haible  <bruno@clisp.org>
38435
38436         vasnprintf: Tiny optimization.
38437         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
38438         MacOS X.
38439
38440 2009-11-22  Bruno Haible  <bruno@clisp.org>
38441
38442         Tests for module 'duplocale'.
38443         * modules/duplocale-tests: New file.
38444         * tests/test-duplocale.c: New file.
38445
38446         New module 'duplocale'.
38447         * m4/duplocale.m4: New file.
38448         * lib/locale.in.h (duplocale): New declaration.
38449         * lib/duplocale.c: New file.
38450         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
38451         gl_LOCALE_H_DEFAULTS): New macros.
38452         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
38453         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
38454         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
38455         REPLACE_DUPLOCALE.
38456         * modules/duplocale: New file.
38457         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
38458
38459 2009-11-22  Bruno Haible  <bruno@clisp.org>
38460
38461         * modules/locale-tests (configure.ac): Test for newlocale function.
38462         * tests/test-locale.c: When the system has extended locale functions,
38463         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
38464
38465         locale: Make locale_t available when possible.
38466         * lib/locale.in.h: Include <xlocale.h> when it exists.
38467         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
38468         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
38469         * modules/locale (Depends-on): Add extensions.
38470         (Makefile.am): Also substitute HAVE_XLOCALE_H.
38471         * doc/posix-headers/locale.texi: Document the problem with locale_t.
38472
38473 2009-11-22  Bruno Haible  <bruno@clisp.org>
38474
38475         Add comments.
38476         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
38477         invocation.
38478         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38479         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38480         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38481
38482 2009-11-22  Bruno Haible  <bruno@clisp.org>
38483
38484         error: account for the possibility of freopen (stdout).
38485         * lib/error.c: Include <unistd.h>.
38486         (flush_stdout): New function, extracted from error and error_at_line.
38487         Determine stdout's fd dynamically.
38488         (error, error_at_line): Invoke flush_stdout.
38489         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
38490         * modules/error (Depends-on): Add unistd.
38491
38492 2009-11-22  Bruno Haible  <bruno@clisp.org>
38493
38494         diffseq: Add comment.
38495         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
38496
38497 2009-11-22  Jim Meyering  <meyering@redhat.com>
38498
38499         c-stack: avoid defining an unused static function
38500         * lib/c-stack.c (find_stack_direction): Do not define this function
38501         when it will not be used.
38502
38503         diffseq: avoid spurious gcc warnings
38504         * lib/diffseq.h (IF_LINT2): Define.
38505         (compareseq): Use it to initialize two members of "part".
38506         This avoids two used-uninitialized warnings.
38507
38508 2009-11-21  Jim Meyering  <meyering@redhat.com>
38509
38510         c-stack: avoid "ignoring return value of `write'" warning
38511         * lib/c-stack.c: Include "ignore-value.h".
38512         (die): Explicitly ignore each write return value.
38513         * modules/c-stack (Depends-on): Add ignore-value.
38514
38515 2009-11-21  Bruno Haible  <bruno@clisp.org>
38516
38517         diffseq: reduce scope of variable 'best'.
38518         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
38519         variable, earlier used for two different purposes.
38520
38521 2009-11-21  Jim Meyering  <meyering@redhat.com>
38522
38523         diffseq: remove useless assignment to "best"
38524         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
38525         assignment.  At that point "best" is already guaranteed to be zero.
38526
38527 2009-11-20  Eric Blake  <ebb9@byu.net>
38528
38529         build: mention ftp redirector in release announcements
38530         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
38531         values that used to come from cfg.mk; mention FTP redirect URL.
38532         * build-aux/announce-gen: Mention the mirror list.
38533         Suggested by Karl Berry.
38534
38535         nanosleep: improve port to mingw
38536         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
38537         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
38538         LIB_NANOSLEEP, but only when needed.
38539         * modules/select (Link): Document LIBSOCKET.
38540         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
38541         enough.
38542
38543         nanosleep: work around cygwin bug
38544         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
38545         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
38546         bug.
38547         (getnow): Delete, not needed.
38548         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
38549         LIB_CLOCK_GETTIME.
38550         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
38551         clock-time, gettime.
38552         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
38553         bug.
38554         * modules/nanosleep-tests: New test.
38555         * tests/test-nanosleep.c: New file.
38556
38557         sleep: work around cygwin bug
38558         * lib/sleep.c (rpl_sleep): Work around the bug.
38559         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
38560         (gl_PREREQ_SLEEP): Delete unused macro.
38561         * modules/sleep (Depends-on): Add verify.
38562         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38563         * modules/unistd (Makefile.am): Substitute witness.
38564         * lib/unistd.in.h (sleep): Update prototype.
38565         * doc/posix-functions/sleep.texi (sleep): Document the bug.
38566         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
38567         * modules/sleep-tests (Depends-on): Check for alarm.
38568
38569 2009-11-20  Jim Meyering  <meyering@redhat.com>
38570
38571         maint.mk: improve sc_prohibit_magic_number_exit
38572         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
38573         so it does not match uses like System.exit(1).
38574         Add comments showing how to correct all offenders.
38575
38576 2009-11-19  Eric Blake  <ebb9@byu.net>
38577
38578         xalloc-die-tests: add missing library
38579         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
38580
38581         test-xvasprintf: silence compiler warnings
38582         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
38583         empty string from gcc.
38584
38585 2009-11-19  Jim Meyering  <meyering@redhat.com>
38586
38587         xfreopen: new module, from coreutils
38588         * modules/xfreopen: New module.
38589         * lib/xfreopen.c: New file.
38590         * lib/xfreopen.h: New file.
38591         * MODULES.html.sh (File stream based Input/Output"): Add it.
38592
38593 2009-11-19  Eric Blake  <ebb9@byu.net>
38594
38595         manywarnings: depend on warnings
38596         * modules/manywarnings (Depends-on): Add warnings.
38597
38598         build: avoid compiler warnings
38599         * lib/select.c (rpl_select): Delete unused variable.
38600         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
38601
38602 2009-11-18  Eric Blake  <ebb9@byu.net>
38603
38604         tests: avoid false negative with --with-packager
38605         * tests/test-version-etc.sh: Discard packager information.
38606         * tests/test-argp-version-etc-1.sh: Likewise.
38607         Reported by Mike Frysinger.
38608
38609         utimens: fix regression on Solaris
38610         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
38611         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
38612         can only change fd timestamps via futimesat.  Instead, use an
38613         additional witness macro to avoid BSD bug.
38614         Reported by Jim Meyering.
38615
38616 2009-11-17  Eric Blake  <ebb9@byu.net>
38617
38618         usleep: use it to simplify tests
38619         * modules/stat-time-tests (Depends-on): Add usleep.
38620         (configure.ac): Drop usleep check.
38621         * modules/chown-tests (Depends-on, configure.ac): Likewise.
38622         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
38623         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
38624         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
38625         * modules/openat-tests (Depends-on, configure.ac): Likewise.
38626         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
38627         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
38628         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
38629         Likewise.
38630         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
38631         * tests/test-lchown.h (nap): Likewise.
38632         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
38633         * tests/test-stat-time.c (nap): Likewise.
38634         * tests/test-utimens-common.h (nap): Update comments.
38635
38636         usleep: new module
38637         * modules/usleep: New file.
38638         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
38639         * lib/usleep.c (usleep): Likewise.
38640         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
38641         * modules/unistd (Makefile.am): Substitute witnesses.
38642         * lib/unistd.in.h (usleep): Add declaration.
38643         * doc/pastposix-functions/usleep.texi (usleep): Document this.
38644         * MODULES.html.sh (Date and time): Likewise.
38645         * modules/usleep-tests (Depends-on): New test.
38646         * tests/test-usleep.c: New file.
38647
38648         chown: work around OpenBSD bug
38649         * lib/chown.c (rpl_chown): Work around the bug.
38650         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
38651         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
38652         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
38653         * modules/chown (Depends-on): Add stdbool.
38654         * modules/lchown (Depends-on): Likewise.
38655         * doc/posix-functions/chown.texi (chown): Document the bug.
38656         * doc/posix-functions/lchown.texi (lchown): Likewise.
38657         * tests/test-lchown.h (test_chown): Relax test.
38658
38659         mkstemp: avoid conflict with C++ keyword template
38660         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
38661         * lib/mkostemp.c (mkostemp): Likewise.
38662         * lib/mkostemps.c (mkostemps): Likewise.
38663         * lib/mkstemp.c (mkstemp): Likewise.
38664         * lib/mkstemps.c (mkstemps): Likewise.
38665
38666         xalloc-die-tests: optimize
38667         * tests/test-xalloc-die.sh: Reduce number of processes.
38668
38669 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38670
38671         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
38672         patch from ludo@gnu.org (Ludovic Courtès).
38673
38674 2009-11-17  Jim Meyering  <meyering@redhat.com>
38675
38676         version-etc: use proper license string
38677         * modules/version-etc (License): Use LGPL, not LGPLv3+.
38678         * modules/version-etc-fsf: Likewise.
38679
38680 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38681
38682         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
38683         printed to stdout.  Deal with EOL differences.
38684
38685 2009-11-17  Eric Blake  <ebb9@byu.net>
38686
38687         unsetenv: work around Solaris bug
38688         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
38689         * lib/unsetenv.c (rpl_unsetenv): Work around it.
38690         Reported by Jim Meyering.
38691
38692         vasnprintf: avoid compiler warnings
38693         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
38694         variables.
38695         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
38696
38697 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38698
38699         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
38700         settings since xalloc-die is no longer the self test,
38701         xalloc-die.sh is.
38702
38703 2009-11-17  Jim Meyering  <meyering@redhat.com>
38704
38705         test-xalloc-die.sh: make the code agree with the commit log
38706         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
38707         at the end, just in case you happen to have a test-xalloc-die
38708         program in some other PATH directory.
38709
38710         test-xalloc-die.sh: fix a portability bug
38711         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
38712         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
38713         Otherwise, argv[0] (as often seen in diagnostics) would be too
38714         system-dependent, sometimes with, and sometimes without the leading "./".
38715
38716         version-etc-fsf: relax license to LGPLv3+
38717         * modules/version-etc-fsf (License): Relax license.
38718
38719 2009-11-16  Eric Blake  <ebb9@byu.net>
38720
38721         xalloc-die-tests: avoid printing null pointer
38722         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
38723         shell script.
38724         * tests/test-xalloc-die.c (program_name): Declare.
38725         * tests/test-xalloc-die.sh (tmpfiles): New file.
38726
38727         setenv, unsetenv: work around various bugs
38728         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
38729         (setenv) [HAVE_SETENV]: Work around bugs.
38730         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
38731         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
38732         for bugs.
38733         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
38734         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
38735         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
38736         * modules/stdlib (Makefile.am): Update substitutions.
38737         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
38738         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
38739         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38740         * modules/setenv-tests: New test.
38741         * modules/unsetenv-tests: Likewise.
38742         * tests/test-setenv.c: New file.
38743         * tests/test-unsetenv.c: Likewise.
38744
38745 2009-11-16  Jim Meyering  <meyering@redhat.com>
38746
38747         version-etc: relax license to LGPLv3+
38748         * modules/version-etc (License): Relax license.
38749
38750         better AC_REQUIRE expanded-before-required-warning avoidance
38751         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
38752         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
38753         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
38754         which is no longer needed.
38755
38756 2009-11-16  Eric Blake  <ebb9@byu.net>
38757
38758         test-freading: clean up temporary file
38759         * tests/test-freading.c (main): Remove file on success, and use
38760         ASSERT more liberally.
38761         Reported by Jim Meyering.
38762
38763 2009-11-16  Jim Meyering  <meyering@redhat.com>
38764
38765         avoid new AC_REQUIRE expanded-before-required warnings
38766         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
38767         merely using it.
38768         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
38769         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
38770
38771 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38772
38773         * tests/test-xalloc-die.c: New file.
38774         * modules/xalloc-die-tests: New file.
38775         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
38776         XFAIL_TESTS so it can be appended by modules.
38777
38778 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38779
38780         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
38781         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
38782
38783 2009-11-14  Eric Blake  <ebb9@byu.net>
38784
38785         fnmatch: avoid compiler warning
38786         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
38787         to silence compiler warning about mismatch signedness in ?:.
38788         Reported by Robert Millan.
38789
38790         intprops: add double-inclusion guard
38791         * lib/intprops.h: Allow idempotent includes.
38792         Suggested by Bruce Korb.
38793
38794         openat: detect Solaris fchownat bug
38795         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
38796         penalizing glibc chownat when only lchownat is broken.
38797         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
38798         trailing slash bugs.
38799         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
38800         * modules/openat-tests (Files): Include more files.
38801         (Depends-on): Add mgetgroups, sleep, stat-time.
38802         (configure.ac): Add additional checks.
38803         (Makefile.am): Build new test.
38804         * tests/test-fchownat.c: New file.
38805
38806         lchown: detect Solaris and FreeBSD bug
38807         * lib/lchown.c (rpl_lchown): Work around bug.
38808         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
38809         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38810         * modules/unistd (Makefile.am): Populate it.
38811         * lib/unistd.in.h (lchown): Update declaration.
38812         * doc/posix-functions/lchown.texi (lchown): Document the bug.
38813         * modules/lchown-tests: New file.
38814         * tests/test-lchown.h (test_lchown): Likewise.
38815         * tests/test-lchown.c (main): Likewise.
38816
38817         chown: detect Solaris and FreeBSD bug
38818         * lib/chown.c (rpl_chown): Work around bug.
38819         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
38820         (gl_PREREQ_CHOWN): Delete.
38821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38822         * modules/unistd (Makefile.am): Populate it.
38823         * lib/unistd.in.h (chown): Update declaration.
38824         * lib/lchown.c (chown): Update client.
38825         * modules/lchown (Depends-on): Add lstat.
38826         * doc/posix-functions/chown.texi (chown): Document the bug.
38827         * doc/posix-functions/getgroups.texi (getgroups): Document
38828         getgroups pitfall.
38829         * modules/chown-tests: New file.
38830         * tests/test-chown.h (test_chown): Likewise.
38831         * tests/test-chown.c (main): Likewise.
38832
38833 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
38834
38835         gnulib-tool: correctly detect absence of m4 directories
38836         * gnulib-tool: Avoid extra newline on data passed to wc -l.
38837
38838 2009-11-14  Jim Meyering  <meyering@redhat.com>
38839
38840         maint.mk: Prohibit inclusion of "xalloc.h" without use.
38841         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38842
38843 2009-11-14  John W. Eaton  <jwe@gnu.org>
38844
38845         strftime.h: wrap funtion declaration in extern "C" block
38846         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
38847
38848 2009-11-13  Eric Blake  <ebb9@byu.net>
38849
38850         getgroups: avoid compiler warning
38851         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
38852
38853         getgroups: work around FreeBSD bug
38854         * lib/getgroups.c (rpl_getgroups): Work around the bug.
38855         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
38856         * doc/posix-functions/getgroups.texi (getgroups): Document it.
38857         * tests/test-getgroups.c (main): Fix buffer overrun.
38858
38859         getgroups: avoid compilation failure
38860         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
38861         * modules/getgroups (Depends-on): Add stdint.
38862
38863 2009-11-13  Jim Meyering  <meyering@redhat.com>
38864
38865         test-getgroups: avoid compilation failure
38866         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
38867
38868 2009-11-13  Eric Blake  <ebb9@byu.net>
38869
38870         mgetgroups: new module, taken from coreutils
38871         * modules/mgetgroups: New file.
38872         * lib/mgetgroups.h: Likewise.
38873         * lib/mgetgroups.c (mgetgroups): Likewise.
38874         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
38875         * MODULES.html.sh (Users and groups): Mention it.
38876
38877         getgroups: don't expose GETGROUPS_T to user
38878         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
38879         an element at a time if GETGROUPS_T is wrong size.
38880         * lib/getugroups.h (getugroups): Change signature.
38881         * lib/unistd.in.h (getgroups): Likewise.
38882         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
38883         signature needs fixing.
38884         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
38885         AC_TYPE_GETGROUPS.
38886         * modules/group-member (Depends-on): Add getgroups.
38887         * lib/group-member.c (group_info, get_group_info): Use gid_t.
38888         (group_member): Rely on getgroups replacement.
38889         * lib/getugroups.c (getugroups): Use gid_t.
38890         * tests/test-getgroups.c (main): Likewise.
38891         * NEWS: Mention the signature change.
38892         * doc/posix-functions/getgroups.texi (getgroups): Mention the
38893         problem with signature.
38894         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
38895         GETGROUPS_T is still useful for setgroups.
38896
38897         getgroups, getugroups: provide stubs for mingw
38898         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
38899         * lib/getugroups.c (getugroups): Likewise.
38900         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
38901         function.  Modernize replacement scheme.
38902         (gl_PREREQ_GETGROUPS): Delete.
38903         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
38904         * modules/getgroups (configure.ac): Declare witness.
38905         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38906         * modules/unistd (Depends-on): Substitute witness.
38907         * lib/unistd.in.h (getgroups): Declare replacement.
38908
38909         getgroups: avoid calling exit
38910         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
38911         drop xalloc.
38912         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
38913         dependencies.
38914         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
38915         exiting, in the rare case of malloc failure.
38916
38917         getgroups: fix logic error
38918         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
38919         has more than 20 groups.
38920         * modules/getgroups-tests: New test.
38921         * tests/test-getgroups.c: New file.
38922
38923 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38924
38925         * tests/test-base64.c: Improve.
38926
38927 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38928
38929         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
38930         Blake <ebb9@byu.net>.
38931
38932 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38933
38934         * tests/test-xvasprintf.c: Add %s%s related checks.
38935
38936 2009-11-12  Eric Blake  <ebb9@byu.net>
38937
38938         version-etc: match standards.texi style
38939         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
38940         and use <> only for URLs.
38941
38942 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
38943
38944         fts: do not fail on a submount during traversal
38945         * lib/fts.c (fts_build): Read the stat info again after opening
38946         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
38947         Original report at http://bugzilla.redhat.com/501848.
38948
38949 2009-11-12  Jim Meyering  <meyering@redhat.com>
38950
38951         bootstrap: sync from coreutils
38952         * build-aux/bootstrap (bootstrap_epilogue): New function.
38953         Use git_modules_config in one more place.  This make bootstrap's
38954         --gnulib-srcdir option more useful for testing.
38955
38956         bootstrap: generalize autoheader check
38957         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
38958         AC_CONFIG_HEADERS.
38959
38960 2009-11-11  Eric Blake  <ebb9@byu.net>
38961
38962         mkfifoat: use new modules for Solaris and BSD bugs
38963         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
38964         * lib/mkfifoat.c (mknodat): Split...
38965         * lib/mknodat.c (mknodat): ...into new file.
38966         * modules/mkfifoat (Files): Ship new file.
38967         (Depends-on): Add mkfifo, mknod.
38968         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
38969         (Depends-on): Add symlink.
38970         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
38971         redundant with test_mkfifo.h.
38972         (do_mkfifoat, do_mknodat): New helpers.
38973
38974         mknod: new module
38975         * modules/mknod: New file.
38976         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
38977         * lib/mknod.c (mknod): Likewise.
38978         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38979         defaults.
38980         * modules/sys_stat (Makefile.am): Substitute them.
38981         * lib/sys_stat.in.h (mknod): Declare replacement.
38982         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38983         Document it.
38984         * doc/posix-functions/mknod.texi (mknod): Likewise.
38985         * modules/mknod-tests: New test.
38986         * tests/test-mknod.c: Likewise.
38987
38988         mkfifo: new module
38989         * modules/mkfifo: New file.
38990         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
38991         * lib/mkfifo.c (mkfifo): Likewise.
38992         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38993         defaults.
38994         * modules/sys_stat (Makefile.am): Substitute them.
38995         * lib/sys_stat.in.h (mkfifo): Declare replacement.
38996         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38997         Document it.
38998         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
38999         * modules/mkfifo-tests: New test.
39000         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
39001         from test-mkfifoat.c.
39002         * tests/test-mkfifo.c: New file.
39003
39004         readlink: detect FreeBSD bug
39005         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
39006         slash on symlink.
39007         * doc/posix-functions/readlink.texi (readlink): Document the bug.
39008         * tests/test-readlink.h (test_readlink): Enhance test.
39009
39010         symlink: detect FreeBSD bug
39011         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
39012         slash on symlink.
39013         * doc/posix-functions/symlink.texi (symlink): Document the bug.
39014         * tests/test-symlink.h (test_symlink): Enhance test.
39015
39016 2009-11-10  Eric Blake  <ebb9@byu.net>
39017
39018         link: detect FreeBSD bug
39019         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
39020         symlink.
39021         * doc/posix-functions/link.texi (link): Document the bug.
39022         * tests/test-link.h (test_link): Enhance test.
39023         * tests/test-linkat.c (main): Update caller.
39024
39025         unlink, remove: detect FreeBSD bug
39026         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
39027         slash on symlink.
39028         * doc/posix-functions/unlink.texi (unlink): Document the bug.
39029         * doc/posix-functions/remove.texi (remove): Likewise.
39030         * tests/test-unlink.h (test_unlink): Enhance test.
39031         * tests/test-remove.c (main): Likewise.
39032
39033 2009-11-09  Eric Blake  <ebb9@byu.net>
39034
39035         rename: detect FreeBSD bug
39036         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
39037         slash on symlink.
39038         * modules/renameat-tests (Depends-on): Add filenamecat.
39039         * tests/test-rename.h (test_rename): Allow one more errno.
39040         * tests/test-renameat.c (main): Likewise.
39041         * doc/posix-functions/rename.texi (rename): Document the bug.
39042
39043         open: detect FreeBSD bug
39044         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
39045         symlink.
39046         * doc/posix-functions/open.texi (open): Document the bug.
39047         * doc/posix-functions/utimes.texi (utimes): Likewise.
39048         * tests/test-open.h (test_open): Add parameters, and test symlink
39049         handling.
39050         * tests/test-open.c (main): Adjust caller.
39051         * tests/test-fcntl-safer.c (main): Likewise.
39052         * modules/open-tests (Depends-on): Add stdbool, symlink.
39053         * modules/fcntl-safer-tests (Depends-on): Likewise.
39054         * tests/test-openat.c (main): Add test-open tests.
39055
39056         stat: detect FreeBSD bug
39057         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
39058         symlink.
39059         * doc/posix-functions/stat.texi (stat): Document the bug.
39060         * tests/test-stat.h (test_stat_func): Add argument.
39061         * tests/test-stat.c (main): Adjust caller.
39062         * tests/test-fstatat.c (main): Likewise.
39063         * modules/stat-tests (Depends-on): Add stdbool, symlink.
39064         Reported by Jim Meyering.
39065
39066 2009-11-09  James Youngman  <jay@gnu.org>
39067
39068         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
39069         * lib/strftime.c: Correct placement of #include "ignore-value.h".
39070
39071 2009-11-08  Jim Meyering  <meyering@redhat.com>
39072
39073         utimens: remove invalid futimesat call
39074         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
39075         It used the file descriptor of the target file as the DIR_FD
39076         parameter and NULL as the file name.  That caused failure with
39077         errno == EFAULT on FreeBSD-8.0-rc2
39078
39079 2009-11-07  Eric Blake  <ebb9@byu.net>
39080
39081         fflush, freadseek: use fseeko, not fseek
39082         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
39083         (clear_ungetc_buffer): Avoid potential problems on large files.
39084         * lib/freadseek.c (freadseek): Likewise.
39085         * modules/freadseek (Depends-on): Add fseeko.
39086         * modules/fseek (configure.ac): Set a witness.
39087         * tests/test-fflush.c (main): Use fseeko.
39088         * tests/test-fpurge.c (fseek): Disable link warning.
39089         * tests/test-freadable.c (fseek): Likewise.
39090         * tests/test-freading.c (fseek): Likewise.
39091         * tests/test-fseeko.c (fseek): Likewise.
39092         * tests/test-ftell.c (fseek): Likewise.
39093         * tests/test-ftello.c (fseek): Likewise.
39094         * tests/test-fwritable.c (fseek): Likewise.
39095         * tests/test-fwriting.c (fseek): Likewise.
39096
39097 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39098
39099         * modules/memchr (Depends-on): Drop getpagesize dependency.
39100
39101 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39102
39103         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
39104         Reported by Ludovic Courtès.
39105         * build-aux/pmccabe2html: Improve example usage.
39106         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
39107
39108 2009-11-06  Jim Meyering  <meyering@redhat.com>
39109
39110         do-release-commit-and-tag: New module.
39111         Automate the release-commit and tag process.
39112         * build-aux/do-release-commit-and-tag: New script, from coreutils.
39113         * modules/do-release-commit-and-tag: New file.
39114         * MODULES.html.sh (Support for maintaining and releasing): Add it.
39115
39116 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39117
39118         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
39119         because test-select.c uses inet_pton.
39120
39121 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39122
39123         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
39124         GETADDRINFO_LIB.  Bump serial number.
39125         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
39126         Suggested by Eric Blake <ebb9@byu.net>.
39127
39128 2009-11-05  Eric Blake  <ebb9@byu.net>
39129
39130         strtod: detect darwin bug
39131         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
39132         Reported by Leo Davis.
39133
39134         freopen-safer: new module
39135         * modules/freopen-safer: New module.
39136         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
39137         * lib/freopen-safer.c (freopen_safer): New file.
39138         * lib/stdio-safer.h (freopen_safer): New declaration.
39139         * lib/stdio--.h (freopen): New override.
39140         * MODULES.html.sh (File stream based Input/Output): Mention it.
39141         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
39142         freopen-safer module.
39143         * doc/posix-functions/stderr.texi (stderr): Likewise.
39144         * doc/posix-functions/stdin.texi (stdin): Likewise.
39145         * doc/posix-functions/stdout.texi (stdout): Likewise.
39146         * modules/freopen-safer-tests: New test.
39147         * tests/test-reopen-safer.c: New file.
39148
39149 2009-11-05  Jim Meyering  <meyering@redhat.com>
39150
39151         maint.mk: Prohibit inclusion of "close-stream.h" without use.
39152         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39153
39154 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39155
39156         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
39157
39158 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39159
39160         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
39161
39162 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39163
39164         Fix link error.
39165         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39166         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39167
39168 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39169
39170         * tests/test-func.c: Also test value of __func__.
39171
39172 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39173
39174         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
39175         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
39176
39177 2009-11-05  Bruno Haible  <bruno@clisp.org>
39178
39179         Fix link error.
39180         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39181         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39182         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
39183
39184 2009-11-05  Bruno Haible  <bruno@clisp.org>
39185
39186         Tests for module 'inet_pton'.
39187         * modules/inet_pton-tests: New file.
39188         * tests/test-inet_pton.c: New file.
39189
39190 2009-11-05  Bruno Haible  <bruno@clisp.org>
39191
39192         Tests for module 'inet_ntop'.
39193         * modules/inet_ntop-tests: New file.
39194         * tests/test-inet_ntop.c: New file.
39195
39196 2009-11-04  Eric Blake  <ebb9@byu.net>
39197
39198         stdlib-safer: wrap all mkstemp variants
39199         * modules/mkostemp (configure.ac): Set witness.
39200         * modules/mkostemps (configure.ac): Likewise.
39201         * modules/mkstemps (configure.ac): Likewise.
39202         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
39203         (mkstemps_safer): Wrap more functions.
39204         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
39205         wrapping.
39206         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
39207         (mkstemps_safer): Implement the wrappers.
39208
39209         mkstemps, mkostemps: new modules
39210         * modules/mkostemps: New module.
39211         * modules/mkstemps: Likewise.
39212         * lib/mkostemps.c (mkostemps): New file.
39213         * lib/mkstemps.c (mkstemps): Likewise.
39214         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
39215         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
39216         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
39217         * modules/stdlib (Makefile.am): Substitute them.
39218         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
39219         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
39220         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
39221         * doc/gnulib.texi (Glibc stdlib.h): Include them.
39222         * MODULES.html.sh (File system functions): Mention them.
39223
39224         tempname: resync from glibc
39225         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
39226         same values for __GT_FILE as glibc.  Abort even when assertions
39227         are disabled.
39228         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
39229         match its value otherwise.  Allow idempotent inclusion.
39230         * lib/mkdtemp.c (mkdtemp): Adjust caller.
39231         * lib/mkostemp.c (mkostemp): Likewise.
39232         * lib/mkstemp.c (mkstemp): Likewise.
39233         * lib/tmpfile.c (tmpfile): Likewise.
39234         * NEWS: Document this.
39235
39236         utimens: fix use of futimens on older Linux
39237         * lib/utimens.c (fdutimens): Use updated, rather than original,
39238         timespec to avoid bug in older Linux kernel.
39239         Reported by Simon Josefsson.
39240
39241 2009-11-04  Bruno Haible  <bruno@clisp.org>
39242
39243         Make num_processors more flexible and consistent.
39244         * lib/nproc.h (enum nproc_query): New type.
39245         (num_processors): Add a 'query' argument.
39246         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
39247         (num_processors): Add a 'query' argument. Test the value of the
39248         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
39249         mingw, count the number of CPUs available for the current process.
39250         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
39251         Check for sched_getaffinity and sched_getaffinity_np.
39252         * modules/nproc (Depends-on): Add c-ctype, extensions.
39253         * NEWS: Mention the change.
39254
39255 2009-11-03  Bruno Haible  <bruno@clisp.org>
39256
39257         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
39258
39259 2009-11-03  Jim Meyering  <meyering@redhat.com>
39260
39261         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
39262         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
39263         if it is defined.
39264
39265 2009-11-02  Eric Blake  <ebb9@byu.net>
39266
39267         mktime, timegm: share common declaration
39268         * lib/mktime-internal.h: New file.
39269         * lib/mktime.c: Use it rather than open-coding a declaration.
39270         * lib/timegm.c: Likewise.
39271         * modules/mktime (Files): Ship it.
39272         * modules/timegm (Files): Likewise.
39273         Suggested by Bruno Haible.
39274
39275         test-update-copyright: update test to match script changes
39276         * tests/test-update-copyright.sh: Avoid hard-coding perl
39277         location.  Don't update *.bak created by earlier runs.
39278
39279 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39280             Simon Josefsson  <simon@josefsson.org>
39281             Bruno Haible  <bruno@clisp.org>
39282
39283         Fix link error on Solaris 8.
39284         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
39285         also in libnsl. Define also INET_PTON_LIB.
39286         * modules/inet_pton (Link): New section.
39287
39288 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39289             Bruno Haible  <bruno@clisp.org>
39290
39291         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
39292         * modules/inet_ntop (Link): New section.
39293         Reported by Boyan Kasarov <bkasarov@gmail.com>.
39294
39295 2009-11-02  Eric Blake  <ebb9@byu.net>
39296
39297         maint: avoid compiler warnings in m4 macros
39298         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
39299         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
39300
39301 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39302
39303         * m4/pmccabe2html.m4: Remove file.
39304         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
39305         function.  Change maintainer.
39306         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
39307         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
39308         Courtès).
39309
39310 2009-10-31  Eric Blake  <ebb9@byu.net>
39311
39312         fseeko: fix m4 regression
39313         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
39314         regression from 2009-10-27.
39315         Reported by Ralf Wildenhues.
39316
39317 2009-10-31  Jim Meyering  <meyering@redhat.com>
39318
39319         inttostr: aesthetics and improved (compile-time) safety
39320         Define inttype_is_signed rather than inttype_is_unsigned,
39321         since the sole use is via "#if inttype_is_signed".
39322         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
39323         inttype_is_unsigned.
39324         * lib/offtostr.c (inttype_is_signed): Likewise.
39325         * lib/uinttostr.c (inttype_is_signed): Likewise.
39326         * lib/umaxtostr.c (inttype_is_signed): Likewise.
39327         * lib/inttostr.c (inttostr): Use verify to cross-check the
39328         inttype_is_signed value and the signedness of the actual type.
39329         * modules/inttostr (Depends-on): Add verify.
39330
39331 2009-10-30  Eric Blake  <ebb9@byu.net>
39332
39333         build: avoid compiler warnings
39334         * lib/fchmodat.c (lchmod): Mark unused variables.
39335         * lib/getopt.c (_getopt_initialize): Likewise.
39336         * lib/mktime.c (__mktime_internal): Provide prototype.
39337         * lib/inttostr.c (inttostr): Avoid compiler warning even with
39338         older gcc that do not understand #pragma GCC diagnostic.
39339         * lib/uinttostr.c (inttype_is_unsigned): Define.
39340         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
39341
39342 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
39343
39344         stat: fix compilation on AIX
39345         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
39346         only see struct stat64.
39347
39348 2009-10-30  Eric Blake  <ebb9@byu.net>
39349
39350         exclude: make more robust
39351         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
39352         rather than masking a coding bug.
39353         Suggested by Bruno Haible.
39354
39355 2009-10-30  Jim Meyering  <meyering@redhat.com>
39356
39357         perl scripts: remove #!/usr/bin/perl in favor of more portable...
39358         Rather than putting #!/usr/bin/perl on the first line,
39359         start with a variant of what's recommended by "man perlrun" that
39360         invokes the first "perl" program from your shell's search path.
39361         * build-aux/gitlog-to-changelog: Replace #!... as above.
39362         Add a "Local Variables" perl mode setting.
39363         Prompted by a patch from Ludovic Courtès.
39364         Improved by Eric Blake.
39365         * build-aux/useless-if-before-free: Likewise.
39366         * build-aux/announce-gen: Likewise.
39367         * build-aux/update-copyright: Likewise.
39368
39369 2009-10-29  Eric Blake  <ebb9@byu.net>
39370
39371         filenamecat-lgpl: adjust clients
39372         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
39373         filenamecat.
39374         * modules/renameat (Depends-on): Likewise.
39375
39376         filenamecat: split into filenamecat-lgpl
39377         * modules/filenamecat-lgpl: New module.
39378         * modules/filenamecat (Files): Move library-safe files into
39379         filenamecat-lgpl.
39380         (Depends-on): Add filenamecat-lgpl.
39381         (configure.ac): Declare witness.
39382         * lib/filenamecat.h (file_name_concat): Only declare when using
39383         GPL module.
39384         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
39385         Move...
39386         * lib/filenamecat-lgpl.c: ...into new file.
39387         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
39388         (gl_FILE_NAME_CONCAT): Use it.
39389         * MODULES.html.sh (File system functions): Mention new module.
39390
39391         argp: avoid memory leak
39392         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
39393         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
39394         base_name, since the latter malloc()s and can call exit().
39395         Leak introduced 2006-07-03.
39396
39397         dirname-lgpl: adjust clients that don't need full dirname
39398         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
39399         * modules/filenamecat (Depends-on): Likewise.
39400         * modules/linkat (Depends-on): Likewise.
39401         * modules/mkancesdirs (Depends-on): Likewise.
39402         * modules/mkdir (Depends-on): Likewise.
39403         * modules/openat (Depends-on): Likewise.
39404         * modules/savewd (Depends-on): Likewise.
39405         * modules/rename (Depends-on): Likewise.
39406         (License): Relax license.
39407         * modules/mkdir-tests (Depends-on): Drop progname.
39408         (Makefile.am): Delete unneeded LDADD.
39409         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
39410
39411         dirname: split into dirname-lgpl
39412         * modules/dirname-lgpl: New module.
39413         * modules/dirname (Files): Move library-safe files into
39414         dirname-lgpl.
39415         (Depends-on): Add dirname-lgpl.
39416         (configure.ac): Declare witness.
39417         * modules/double-slash-root (License): Relax license.
39418         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
39419         module.
39420         * lib/dirname.c (dir_len, mdir_name): Move...
39421         * lib/dirname-lgpl.c: ...into new file.
39422         * lib/basename.c (last_component, base_len): Move...
39423         * lib/basename-lgpl.c: ...into new file.
39424         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
39425         (gl_DIRNAME): Use it.
39426         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
39427         Mention new module.
39428         * modules/dirname-tests (Depends-on): Add progname.
39429         * tests/test-dirname.c (program_name): Delete.
39430
39431         mkdir: make safe for libraries
39432         * modules/mkdir (Depends-on): Drop xalloc.
39433         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
39434         exit.
39435
39436         tests: avoid some compiler warnings
39437         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
39438         literals.
39439         * tests/test-memchr.c (main): Avoid type mismatch.
39440         * tests/test-arpa_inet.c (main): Avoid unused parameters.
39441         * tests/test-base64.c (main): Likewise.
39442         * tests/test-getdelim.c (main): Likewise.
39443         * tests/test-gethostname.c (main): Likewise.
39444         * tests/test-getline.c (main): Likewise.
39445         * tests/test-netinet_in.c (main): Likewise.
39446         * tests/test-select.c (open_server_socket, main): Likewise.
39447         * tests/test-select-stdin.c (main): Likewise.
39448         * tests/test-sockets.c (main): Likewise.
39449         * tests/test-strsignal.c (main): Likewise.
39450         * tests/test-sys_select.c (main): Likewise.
39451         * tests/test-sys_socket.c (main): Likewise.
39452         * tests/test-u64.c (main): Likewise.
39453         * tests/test-xfprintf-posix.c (main): Likewise.
39454         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
39455
39456         sockets: avoid compiler warning
39457         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
39458
39459         maint: detect usage(1) and other suspicious exits
39460         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
39461
39462 2009-10-29  Jim Meyering  <meyering@redhat.com>
39463
39464         timespec: long-to-int truncation could make timespec_cmp malfunction
39465         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
39466         a multiple of 2^32 nanoseconds as no difference.
39467
39468 2009-10-28  Jim Meyering  <meyering@redhat.com>
39469
39470         fprintftime: wrap macro code argument in "do {...} while(0)"
39471         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
39472         cpy macro must be a statement that can be followed by a semicolon.
39473         Now that the else clause contains a comment and is hence longer
39474         than one line, I require curly braces.  That in turn requires
39475         that we wrap this code block in the standard do...while(0).
39476
39477         fprintftime: remove stray semicolon from previous change
39478         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
39479
39480         fprintftime: avoid a warning about ignored fwrite return value
39481         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
39482         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
39483         that is unsafe.
39484         * modules/fprintftime (Depends-on): Add ignore-value.
39485
39486         exclude: avoid an unwarranted warning
39487         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
39488
39489 2009-10-27  Eric Blake  <ebb9@byu.net>
39490
39491         fseek: avoid compilation failure when fflush is replaced
39492         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
39493         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
39494         module is in use.
39495         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
39496         module is not in use; since REPLACE_FSEEK worked otherwise.
39497         (GNULIB_FTELLO): Likewise for ftell.
39498         Reported by Ian Beckwith and others.
39499
39500 2009-10-27  Bruno Haible  <bruno@clisp.org>
39501
39502         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
39503         Reported by Jim Meyering.
39504
39505 2009-10-27  Jim Meyering  <jim@meyering.net>
39506             Bruno Haible  <bruno@clisp.org>
39507
39508         Avoid warning despite dropping the return value of fwrite.
39509         * lib/unicodeio.c: Include ignore-value.h.
39510         (fwrite_success_callback): Explicitly ignore fwrite's return value.
39511         * modules/unicodeio (Depends-on): Add ignore-value.
39512
39513 2009-10-26  Eric Blake  <ebb9@byu.net>
39514
39515         areadlinkat: fix fallback path
39516         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
39517         pointer and zero.
39518
39519 2009-10-22  Pádraig Brady  <P@draigBrady.com>
39520
39521         Use a better IO block size for modern systems
39522         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
39523         * lib/md2.c: Likewise.
39524         * lib/md4.c: Likewise.
39525         * lib/md5.c: Likewise.
39526         * lib/sha1.c: Likewise.
39527         * lib/sha256.c: Likewise.
39528         * lib/sha512.c: Likewise.
39529
39530 2009-10-22  Eric Blake  <ebb9@byu.net>
39531
39532         tests: avoid several compiler warnings
39533         * tests/test-getcwd.c (main): Avoid buffer underflow.
39534         * tests/test-getdate.c (main): String literals are not safe with
39535         putenv, so use setenv.  Declare unused argument.
39536         * modules/getdate-tests (Depends-on): Add setenv.
39537         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
39538         problems with string literals in char *.
39539         * tests/test-hash.c (main): Avoid shadowing declaration.
39540         (insert_new): Treat string literals as char const *.
39541         * tests/test-getopt.h (test_getopt): Likewise.
39542         (getopt_loop): Alter types to minimize casting elsewhere.
39543         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
39544         (test_getopt_long_posix): Likewise.
39545         (do_getopt_long): Add wrapper to minimize casting.
39546         * tests/test-atexit.c (clear_temp_file): Use void.
39547         * tests/test-areadlink-with-size.c (main): Declare unused
39548         arguments.
39549         * tests/test-areadlink.c (main): Likewise.
39550         * tests/test-areadlinkat-with-size.c (main): Likewise.
39551         * tests/test-areadlinkat.c (main): Likewise.
39552         * tests/test-canonicalize-lgpl.c (main): Likewise.
39553         * tests/test-canonicalize.c (main): Likewise.
39554         * tests/test-dirent-safer.c (main): Likewise.
39555         * tests/test-dirname.c (main): Likewise.
39556         * tests/test-dup2.c (main): Likewise.
39557         * tests/test-fchdir.c (main): Likewise.
39558         * tests/test-fcntl-h.c (main): Likewise.
39559         * tests/test-fcntl-safer.c (main): Likewise.
39560         * tests/test-fdopendir.c (main): Likewise.
39561         * tests/test-fdutimensat.c (main): Likewise.
39562         * tests/test-fflush.c (main): Likewise.
39563         * tests/test-filenamecat.c (main): Likewise.
39564         * tests/test-filevercmp.c (main): Likewise.
39565         * tests/test-fopen-safer.c (main): Likewise.
39566         * tests/test-fopen.c (main): Likewise.
39567         * tests/test-fpending.c (main): Likewise.
39568         * tests/test-fpurge.c (main): Likewise.
39569         * tests/test-freading.c (main): Likewise.
39570         * tests/test-fstatat.c (main): Likewise.
39571         * tests/test-fsync.c (main): Likewise.
39572         * tests/test-futimens.c (main): Likewise.
39573         * tests/test-getndelim2.c (main): Likewise.
39574         * tests/test-gettimeofday.c (main): Likewise.
39575         * tests/test-getopt.c (main): Likewise.
39576         * tests/test-i-ring.c (main): Likewise.
39577         * tests/test-inttypes.c (main): Likewise.
39578         * tests/test-link.c (main): Likewise.
39579         * tests/test-lstat.c (main): Likewise.
39580         * tests/test-math.c (main): Likewise.
39581         * tests/test-md5.c (main): Likewise.
39582         * tests/test-memchr2.c (main): Likewise.
39583         * tests/test-memrchr.c (main): Likewise.
39584         * tests/test-mkdir.c (main): Likewise.
39585         * tests/test-mkdirat.c (main): Likewise.
39586         * tests/test-mkfifoat.c (main): Likewise.
39587         * tests/test-open.c (main): Likewise.
39588         * tests/test-openat-safer.c (main): Likewise.
39589         * tests/test-openat.c (main): Likewise.
39590         * tests/test-quotearg.c (main): Likewise.
39591         * tests/test-rawmemchr.c (main): Likewise.
39592         * tests/test-readlink.c (main): Likewise.
39593         * tests/test-remove.c (main): Likewise.
39594         * tests/test-rename.c (main): Likewise.
39595         * tests/test-renameat.c (main): Likewise.
39596         * tests/test-rmdir.c (main): Likewise.
39597         * tests/test-sha1.c (main): Likewise.
39598         * tests/test-signal.c (main): Likewise.
39599         * tests/test-sigaction.c (main): Likewise.
39600         * tests/test-stat.c (main): Likewise.
39601         * tests/test-stat-time.c (main): Likewise.
39602         * tests/test-stddef.c (main): Likewise.
39603         * tests/test-stdint.c (main): Likewise.
39604         * tests/test-stdio.c (main): Likewise.
39605         * tests/test-stdlib.c (main): Likewise.
39606         * tests/test-strchrnul.c (main): Likewise.
39607         * tests/test-strerror.c (main): Likewise.
39608         * tests/test-string.c (main): Likewise.
39609         * tests/test-strtod.c (main): Likewise.
39610         * tests/test-strverscmp.c (main): Likewise.
39611         * tests/test-symlink.c (main): Likewise.
39612         * tests/test-symlinkat.c (main): Likewise.
39613         * tests/test-sys_stat.c (main): Likewise.
39614         * tests/test-sys_time.c (main): Likewise.
39615         * tests/test-time.c (main): Likewise.
39616         * tests/test-unistd.c (main): Likewise.
39617         * tests/test-unlink.c (main): Likewise.
39618         * tests/test-unlinkat.c (main): Likewise.
39619         * tests/test-utimens.c (main): Likewise.
39620         * tests/test-utimensat.c (main): Likewise.
39621         * tests/test-version-etc.c (main): Likewise.
39622         * tests/test-wchar.c (main): Likewise.
39623         * tests/test-wctype.c (main): Likewise.
39624         * tests/test-xprintf-posix.c (main): Likewise.
39625         * tests/test-posixtm.c (main): Likewise.
39626         (STREQ): Delete unused macro.
39627         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
39628         shadowed variables.
39629         * tests/test-memchr.c (main): Likewise.
39630
39631 2009-10-21  Eric Blake  <ebb9@byu.net>
39632
39633         areadlinkat: avoid failure on older glibc
39634         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
39635         rather than mis-comparing 0 against FUNC_RESULT of char*.
39636
39637 2009-10-21  Bruno Haible  <bruno@clisp.org>
39638
39639         * modules/stpncpy (License): Relicense under LGPLv2+.
39640         Reported by David Lutterkort <lutter@redhat.com>.
39641
39642 2009-10-20  Eric Blake  <ebb9@byu.net>
39643
39644         utimensat: work around Solaris 9 bug
39645         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
39646         has trailing slash bugs.
39647         * tests/test-lutimens.h (test_lutimens): Enhance test.
39648         * tests/test-utimens.h (test_utimens): Likewise.
39649         * doc/posix-functions/utime.texi (utime): Enhance documentation.
39650         * doc/posix-functions/utimes.texi (utimes): Likewise.
39651         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39652         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
39653         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
39654         * doc/posix-functions/futimens.texi (futimens): Likewise.
39655
39656         fdutimensat: new module
39657         * modules/fdutimensat: New file.
39658         * lib/fdutimensat.c (fdutimensat): Likewise.
39659         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
39660         * MODULES.html.sh (File system functions): Mention module.
39661         * modules/fdutimensat-tests: New test.
39662         * tests/test-fdutimensat.c: Likewise.
39663
39664         doc: regenerate INSTALL
39665         * doc/INSTALL: Reflect recent autoconf update.
39666         * doc/INSTALL.ISO: Likewise.
39667         * doc/INSTALL.UTF-8: Likewise.
39668
39669 2009-10-20  Pádraig Brady  <P@draigBrady.com>
39670
39671         acl: warn if ACL support is not detected
39672         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
39673
39674 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
39675
39676         * lib/nproc.h: Add extern "C" block for C++.
39677
39678 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
39679             Bruno Haible  <bruno@clisp.org>
39680
39681         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
39682         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
39683         * doc/posix-functions/isalpha.texi: Likewise.
39684         * doc/posix-functions/isblank.texi: Likewise.
39685         * doc/posix-functions/iscntrl.texi: Likewise.
39686         * doc/posix-functions/isdigit.texi: Likewise.
39687         * doc/posix-functions/isgraph.texi: Likewise.
39688         * doc/posix-functions/islower.texi: Likewise.
39689         * doc/posix-functions/isprint.texi: Likewise.
39690         * doc/posix-functions/ispunct.texi: Likewise.
39691         * doc/posix-functions/isspace.texi: Likewise.
39692         * doc/posix-functions/isupper.texi: Likewise.
39693         * doc/posix-functions/isxdigit.texi: Likewise.
39694
39695 2009-10-18  Bruno Haible  <bruno@clisp.org>
39696
39697         Tests for module 'isblank'.
39698         * modules/isblank-tests: New file.
39699         * tests/test-isblank.c: New file.
39700
39701         New module 'isblank'.
39702         * lib/isblank.c: New file.
39703         * m4/isblank.m4: New file.
39704         * modules/isblank: New file.
39705         * doc/posix-functions/isblank.texi: Mention the new module.
39706
39707 2009-10-18  Bruno Haible  <bruno@clisp.org>
39708
39709         New module 'ctype'.
39710         * lib/ctype.in.h: New file.
39711         * m4/ctype.m4: New file.
39712         * modules/ctype: New file.
39713         * doc/posix-headers/ctype.texi: Mention the new module.
39714
39715 2009-10-18  Jim Meyering  <meyering@redhat.com>
39716
39717         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
39718         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
39719         right after its initialization, rather than farther down.
39720         Keeping these in close proximity makes it easier to ensure
39721         that each such variable is initialized.  E.g.,
39722
39723             LIB_CLOCK_GETTIME=
39724             AC_SUBST([LIB_CLOCK_GETTIME])
39725
39726         This change also increments these serial numbers.
39727         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
39728         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39729         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39730
39731 2009-10-18  Bruno Haible  <bruno@clisp.org>
39732
39733         Don't let environment variables perturb build.
39734         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
39735         (gl_PREREQ_GETHRXTIME): ... not here.
39736
39737 2009-10-18  Bruno Haible  <bruno@clisp.org>
39738
39739         Avoid symlink attack in localcharset module.
39740         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
39741         (O_NOFOLLOW): Define fallback.
39742         (get_charset_aliases): Don't open the file if it is a symbolic link.
39743         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
39744         gl_FCNTL_H.
39745         (gl_FCNTL_H): Require it.
39746         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
39747         * modules/localcharset (Files): Add m4/fcntl_h.m4.
39748         Reported by Fergal Glynn <fglynn@veracode.com>.
39749
39750 2009-10-18  Bruno Haible  <bruno@clisp.org>
39751
39752         Implement nproc for mingw.
39753         * lib/nproc.c: Include <windows.h>
39754         (num_processors): On native Windows platforms, try GetSystemInfo.
39755
39756 2009-10-18  Bruno Haible  <bruno@clisp.org>
39757
39758         Implement nproc for IRIX.
39759         * lib/nproc.c: Include <sys/sysmp.h>.
39760         (num_processors): On IRIX systems, try sysmp.
39761         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
39762
39763 2009-10-18  Bruno Haible  <bruno@clisp.org>
39764
39765         Implement nproc for HP-UX.
39766         * lib/nproc.c: Include <sys/pstat.h>
39767         (num_processors): On HP-UX systems, try pstat_getdynamic.
39768         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
39769         pstat_getdynamic.
39770
39771 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
39772             Bruno Haible  <bruno@clisp.org>
39773
39774         Implement nproc for NetBSD, OpenBSD.
39775         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
39776         (ARRAY_SIZE): New macro.
39777         (num_processors): On BSD systems, try sysctl of HW_NCPU.
39778         * m4/nproc.m4: New file.
39779         * modules/nproc (Files): Add m4/nproc.m4.
39780         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
39781         (Makefile.am): Instead, augment lib_SOURCES.
39782
39783 2009-10-18  Bruno Haible  <bruno@clisp.org>
39784
39785         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
39786         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
39787         sys/param.h.
39788
39789 2009-10-16  Eric Blake  <ebb9@byu.net>
39790
39791         utimensat: new module
39792         * modules/utimensat: New file.
39793         * lib/utimensat.c (utimensat): Likewise.
39794         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39795         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
39796         so we can work around Linux bugs.
39797         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39798         * modules/sys_stat (Makefile.am): Substitute them.
39799         * lib/sys_stat.in.h (utimensat): Declare it.
39800         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39801         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39802         * modules/utimensat-tests: New test.
39803         * tests/test-utimensat.c: Likewise.
39804
39805         utimens: let lutimens work on non-symlinks
39806         * lib/utimens.c (lutimens): Fall back to utimens rather than
39807         failing with ENOSYS, when file is not a symlink.
39808         (utimens): Reduce redirection.
39809         * tests/test-lutimens.h (test_lutimens): Update test to cover
39810         non-symlinks.
39811         * tests/test-utimens.h (test_utimens): Update test to cover
39812         symlinks.
39813         * tests/test-utimens.c (main): Update caller.
39814
39815         utimens: cache whether utimensat syscall works
39816         * lib/utimens.c (utimensat_works_really): New cache variable.
39817         (fdutimens, lutimens): Use it to avoid failing syscall.
39818
39819         test-stat-time, test-utimens: improve portability
39820         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
39821         ext4 on alpha, and for cygwin.
39822         * tests/test-utimens-common.h: New file.
39823         (nap): Factor delays into single function.
39824         * tests/test-lutimens.h (test_lutimens): Use new header.
39825         * tests/test-futimens.h (test_futimens): Likewise.
39826         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
39827         timestamps to occur from same machine, as was done previously for
39828         test_utimens.
39829         * modules/utimens-tests (Files): Ship new file.
39830         * modules/futimens-tests (Files): Likewise.
39831         Reported in part by Jim Meyering.
39832
39833         sys_stat: sort replacement declarations
39834         * lib/sys_stat.in.h: Sort declarations.
39835         * lib/futimens.c (futimens): Fix typo.
39836
39837 2009-10-15  Jim Meyering  <meyering@redhat.com>
39838
39839         don't let environment settings perturb build
39840         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
39841         could cause a configure-time and/or build-time malfunction.
39842         Typically, a configure-time function-in-library test is performed
39843         via code like this:
39844
39845           LIB_VAR=
39846           AC_SUBST([LIB_VAR])
39847           prefix_saved_LIBS=$LIBS
39848             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
39849                        [test "$ac_cv_search_FUNC" = "none required" ||
39850                         LIB_VAR=$ac_cv_search_FUNC])
39851           LIBS=$prefix_saved_LIBS
39852
39853         However, in each of the files affected by this change, the LIB_VAR=
39854         initialization was omitted.  Thus, when set in the environment, its
39855         value would propagate into generated Makefiles when FUNC is not found
39856         in LIB_NAME.
39857         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
39858         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39859         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39860
39861 2009-10-14  Eric Blake  <ebb9@byu.net>
39862
39863         fchdir: avoid infinite recursion in mingw
39864         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
39865         recursing.
39866
39867         test-stat-time: port to mingw
39868         * tests/test-stat-time.c (force_unlink): Return a value.
39869         (test_ctime) [W32]: Fix compilation error.
39870         (nap): Don't call usleep with too large an argument.  Use
39871         force_unlink.
39872         * doc/pastposix-functions/usleep.texi (usleep): Document the
39873         portability issue.
39874
39875 2009-10-13  Jim Meyering  <meyering@redhat.com>
39876
39877         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
39878         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
39879         * modules/pipe-filter-ii: Likewise.
39880         * modules/sys_socket-tests: Likewise.
39881         * modules/tsearch-tests: Likewise.
39882         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
39883         (check): Depend on it.
39884
39885 2009-10-12  Eric Blake  <ebb9@byu.net>
39886
39887         utimens-tests: port to NFS file systems
39888         * tests/test-utimens.h (test_utimens): Refactor utimecmp
39889         comparisons to avoid spurious failures from timestamp drift
39890         between NFS machines.
39891
39892 2009-10-12  Eric Blake  <ebb9@byu.net>
39893
39894         stat-time-tests: minor cleanups
39895         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
39896         * tests/test-stat-time.c (nap): Separate assignment from call.
39897         Suggested by Paolo Bonzini and Bruno Haible.
39898
39899         sys_stat: guarantee struct timespec
39900         * lib/sys_stat.in.h (includes): Always include <time.h>
39901         * modules/sys_stat (Depends-on): Add time.
39902         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
39903         mode_t permission values.
39904         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
39905         get at subsecond timestamps.
39906
39907 2009-10-10  Eric Blake  <ebb9@byu.net>
39908
39909         futimens: new module
39910         * modules/futimens: New file.
39911         * lib/futimens.c (futimens): Likewise.
39912         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
39913         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
39914         we can work around Linux bugs.
39915         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39916         * modules/sys_stat (Makefile.am): Substitute them.
39917         * lib/sys_stat.in.h (futimens): Declare it.
39918         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39919         * doc/posix-functions/futimens.texi (futimens): Likewise.
39920         * modules/futimens-tests: New test.
39921         * tests/test-futimens.c: Likewise.
39922
39923         utimens: introduce fdutimens
39924         * lib/utimens.h (fdutimens): New prototype.
39925         * lib/utimens.c (gl_futimens): Move guts...
39926         (fdutimens): ...to new interface.
39927         * tests/test-utimens.c (do_fdutimens): Use it.
39928
39929         utimens: add UTIME_NOW and UTIME_OMIT support
39930         * lib/utimens.c (validate_timespec, update_timespec): New helper
39931         functions.
39932         (gl_futimens, lutimens): Use them.
39933         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
39934         stdbool, sys_stat.
39935         (Link): Mention resulting library dependency.
39936         * modules/utimecmp (Link): Likewise.
39937         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
39938         (Makefile.am): Pick up library dependency.
39939         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
39940         definition.
39941         * tests/test-sys_stat.c: Test the definitions.
39942         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
39943         * NEWS: Document library dependency.
39944
39945         utimecmp: support symlink timestamps
39946         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
39947         hashing when possible.  Use pathconf when available.
39948         (SYSCALL_RESOLUTION): Recognize tighter resolution.
39949         * modules/utimecmp (Depends-on): Add lstat.
39950
39951         utimens: add lutimens interface
39952         * lib/utimens.c (lutimens): New function.
39953         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
39954         * lib/utimens.h (lutimens): Declare new interface.
39955         * tests/test-utimens.c (main): Enhance test.
39956         * tests/test-lutimens.h (test_lutimens): New file.
39957         * modules/utimens-tests (Files): Distribute it.
39958         (Depends-on): Add symlink.
39959         (configure.ac): Check for usleep.
39960
39961         utimens: validate futimens usage
39962         * lib/utimens.c (gl_futimens): Require valid fd up front, using
39963         fewer syscalls on failure later on.  Avoid compiler warning on
39964         mingw.
39965         * modules/utimens (Depends-on): Add dup2.
39966
39967         utimens: add test
39968         * modules/utimens-tests: New test.
39969         * tests/test-utimens.h: New file.
39970         * tests/test-futimens.h: Likewise.
39971         * tests/test-utimens.c: Likewise.
39972
39973         doc: mention timestamp portability issues
39974         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
39975         instead.
39976         * doc/posix-functions/utime.texi (utime): Likewise.
39977         * doc/posix-functions/utimes.texi (utimes): Likewise.
39978         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
39979         instead.
39980         * doc/posix-functions/futimens.texi (futimens): Mention utimens
39981         module.
39982         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39983         Mention weakness with symlink timestamps.
39984         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
39985         to utimensat/futimens instead.
39986         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
39987
39988         test-dup2: enhance test
39989         * tests/test-dup2.c (main): Also check AT_FDCWD.
39990
39991         test-stat-time: avoid more spurious failures
39992         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
39993         xfs; and avoid race if the two timestamps cross quantization edge.
39994
39995         relocatable: prefer 'file system' over 'filesystem'
39996         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
39997         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
39998         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
39999         * doc/relocatable.texi (Enabling Relocatability): Likewise.
40000         * lib/relocatable.c (compute_curr_prefix): Likewise.
40001
40002 2009-10-10  Jim Meyering  <meyering@redhat.com>
40003
40004         stat-time-tests: check for the usleep function
40005         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
40006
40007 2009-10-10  Bruno Haible  <bruno@clisp.org>
40008
40009         * modules/xnanosleep: Put the Link section after the Include section.
40010
40011 2009-10-09  Eric Blake  <ebb9@byu.net>
40012
40013         dup2: work around FreeBSD 6.1 bug
40014         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
40015         * doc/posix-functions/dup2.texi (dup2): Document it.
40016         Reported by Nelson H. F. Beebe and Jim Meyering.
40017
40018         test-stat-time: port to buggy NFS clients
40019         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
40020         (test_ctime): Also skip test if mtime and ctime are skewed.
40021
40022         maint: prefer 'file system' over 'filesystem'
40023         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40024         * doc/posix-functions/lstat.texi (lstat): Likewise.
40025         * lib/file-has-acl.c (file_has_acl): Likewise.
40026         * lib/fwriteerror.c [TEST]: Likewise.
40027         * tests/test-areadlink.h (test_areadlink): Likewise.
40028         * tests/test-areadlinkat-with-size.c (main): Likewise.
40029         * tests/test-areadlinkat.c (main): Likewise.
40030         * tests/test-canonicalize-lgpl.c (main): Likewise.
40031         * tests/test-canonicalize.c (main): Likewise.
40032         * tests/test-fstatat.c (main): Likewise.
40033         * tests/test-linkat.c (main): Likewise.
40034         * tests/test-lstat.h (test_lstat_func): Likewise.
40035         * tests/test-mkdir.h (test_mkdir): Likewise.
40036         * tests/test-readlink.h (test_readlink): Likewise.
40037         * tests/test-remove.c (main): Likewise.
40038         * tests/test-rename.h (test_rename): Likewise.
40039         * tests/test-renameat.c (main): Likewise.
40040         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40041         * tests/test-symlink.h (test_symlink): Likewise.
40042         * tests/test-symlinkat.c (main): Likewise.
40043         * tests/test-unlink.h (test_unlink_func): Likewise.
40044         * tests/test-unlinkat.c (main): Likewise.
40045
40046         maint: make realtime library usage explicit
40047         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
40048         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
40049         * modules/settime (Link): Likewise.
40050         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
40051
40052         test-stat-time: speed up execution
40053         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
40054         warning on mingw.
40055         (nap): New helper function.
40056         (prepare_test): Use it to reduce sleep time.
40057         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
40058         execution.
40059         * modules/stat-time-tests (configure.ac): Check for usleep.
40060
40061 2009-10-09  Jim Meyering  <meyering@redhat.com>
40062
40063         selinux-h: always use getfilecon wrappers
40064         * lib/getfilecon.c: New file.
40065         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
40066         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
40067         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
40068         (fgetfilecon): Provide a stub.
40069         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
40070         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
40071         file unconditionally.
40072         When <selinux/selinux.h> is found, arrange to use wrappers.
40073         * modules/selinux-h (Files): Add getfilecon.c.
40074         (Makefile.am): Substitute include-next-related bits
40075         into the now-always-generated selinux/selinux.h file.
40076         * doc/glibc-functions/lgetfilecon.texi: New file.
40077         * doc/glibc-functions/fgetfilecon.texi: New file.
40078         * doc/glibc-functions/getfilecon.texi: New file.
40079         * doc/glibc-functions/getfilecon-desc.texi: New file.
40080         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
40081         which to pull in the new files.
40082         * MODULES.html.sh (Misc): Add selinux-h.
40083
40084 2009-10-08  Jim Meyering  <meyering@redhat.com>
40085
40086         unistd: fix comment typo
40087         * lib/unistd.in.h (euidaccess): Fix a comment typo.
40088
40089 2009-10-08  Eric Blake  <ebb9@byu.net>
40090
40091         areadlink: use SIZE_MAX consistently
40092         * modules/areadlink (Depends-on): Add stdint.
40093         * modules/areadlink-with-size (Depends-on): Likewise.
40094         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
40095         gives NULL; drop sys/types, since unistd gives size_t; and add
40096         stdint for SIZE_MAX.
40097         (SIZE_MAX): Rely on headers.
40098         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
40099         and add stdint.
40100         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
40101         (SIZE_MAX): Likewise.
40102         (INITIAL_BUF_SIZE): Turn into enum.
40103         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
40104
40105 2009-10-08  Jim Meyering  <meyering@redhat.com>
40106
40107         areadlinkat: avoid compilation failure
40108         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
40109         Fix typo in comment.
40110
40111 2009-10-07  Eric Blake  <ebb9@byu.net>
40112
40113         areadlinkat-with-size: new module
40114         * modules/areadlinkat-with-size: New module.
40115         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
40116         * lib/areadlink.h (areadlinkat): Declare it.
40117         * MODULES.html.sh (File system functions): Mention it.
40118         * modules/areadlinkat-with-size-tests: New test.
40119         * tests/test-areadlinkat-with-size.c: New file.
40120
40121         xreadlinkat: new module
40122         * modules/xreadlinkat: New module.
40123         * lib/xreadlinkat.c (xreadlinkat): New file.
40124         * lib/xreadlink.h (xreadlinkat): Declare it.
40125         * MODULES.html.sh (File system functions): Mention it.
40126
40127         areadlinkat: new module
40128         * lib/at-func.c (FUNC_FAIL): New define.
40129         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
40130         * modules/areadlinkat: New module.
40131         * lib/linkat.c (areadlinkat): Move...
40132         * lib/areadlinkat.c (areadlinkat): ...to new file.
40133         * lib/areadlink.h (areadlinkat): Declare it.
40134         * modules/linkat (Depends-on): Add areadlinkat.
40135         * MODULES.html.sh (File system functions): Mention it.
40136         * modules/areadlinkat-tests: New test.
40137         * tests/test-areadlinkat.c: New file.
40138
40139         areadlink, areadlink-with-size: add tests
40140         * modules/areadlink-tests: New test.
40141         * modules/areadlink-with-size-tests: Likewise.
40142         * tests/test-areadlink.h: New file.
40143         * tests/test-areadlink.c: Likewise.
40144         * tests/test-areadlink-with-size.c: Likewise.
40145
40146         maint: minor cleanups
40147         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
40148         _UNUSED_PARAMETER_ instead.
40149         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
40150         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
40151         * modules/linkat-tests (Files): Distribute test-link.h.
40152
40153         openat, utimens: whitespace cleanup
40154         * lib/openat.c: Prefer space throughout, rather than mix of 8
40155         spaces vs. tabs.
40156         * lib/at-func.c: Likewise.
40157         * lib/utimens.c: Likewise.
40158
40159         openat: avoid using wrong fd
40160         * lib/openat.c (openat_permissive): Reject user's fd if saving the
40161         working directory chooses same fd.
40162         * lib/at-func.c (AT_FUNC_NAME): Likewise.
40163
40164         mkdir, mkdirat: fix cygwin 1.5.x bug
40165         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
40166         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
40167         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
40168         bug.
40169         (gl_PREREQ_MKDIR): Delete unused macro.
40170         * modules/mkdir (Files): Track file rename.
40171         (configure.ac): Update macro name.
40172         * modules/openat (Depends-on): Add mkdir.
40173         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
40174
40175         mkdir, mkdirat: add tests
40176         * modules/mkdir-tests: New test.
40177         * tests/test-mkdir.h: New file.
40178         * tests/test-mkdir.c: Likewise.
40179         * tests/test-mkdirat.c: Likewise.
40180         * modules/openat-tests (Files): Add new files.
40181         (Makefile.am): Run new test.
40182
40183 2009-10-06  Eric Blake  <ebb9@byu.net>
40184
40185         doc: tweak *at function documentation
40186         * doc/posix-functions/faccessat.texi (faccessat): Mention
40187         known issue with replacement.
40188         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
40189         * doc/posix-functions/linkat.texi (linkat): Likewise.
40190         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40191         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40192         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40193         * doc/posix-functions/renameat.texi (renameat): Likewise.
40194         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40195
40196         openat: fix GNU/Hurd bug in unlinkat
40197         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
40198         broken.
40199         * doc/posix-functions/unlink.texi (unlink): Document this.
40200         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
40201
40202         fdopendir: fix GNU/Hurd bug
40203         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
40204         allowing non-directory fds.
40205         * lib/fdopendir.c (rpl_fdopendir): Work around it.
40206         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
40207         * modules/dirent (Makefile.am): Substitute it.
40208         * lib/dirent.in.h (fdopendir): Declare replacement.
40209         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
40210         * tests/test-fdopendir.c (main): Test something other than
40211         /dev/null, since on Hurd that behaves like a directory.
40212
40213         test-symlink: port to GNU/Hurd
40214         * tests/test-symlink.h (test_symlink): Relax expected errno.
40215
40216         doc: tweak more cygwin information
40217         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
40218         now compatible with glibc.
40219         * doc/posix-functions/getopt.texi (getopt): Likewise.
40220
40221         getopt-gnu: add another test
40222         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
40223         guarantee behavior relied on by m4.
40224         * tests/test-getopt.c (main): Use it.
40225         * modules/getopt-posix-tests (Depends-on): Add setenv.
40226         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
40227
40228         getopt: fix compilation on darwin
40229         * lib/getopt.in.h (includes): Leave breadcrumbs during system
40230         include.
40231         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
40232         Reported by Ludovic Courtès.
40233
40234 2009-10-06  Bruno Haible  <bruno@clisp.org>
40235
40236         * modules/size_max (Description): Discourage its use.
40237         Reported by Simon Josefsson.
40238
40239 2009-10-06  Jim Meyering  <meyering@redhat.com>
40240
40241         linkat: avoid compilation failure
40242         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
40243
40244 2009-10-05  Eric Blake  <ebb9@byu.net>
40245
40246         linkat: support Linux 2.6.17
40247         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
40248         linkat on Linux, but allow cache variable override.
40249         * lib/linkat.c (rpl_linkat): Define override.
40250         * modules/linkat (Depends-on): Add symlinkat.
40251         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
40252         * modules/unistd (Makefile.am): Substitute it.
40253         * lib/unistd.in.h (linkat): Declare replacement.
40254         Reported by Pádraig Brady.
40255
40256         quotearg: port test to systems with C.UTF-8 locale
40257         * tests/test-quotearg.c (struct result_strings): Add another
40258         member, differentiating between C.ASCII and C.UTF-8 handling.
40259         (compare_strings): Add parameter.
40260         (main): Adjust all callers.
40261
40262         getopt: avoid clash with FreeBSD _getopt_internal
40263         * lib/getopt.in.h (_getopt_internal): Override the name.
40264         * lib/getopt_int.h (includes): Pick up any overrides.
40265         Reported by Reuben Thomas.
40266
40267         hash: allow C89 compilation
40268         * lib/hash.c (check_tuning): Move declaration before statement.
40269         Reported by Reuben Thomas.
40270
40271 2009-10-05  Karl Berry  <karl@gnu.org>
40272
40273         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
40274
40275 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
40276             Bruno Haible  <bruno@clisp.org>
40277
40278         * lib/uname.c (uname): Use a table-driven algorithm to compute
40279         Windows NT versions.
40280
40281 2009-10-04  Bruno Haible  <bruno@clisp.org>
40282
40283         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
40284         program_invocation_short_name.
40285         * modules/progname (configure.ac): Test for presence of
40286         program_invocation_short_name.
40287         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
40288
40289 2009-10-04  Bruno Haible  <bruno@clisp.org>
40290
40291         * lib/progname.c (set_program_name): Fix comment.
40292         Reported by Jim Meyering.
40293
40294 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40295             Bruno Haible  <bruno@clisp.org>
40296
40297         * lib/uname.c: Include <string.h>.
40298         (uname): Do only one call to GetVersionEx in the common case.
40299
40300 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40301             Bruno Haible  <bruno@clisp.org>
40302
40303         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
40304         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
40305         (uname): Add support for Windows CE and various non-x86 CPU types.
40306
40307 2009-10-03  Bruno Haible  <bruno@clisp.org>
40308
40309         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
40310         invocation to tests/configure.ac.
40311         Reported by Ian Beckwith <ianb@erislabs.net>.
40312
40313 2009-10-02  Eric Blake  <ebb9@byu.net>
40314
40315         fchdir: avoid compiler warning
40316         * lib/fchdir.c (canonicalize_file_name)
40317         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
40318
40319         test-open: support mingw errno values
40320         * tests/test-open.h (test_open): Relax test.
40321         * tests/test-fopen.h (test_fopen): Likewise.
40322         * tests/test-openat-safer.c (main): Likewise.
40323
40324         open: fix opening directory on mingw
40325         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
40326
40327         test-open: on GNU/Hurd, /dev/null is a directory
40328         * tests/test-fopen.h (main): Rename...
40329         (test_fopen): ...to this.  Use a guaranteed non-directory when
40330         confirming open behavior on trailing slash.
40331         * tests/test-openat-safer.c (main): Likewise.
40332         * tests/test-open.h (main): Likewise....
40333         (test_open): ...to this.
40334         * tests/test-fopen.c (main): Adjust caller.
40335         * tests/test-fopen-safer.c (main): Likewise.
40336         * tests/test-open.c (main): Likewise.
40337         * tests/test-fcntl-safer.c (main): Likewise.
40338         Reported by Samuel Thibault.
40339
40340         rename, fchdir: don't ignore chdir failure
40341         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
40342         * lib/rename.c (rpl_rename) [W32]: Likewise.
40343         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
40344         an empty destination directory if source cannot be renamed,
40345         although there is still possibility for failure.
40346         * doc/posix-functions/rename.texi (rename): Document the race.
40347         Reported by Jim Meyering.
40348
40349         maint: cleanup whitespace in recent commits
40350         * lib/rename.c (rpl_rename): Remove tabs.
40351         * tests/test-link.h (test_link): Likewise.
40352         * lib/fchdir.c (get_name): Likewise.
40353         Reported by Jim Meyering.
40354
40355 2009-10-02  Ben Pfaff  <blp@gnu.org>
40356
40357         relocatable-prog-wrapper: Add missing dependency on
40358         double-slash-root.
40359         * modules/relocatable-prog-wrapper: Add dependency.
40360         Reported by Ian Beckwith <ianb@erislabs.net>.
40361
40362 2009-10-02  Eric Blake  <ebb9@byu.net>
40363
40364         renameat: fix Solaris bugs
40365         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
40366         needed fixing.
40367         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
40368         * modules/stdio (Makefile.am): Substitute it.
40369         * lib/stdio.in.h (renameat): Declare replacement.
40370         * lib/renameat.c (rpl_renameat): Implement fix.
40371
40372         renameat: new module
40373         * modules/renameat: New file.
40374         * lib/renameat.c (renameat): Likewise.
40375         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
40376         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40377         * modules/stdio (Makefile.am): Substitute them.
40378         * lib/stdio.in.h (renameat): Declare it.
40379         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40380         * doc/posix-functions/renameat.texi (renameat): Likewise.
40381         * modules/renameat-tests: New test.
40382         * tests/test-renameat.c: Likewise.
40383
40384         rename: fix mingw bugs
40385         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
40386         directory overwrite bugs.
40387
40388         rename: fix another cygwin 1.5 bug
40389         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
40390         checks.
40391         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
40392         unnecessary cygwin workarounds.  Also work around bug with moving
40393         full directory onto an empty one.
40394         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
40395
40396         rename-dest-slash: merge into rename module
40397         * modules/rename-dest-slash (Status): Mark obsolete.
40398         (Depends-on): Add rename.
40399         (Files): Let rename do it all.
40400         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
40401         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
40402         * m4/rename-dest-slash.m4: ...so this file can be deleted.
40403         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
40404         * lib/rename.c (rpl_rename): Update comments.
40405
40406         rename: fix cygwin 1.5.x bugs
40407         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
40408         * lib/rename.c (rpl_rename): Work around them.
40409         * modules/rename (Depends-on): Add same-inode.
40410
40411         rename: fix Solaris 10 bug
40412         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40413         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
40414         was the only bug.
40415
40416         rename: fix Solaris 9 bug
40417         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
40418         on non-directory.  Avoid calling exit.
40419         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
40420         strdup.
40421         * modules/rename-tests (Depends-on): Drop lstat.
40422         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40423         (gl_PREREQ_RENAME): Delete unused macro.
40424
40425         rename-dest-slash: fix NetBSD bug
40426         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
40427         links.
40428         * modules/rename-dest-slash (Depends-on): Add same-inode.
40429
40430         rename-tests: new test, exposes several platform bugs
40431         * modules/rename-tests: New file.
40432         * tests/test-rename.h: Likewise.
40433         * tests/test-rename.c: Likewise.
40434         * doc/posix-functions/rename.texi (rename): Improve documentation,
40435         including bugs that will eventually be fixed in gnulib.
40436
40437 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
40438
40439         * lib/uname.c: Include <stdlib.h>
40440         (uname): Assume version info is available.
40441
40442 2009-10-02  Jim Meyering  <meyering@redhat.com>
40443
40444         gnu-web-doc-update: correct --help output
40445         * build-aux/gnu-web-doc-update: Make --help output relevant.
40446
40447         gnu-web-doc-update: add standard options
40448         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
40449
40450         gnu-web-doc-update: New module.
40451         Use this script to automatically update the on-line web documentation
40452         for your GNU project at http://www.gnu.org/software/$pkg/manual/
40453         * modules/gnu-web-doc-update: New file, from coreutils.
40454         * build-aux/gnu-web-doc-update: New script.
40455
40456 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
40457
40458         link: LoadLibrary is not needed.
40459         * lib/link.c: Use GetModuleHandle.
40460
40461 2009-10-01  Eric Blake  <ebb9@byu.net>
40462
40463         getopt: bump serial number
40464         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
40465         change.
40466
40467         tests: tighten link, rmdir, and remove tests
40468         * tests/test-link.h (includes): No need to use <config.h> here.
40469         Clean up if directory hard link was created, otherwise test for
40470         trailing '.'.
40471         * tests/test-linkat.c (main): Simplify.
40472         * tests/test-remove.c (main): Enhance test for trailing '.'.
40473         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40474
40475 2009-10-01  Jim Meyering  <meyering@redhat.com>
40476
40477         maint.mk: requiring "make major" was annoying, for a "minor" release.
40478         What is intended is "stable", to contrast with alpha and beta,
40479         so require "make stable", not "make major".
40480         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
40481         (get_tool_versions): Likewise.
40482         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
40483
40484 2009-09-30  Ben Pfaff  <blp@gnu.org>
40485
40486         Fix broken build of replacement for Windows tmpfile().
40487         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
40488         flags argument added along with the 'mkostemp' module.
40489
40490 2009-09-28  Bruno Haible  <bruno@clisp.org>
40491
40492         Avoid identifier clash with POSIX function 'remove' defined as a macro.
40493         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
40494         to 'remove_elt'.
40495         (gl_list_remove): Update.
40496         * lib/gl_list.c (gl_list_remove): Update.
40497         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
40498         to 'remove_elt'.
40499         (gl_oset_remove): Update.
40500         * lib/gl_list.c (gl_oset_remove): Update.
40501         Reported by Eric Blake.
40502
40503 2009-09-28  Eric Blake  <ebb9@byu.net>
40504
40505         doc: mention yet more cygwin 1.7 status
40506         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
40507         cygwin.
40508         * doc/glibc-functions/execvpe.texi (execvpe): New file.
40509         * doc/gnulib.texi (Glibc unistd.h): Mention it.
40510
40511         argp: fix test failure
40512         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
40513         that are not upper-case.  Pass correct range to tolower.
40514
40515 2009-09-27  Jim Meyering  <meyering@redhat.com>
40516
40517         test-yesno: work around sparc-dash here-document infelicity
40518         Without this change, the literal \177 byte in a here document
40519         would make dash 0.5.5.1-3 access uninitialized memory.
40520         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
40521         Instead, use a marker, "@", and filter through tr to create the desired
40522         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
40523
40524 2009-09-27  Bruno Haible  <bruno@clisp.org>
40525
40526         Disable untested support for new flavours of ACLs on AIX.
40527         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
40528         progress.
40529         * lib/set-mode-acl.c (qset_acl): Likewise.
40530
40531 2008-12-07  Bruno Haible  <bruno@clisp.org>
40532
40533         Add support for new flavours of ACLs on AIX. (Untested.)
40534         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
40535         (file_has_acl): Add support for newer AIX.
40536         * lib/set-mode-acl.c (qset_acl): Likewise.
40537         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
40538         Rainer Tammer <tammer@tammer.net>.
40539
40540 2009-09-26  Eric Blake  <ebb9@byu.net>
40541
40542         argp: fix compilation of getopt
40543         * lib/getopt.in.h (includes): Use different guard than glibc.
40544         Reported by Sergey Poznyakoff.
40545
40546         doc: mention more cygwin 1.7 status
40547         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
40548         bug.
40549         * doc/posix-functions/execl.texi (execl): Likewise.
40550         * doc/posix-functions/execle.texi (execle): Likewise.
40551         * doc/posix-functions/execlp.texi (execlp): Likewise.
40552         * doc/posix-functions/execv.texi (execv): Likewise.
40553         * doc/posix-functions/execve.texi (execve): Likewise.
40554         * doc/posix-functions/execvp.texi (execvp): Likewise.
40555         * doc/glibc-functions/canonicalize_file_name.texi
40556         (canonicalize_file_name): Cygwin 1.7 now provides this.
40557         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
40558         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
40559         on AT_SYMLINK_NOFOLLOW.
40560
40561 2009-09-24  Eric Blake  <ebb9@byu.net>
40562
40563         test-linkat: make test more robust
40564         * tests/test-linkat.c (main): Avoid collision with EEXIST.
40565
40566         getopt: fix inclusion guards for cygwin
40567         * modules/getopt-posix (Depends-on): Add include-next.
40568         (Makefile.am): Substitute more items in replacement header.
40569         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
40570         <getopt.h>.
40571         * lib/getopt.in.h (includes): Use split inclusion guard, and
40572         prefer <getopt.h> over include <unistd.h> when one is present.
40573         (option): Also override name of 'struct option'.
40574
40575         same-inode: revert prior change; it is not yet ready
40576         * NEWS: Undo mention of this change.
40577         * lib/same-inode.h (same-inode.h): Undo tri-state change.
40578         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40579         * lib/cycle-check.c (cycle_check): Likewise.
40580         * lib/same.c (same_name): Likewise.
40581         * lib/at-func2.c (at_func2): Likewise.
40582
40583 2009-09-23  Eric Blake  <ebb9@byu.net>
40584
40585         linkat: new module
40586         * modules/linkat: New file.
40587         * lib/at-func2.c (at_func2): Likewise.
40588         * lib/linkat.c (linkat): Likewise.
40589         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
40590         * lib/openat-priv.h (at_func2): Add declaration.
40591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40592         * modules/unistd (Makefile.am): Substitute them.
40593         * lib/unistd.in.h (linkat): Declare it.
40594         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40595         * doc/posix-functions/linkat.texi (linkat): Likewise.
40596         * doc/posix-functions/link.texi (link): Tweak wording.
40597         * tests/test-link.c (main): Move guts...
40598         * tests/test-link.h (test_link): ...into new file.
40599         * modules/linkat-tests: New test.
40600         * tests/test-linkat.c: Likewise.
40601         * modules/link-tests (Files): Ship new file.
40602         (Depends-on): Add stdbool.
40603
40604         dirname: add library-safe mdir_name
40605         * lib/dirname.h (mdir_name): New prototype.
40606         * lib/dirname.c (dir_name): Move guts...
40607         (mdir_name): ...to new function that avoids xalloc_die.
40608
40609         fchdir: another mingw fix
40610         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
40611         * lib/fchdir.c (get_name): New helper method; skips canonicalize
40612         on mingw (where it has not yet been ported), and make it optional
40613         elsewhere.
40614         (_gl_register_fd): Use it.
40615
40616         same-inode: make SAME_INODE tri-state, to port to mingw
40617         * NEWS: Mention this change.
40618         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
40619         st_ino always being 0.
40620         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40621         * lib/cycle-check.c (cycle_check): Likewise.
40622         * lib/same.c (same_name): Likewise.
40623
40624         lstat: avoid mingw compilation error
40625         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
40626         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
40627         lstat ourselves.
40628         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
40629         was adequate.
40630         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
40631         the checks for lstat.
40632         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
40633
40634         link: fix test failure on Solaris 9
40635         * lib/link.c (rpl_link): Don't assume link will catch bogus
40636         trailing slash on source.
40637
40638         test-symlinkat: enhance test
40639         * tests/test-readlink.c (main): Move guts...
40640         * tests/test-readlink.h (test_readlink): ...into new file.
40641         * tests/test-symlink.c (main): Move guts...
40642         * tests/test-symlink.h (test_symlink): ...into new file.
40643         * tests/test-symlinkat.c (main): Use new files for further
40644         coverage.
40645         (do_symlink, do_readlink): New helper functions.
40646         * modules/symlink-tests (Files): Ship new file.
40647         (Depends-on): Add stdbool.
40648         * modules/readlink-tests (Files): Ship new file.
40649         (Depends-on): Add stdbool.
40650         * modules/symlinkat-tests (Files): Use new files.
40651
40652 2009-09-23  Eric Blake  <ebb9@byu.net>
40653
40654         readlink: document portability issue with symlink length
40655         * doc/posix-functions/lstat.texi (lstat): Mention that some file
40656         systems have bogus st_size on symlinks, and mention the
40657         areadlink-with-size module.
40658         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40659         * doc/posix-functions/readlink.texi (readlink): Mention the
40660         areadlink module, and ERANGE failure.
40661         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40662         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
40663
40664         readlink: fix Solaris 9 bug with trailing slash
40665         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
40666         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
40667         * doc/posix-functions/readlink.texi (readlink): Document this.
40668         * modules/readlink-tests: New test.
40669         * tests/test-readlink.c: Likewise.
40670
40671         readlink: fix cygwin 1.5.x bug with return type
40672         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
40673         * lib/unistd.in.h (readlink): Use ssize_t.
40674         * lib/readlink.c (readlink): Likewise.
40675         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40676         * modules/unistd (Makefile.am): Substitute it.
40677         * lib/unistd.in.h (readlink): Declare replacement.
40678         * doc/posix-functions/readlink.texi (readlink): Document this.
40679
40680         symlink: use throughout gnulib
40681         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
40682         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
40683         symlink is not used.
40684         * modules/symlinkat (Depends-on): Add symlink.
40685         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40686         * modules/canonicalize-tests (Depends-on): Likewise.
40687         * modules/lstat-tests (Depends-on): Likewise.
40688         * modules/openat-tests (Depends-on): Likewise.
40689         * modules/remove-tests (Depends-on): Likewise.
40690         * modules/rmdir-tests (Depends-on): Likewise.
40691         * modules/unlink-tests (Depends-on): Likewise.
40692         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
40693         * tests/test-canonicalize.c (symlink): Likewise.
40694         * tests/test-fstatat.c (symlink): Likewise.
40695         * tests/test-lstat.c (symlink): Likewise.
40696         * tests/test-remove.c (symlink): Likewise.
40697         * tests/test-rmdir.c (symlink): Likewise.
40698         * tests/test-unlink.c (symlink): Likewise.
40699         * tests/test-unlinkat.c (symlink): Likewise.
40700
40701         symlink: new module, for Solaris 9 bug
40702         * modules/symlink: New file.
40703         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
40704         * lib/symlink.c: Likewise.
40705         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40706         * modules/unistd (Makefile.am): Substitute them.
40707         * lib/unistd.in.h (symlink): Declare replacement.
40708         * MODULES.html.sh (File system functions): Mention it.
40709         * doc/posix-functions/symlink.texi (symlink): Likewise.
40710         * modules/symlink-tests: New test.
40711         * tests/test-symlink.c: Likewise.
40712
40713 2009-09-23  Bruno Haible  <bruno@clisp.org>
40714
40715         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
40716         when needed.
40717         Test case: gnulib-tool --import --with-tests atexit inttypes.
40718         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
40719
40720 2009-09-23  Bruno Haible  <bruno@clisp.org>
40721
40722         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
40723         subcommand, not in a subshell.
40724
40725 2009-09-22  Eric Blake  <ebb9@byu.net>
40726
40727         unistd: sort replacement declarations
40728         * lib/unistd.in.h: Sort declarations.
40729
40730         open, openat: minor optimization
40731         * lib/open.c (open): If open succeeded, len is non-zero.
40732         * lib/openat.c (rpl_openat): Likewise.
40733
40734         link-follow: ensure correct result
40735         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
40736         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
40737         distinguish between possible failures.
40738
40739 2009-09-21  Eric Blake  <ebb9@byu.net>
40740
40741         fts: avoid compiler warning
40742         * lib/fts.c (dirent_inode_sort_may_be_useful)
40743         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
40744
40745 2009-09-19  Bruno Haible  <bruno@clisp.org>
40746
40747         * lib/progreloc.c (canonicalize_file_name): New declaration.
40748
40749 2009-09-19  Eric Blake  <ebb9@byu.net>
40750
40751         link: fix quoting
40752         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
40753
40754         openat: fix openat bugs on Solaris 9
40755         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
40756         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
40757         * modules/openat (Depends-on): Add open.
40758         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
40759         * modules/fcntl-h (Makefile.am): Substitute it.
40760         * lib/fcntl.in.h (openat): Declare replacement.
40761         * doc/posix-functions/openat.texi (openat): Document this.
40762
40763         openat: move fstatat and unlinkat into correct files
40764         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
40765         compiled.
40766         * lib/openat.c (fstatat, unlinkat): Move...
40767         * lib/fstatat.c (fstatat): ...into correct files.
40768         * lib/unlinkat.c (unlinkat): Likewise.
40769
40770         openat: fix unlinkat bugs on Solaris 9
40771         * lib/unlinkat.c (unlinkat): New file.
40772         * modules/openat (Depends-on): Add unlink.
40773         (Files): Distribute it.
40774         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
40775         trailing slash behavior is broken.
40776         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40777         * modules/unistd (Makefile.am): Substitute it.
40778         * lib/unistd.in.h (unlinkat): Declare replacement.
40779         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
40780
40781         openat: fix fstatat bugs on Solaris 9
40782         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
40783         stat.
40784         * doc/posix-functions/fstatat.texi (fstatat): Document this.
40785
40786         test-unlinkat: enhance test, to expose Solaris 9 bug
40787         * tests/test-unlink.c (main): Factor guts...
40788         * tests/test-unlink.h (test_rmdir_func): ...into new file.
40789         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
40790         * tests/test-rmdir.c (main): Adjust caller.
40791         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
40792         (unlinker): New helper function.
40793         (rmdirat): Enhance check.
40794         * modules/rmdir-tests (Depends-on): Add stdbool.
40795         * modules/unlink-tests (Depends-on): Likewise.
40796         (Files): Add test-unlink.h.
40797         * modules/openat-tests (Files): Likewise.
40798         (Depends-on): Add unlinkdir.
40799
40800         test-fstatat: new test, to expose Solaris 9 bugs
40801         * tests/test-stat.c (main): Factor guts...
40802         * tests/test-stat.h (test_stat_func): ...into new file.
40803         * tests/test-lstat.c (main): Factor guts...
40804         * tests/test-lstat.h (test_lstat_func): ...into new file.
40805         * tests/test-fstatat.c: New file.
40806         * modules/stat-tests (Files): Add test-stat.h.
40807         * modules/lstat-tests (Files): Add test-lstat.h.
40808         (Depends-on): Add stdbool.
40809         * modules/openat-tests (Depends-on): Add pathmax.
40810         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
40811         (Makefile.am): Run new test.
40812
40813         remove: new module, for mingw and Solaris 9 bugs
40814         * modules/remove: New file.
40815         * lib/remove.c: Likewise.
40816         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
40817         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40818         * modules/stdio (Makefile.am): Use them.
40819         * lib/stdio.in.h (remove): Declare replacement.
40820         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40821         * doc/posix-functions/remove.texi (remove): Likewise.
40822         * modules/remove-tests: New test.
40823         * tests/test-remove.c: Likewise.
40824
40825         unlink: new module, for Solaris 9 bug
40826         * modules/unlink: New file.
40827         * lib/unlink.c: Likewise.
40828         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
40829         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40830         * modules/unistd (Makefile.am): Use them.
40831         * lib/unistd.in.h (stat): Declare replacement.
40832         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40833         * doc/posix-functions/unlink.texi (unlink): Likewise.
40834         * modules/unlink-tests: New test.
40835         * tests/test-unlink.c: Likewise.
40836
40837         lstat: fix Solaris 9 bug
40838         * lib/lstat.c (lstat): Also check for trailing slash on
40839         non-symlink, non-directories.  Use stat module to simplify logic.
40840         * doc/posix-functions/lstat.texi (lstat): Document it.
40841         * modules/lstat-tests (Depends-on): Add errno, same-inode.
40842         (configure.ac): Check for symlink.
40843         * tests/test-lstat.c (main): Add more tests.
40844
40845         stat: add as dependency to other modules
40846         * modules/chown (Depends-on): Add stat.
40847         * modules/euidaccess (Depends-on): Likewise.
40848         * modules/fchdir (Depends-on): Likewise.
40849         * modules/isdir (Depends-on): Likewise.
40850         * modules/link (Depends-on): Likewise.
40851         * modules/lstat (Depends-on): Likewise.
40852         * modules/mkdir-p (Depends-on): Likewise.
40853         * modules/modechange (Depends-on): Likewise.
40854         * modules/open (Depends-on): Likewise.
40855         * modules/readlink (Depends-on): Likewise.
40856         * modules/same (Depends-on): Likewise.
40857
40858         stat: fix Solaris 9 bug
40859         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
40860         slash.
40861         * lib/stat.c (rpl_stat): Work around it.
40862         * doc/posix-functions/stat.texi (stat): Update documentation.
40863
40864         stat: new module, for mingw bug
40865         * modules/stat: New file.
40866         * lib/stat.c: Likewise.
40867         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40868         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40869         * modules/sys_stat (Makefile.am): Use them.
40870         * lib/sys_stat.in.h (stat): Declare replacement.
40871         * lib/openat.c (fstatat): Deal with lstat and stat being function
40872         macros.
40873         * modules/openat (Depends-on): Add inline.
40874         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40875         * doc/posix-functions/stat.texi (stat): Likewise.
40876         * modules/stat-tests: New test.
40877         * tests/test-stat.c: Likewise.
40878
40879 2009-09-19  Jim Meyering  <meyering@redhat.com>
40880
40881         syntax-check: detect unnecessary inclusion of canonicalize.h
40882         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
40883
40884 2009-09-19  Eric Blake  <ebb9@byu.net>
40885
40886         canonicalize-lgpl: adjust clients to use correct header
40887         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40888         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
40889         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
40890         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
40891         * lib/progreloc.c (includes): Likewise.
40892
40893 2009-09-19  Jim Meyering  <meyering@redhat.com>
40894
40895         test-posixtm.c: correct a comment
40896         * tests/test-posixtm.c: Correct first-line comment.
40897         Spotted by Eric Blake.
40898
40899 2009-09-16  Jim Meyering  <meyering@redhat.com>
40900
40901         posixtm-tests: make T const-correct; add a test case
40902         * tests/test-posixtm.c (T): Declare const.
40903         Add a test for -(2^31+1).
40904         Remove useless can-succeed-only-in-2002 test.
40905
40906         posixtm-tests: adjust the sole failing test
40907         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
40908         expected output matches what mktime now produces.  Cross-checked via
40909         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
40910
40911         posixtm: move #ifdef'd tests into a new module
40912         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
40913         * tests/test-posixtm.c: ... this new file.
40914         * modules/posixtm-tests: New module.
40915
40916 2009-09-19  Eric Blake  <ebb9@byu.net>
40917
40918         openat: simplify use of at-func.c
40919         * lib/at-func.c (includes): Include prerequisites here, to
40920         simplify requirements on client files.
40921         * lib/openat-priv.h: Add double-inclusion guard.
40922         * lib/faccessat.c (includes): Simplify.
40923         * lib/fchmodat.c (includes): Likewise.
40924         * lib/fchownat.c (includes): Likewise.
40925         * lib/mkdirat.c (includes): Likewise.
40926         * lib/mkfifoat.c (includes): Likewise.
40927         * lib/symlinkat.c (includes): Likewise.
40928
40929         openat: allow return of fd 0
40930         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
40931         * modules/save-cwd (Depends-on): Replace fcntl-safer with
40932         unistd-safer.
40933         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
40934         <fcntl.h>; this module does not leak fds.
40935         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
40936         must be allowed to return 0, leaving openat_safer to add the
40937         safety.
40938         (openat_permissive): Avoid writing to just-opened fd 2 if
40939         restoring the current directory fails.
40940         * lib/openat-die.c (openat_restore_fail): Add comment.
40941         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
40942         (save_cwd): Guarantee safe fd, but without use of open_safer.
40943         * tests/test-openat.c: New test.
40944         * modules/openat-tests (Files, Makefile.am): Distribute and build
40945         new file.
40946
40947         relocatable-prog-wrapper: fix build
40948         * modules/relocatable-prog-wrapper (Files): Update name of
40949         canonicalize m4 file, broken on 2009-09-17.
40950         Reported by emad hajjar <aleppos@hotmail.com>.
40951
40952 2009-09-19  Bruno Haible  <bruno@clisp.org>
40953
40954         * lib/safe-alloc.h: Use the standard header with GPL copyright.
40955         * lib/safe-alloc.c: Likewise.
40956         Reported by Ian Beckwith <ianb@erislabs.net>.
40957
40958 2009-09-18  Bruno Haible  <bruno@clisp.org>
40959
40960         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
40961         Reported by <erobles@sensacd.com.mx>.
40962
40963 2009-09-17  Eric Blake  <ebb9@byu.net>
40964
40965         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
40966         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
40967         slashes when checking if last component is missing.
40968         * tests/test-canonicalize.c (main): Test this.
40969
40970         canonicalize, canonicalize-lgpl: honor // if distinct from /
40971         * modules/canonicalize (Files): Add double-slash-root.m4.
40972         * modules/canonicalize-lgpl (Files): Likewise.
40973         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40974         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
40975         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
40976         fallback definition.
40977         (canonicalize_filename_mode): Use it to protect //.
40978         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
40979         (__realpath): Likewise.
40980         * tests/test-canonicalize.c (main): Test this.
40981         * tests/test-canonicalize-lgpl.c (main): Likewise.
40982         * modules/canonicalize-tests (Depends-on): Add same-inode.
40983         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40984
40985         canonicalize-lgpl: fix glibc bug with trailing slash
40986         * m4/canonicalize-lgpl.m4: Move contents...
40987         * m4/canonicalize.m4: ...here.
40988         (gl_CANONICALIZE_LGPL): Factor realpath check...
40989         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
40990         glibc 2.3.5 bug, fixed 2005-04-27.
40991         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
40992         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
40993         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
40994         * modules/canonicalize-lgpl (Files): Manage file rename.
40995         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40996         * modules/stdlib (Makefile.am): Substitute witness.
40997         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
40998         is needed.
40999         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
41000         replacement is required.
41001         * lib/canonicalize.c (canonicalize_file_name): Likewise.
41002         * doc/glibc-functions/canonicalize_file_name.texi
41003         (canonicalize_file_name): Document this.
41004         * doc/posix-functions/realpath.texi (realpath): Likewise.
41005
41006         canonicalize-lgpl: reject non-directory with trailing slash
41007         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
41008         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
41009         catches failures in glibc 2.3.5.
41010         * tests/test-canonicalize.c (main): Likewise.
41011
41012         canonicalize-lgpl: use native realpath if it works
41013         * lib/canonicalize-lgpl.c (realpath): Guard with
41014         FUNC_REALPATH_WORKS.
41015         * lib/stdlib.in.h (realpath): Make declaration optional based on
41016         HAVE_REALPATH.
41017         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
41018         native realpath works.
41019         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41020         * modules/stdlib (Makefile.am): Substitute witness.
41021
41022         canonicalize, canonicalize-lgpl: use <stdlib.h>
41023         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
41024         (Include): Mention <stdlib.h>.
41025         (configure.ac): Mention functions we provide.
41026         * modules/canonicalize (configure.ac): Likewise.
41027         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
41028         realpath if canonicalize_file_name is missing.
41029         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
41030         * modules/stdlib (Makefile.am): Substitute witnesses.
41031         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
41032         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
41033         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
41034         * NEWS: Document this.
41035         * doc/glibc-functions/canonicalize_file_name.texi
41036         (canonicalize_file_name): Likewise.
41037         * doc/posix-functions/realpath.texi (realpath): Likewise.
41038         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
41039
41040         test-canonicalize: consolidate into single C program
41041         * tests/test-canonicalize.sh: Delete; move setup into...
41042         * tests/test-canonicalize.c (main): ...the program, making it
41043         easier to run in debugger.  Add some tests.
41044         * modules/canonicalize-tests (Files): Remove unused file.
41045         (Depends-on): Add progname.
41046         (configure.ac, Makefile.am): Simplify.
41047
41048         test-canonicalize-lgpl: consolidate into single C program
41049         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
41050         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
41051         easier to run in debugger.  Add some tests.
41052         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
41053         (configure.ac, Makefile.am): Simplify.
41054
41055         canonicalize: avoid resolvepath
41056         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
41057         unnecessary checks.
41058         * lib/canonicalize.c (includes): Simplify.
41059         (canonicalize_file_name): Drop resolvepath implementation.
41060         * modules/canonicalize (Depends-on): Drop filenamecat.
41061
41062         canonicalize: don't lose errno
41063         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
41064         over calls to free.
41065
41066         canonicalize: simplify errno handling
41067         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
41068         assignment.
41069
41070         canonicalize, canonicalize-lgpl: update module dependencies
41071         * modules/canonicalize (Depends-on): Add extensions, lstat,
41072         pathmax, stdlib.
41073         (Files): Drop pathmax.h.
41074         (configure.ac): Adjust macro name.
41075         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
41076         lstat, stdlib, sys_stat.
41077         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
41078         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
41079         extensions.
41080         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
41081         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
41082         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
41083         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
41084         declaration, if available.
41085         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
41086         we can rely on the readlink module.
41087         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
41088         (includes): Use <unistd.h> unconditionally.
41089
41090 2009-09-17  Eric Blake  <ebb9@byu.net>
41091
41092         maint: make Include sections of modules consistent
41093         * modules/alloca: Use only header name; no need to list #include.
41094         * modules/alloca-opt: Likewise.
41095         * modules/arpa_inet: Likewise.
41096         * modules/canon-host: Likewise.
41097         * modules/configmake: Likewise.
41098         * modules/dirent: Likewise.
41099         * modules/eealloc: Likewise.
41100         * modules/environ: Likewise.
41101         * modules/fchdir: Likewise.
41102         * modules/fcntl: Likewise.
41103         * modules/fcntl-h: Likewise.
41104         * modules/gethrxtime: Likewise.
41105         * modules/gettime: Likewise.
41106         * modules/ignore-value: Likewise.
41107         * modules/inet_ntop: Likewise.
41108         * modules/inet_pton: Likewise.
41109         * modules/inttypes: Likewise.
41110         * modules/isnand-nolibm: Likewise.
41111         * modules/isnanf-nolibm: Likewise.
41112         * modules/mbchar: Likewise.
41113         * modules/mbfile: Likewise.
41114         * modules/mbiter: Likewise.
41115         * modules/mbuiter: Likewise.
41116         * modules/netdb: Likewise.
41117         * modules/netinet_in: Likewise.
41118         * modules/nproc: Likewise.
41119         * modules/pagealign_alloc: Likewise.
41120         * modules/poll: Likewise.
41121         * modules/printf-frexp: Likewise.
41122         * modules/pthread: Likewise.
41123         * modules/putenv: Likewise.
41124         * modules/random_r: Likewise.
41125         * modules/relocatable-prog: Likewise.
41126         * modules/search: Likewise.
41127         * modules/select: Likewise.
41128         * modules/selinux-h: Likewise.
41129         * modules/settime: Likewise.
41130         * modules/signal: Likewise.
41131         * modules/size_max: Likewise.
41132         * modules/socklen: Likewise.
41133         * modules/ssize_t: Likewise.
41134         * modules/stdarg: Likewise.
41135         * modules/stdbool: Likewise.
41136         * modules/stddef: Likewise.
41137         * modules/stdint: Likewise.
41138         * modules/stdio: Likewise.
41139         * modules/stdlib: Likewise.
41140         * modules/string: Likewise.
41141         * modules/strings: Likewise.
41142         * modules/sys_file: Likewise.
41143         * modules/sys_ioctl: Likewise.
41144         * modules/sys_select: Likewise.
41145         * modules/sys_socket: Likewise.
41146         * modules/sys_stat: Likewise.
41147         * modules/sys_time: Likewise.
41148         * modules/sys_times: Likewise.
41149         * modules/sys_utsname: Likewise.
41150         * modules/sys_wait: Likewise.
41151         * modules/sysexits: Likewise.
41152         * modules/time: Likewise.
41153         * modules/times: Likewise.
41154         * modules/tmpfile: Likewise.
41155         * modules/trim: Likewise.
41156         * modules/unistd: Likewise.
41157         * modules/wchar: Likewise.
41158         * modules/wctype: Likewise.
41159
41160 2009-09-17  Bruno Haible  <bruno@clisp.org>
41161
41162         Make getdate.y compile on QNX and NetBSD 5 / i386.
41163         * m4/getdate.m4 (gl_GETDATE): Conditionally define
41164         TIME_T_FITS_IN_LONG_INT.
41165         * lib/getdate.y (long_time_t): New type.
41166         (relative_time): Change type of 'seconds' field to long_time_t.
41167         (get_date): Update types of local variables. Check against overflow
41168         during conversion from long_time_t to time_t.
41169         Reported by Matt Kraai <kraai@ftbfs.org>
41170         and Hasso Tepper <hasso@netbsd.org>.
41171
41172 2009-09-17  Bruno Haible  <bruno@clisp.org>
41173
41174         * modules/COPYING: Update copyright years.
41175         * modules/README: Likeiwse.
41176         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
41177         Reported by Ian Beckwith <ianb@erislabs.net>.
41178
41179 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41180
41181         * users.txt: Update references for gnuit package.
41182
41183 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41184
41185         * m4/getdelim.m4: Fix typo in copyright line.
41186
41187 2009-09-17  Bruno Haible  <bruno@clisp.org>
41188
41189         * lib/atoll.c: Use the standard header with GPL copyright.
41190         * lib/argz.in.h: Likewise.
41191         * lib/glob.c: Likewise.
41192         * lib/glob-libc.h: Likewise.
41193         * lib/random_r.c: Likewise.
41194         * lib/siglist.h: Likewise.
41195         * lib/strsignal.c: Likewise.
41196         Reported by Ian Beckwith <ianb@erislabs.net>.
41197
41198 2009-09-17  Eric Blake  <ebb9@byu.net>
41199
41200         rmdir: ensure correct dependency order
41201         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
41202
41203 2009-09-17  Bruno Haible  <bruno@clisp.org>
41204
41205         Disable assertion that fails on NetBSD 5 / i386.
41206         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
41207         Reported by Sam Steingold <sds@gnu.org>
41208         and Hasso Tepper <hasso@netbsd.org>.
41209
41210 2009-09-16  Eric Blake  <ebb9@byu.net>
41211
41212         unlinkdir: port to mingw
41213         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
41214         on which no one can unlink a directory.
41215
41216         stdlib: sort witness names
41217         * modules/stdlib (Makefile.am): Sort replacements.
41218         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41219         * lib/stdlib.in.h: Likewise.
41220
41221         parse-duration-tests: avoid link failure
41222         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
41223         LIBINTL.
41224         Reported by Tom G. Christensen.
41225
41226         openat-tests: ensure unlinkat behaves like rmdir
41227         * tests/test-rmdir.c (main): Factor guts...
41228         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
41229         * modules/rmdir-tests (Files): Ship new file.
41230         * modules/openat-tests: New test.
41231         * tests/test-unlinkat.c: Likewise.
41232
41233         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
41234         * modules/rmdir-errno (Status, Notice): Now obsolete.
41235
41236         rmdir: work around cygwin 1.5.x and mingw bugs
41237         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
41238         * lib/rmdir.c (rmdir): Work around it.
41239         * modules/rmdir (Status, Notice): No longer obsolete.
41240         (Files): Add dos.m4.
41241         (Depends-on): Add unistd.
41242         (configure.ac): Set witnesses.
41243         (License): Relax to LGPLv2+.
41244         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
41245         * modules/unistd (Makefile.am): Substitute witnesses.
41246         * lib/unistd.in.h (rmdir): Declare replacement.
41247         * doc/posix-functions/rmdir.texi (rmdir): Document this.
41248         * modules/rmdir-tests: New tests.
41249         * tests/test-rmdir.c: Likewise.
41250
41251 2009-09-15  Eric Blake  <ebb9@byu.net>
41252
41253         fchdir: improve use of replacement functions
41254         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
41255         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
41256         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
41257         REPLACE_CLOSEDIR.
41258         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
41259         * modules/sys_stat (Makefile.am): Substitute correct witness.
41260         * modules/dirent (Makefile.am): Likewise.
41261         * modules/unistd (Makefile.am): Likewise.
41262         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
41263         * lib/unistd.in.h (dup): Likewise.
41264         * lib/sys_stat.in.h (fstat): Likewise.
41265
41266         maint: ignore gnulib-tool temp files
41267         * .gitignore: Ignore files created during gnulib-tool --test.
41268
41269 2009-09-13  Jim Meyering  <meyering@redhat.com>
41270
41271         posixtm: don't reject a time that specify "60" as the number of seconds
41272         * lib/posixtm.c (posixtime): The code to reject invalid dates
41273         would also reject a time specified with the .60 suffix.
41274         But POSIX allows that, in order to accommodate leap seconds.
41275         So don't reject it.
41276         (main): Adjust tests accordingly.
41277         * modules/posixtm (Depends-on): Add stpcpy.
41278
41279 2009-09-11  Jim Meyering  <meyering@redhat.com>
41280
41281         announce-gen: include [$release_type] in emitted Subject:
41282         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
41283         e.g., [stable] in the emitted Subject: line.
41284
41285 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41286
41287         Remove obsolete macros from several modules.
41288         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
41289         obsolete Autoconf macros with their modern counterparts.
41290         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
41291         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
41292         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
41293         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41294         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
41295         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41296         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41297         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41298         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
41299         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
41300         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
41301         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
41302         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
41303         * m4/sockets.m4 (gl_SOCKETS): Likewise.
41304         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
41305         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
41306         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
41307         * m4/time_r.m4 (gl_TIME_R): Likewise.
41308         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
41309         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
41310         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41311
41312         Fix copyright header in build-aux scripts.
41313         * build-aux/git-version-gen: Fix copyright header to match GPLv3
41314         recommendation.
41315         * build-aux/ncftpput-ftp: Likewise.
41316         * build-aux/update-copyright: Likewise.
41317
41318 2009-09-09  Eric Blake  <ebb9@byu.net>
41319
41320         test-link: allow Linux choice of errno
41321         * tests/test-link.c (main): Relax test for alternate error.
41322
41323         strndup: fix improper m4 caching
41324         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
41325         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
41326         (gl_PREREQ_STRNDUP): Delete.
41327         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
41328         * modules/string (Makefile.am): Substitute it.
41329         * lib/string.in.h (strndup): Modernize prototype.
41330
41331         getcwd: port to mingw
41332         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
41333         different from the POSIX assumptions made throughout the getcwd
41334         module; fortunately, the mingw getcwd does not need replacement.
41335         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
41336         * modules/getcwd-tests: New test.
41337         * tests/test-getcwd.c: Likewise.
41338
41339         link: fix platform bugs
41340         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
41341         * lib/link.c (link): Work around them.  Fix related mingw bug.
41342         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
41343         * modules/unistd (Makefile.am): Substitute it.
41344         * lib/unistd.in.h (link): Declare replacement.
41345         * doc/posix-functions/link.texi (link): Document this.
41346         * modules/link (Depends-on): Add strdup-posix, sys_stat.
41347
41348         test-link: consolidate into single C program, test more cases
41349         * tests/test-link.sh: Delete.
41350         * tests/test-link.c: Test more error conditions.  Exposes bugs on
41351         at least Cygwin and Solaris.
41352         * modules/link-tests (Files): Remove unused file.
41353         (Depends-on): Add errno, sys_stat.
41354         (Makefile.am): Simplify.
41355
41356 2009-09-08  Bruno Haible  <bruno@clisp.org>
41357
41358         Work around towlower, towupper bug on mingw.
41359         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
41360         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
41361         * doc/posix-functions/towlower.texi: Mention the mingw bug.
41362         * doc/posix-functions/towupper.texi: Likewise.
41363         Reported by Eric Blake.
41364
41365 2009-09-08  Jim Meyering  <meyering@redhat.com>
41366
41367         build: don't try to run autoheader if we don't use it
41368         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
41369         is not used in configure.ac.
41370
41371 2009-09-08  Eric Blake  <ebb9@byu.net>
41372
41373         euidaccess: fix compilation error
41374         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
41375
41376         rawmemchr: relax license
41377         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
41378         okay.
41379         Reported by Jim Meyering.
41380
41381         mkfifoat: new module
41382         * modules/mkfifoat: New file.
41383         * lib/mkfifoat.c: Likewise.
41384         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
41385         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41386         * modules/sys_stat (Makefile.am): Use them.
41387         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
41388         * MODULES.html.sh (File system functions): Mention module.
41389         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41390         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41391         * modules/mkfifoat-tests: New test.
41392         * tests/test-mkfifoat.c: Likewise.
41393
41394         strchrnul: relax license
41395         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
41396         okay.
41397         Reported by Jim Meyering.
41398
41399 2009-09-08  Eric Blake  <ebb9@byu.net>
41400
41401         fstatat: fix compilation on Solaris
41402         * lib/fstatat.c (includes): Add fcntl.h.
41403         Reported by Pádraig Brady.
41404
41405 2009-09-07  Eric Blake  <ebb9@byu.net>
41406
41407         rename: modernize replacement
41408         * modules/rename (Depends-on): Add stdio.
41409         (configure.ac): Declare witness.
41410         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
41411         stdio take care of replacement.
41412         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
41413         * modules/stdio (Makefile.am): Substitute them.
41414         * lib/stdio.in.h (rename): Declare replacement.
41415         * lib/rename.c (includes): Allow cross-compilation to non-windows
41416         machines.
41417         * doc/posix-functions/rename.texi (rename): Improve
41418         documentation.
41419
41420         stdio: sort witness names
41421         * modules/stdio (Makefile.am): Sort replacements.
41422         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41423         * lib/stdio.in.h: Likewise.
41424
41425         getcwd: minor cleanups
41426         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
41427         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
41428
41429         openat: provide more convenience names
41430         * modules/faccessat (configure.ac): Add C witness.
41431         * lib/unistd.in.h (readlinkat): Fix typo.
41432         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
41433         convenience wrappers.
41434         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
41435         wrappers in syntax checks.
41436
41437 2009-09-06  Eric Blake  <ebb9@byu.net>
41438
41439         doc: fix comments in recent patches
41440         * lib/faccessat.c: Mention correct function.
41441         * lib/fchmodat.c: Likewise.
41442         * lib/fchownat.c: Likewise.
41443         * lib/symlinkat.c: Likewise.
41444         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
41445         constants.
41446
41447         faccessat, symlinkat: continue cleanup of previous patch
41448         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
41449         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41450         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
41451         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
41452         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
41453         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
41454         set.
41455
41456 2009-09-06  Bruno Haible  <bruno@clisp.org>
41457
41458         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
41459         (fstatat): Declare if GNULIB_FSTATAT is set.
41460         (mkdirat): Declare if GNULIB_MKDIRAT is set.
41461         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
41462         (unlinkat): Declare if GNULIB_UNLINKAT is set.
41463         * modules/fcntl-h (Files): Remove m4/openat.m4.
41464         * modules/sys_stat (Files): Remove m4/openat.m4.
41465         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
41466         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
41467         * modules/unistd (Files): Remove m4/openat.m4.
41468         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
41469         GNULIB_OPENAT.
41470         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
41471         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
41472         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
41473         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
41474         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
41475         gl_OPENAT_DEFAULTS.
41476         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
41477         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
41478         Don't require gl_OPENAT_DEFAULTS.
41479         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
41480         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
41481         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
41482         (gl_OPENAT_DEFAULTS): Remove macro.
41483
41484 2009-09-06  Bruno Haible  <bruno@clisp.org>
41485
41486         * modules/openat (configure.ac): Remove unneeded witness.
41487
41488 2009-09-06  Bruno Haible  <bruno@clisp.org>
41489
41490         Set errno to ENOSYS when a function is entirely unsupported.
41491         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
41492         EOPNOTSUPP.
41493         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41494         * modules/chown (Depends-on): Remove errno.
41495
41496 2009-09-06  Bruno Haible  <bruno@clisp.org>
41497
41498         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
41499
41500 2009-09-06  Bruno Haible  <bruno@clisp.org>
41501
41502         * lib/sys_stat.in.h: Fix preprocessor command indentation.
41503
41504 2009-09-06  Ben Pfaff  <blp@gnu.org>
41505             Bruno Haible  <bruno@clisp.org>
41506
41507         Work around a glibc bug in strtok_r.
41508         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
41509         Undefine if UNDEFINE_STRTOK_R is set.
41510         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
41511         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41512         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
41513         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
41514         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
41515         UNDEFINE_STRTOK_R.
41516         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
41517
41518 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
41519
41520         exclude: minor fix
41521         * lib/exclude.c: Include wctype.h
41522
41523 2009-09-06  Akim Demaille  <demaille@gostai.com>
41524
41525         bootstrap: improve error message
41526         * build-aux/bootstrap (find_tool): Upon failure, report the list
41527         of candidates.
41528         Honor the initial value of the envvar.
41529
41530 2009-09-05  Eric Blake  <ebb9@byu.net>
41531
41532         symlinkat: new module
41533         * modules/symlinkat: New file.
41534         * lib/symlinkat.c: Likewise.
41535         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
41536         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41537         * modules/unistd (Makefile.am): Use them.
41538         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
41539         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
41540         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
41541         * MODULES.html.sh (File system functions): Mention module.
41542         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41543         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41544         * modules/symlinkat-tests: New test.
41545         * tests/test-symlinkat.c: Likewise.
41546
41547         test-openat-safer: add more checks
41548         * tests/test-openat-safer.c (main): Check more code paths.
41549
41550 2009-09-05  Jim Meyering  <meyering@redhat.com>
41551
41552         syntax-check: detect unnecessary inclusion of openat.h
41553         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
41554
41555 2009-09-05  Bruno Haible  <bruno@clisp.org>
41556
41557         Support towlower, towupper.
41558         * doc/posix-functions/towlower.texi: Mention module wctype.
41559         * doc/posix-functions/towupper.texi: Likewise.
41560         * lib/wctype.in.h (towlower, towupper): New functions.
41561         * tests/test-wctype.c: Include stdio.h, stdlib.h.
41562         (ASSERT): New macro.
41563         (e): New variable.
41564         (main): Test also towlower, towupper. Test WEOF argument.
41565         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41566
41567 2009-09-05  Bruno Haible  <bruno@clisp.org>
41568
41569         Fix conversion behaviour when the input is invalid.
41570         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
41571         mark occurring in first pass of indirect conversion.
41572         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
41573         input.
41574         Found by clang's static analyzer.
41575
41576 2009-09-05  Bruno Haible  <bruno@clisp.org>
41577
41578         * tests/test-striconveh.c (main): Test indirect conversion on platforms
41579         where direct conversion is possible.
41580
41581 2009-09-04  Eric Blake  <ebb9@byu.net>
41582
41583         openat: fail with ENOENT on empty name
41584         * lib/openat-proc.c (openat_proc_name): Special-case the empty
41585         buffer.
41586
41587         link-follow: fix logic bug in prior patch
41588         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
41589         reversed sense of yes and no in prior patch.  Avoid confusing
41590         compilation failure with desired semantics.
41591
41592         link-follow: accomodate mingw and cross-compilation
41593         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
41594         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
41595         cross-compilation results to -1, to make linkat easier to
41596         implement when cross-compiling.  Trivially support mingw.
41597         * modules/link-follow (configure.ac): Call new name.
41598         * NEWS: Mention this.
41599
41600 2009-09-03  Eric Blake  <ebb9@byu.net>
41601
41602         faccessat: compile replacement
41603         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
41604         needed.
41605
41606         fts: fix compilation error
41607         * lib/fts.c (includes): Re-add "openat.h", for
41608         openat_needs_fchdir.
41609
41610         faccessat: new module
41611         * modules/faccessat: New file.
41612         * lib/faccessat.c: Likewise.
41613         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41614         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41615         * modules/unistd (Makefile.am): Use it.
41616         * lib/unistd.in.h (faccessat): Declare it.
41617         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
41618         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
41619         * MODULES.html.sh (File system functions): Mention it.
41620         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
41621         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41622
41623         euidaccess: prefer POSIX over non-standard implementation
41624         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
41625         * lib/euidaccess.c (euidaccess): Use it if available.
41626
41627         openat: make template easier to use
41628         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
41629         AT_FUNC_F2 to be undefined.
41630         (VALIDATE_FLAG): New macro; use it to reject bad flags.
41631         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
41632         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
41633         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
41634         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
41635         Likewise.
41636         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
41637         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
41638         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
41639         Likewise.
41640
41641         openat: declare in POSIX headers
41642         * NEWS: Mention this.
41643         * modules/openat (configure.ac): Declare witnesses.
41644         (Depends-on): Add fcntl-h, sys_stat, unistd.
41645         (Include): Mention correct headers.
41646         * modules/fcntl-h (Depends-on): Add link-warning.
41647         (Files): Add openat.m4.
41648         (Makefile.am): Substitute witnesses.
41649         * modules/sys_stat (Files, Makefile.am): Likewise.
41650         * modules/unistd (Files, Makefile.am): Likewise.
41651         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
41652         (gl_OPENAT_DEFAULTS): New macro.
41653         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
41654         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
41655         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
41656         (SYS_STAT_H): Remove unused variable.
41657         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
41658         * lib/fcntl--.h (includes): Remove unneeded header.
41659         * lib/openat-safer.c (includes): Likewise.
41660         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
41661         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
41662         appropriate headers.
41663         (__OPENAT_PREFIX): Delete.
41664         * lib/fcntl.in.h (openat): Provide declaration.
41665         (AT_FDCWD): Fix Solaris bug.
41666         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
41667         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
41668         * lib/fchmodat.c (includes):  Adjust to find declaration.
41669         * lib/fchownat.c (includes): Likewise.
41670         * lib/mkdirat.c (includes): Likewise.
41671         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
41672         still visible.
41673
41674 2009-09-02  Eric Blake  <ebb9@byu.net>
41675
41676         errno: use consistently
41677         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
41678         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
41679         * lib/canonicalize.c (ELOOP): Likewise.
41680         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
41681         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
41682         * lib/lchown.c (EOPNOTSUPP): Likewise.
41683         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
41684         * lib/savewd.c (ESTALE): Likewise.
41685         * lib/settime.c (ENOSYS): Likewise.
41686         * lib/utimens.c (ENOSYS): Likewise.
41687         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
41688         * lib/chdir-safer.c (ELOOP): Likewise.
41689         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
41690         * modules/c-stack (Depends-on): Add errno.
41691         * modules/canonicalize (Depends-on): Likewise.
41692         * modules/chdir-safer (Depends-on): Likewise.
41693         * modules/fdopendir (Depends-on): Likewise.
41694         * modules/inet_ntop (Depends-on): Likewise.
41695         * modules/inet_pton (Depends-on): Likewise.
41696         * modules/lchown (Depends-on): Likewise.
41697         * modules/openat (Depends-on): Likewise.
41698         * modules/savewd (Depends-on): Likewise.
41699         * modules/settime (Depends-on): Likewise.
41700         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
41701
41702         fts: avoid leaking fds
41703         * modules/fts (Depends-on): Add cloexec.
41704         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
41705         flag.
41706
41707         fts: make directory fds more robust
41708         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
41709         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
41710
41711         backupfile, chdir-long, fts, savedir: make safer
41712         * lib/backupfile.c (includes): Use "dirent--.h", since
41713         numbered_backup can write to stderr during readdir.
41714         * lib/savedir.c (includes): Likewise.
41715         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
41716         emulation can write to stderr on failure.
41717         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
41718         * lib/getcwd.c: Document why opendir_safer is unused.
41719         * lib/glob.c: Likewise.
41720         * lib/scandir.c: Likewise.
41721         * lib/openat-proc.c: Likewise, for open_safer.
41722         * modules/backupfile (Depends-on): Add dirent-safer.
41723         * modules/savedir (Depends-on): Likewise.
41724         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
41725         * modules/chdir-long (Depends-on): Add openat-safer.
41726
41727         openat-safer: new module
41728         * modules/openat-safer: New file.
41729         * lib/openat-safer.c: Likewise.
41730         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
41731         * lib/fcntl-safer.h (openat_safer): Declare.
41732         * lib/fcntl--.h (openat): Override.
41733         * MODULES.html.sh (File descriptor based I/O): Mention it.
41734         * lib/openat.h: Add double-inclusion guards.
41735         * lib/openat.c (includes): Only include "fcntl-safer.h", not
41736         "fcntl--.h", so we can implement openat.
41737         * modules/openat-safer-tests: New test.
41738         * tests/test-openat-safer.c: New file.
41739
41740         dirent-safer: new module
41741         * modules/dirent-safer: New file.
41742         * lib/dirent--.h: Likewise.
41743         * lib/dirent-safer.h: Likewise.
41744         * lib/opendir-safer.c: Likewise.
41745         * m4/dirent-safer.m4: Likewise.
41746         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
41747         * modules/dirent-safer-tests: New test.
41748         * tests/test-dirent-safer.c: New file.
41749         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
41750
41751         fdopendir: optimize on mingw
41752         * lib/unistd.in.h (_gl_directory_name): New prototype.
41753         * lib/fchdir.c (_gl_directory_name): Implement it.
41754         (fchdir): Use it to simplify implementation.
41755         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
41756         fchdir, when available, to avoid calling [f]chdir().
41757
41758         fdopendir: split into its own module
41759         * lib/openat.c (fdopendir): Move...
41760         * lib/fdopendir.c: ...into new file.
41761         * modules/fdopendir: New module.
41762         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
41763         * modules/openat (Depends-on): Add fdopendir.
41764         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
41765         fdopendir here.
41766         * modules/savedir (Depends-on): Only need fdopendir, not full
41767         openat.
41768         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
41769         * lib/openat.h (fdopendir): Drop prototype.
41770         * lib/dirent.in.h (fdopendir): Provide prototype.
41771         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
41772         * modules/dirent (Makefile.am): Substitute them.
41773         * MODULES.html.sh (File system functions): Mention it.
41774         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
41775         * modules/fdopendir-tests: New file.
41776         * tests/test-fdopendir.c: Likewise.
41777
41778         fchdir: use more consistent macro convention
41779         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
41780         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
41781         REPLACE_FCHDIR, rather than relying on config.h macros.
41782         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
41783         inside a single make-time REPLACE_FCHDIR block, rather than using
41784         the config.h FCHDIR_REPLACEMENT.
41785         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
41786         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
41787         Manage fstat replacement.
41788         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
41789         REPLACE_FCHDIR.
41790         * modules/sys_stat (Files): Add m4/unistd_h.m4.
41791         (Makefile.am): Substitute REPLACE_FCHDIR.
41792         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
41793         FCHDIR_REPLACEMENT.
41794         * lib/dup-safer.c (dup_safer): Likewise.
41795         * lib/dup2.c (rpl_dup2): Likewise.
41796         * lib/dup3.c (rpl_dup3): Likewise.
41797         * lib/open.c (rpl_open): Likewise.
41798
41799         fchdir: simplify error handling, and support dup3
41800         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
41801         stdbool, malloc-posix, realloc-posix.
41802         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
41803         (ensure_dirs_slot): Return false on allocation failure.
41804         (rpl_dup2): Delete.
41805         (_gl_register_dup): New function.
41806         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
41807         (_gl_register_fd): Close fd on allocation failure.
41808         * lib/fcntl.in.h (_gl_register_fd): Update signature.
41809         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
41810         prototype.
41811         (rpl_dup2_fchdir): Delete prototype.
41812         * lib/open.c (open): Update caller.
41813         * lib/dup2.c (dup2): Track fchdir metadata.
41814         * lib/dup3.c (dup3): Likewise.
41815         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
41816         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
41817
41818 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41819
41820         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
41821         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
41822         don't pass arguments to AC_OUTPUT.
41823
41824 2009-09-02  Bruno Haible  <bruno@clisp.org>
41825
41826         * modules/mkdtemp (License): Relicense under LGPLv2+.
41827         Reported by Paolo Bonzini.
41828
41829 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41830
41831         Replace uses of obsolete autoconf macros in Jim's modules.
41832         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
41833         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
41834         can evoke a warning from autoconf when run with -Wobsolete
41835         enabled.  They were declared obsolete for good reasons (see
41836         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
41837         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
41838         should not continue using the deprecated macros.
41839         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
41840         obsolete Autoconf macros with modern counterparts.
41841         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
41842         * m4/dos.m4 (gl_AC_DOS): Likewise.
41843         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
41844         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
41845         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
41846         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
41847         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
41848         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
41849         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
41850         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
41851         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41852         Likewise.
41853         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
41854         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
41855         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
41856         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
41857         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
41858         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
41859
41860 2009-09-01  Eric Blake  <ebb9@byu.net>
41861
41862         fchdir: fix off-by-one bug in previous patch
41863         * lib/fchdir.c (rpl_fstat): Use correct bounds.
41864         (_gl_unregister_fd): Delete useless if.
41865
41866 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
41867
41868         maint.mk: sort the list of syntax-check rules
41869         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
41870         easier to get a sense of progress when the rules are run sequentially
41871         and take a long time.
41872
41873 2009-09-01  Simon Josefsson  <simon@josefsson.org>
41874
41875         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
41876         * modules/netinet_in: Likewise.
41877         * modules/sys_file: Likewise.
41878         * modules/sys_ioctl: Likewise.
41879         * modules/sys_select: Likewise.
41880         * modules/sys_socket: Likewise.
41881         * modules/sys_stat: Likewise.
41882         * modules/sys_time: Likewise.
41883         * modules/sys_times: Likewise.
41884         * modules/sys_utsname: Likewise.
41885         * modules/sys_wait: Likewise.
41886
41887 2009-09-01  Jim Meyering  <meyering@redhat.com>
41888
41889         fts: help ensure that return values are not ignored
41890         * lib/fts_.h (__GNUC_PREREQ): Define.
41891         (__attribute_warn_unused_result__): Define.
41892         (fts_children, fts_close, fts_open, fts_read): Declare with
41893         __attribute_warn_unused_result__.
41894
41895         fts: fts_close now fails also when closing a dir file descriptor fails
41896         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
41897         and propagate to caller, along with errno.
41898
41899         announce-gen: correct formatting in --help output
41900         * build-aux/announce-gen (usage): Move the one-line description in
41901         --help output "up", to where it belongs, just after Usage:.
41902
41903 2009-08-31  Eric Blake  <ebb9@byu.net>
41904
41905         fchdir: port to mingw
41906         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
41907         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
41908         opened, then use a substitute.
41909         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
41910         replacement.
41911         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
41912         (_gl_register_fd): No need to check stat if open already filters
41913         all directories.
41914         (fchdir): Fix error condition to match POSIX.
41915         * modules/fchdir (Depends-on): Add sys_stat.
41916         * doc/posix-functions/open.texi (open): Document the limitation.
41917         * modules/fchdir-tests: New file.
41918         * tests/test-fchdir.c: Likewise.
41919
41920         canonicalize: allow cross-testing from cygwin to mingw
41921         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
41922         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
41923         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
41924         Likewise.
41925         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
41926         target does not support symlinks.
41927         * tests/test-canonicalize-lgpl.sh: Likewise.
41928
41929         chown: avoid compilation warning on mingw
41930         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
41931         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
41932         mingw.
41933         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41934         * modules/chown (Depends-on): Add errno.
41935
41936 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
41937
41938         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
41939         command.
41940
41941 2009-08-31  Jim Meyering  <meyering@redhat.com>
41942
41943         canonicalize: remove useless initialization
41944         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
41945         initialization of local, "end".
41946
41947 2009-08-30  Bruno Haible  <bruno@clisp.org>
41948
41949         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
41950         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
41951         ENOSYS.
41952
41953 2009-08-30  Bruno Haible  <bruno@clisp.org>
41954
41955         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
41956         /usr/xpg4/bin/tr when it exists.
41957         * tests/test-pipe-filter-gi1.sh: Likewise.
41958
41959 2009-08-30  Bruno Haible  <bruno@clisp.org>
41960
41961         Work around deficient /usr/bin/id program on Solaris.
41962         * tests/test-file-has-acl.sh (ID): New variable.
41963         * tests/test-set-mode-acl.sh (ID): Likewise.
41964         * tests/test-copy-acl.sh (ID): Likewise.
41965         * tests/test-copy-file.sh (ID): Likewise.
41966
41967 2009-08-30  Bruno Haible  <bruno@clisp.org>
41968
41969         New module 'xstriconveh'.
41970         * lib/xstriconveh.h: New file.
41971         * lib/xstriconveh.c: New file.
41972         * modules/xstriconveh: New file.
41973
41974 2009-08-30  Bruno Haible  <bruno@clisp.org>
41975
41976         Make it easier to use mem_cd_iconveh.
41977         * lib/striconveh.h (iconveh_t): New type.
41978         (iconveh_open, iconveh_close): New declarations.
41979         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41980         with a single 'const iconveh_t *' argument.
41981         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
41982         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41983         with a single 'const iconveh_t *' argument.
41984         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
41985         * tests/test-striconveh.c (main): Update.
41986         * NEWS: Mention the change.
41987
41988 2009-08-30  Bruno Haible  <bruno@clisp.org>
41989
41990         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
41991         problem.
41992
41993 2009-08-30  Bruno Haible  <bruno@clisp.org>
41994
41995         Work around iconv_open problem on Solaris.
41996         * lib/iconv_open-solaris.gperf: New file.
41997         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
41998         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
41999         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
42000         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
42001         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
42002         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
42003
42004 2009-08-29  Jim Meyering  <meyering@redhat.com>
42005
42006         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
42007         * top/maint.mk (cvs-check): Remove target; it was just an alias
42008         to the better-named vc-diff-check.
42009         (maintainer-distcheck): Remove rule.  It was used only from
42010         the (alpha/beta/major) target, and all of its commands but one
42011         were coreutils-specific.
42012         (vc-dist): Remove rule.
42013         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
42014         Run vc-diff-check, not vc-dist.
42015         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
42016
42017 2009-08-27  Bruno Haible  <bruno@clisp.org>
42018
42019         * tests/test-bitrotate.c (main): Remove test that uses a shift count
42020         of 0.
42021
42022 2009-08-27  Bruno Haible  <bruno@clisp.org>
42023
42024         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
42025         compilers.
42026         * doc/func.texi: Document the SunPRO C bug.
42027
42028 2009-08-27  Bruno Haible  <bruno@clisp.org>
42029
42030         Fix link error on Solaris.
42031         * tests/test-parse-duration.c (xstrdup): Remove function.
42032
42033 2009-08-26  Pádraig Brady  <P@draigbrady.com>
42034
42035         ignore-value: handle pointer types, too
42036         * lib/ignore-value.h (__attribute__): Remove definition.
42037         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
42038         of a more concise and more-often effective "(void) i" statement.
42039         (ignore_ptr): New function to suppress warnings from functions that
42040         return pointers, and to make it explicit that one function doesn't
42041         handle all cases.
42042
42043 2009-08-25  Bruno Haible  <bruno@clisp.org>
42044
42045         dup2: work around a Linux bug.
42046         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
42047         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
42048         * doc/posix-functions/dup2.texi: Mention the Linux bug.
42049         Reported by Simon Josefsson.
42050
42051 2009-08-25  Jim Meyering  <meyering@redhat.com>
42052
42053         libguestfs uses gnulib
42054         * users.txt: Add libguestfs.
42055
42056 2009-08-24  Eric Blake  <ebb9@byu.net>
42057
42058         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
42059         * lib/pipe2.c (includes): Add binary-io.h.
42060         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
42061
42062 2009-08-24  Bruno Haible  <bruno@clisp.org>
42063
42064         Tolerate declared but missing accept4 syscall.
42065         * lib/accept4.c (accept4): Invoke original accept4 function first, if
42066         available.
42067         * lib/sys_socket.in.h (accept4): If the function is already present,
42068         override it.
42069         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
42070         * modules/accept4 (Makefile.am): Compile accept4.c always.
42071         Reported by Paolo Bonzini and Eric Blake.
42072
42073 2009-08-23  Bruno Haible  <bruno@clisp.org>
42074
42075         New module 'accept4'.
42076         * lib/sys_socket.in.h (accept4): New declaration.
42077         * lib/accept4.c: New file.
42078         * m4/accept4.m4: New file.
42079         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42080         GNULIB_ACCEPT4, HAVE_ACCEPT4.
42081         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
42082         HAVE_ACCEPT4.
42083         * modules/accept4: New file.
42084         * doc/glibc-functions/accept4.texi: Mention the new module.
42085
42086 2009-08-24  Jim Meyering  <meyering@redhat.com>
42087
42088         progname: also set global program_invocation_name, when possible
42089         Before this change, a libtool-enabled program that calls glibc's
42090         error function would report the program name as
42091         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
42092         * modules/progname (configure.ac): Check for a declaration of
42093         program_invocation_name.
42094         * lib/progname.c:  Include <errno.h>.
42095         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
42096         Set program_invocation_name.
42097
42098 2009-08-23  Bruno Haible  <bruno@clisp.org>
42099
42100         * lib/dup3.c: Include <string.h>.
42101
42102 2009-08-23  Bruno Haible  <bruno@clisp.org>
42103
42104         * lib/dup3.c (dup3): Test only once whether the system actually exists.
42105         * lib/pipe2.c (pipe2): Likewise.
42106         Suggested by Eric Blake.
42107
42108 2009-08-23  Bruno Haible  <bruno@clisp.org>
42109
42110         Tolerate declared but missing dup3 syscall.
42111         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
42112         * lib/unistd.in.h (dup3): If the function is already present,
42113         override it.
42114         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
42115         * modules/dup3 (Makefile.am): Compile dup3.c always.
42116         Reported by Paolo Bonzini.
42117
42118 2009-08-23  Bruno Haible  <bruno@clisp.org>
42119
42120         Tolerate declared but missing pipe2 syscall.
42121         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
42122         available.
42123         * lib/unistd.in.h (pipe2): If the function is already present,
42124         override it.
42125         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
42126         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
42127         Reported by Paolo Bonzini.
42128
42129 2009-08-23  Bruno Haible  <bruno@clisp.org>
42130
42131         * lib/pipe2.c (pipe2): Move #ifs inside function.
42132
42133 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42134
42135         quotearg: document limitations of quote_these_too
42136         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
42137         those limitations are created.
42138         * lib/quotearg.h (set_char_quoting): Document that digits and
42139         letters that are special after backslash are not permitted.
42140         (quotearg_char): Cross-reference set_char_quoting documentation.
42141
42142 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
42143
42144         quotearg: implement custom_quoting_style
42145         * lib/quotearg.c: (struct quoting_options): Add left_quote and
42146         right_quote fields.
42147         (set_custom_quoting): New public function.
42148         (quotearg_buffer_restyled): Add left_quote and right_quote
42149         arguments, handle them very much like locale quoting, and update
42150         all uses.
42151         (quotearg_n_custom): New public function.
42152         (quotearg_n_custom_mem): New public function.
42153         (quotearg_custom): New public function.
42154         (quotearg_custom_mem): New public function.
42155         * lib/quotearg.h: Prototype and document new public functions.
42156         (enum quoting_style): For escape_quoting_style and
42157         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
42158         ignored even though they're otherwise like c_quoting_style.
42159         Add custom_quoting_style member and document with comparison to
42160         clocale_quoting_style.
42161         * tests/test-quotearg.c (custom_quotes): New array.
42162         (custom_results): New array.
42163         (main): Extend to test custom quoting.
42164
42165 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42166
42167         quotearg: fix right quote escaping when it's in quote_these_too
42168         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
42169         quote, be sure to prepend only one backslash.
42170         * tests/test-quotearg.c (use_quote_double_quotes): New function.
42171         (main): Test it.
42172
42173 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42174
42175         quotearg-tests: test escaping of embedded locale quotes
42176         * tests/test-quotearg.c (struct result_strings): Add member for
42177         new input.
42178         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
42179         (inputs): Add new input.
42180         (results_g): Add expected results.
42181         (flag_results): Likewise.
42182         (locale_results): Likewise.
42183         (compare_strings): Check those.
42184
42185 2009-08-23  Bruno Haible  <bruno@clisp.org>
42186
42187         Tests for module 'dup3'.
42188         * modules/dup3-tests: New file.
42189         * tests/test-dup3.c: New file.
42190
42191         New module 'dup3'.
42192         * lib/unistd.in.h (dup3): New declaration.
42193         * lib/dup3.c: New file.
42194         * m4/dup3.m4: New file.
42195         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
42196         HAVE_DUP3.
42197         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
42198         * modules/dup3: New file.
42199         * doc/glibc-functions/dup3.texi: Mention the new module.
42200
42201 2009-08-23  Bruno Haible  <bruno@clisp.org>
42202
42203         Tweak the dup2 test.
42204         * tests/test-dup2.c (main): Create the test file empty. Verify that an
42205         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
42206         the test file is still empty. Fix argument order of lseek.
42207
42208 2009-08-23  Bruno Haible  <bruno@clisp.org>
42209
42210         Avoid test link errors when the modules getopt-gnu, gettext are used.
42211         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
42212         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42213
42214 2009-08-23  Bruno Haible  <bruno@clisp.org>
42215
42216         Fix getdtablesize() on mingw.
42217         * lib/getdtablesize.c (getdtablesize): Implement differently.
42218         * lib/unistd.in.h (getdtablesize): Improve comment.
42219
42220 2009-08-23  Bruno Haible  <bruno@clisp.org>
42221
42222         New module 'mkostemp'.
42223         Based on Ulrich Drepper's 2007-08-10 change in glibc.
42224         * lib/stdlib.in.h (mksotemp): New declaration.
42225         * lib/mkostemp.c: New file, from glibc with modifications.
42226         * lib/tempname.h (GT_FILE): Remove outdated comment.
42227         (gen_tempname): Add flags argument.
42228         * lib/tempname.c (__GT_BIGFILE): Remove macro.
42229         (__GT_FILE): Map to 1.
42230         (small_open, large_open): Remove macros.
42231         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
42232         * lib/mkstemp.c (mkstemp): Update.
42233         * lib/mkdtemp.c (mkdtemp): Likewise.
42234         * m4/mkostemp.m4: New file.
42235         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
42236         HAVE_MKOSTEMP.
42237         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
42238         HAVE_MKOSTEMP.
42239         * modules/mkostemp: New file, based on modules/mkstemp.
42240         * doc/glibc-functions/mkostemp.texi: Mention the new module.
42241         * NEWS: Mention the change.
42242
42243 2009-08-23  Bruno Haible  <bruno@clisp.org>
42244
42245         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
42246         Reported by Eric Blake.
42247
42248 2009-08-23  Bruno Haible  <bruno@clisp.org>
42249
42250         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
42251         Reported by Eric Blake.
42252
42253 2009-08-23  Bruno Haible  <bruno@clisp.org>
42254
42255         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
42256         * modules/pipe2 (Depends-on): Likewise.
42257
42258 2009-08-23  Eric Blake  <ebb9@byu.net>
42259
42260         fcntl-h: add O_TTY_INIT support
42261         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
42262         * tests/test-fcntl-h.c (o): Test it.
42263         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42264
42265         fcntl-h: rename from fcntl, in preparation for fcntl(2)
42266         * modules/fcntl: Move <fcntl.h> header replacement...
42267         * modules/fcntl-h: ...to new name, so as not to collide with
42268         like-named function.
42269         * tests/test-fcntl.c: Rename...
42270         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
42271         * modules/fcntl-tests: Rename...
42272         * modules/fcntl-h-tests: ...to this.  Update test file name.
42273         * modules/chdir-long (Depends-on): Update clients.
42274         * modules/chdir-safer (Depends-on): Likewise.
42275         * modules/fcntl-safer (Depends-on): Likewise.
42276         * modules/fts (Depends-on): Likewise.
42277         * modules/mkancesdirs (Depends-on): Likewise.
42278         * modules/mkdir-p (Depends-on): Likewise.
42279         * modules/open (Depends-on): Likewise.
42280         * modules/savewd (Depends-on): Likewise.
42281         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
42282         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42283
42284 2009-08-22  Bruno Haible  <bruno@clisp.org>
42285
42286         * modules/binary-io (License): Relicense under LGPL.
42287         * modules/pipe2 (License): Likewise.
42288
42289 2009-08-22  Bruno Haible  <bruno@clisp.org>
42290
42291         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
42292         return value.
42293         * lib/pipe-filter-gi.c (filter_init): Likewise.
42294         Reported by Eric Blake.
42295
42296 2009-08-22  Bruno Haible  <bruno@clisp.org>
42297
42298         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
42299         * modules/pipe (Depends-on): Add pipe2.
42300
42301 2009-08-22  Bruno Haible  <bruno@clisp.org>
42302
42303         Tests for module 'pipe2'.
42304         * modules/pipe2-tests: New file.
42305         * tests/test-pipe2.c: New file.
42306
42307         New module 'pipe2'.
42308         * lib/unistd.in.h (pipe2): New declaration.
42309         * lib/pipe2.c: New file.
42310         * m4/pipe2.m4: New file.
42311         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
42312         HAVE_PIPE2.
42313         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
42314         * modules/pipe2: New file.
42315         * doc/glibc-functions/pipe2.texi: Mention the new module.
42316
42317 2009-08-22  Bruno Haible  <bruno@clisp.org>
42318
42319         Reference some new glibc functions.
42320         * doc/glibc-functions/accept4.texi: New file.
42321         * doc/glibc-functions/dup3.texi: New file.
42322         * doc/glibc-functions/mkostemp.texi: New file.
42323         * doc/glibc-functions/pipe2.texi: New file.
42324         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
42325         (Glibc sys/socket.h): Refer to accept4.
42326         (Glibc unistd.h): Refer to dup3, pipe2.
42327         Reported by Eric Blake.
42328
42329 2009-08-22  Jim Meyering  <meyering@redhat.com>
42330             Bruno Haible  <bruno@clisp.org>
42331
42332         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
42333         This makes it so packages using automake-1.11's silent-rules option
42334         can print e.g., a single "GEN    configmake.h" line, rather than
42335         the 30+ statements that perform the job.  If you want to see the
42336         actual commands, you can still run "make V=1".
42337         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
42338         so that make output is abbreviated when those variables are defined
42339         appropriately.
42340         * modules/argz: Likewise.
42341         * modules/arpa_inet: Likewise.
42342         * modules/byteswap: Likewise.
42343         * modules/configmake: Likewise.
42344         * modules/dirent: Likewise.
42345         * modules/errno: Likewise.
42346         * modules/fcntl: Likewise.
42347         * modules/float: Likewise.
42348         * modules/fnmatch: Likewise.
42349         * modules/getopt-posix: Likewise.
42350         * modules/glob: Likewise.
42351         * modules/iconv_open: Likewise.
42352         * modules/inttypes: Likewise.
42353         * modules/localcharset: Likewise.
42354         * modules/locale: Likewise.
42355         * modules/math: Likewise.
42356         * modules/netdb: Likewise.
42357         * modules/netinet_in: Likewise.
42358         * modules/poll: Likewise.
42359         * modules/posix_spawnp-tests: Likewise.
42360         * modules/sched: Likewise.
42361         * modules/search: Likewise.
42362         * modules/selinux-h: Likewise.
42363         * modules/signal: Likewise.
42364         * modules/spawn: Likewise.
42365         * modules/stdarg: Likewise.
42366         * modules/stdbool: Likewise.
42367         * modules/stddef: Likewise.
42368         * modules/stdint: Likewise.
42369         * modules/stdio: Likewise.
42370         * modules/stdlib: Likewise.
42371         * modules/string: Likewise.
42372         * modules/strings: Likewise.
42373         * modules/sys_file: Likewise.
42374         * modules/sys_ioctl: Likewise.
42375         * modules/sys_select: Likewise.
42376         * modules/sys_socket: Likewise.
42377         * modules/sys_stat: Likewise.
42378         * modules/sys_time: Likewise.
42379         * modules/sys_times: Likewise.
42380         * modules/sys_utsname: Likewise.
42381         * modules/sys_wait: Likewise.
42382         * modules/sysexits: Likewise.
42383         * modules/time: Likewise.
42384         * modules/unistd: Likewise.
42385         * modules/wchar: Likewise.
42386         * modules/wctype: Likewise.
42387
42388 2009-08-22  Jim Meyering  <meyering@redhat.com>
42389
42390         announce-gen: detect write failure
42391         * build-aux/announce-gen: Add Coda at end.
42392         Remove equivalent-but-more-verbose block at top.
42393
42394 2009-08-19  Akim Demaille  <demaille@gostai.com>
42395
42396         bootstrap: --help to stdout.
42397         * bootstrap (usage): Don't send --help to stderr.
42398         Use a here doc instead of a long string.
42399
42400 2009-08-21  Eric Blake  <ebb9@byu.net>
42401
42402         test-popen-safer: split from test-popen
42403         * tests/test-popen.c (main): Move...
42404         * tests/test-popen.h: ...into new file.
42405         * tests/test-popen-safer2.c: New file.
42406         * modules/popen-tests (Files): Add test-popen.h.
42407         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
42408         Suggested by Bruno Haible.
42409
42410         test-fcntl-safer: split from test-open
42411         * tests/test-open.c (main): Move...
42412         * tests/test-open.h: ...into new file.
42413         * tests/test-fcntl-safer.c: New file.
42414         * modules/open-tests (Files): Add test-open.h.
42415         * modules/fcntl-safer-tests: New file.
42416         Suggested by Bruno Haible.
42417
42418         test-fopen-safer: split from test-fopen
42419         * tests/test-fopen.c (main): Move...
42420         * tests/test-fopen.h: ...into new file.
42421         * tests/test-fopen-safer.c: New file.
42422         * modules/fopen-tests (Files): Add test-fopen.h.
42423         * modules/fopen-safer-tests: New file.
42424         Suggested by Bruno Haible.
42425
42426 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42427
42428         popen-safer: test O_CLOEXEC at run-time.
42429         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
42430
42431 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42432
42433         fcntl: move more flags to the header
42434         * lib/cloexec.c: Do not define FD_CLOEXEC here.
42435         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
42436         * lib/fcntl.in.h: Do both things here.
42437
42438 2009-08-21  Jim Meyering  <meyering@redhat.com>
42439
42440         consistently remove $@-t before redirecting to it
42441         * modules/argz: Remove $@-t and $@ before redirecting to the former.
42442         * modules/alloca-opt: Likewise.
42443         * modules/byteswap: Likewise.
42444         * modules/fnmatch: Likewise.
42445         * modules/getopt-posix: Likewise.
42446         * modules/glob: Likewise.
42447         * modules/poll: Likewise.
42448         * modules/posix_spawnp-tests: Likewise.
42449         * modules/sys_socket: Likewise.
42450         * modules/sysexits: Likewise.
42451
42452 2009-08-21  Eric Blake  <ebb9@byu.net>
42453
42454         popen: simplify access to original popen
42455         * lib/popen.c (rpl_popen): No need to worry about popen being a
42456         macro.
42457         Reported by Bruno Haible.
42458
42459 2009-08-20  Eric Blake  <ebb9@byu.net>
42460
42461         build: avoid some compiler warnings
42462         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
42463         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
42464         type.
42465         (new_exclude_segment, excluded_file_pattern_p)
42466         (excluded_file_name_p): Reduce scope.
42467         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
42468         old-style declaration.
42469
42470 2009-08-20  Simon Josefsson  <simon@josefsson.org>
42471
42472         * tests/test-exclude1.sh: Handle Windows EOL.
42473         * tests/test-exclude2.sh: Likewise.
42474         * tests/test-exclude3.sh: Likewise.
42475         * tests/test-exclude4.sh: Likewise.
42476         * tests/test-exclude5.sh: Likewise.
42477         * tests/test-exclude6.sh: Likewise.
42478         * tests/test-exclude7.sh: Likewise.
42479
42480 2009-08-19  Akim Demaille  <demaille@gostai.com>
42481
42482         bootstrap: find sha1sum when named gsha1sum.
42483         * bootstrap (find_tool): New.
42484         ($SHA1SUM): New.
42485         Use it.
42486
42487 2009-08-20  Jim Meyering  <meyering@redhat.com>
42488
42489         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
42490         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
42491         expression that converts "." in a file name to "\." in the resulting
42492         regexp.  Start with a dummy statement, so that prior shell variable
42493         definitions are expanded portably.  Reported by Simon Josefsson.
42494
42495 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
42496
42497         Fix polling for writeability of a screen buffer.
42498         * lib/poll.c: Distinguish input and screen buffers for the
42499         Win32 implementation.
42500         * lib/select.c: Likewise.
42501
42502 2009-08-19  Eric Blake  <ebb9@byu.net>
42503
42504         popen-safer: prevent popen from clobbering std descriptors
42505         * modules/popen-safer: New file.
42506         * lib/popen-safer.c: Likewise.
42507         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
42508         * lib/stdio--.h (popen): Provide override.
42509         * lib/stdio-safer.h (popen_safer): Provide declaration.
42510         * tests/test-popen.c (includes): Partially test this.
42511         * modules/popen-safer-tests: New file, for more tests.
42512         * tests/test-popen-safer.c: Likewise.
42513         * MODULES.html.sh (file stream based Input/Output): Mention it.
42514
42515         tests: test some of the *-safer modules
42516         * modules/fopen-safer (Depends-on): Add fopen.
42517         * modules/fcntl-safer (Depends-on): Add fcntl.
42518         * modules/stdlib-safer (Depends-on): Add stdlib.
42519         (configure.ac): Set indicator.
42520         * modules/unistd-safer (configure.ac): Likewise.
42521         * modules/tmpfile-safer (configure.ac): Likewise.
42522         (Depends-on): Add tmpfile.
42523         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
42524         active.
42525         * tests/test-fopen.c (includes): Test safer versions when they are
42526         in use.
42527         * tests/test-open.c (includes): Likewise.
42528
42529         popen: fix cygwin 1.5 bug when stdin closed
42530         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
42531         * modules/popen: New file.
42532         * modules/popen-tests: Likewise.
42533         * tests/test-popen.c: Likewise.
42534         * m4/popen.m4: Likewise.
42535         * lib/popen.c: Likewise.
42536         * lib/stdio.in.h (popen): New declaration.
42537         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
42538         * modules/stdio (Makefile.am): Likewise.
42539         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
42540
42541 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
42542
42543         maint.mk: give full control over update-copyright exclusions
42544         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
42545         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
42546         (update-copyright): Don't force inclusion of top-level
42547         ChangeLog.  Don't force exclusion of all COPYING files, but make
42548         them the default exclusion instead.
42549
42550 2009-08-16  Bruno Haible  <bruno@clisp.org>
42551
42552         Fix test failures on Solaris 10.
42553         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
42554         tests when Solaris iconv() is used.
42555         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42556         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42557         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42558         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42559         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42560
42561 2009-08-16  Bruno Haible  <bruno@clisp.org>
42562
42563         Fix test failures on Solaris 10.
42564         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
42565         'tr' program and pass it as first argument.
42566         * tests/test-pipe-filter-gi1.sh: Likewise.
42567         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
42568         program as first argument.
42569         * tests/test-pipe-filter-gi1.c (main): Likewise.
42570
42571 2009-08-16  Eric Blake  <ebb9@byu.net>
42572
42573         fpurge: fix previous commits
42574         * modules/fpurge (Makefile.am): Make replacement conditional,
42575         partially reverting 2007-04-29 change; missed in previous
42576         attempt.
42577         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
42578         is missing.
42579
42580 2009-08-16  Bruno Haible  <bruno@clisp.org>
42581
42582         Clarify fpurge's effect on the file position.
42583         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
42584         * tests/test-fpurge.c (main): Make a second pass for checking the file
42585         position.
42586
42587 2009-08-16  Bruno Haible  <bruno@clisp.org>
42588
42589         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
42590         declaration of fpurge is missing.
42591         * tests/test-fpurge.c (main): Check that the file has not more contents
42592         than expected. Close the file before removing it.
42593
42594 2009-08-15  Eric Blake  <ebb9@byu.net>
42595
42596         fpurge: don't wrap working cygwin implementation
42597         * lib/fpurge.c (fpurge): Fix comment typo.
42598         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
42599         1.7 to avoid replacement.
42600         * tests/test-fpurge.c (main): Enhance test.
42601
42602 2009-08-15  Eric Blake  <ebb9@byu.net>
42603         and Jim Meyering  <meyering@redhat.com>
42604
42605         test-update-copyright: skip if perl is insufficient
42606         * tests/test-update-copyright.sh: Failure to run maintainer tool
42607         should not cause testsuite failure on cygwin 1.5.
42608
42609 2009-08-14  Eric Blake  <ebb9@byu.net>
42610
42611         doc: mention more functions added in cygwin 1.7.0
42612         * doc/posix-headers/limits.texi (limits.h): Update for recent
42613         cygwin additions.
42614         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
42615         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
42616         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
42617         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
42618         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
42619
42620 2009-08-14  Eric Blake  <ebb9@byu.net>
42621
42622         maint.mk: simplify update-copyright rule
42623         * top/maint.mk (update-copyright-local): Delete, and document how
42624         to do it in cfg.mk instead.
42625         (update-copyright-exclude-regexp): Delete, and document how to do
42626         it in .x-update-copyright instead.
42627         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
42628         exclude ChangeLog.
42629
42630 2009-08-14  Bruno Haible  <bruno@clisp.org>
42631
42632         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
42633
42634 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42635
42636         maint.mk: support update-copyright-env
42637         * top/maint.mk (update-copyright-env): Define place-holder.
42638         (update-copyright): Expand $(update-copyright-env) before
42639         invoking update-copyright.
42640
42641 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42642
42643         update-copyright: implement forced reformatting
42644         * build-aux/update-copyright: Implement and document
42645         UPDATE_COPYRIGHT_FORCE.
42646         * tests/test-update-copyright.sh: Test it.
42647
42648 2009-08-14  Eric Blake  <ebb9@byu.net>
42649         and Bruno Haible  <bruno@clisp.org>
42650
42651         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
42652         * tests/test-locale.c: Revert previous patch related to NULL.
42653         * tests/test-stdio.c: Likewise.
42654         * tests/test-stdlib.c: Likewise.
42655         * tests/test-string.c: Likewise.
42656         * tests/test-unistd.c: Likewise.
42657         * modules/time-tests (Depends-on): Add verify.
42658         * modules/wchar-tests (Depends-on): Likewise.
42659         * tests/test-time.c: Test for NULL compliance.
42660         * tests/test-wchar.c: Likewise.
42661         * modules/locale (Depends-on): Add stddef.
42662         * modules/stdio (Depends-on): Likewise.
42663         * modules/stdlib (Depends-on): Likewise.
42664         * modules/string (Depends-on): Likewise.
42665         * modules/time (Depends-on): Likewise.
42666         * modules/unistd (Depends-on): Likewise.
42667         * modules/wchar (Depends-on): Likewise.
42668         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
42669         * lib/stdlib.in.h (includes): Likewise.
42670         * lib/string.in.h (includes): Likewise.
42671         * lib/time.in.h (includes): Likewise.
42672         * lib/unistd.in.h (includes): Likewise.
42673         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
42674         replaced.
42675         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42676         * m4/stddef_h.m4: New file.
42677         * modules/stddef: Likewise.
42678         * lib/stddef.in.h: Likewise.
42679         * modules/stddef-tests: Likewise.
42680         * tests/test-stddef.c: Likewise.
42681         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
42682         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
42683         * doc/posix-headers/locale.texi (locale.h): Likewise.
42684         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
42685         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
42686         * doc/posix-headers/string.texi (string.h): Likewise.
42687         * doc/posix-headers/time.texi (time.h): Likewise.
42688         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
42689         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
42690
42691 2009-08-14  Eric Blake  <ebb9@byu.net>
42692
42693         doc: improve git diff of texinfo files
42694         * .gitattributes: Add rule for *.texi files, with hint on how to
42695         use it.
42696         Copied from m4, and based on a report by Bruno Haible.
42697
42698 2009-08-14  Bruno Haible  <bruno@clisp.org>
42699
42700         Disable multithread support by default on Cygwin 1.5.x for real.
42701         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
42702
42703 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42704
42705         update-copyright: much ado about intervals
42706         * build-aux/update-copyright: Implement and document
42707         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
42708         of copyright year intervals.
42709         Also, document UPDATE_COPYRIGHT_YEAR.
42710         * tests/test-update-copyright.sh: Test it.
42711
42712         update-copyright: convert 2-digit to 4-digit years
42713         * build-aux/update-copyright: Implement and document.
42714         * tests/test-update-copyright.sh: Update.
42715
42716 2009-08-14  Jim Meyering  <meyering@redhat.com>
42717
42718         test-exclude: avoid coreutils "make check" failure
42719         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
42720         just as in test-argmatch.c.
42721
42722 2009-08-13  Eric Blake  <ebb9@byu.net>
42723
42724         test-dup2: fix bad assumption
42725         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
42726         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
42727
42728         test-version-etc: fix CRLF portability issue
42729         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
42730         recognize \r.
42731         * tests/test-argp-version-etc-1.sh: Likewise.
42732
42733         getopt: update client modules
42734         * modules/argp (Depends-on): Use getopt-gnu.
42735         * modules/git-merge-changelog (Depends-on): Likewise.
42736         * modules/long-options (Depends-on): Likewise.
42737         * modules/xstrtol (Depends-on): Likewise.
42738
42739 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42740
42741         * tests/test-version-etc.sh: Don't fail on different
42742         project/version.  Don't fail on CRLF differences.  Rewrite to use
42743         multiple -e instead of multiple sed forks, suggested by Eric Blake
42744         <ebb9@byu.net>.
42745         * tests/test-argp-version-etc-1.sh: Likewise.
42746
42747 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42748
42749         * tests/test-version-etc.sh: Don't fail on different
42750         project/version.
42751
42752 2009-08-12  Bruno Haible  <bruno@clisp.org>
42753
42754         Tests for modules 'getopt-posix', 'getopt-gnu'.
42755         * modules/getopt-posix-tests: New file.
42756         * tests/test-getopt.c: New file.
42757         * tests/test-getopt.h: New file.
42758         * tests/test-getopt_long.h: New file.
42759
42760         New modules 'getopt-posix', 'getopt-gnu'.
42761         * modules/getopt-gnu: New file, renamed from modules/getopt.
42762         * modules/getopt-posix: New file.
42763         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
42764         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
42765         (gl_GETOPT): Remove macro.
42766         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
42767         Disable the test against BSD systems that declare optreset. Test
42768         against mingw bug. Test against lack of support of optional arguments
42769         on many platforms.
42770         * doc/glibc-headers/getopt.texi: Update module name and list of
42771         relevant platforms.
42772         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
42773         'getopt-gnu' and more portability problems.
42774         * NEWS: Mention the changes.
42775
42776 2009-08-12  Bruno Haible  <bruno@clisp.org>
42777
42778         Ensure that optarg etc. get declared by <unistd.h>.
42779         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
42780         AC_USE_SYSTEM_EXTENSIONS.
42781         * modules/getopt (Depends-on): Add 'extensions'.
42782
42783 2009-08-12  Bruno Haible  <bruno@clisp.org>
42784
42785         Avoid test link errors.
42786         * modules/pipe-filter-ii-tests (Makefile.am): Define
42787         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
42788         * modules/pipe-filter-gi-tests (Makefile.am): Define
42789         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
42790         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42791
42792 2009-08-12  Bruno Haible  <bruno@clisp.org>
42793
42794         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
42795         gl_GETOPT_SUBSTITUTE before.
42796         (gl_GETOPT): Use it.
42797         * m4/argp.m4 (gl_ARGP): Update.
42798         Reported by Sergey Poznyakoff.
42799
42800         * m4/getopt.m4: Reorder macros.
42801         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
42802         (gl_GETOPT_SUBSTITUTE): Remove macro.
42803
42804 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42805
42806         Minor improvement in gitlog-to-changelog
42807
42808         * build-aux/gitlog-to-changelog: New option `--format' makes
42809         output format string configurable.
42810
42811 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42812
42813         Optimize exclude: use hash tables for non-wildcard patterns.
42814
42815         * lib/exclude.c: Include hash.h and mbuiter.h
42816         (struct exclude_pattern, exclude_segment): New data types.
42817         (struct exclude): Rewrite.
42818         (fnmatch_pattern_has_wildcards): New function.
42819         (new_exclude_segment, free_exclude_segment): New functions.
42820         (excluded_file_pattern_p, excluded_file_name_p): New functions.
42821         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
42822         * lib/exclude.h (is_fnmatch_pattern): New prototype.
42823         * modules/exclude: Depend on hash and mbuiter.
42824
42825         * modules/exclude-tests: New file.
42826         * tests/test-exclude.c: New file.
42827         * tests/test-exclude1.sh: New file.
42828         * tests/test-exclude2.sh: New file.
42829         * tests/test-exclude3.sh: New file.
42830         * tests/test-exclude4.sh: New file.
42831         * tests/test-exclude5.sh: New file.
42832         * tests/test-exclude6.sh: New file.
42833         * tests/test-exclude7.sh: New file.
42834
42835 2009-08-12  Bruno Haible  <bruno@clisp.org>
42836
42837         Ensure that getopt() gets declared by <unistd.h>.
42838         * lib/unistd.in.h: Conditionally include getopt.h.
42839         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
42840         Set GNULIB_UNISTD_H_GETOPT.
42841         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42842         GNULIB_UNISTD_H_GETOPT.
42843         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
42844
42845 2009-08-12  Bruno Haible  <bruno@clisp.org>
42846
42847         Clarify logic.
42848         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
42849         gl_replace_getopt instead of GETOPT_H.
42850
42851 2009-08-12  Bruno Haible  <bruno@clisp.org>
42852
42853         * m4/getopt.m4: Add comments.
42854
42855 2009-08-12  Bruno Haible  <bruno@clisp.org>
42856
42857         Disable multithread support by default on Cygwin 1.5.x.
42858         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
42859         set gl_use_threads=no if not specified otherwise.
42860
42861 2009-08-11  Bruno Haible  <bruno@clisp.org>
42862
42863         Avoid compilation error on NetBSD 5.0.
42864         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
42865         * tests/test-stdio.c: Likewise.
42866         * tests/test-stdlib.c: Likewise.
42867         * tests/test-string.c: Likewise.
42868         * tests/test-unistd.c: Likewise.
42869         Reported by Greg Troxel <gdt@ir.bbn.com>
42870         at <https://savannah.gnu.org/support/?106973>.
42871
42872 2009-08-11  Bruno Haible  <bruno@clisp.org>
42873
42874         * modules/dup2-tests (Depends-on): Remove close.
42875
42876         Undo 2009-07-19 commit.
42877         * modules/acl-tests (Depends-on): Remove close.
42878         * modules/binary-io-tests (Depends-on): Likewise.
42879         * modules/closein-tests (Depends-on): Likewise.
42880         * modules/flock-tests (Depends-on): Likewise.
42881         * modules/fsync-tests (Depends-on): Likewise.
42882         * modules/lseek-tests (Depends-on): Likewise.
42883         * modules/pipe-tests (Depends-on): Likewise.
42884         * modules/posix_spawn-tests (Depends-on): Likewise.
42885         * modules/posix_spawnp-tests (Depends-on): Likewise.
42886         * modules/stat-time-tests (Depends-on): Likewise.
42887         * modules/yesno-tests (Depends-on): Likewise.
42888
42889 2009-08-10  Bruno Haible  <bruno@clisp.org>
42890
42891         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
42892
42893 2009-08-10  Bruno Haible  <bruno@clisp.org>
42894
42895         Fix a gcc warning.
42896         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
42897
42898 2009-08-10  Bruno Haible  <bruno@clisp.org>
42899
42900         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
42901         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
42902         not only the first time.
42903         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
42904         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
42905         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
42906         is 1, not only the the first time.
42907
42908 2009-08-10  Bruno Haible  <bruno@clisp.org>
42909
42910         Make it possible to use module 'gethostname' without module 'close'.
42911         * lib/unistd.in.h (close): Evoke a link error only if
42912         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42913         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42914         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42915         * modules/unistd (Makefile.am): Substitute
42916         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42917         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
42918         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42919         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
42920         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42921         * modules/sys_ioctl (Makefile.am): Substitute
42922         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42923         * modules/socket (configure.ac): On native Windows, set
42924         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
42925         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42926         Reported by Sam Steingold <sds@gnu.org>.
42927
42928 2009-08-10  Bruno Haible  <bruno@clisp.org>
42929
42930         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
42931         * modules/ioctl (configure.ac): Likewise.
42932
42933 2009-08-10  Bruno Haible  <bruno@clisp.org>
42934
42935         Avoid collision between gnulib wrapper and libintl wrapper.
42936         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
42937         already defined in intl/printf.c.
42938         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
42939         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
42940
42941 2009-08-09  Bruno Haible  <bruno@clisp.org>
42942
42943         Make <sys/select.h> really self-contained, also on Solaris 10.
42944         * lib/sys_select.in.h: Include <string.h>.
42945         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
42946         Solaris 10 problem.
42947         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
42948         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
42949         Reported by Jim Meyering.
42950
42951 2009-08-09  Bruno Haible  <bruno@clisp.org>
42952
42953         Avoid warnings from 'aclocal' that are due to a use of macro name
42954         AM_XGETTEXT_OPTION that is not defined in automake.
42955         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
42956         automake.
42957         * modules/error (configure.ac): Likewise.
42958         * modules/propername (configure.ac): Likewise.
42959         * modules/vasprintf (configure.ac): Likewise.
42960         * modules/verror (configure.ac): Likewise.
42961         * modules/xprintf (configure.ac): Likewise.
42962         * modules/xvasprintf (configure.ac): Likewise.
42963
42964 2009-08-08  Bruno Haible  <bruno@clisp.org>
42965
42966         Avoid compilation error in C++ mode.
42967         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
42968         Reported by Sam Steingold <sds@gnu.org>.
42969
42970 2009-08-08  Bruno Haible  <bruno@clisp.org>
42971
42972         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
42973         for the various Unix platforms.
42974         * doc/posix-headers/limits.texi: Update platforms list regarding
42975         HOST_NAME_MAX.
42976         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42977
42978 2009-08-07  Jim Meyering  <meyering@redhat.com>
42979
42980         selinux-at: fix typo in a comment
42981         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
42982         Spotted by Paolo Bonzini.
42983
42984         selinux-at: remove redundant m4 code, add documentation
42985         * modules/selinux-at (configure.ac): Remove redundant code.
42986         LIB_SELINUX is already set via the dependent module, selinux-h.
42987         (Include): Add quotes around selinux-at.h.
42988         * lib/selinux-at.h: Add documentation.
42989         Reported by Bruno Haible in
42990         http://marc.info/?l=gnulib-bug&m=124958988300749
42991
42992 2009-08-07  Bruno Haible  <bruno@clisp.org>
42993
42994         Avoid link error on MacOS X 10.3 and 10.4.
42995         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
42996         on non-ELF systems.
42997         * lib/argp-pv.c (argp_program_version): Likewise.
42998         Reported by Simon Josefsson.
42999
43000 2009-08-07  Simon Josefsson  <simon@josefsson.org>
43001
43002         * tests/test-version-etc.sh: Use $EXEEXT.
43003
43004 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
43005
43006         update-copyright: update documentation to point to maint.mk
43007         * build-aux/update-copyright: Here.
43008
43009 2009-08-06  Jim Meyering  <meyering@redhat.com>
43010
43011         maint.mk: support update-copyright-local
43012         * top/maint.mk (update-copyright-local): Define place-holder.
43013         (update-copyright): Depend on $(update-copyright-local).
43014
43015 2009-08-06  Jim Meyering  <meyering@redhat.com>
43016
43017         selinux-at: new module
43018         Initially written for coreutils, this module will soon be
43019         used by findutils, too.
43020         * MODULES.html.sh [Misc]: Add selinux-at.
43021         * lib/selinux-at.h: New file, from coreutils.
43022         * lib/selinux-at.c: Likewise.
43023         * modules/selinux-at: Likewise.
43024         (License): Change from LGPL to GPL, since it depends
43025         on the GPL'd openat module.
43026
43027         doc: update README
43028         * README: Remove references to cogito.
43029         Remove cvs-repo-updating instructions from 2007.
43030         Don't imply that CVS is better if you have limited disk space.
43031
43032 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43033
43034         update-copyright: support C-style comments
43035         * build-aux/update-copyright: Implement and document.
43036         * tests/test-update-copyright.sh: Test.
43037
43038 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43039
43040         update-copyright: support omitted "(C)"
43041         * build-aux/update-copyright: Implement and document.  Also,
43042         allow variable whitespace before "(C)".
43043         * tests/test-update-copyright.sh: Test.
43044
43045 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43046
43047         update-copyright: don't trip on non-FSF copyright statements
43048         * build-aux/update-copyright: Fix so that the first correctly
43049         formatted FSF copyright statement is recognized no matter what
43050         appears before it.  Update documentation.
43051         * tests/test-update-copyright.sh: Test that.
43052
43053 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43054
43055         update-copyright: clean up code a little
43056         * build-aux/update-copyright: Append "_re" to the name of any
43057         variable holding a regular expression.
43058         Replace "old" and "new" with "stmt" in variable names.
43059         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
43060         handled correctly.
43061         Format code more consistently.
43062
43063 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43064
43065         update-copyright-tests: improve portability
43066         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
43067         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
43068
43069 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43070
43071         update-copyright: support @copyright{} and &copy;
43072         * build-aux/update-copyright: Implement and document.
43073         * tests/test-update-copyright.sh: Test.
43074
43075 2009-08-04  Jim Meyering  <meyering@redhat.com>
43076
43077         update-copyright-tests: correctly test EOL=\r\n handling
43078         * tests/test-update-copyright.sh: Put \r at the end of some lines
43079         for the dos-eol tests.  Based on a patch by Joel E. Denny.
43080
43081         maint.mk: make update-copyright exclusion list more configurable
43082         * top/maint.mk (update-copyright): Default to excluding COPYING,
43083         but allow an override, in case someone does want to update that file.
43084
43085         maint.mk: don't update copyright date in COPYING
43086         * top/maint.mk (update-copyright): Exclude COPYING.
43087
43088         maint.mk: add a copyright-updating rule
43089         * top/maint.mk (update-copyright): New rule.
43090         Derived from coreutils/Makefile.am.
43091
43092         update-copyright: rename some variables
43093         * build-aux/update-copyright: Rename a few variables for clarity.
43094         Tweak syntax.  List Joel E. Denny as coauthor.
43095
43096 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43097
43098         update-copyright: fix bug for 2-digit last year and add tests
43099         * build-aux/update-copyright: Fix bug.
43100         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
43101         specified.
43102         * modules/update-copyright-tests: New
43103         * tests/test-update-copyright.sh: New.
43104
43105 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43106
43107         update-copyright: handle leading tabs in line prefix
43108         * build-aux/update-copyright: Count leading tabs as 8 spaces
43109         when computing margin.  This helps with the formatting of
43110         ChangeLogs, for example.
43111         Fix documentation a little.
43112
43113 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43114
43115         update-copyright: support EOL=\r\n
43116         * build-aux/update-copyright: Implement that.
43117
43118 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43119
43120         update-copyright: automatically format copyright statements
43121         * build-aux/update-copyright: Implement that.
43122         Also, be a little more predictable and safer by always failing
43123         when the full copyright format is not perfectly recognized as an
43124         unbroken whole.  Discussed at
43125         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
43126         Rewrite documentation.
43127
43128 2009-08-03  Bruno Haible  <bruno@clisp.org>
43129
43130         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
43131
43132 2009-08-02  Bruno Haible  <bruno@clisp.org>
43133
43134         Tests for module 'uname'.
43135         * modules/uname-tests: New file.
43136         * tests/test-uname.c: New file.
43137
43138         New module 'uname'.
43139         * lib/uname.c: New file.
43140         * m4/uname.m4: New file.
43141         * modules/uname: New file.
43142         * doc/posix-functions/uname.texi: Mention the new module.
43143
43144 2009-08-02  Bruno Haible  <bruno@clisp.org>
43145
43146         Tests for module 'sys_utsname'.
43147         * modules/sys_utsname-tests: New file.
43148         * tests/test-sys_utsname.c: New file.
43149
43150         New module 'sys_utsname'.
43151         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
43152         * m4/sys_utsname_h.m4: New file.
43153         * modules/sys_utsname: New file.
43154         * doc/posix-headers/sys_utsname.texi: Mention the new module.
43155
43156 2009-08-02  Bruno Haible  <bruno@clisp.org>
43157
43158         Implicitly initialize the sockets library.
43159         * lib/gethostname.c: Include sockets.h.
43160         (rpl_gethostname): Invoke gl_sockets_startup.
43161         * lib/socket.c: Include sockets.h.
43162         (rpl_socket): Invoke gl_sockets_startup.
43163         * modules/gethostname (Depends-on): Add sockets.
43164         * modules/socket (Depends-on): Likewise.
43165         * tests/test-poll.c: Don't include sockets.h.
43166         (main): Don't invoke gl_sockets_startup.
43167         * tests/test-select.c: Don't include sockets.h.
43168         (main): Don't invoke gl_sockets_startup.
43169
43170 2009-08-02  Bruno Haible  <bruno@clisp.org>
43171
43172         Allow multiple calls to gl_sockets_startup.
43173         * lib/sockets.c (initialized_sockets_version): New variable.
43174         (gl_sockets_startup): Do nothing if already called for this or a higher
43175         version.
43176         (gl_sockets_cleanup): Reset initialized_sockets_version.
43177
43178 2009-08-03  Simon Josefsson  <simon@josefsson.org>
43179
43180         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
43181         different project/version.
43182
43183 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
43184             Bruno Haible  <bruno@clisp.org>
43185
43186         Tests for module 'pipe-filter-gi'.
43187         * modules/pipe-filter-gi-tests: New file.
43188         * tests/test-pipe-filter-gi1.sh: New file.
43189         * tests/test-pipe-filter-gi1.c: New file.
43190         * tests/test-pipe-filter-gi2.sh: New file.
43191         * tests/test-pipe-filter-gi2-main.c: New file.
43192         * tests/test-pipe-filter-gi2-child.c: New file.
43193
43194         New module 'pipe-filter-gi'.
43195         * lib/pipe-filter-gi.c: New file.
43196         * modules/pipe-filter-gi: New file.
43197
43198 2009-08-02  Bruno Haible  <bruno@clisp.org>
43199             Paolo Bonzini  <bonzini@gnu.org>
43200
43201         Tests for module 'pipe-filter-ii'.
43202         * modules/pipe-filter-ii-tests: New file.
43203         * tests/test-pipe-filter-ii1.sh: New file.
43204         * tests/test-pipe-filter-ii1.c: New file.
43205         * tests/test-pipe-filter-ii2.sh: New file.
43206         * tests/test-pipe-filter-ii2-main.c: New file.
43207         * tests/test-pipe-filter-ii2-child.c: New file.
43208
43209         New module 'pipe-filter-ii'.
43210         * lib/pipe-filter.h: New file.
43211         * lib/pipe-filter-ii.c: New file.
43212         * lib/pipe-filter-aux.h: New file.
43213         * modules/pipe-filter-ii: New file.
43214
43215 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43216
43217         * lib/gc-libgcrypt.c: Change copyright to FSF.
43218         * lib/gc-gnulib.c: Likewise.
43219
43220 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
43221
43222         * lib/gethostname.c: Include limits.h.
43223
43224 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43225             Bruno Haible  <bruno@clisp.org>
43226
43227         Ensure HOST_NAME_MAX as part of the gethostname module.
43228         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
43229         define also HOST_NAME_MAX.
43230         * tests/test-gethostname.c: Include <limits.h>.
43231         (main): Check also HOST_NAME_MAX.
43232         * doc/posix-headers/limits.texi: Document the mingw problem.
43233
43234 2009-08-02  Bruno Haible  <bruno@clisp.org>
43235
43236         * lib/gethostname.c (gethostname): Fix handling of large len argument.
43237         Add comments.
43238
43239 2009-03-31  Simon Josefsson  <simon@josefsson.org>
43240
43241         * lib/gethostname.c: Add Windows wrapper.
43242         * m4/gethostname.m4: Look for gethostname in -lws2_32.
43243         * modules/gethostname: Depend on sys_socket & errno, for also
43244         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
43245         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
43246
43247 2009-07-31  Jim Meyering  <meyering@redhat.com>
43248
43249         getloadavg: fix symbol name in comment
43250         * lib/getloadavg.c: Correct a typo I introduced when adding
43251         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
43252         Matt Kraai spotted the problem.
43253
43254 2009-07-29  Matt Kraai  <mkraai@beckman.com>
43255
43256         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
43257         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
43258         code also if ! defined N_NAME_POINTER.
43259         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
43260         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
43261         but the n_name member is a 12-byte array.
43262
43263 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
43264
43265         update-copyright: generalize comment handling
43266         * build-aux/update-copyright: Handle copyright statements
43267         within more comment styles.
43268         Document usage.
43269         Report any file with an external copyright holder or parse failure.
43270
43271 2009-07-29  Jim Meyering  <meyering@redhat.com>
43272
43273         mktime: correct setting of REPLACE_MKTIME
43274         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
43275
43276         update-copyright: new module
43277         * modules/update-copyright: New file.
43278         * build-aux/update-copyright: New file.
43279         * MODULES.html.sh (maint+release support): Add update-copyright.
43280
43281 2009-07-27  Bruno Haible  <bruno@clisp.org>
43282
43283         Fix compilation error when <ctime> is used and mktime is replaced.
43284         * lib/time.in.h (mktime): New declaration.
43285         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
43286         REPLACE_MKTIME instead of defining mktime in config.h.
43287         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
43288         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
43289         Reported by Ross McFarland <rwmcfa1@neces.com>.
43290
43291 2009-07-27  Bruno Haible  <bruno@clisp.org>
43292
43293         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
43294         Reported by Matt Kraai <mkraai@beckman.com>.
43295
43296 2009-07-25  Jim Meyering  <meyering@redhat.com>
43297
43298         maint.mk: avoid warnings about missing files
43299         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
43300         diagnostic when .prev-version does not exist.
43301         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
43302         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
43303         nonexistent cfg.mk.
43304         Suggestions from Simon Josefsson.
43305
43306 2009-07-25  Bruno Haible  <bruno@clisp.org>
43307
43308         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
43309         defined as macros. Needed on QNX 6.4.1.
43310         Reported by Matt Kraai <mkraai@beckman.com>.
43311
43312 2009-07-23  Jim Meyering  <meyering@redhat.com>
43313
43314         maint.mk: invoke "make dist" with a working value of XZ_OPT
43315         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
43316
43317 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
43318
43319         Make fseeko.c compile on QNX.
43320         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
43321
43322 2009-07-22  Peter Simons  <simons@cryp.to>
43323
43324         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
43325         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
43326         * lib/md4.h: Likewise.
43327         * lib/md5.h: Likewise.
43328         * lib/sha1.h: Likewise.
43329         * lib/sha256.h: Likewise.
43330         * lib/sha512.h: Likewise.
43331
43332         tests-sha1: don't assign literal string to 'char *' variable
43333         * tests/test-sha1.c (main): Declare locals with "const" to match
43334         attributes of the right hand side.
43335
43336 2009-07-21  Eric Blake  <ebb9@byu.net>
43337
43338         dup2: fix more mingw problems
43339         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
43340         fd to itself.
43341         * doc/posix-functions/dup2.texi (dup2): Document the bug.
43342         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
43343         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
43344         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
43345         care of mingw bugs.
43346
43347 2009-07-21  Jim Meyering  <meyering@redhat.com>
43348
43349         vc-list-files: avoid failure when /bin/sh is dash
43350         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
43351         On some Debian based systems, /bin/sh is a symlink to dash, and running
43352         this command would omit the "/" following each 'tests' prefix:
43353           dash -x build-aux/vc-list-files -C . tests
43354         That is because bash and dash work differently:
43355           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
43356           bash ok
43357           dash odd
43358
43359 2009-07-21  Eric Blake  <ebb9@byu.net>
43360
43361         dup2-tests: test previous patch
43362         * modules/dup2-tests: New file.
43363         * tests/test-dup2.c: Likewise.
43364         * tests/test-open.c (main): Avoid unspecified behavior.
43365         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
43366         test.
43367
43368         dup2: work around mingw and cygwin 1.5 bug
43369         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
43370         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43371         * modules/unistd (Makefile.am): Substitute it.
43372         * lib/unistd.in.h (dup2): Declare the replacement.
43373         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
43374         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
43375         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
43376         * modules/execute (Depends-on): Add dup2.
43377         * modules/fseterr (Depends-on): Likewise.
43378         * modules/pipe (Depends-on): Likewise.
43379         * modules/posix_spawn-internal (Depends-on): Likewise.
43380
43381 2009-07-21  Bruno Haible  <bruno@clisp.org>
43382
43383         * modules/.gitattributes: New file.
43384
43385 2009-07-20  Bruno Haible  <bruno@clisp.org>
43386
43387         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
43388         (main): Use it.
43389
43390 2009-07-20  Eric Blake  <ebb9@byu.net>
43391
43392         test-pipe: make a bit more robust.
43393         * tests/test-pipe.c (myerr): Allow error messages regardless of
43394         what we do to stderr.
43395         (test_pipe): Rearrange to avoid deadlock.
43396         (child_main): Try a larger read, to ensure we avoided deadlock.
43397         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
43398         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
43399         if misused.
43400
43401 2009-07-19  Jim Meyering  <meyering@redhat.com>
43402
43403         fts: avoid false-positive cycle-detection
43404         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
43405         for each new command line argument.
43406
43407 2009-07-19  Bruno Haible  <bruno@clisp.org>
43408
43409         Fix build error on mingw with the modules sys_select and unistd.
43410         * modules/acl-tests (Depends-on): Add close.
43411         * modules/binary-io-tests (Depends-on): Likewise.
43412         * modules/closein-tests (Depends-on): Likewise.
43413         * modules/flock-tests (Depends-on): Likewise.
43414         * modules/fsync-tests (Depends-on): Likewise.
43415         * modules/lseek-tests (Depends-on): Likewise.
43416         * modules/pipe-tests (Depends-on): Likewise.
43417         * modules/posix_spawn-tests (Depends-on): Likewise.
43418         * modules/posix_spawnp-tests (Depends-on): Likewise.
43419         * modules/stat-time-tests (Depends-on): Likewise.
43420         * modules/yesno-tests (Depends-on): Likewise.
43421
43422 2009-07-19  Bruno Haible  <bruno@clisp.org>
43423
43424         Unify conditionals.
43425         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
43426         macros, not at the compiler macros.
43427         * lib/pipe.c: Likewise.
43428         * lib/execute.c: Likewise.
43429         * lib/spawni.c: Likewise.
43430
43431 2009-07-19  Bruno Haible  <bruno@clisp.org>
43432
43433         Fix handling of closed stdin/stdout/stderr on mingw.
43434         * lib/w32spawn.h: Include unistd.h.
43435         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
43436         file descriptor with O_NOINHERIT flag.
43437         (fd_safer_noinherit): New function, based on fd-safer.c.
43438         (dup_safer_noinherit): New function, based on dup-safer.c.
43439         (undup_safer_noinherit): New function.
43440         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
43441         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
43442         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
43443         instead of fd_safer.
43444         * tests/test-pipe.c: Include <windows.h>.
43445         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
43446         result.
43447
43448         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
43449         from main.
43450         (test_pipe): Pass an extra argument for disambiguation.
43451         (main): Invoke parent_main or child_main.
43452
43453         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
43454         consistently.
43455
43456 2009-07-18  Eric Blake  <ebb9@byu.net>
43457
43458         test-pipe: fix mingw build
43459         * tests/test-pipe.c (main): Avoid fcntl on mingw.
43460
43461 2009-07-18  Bruno Haible  <bruno@clisp.org>
43462
43463         * modules/pipe-tests (Makefile.am): Fix typo.
43464
43465 2009-07-18  Eric Blake  <ebb9@byu.net>
43466
43467         error: fix mingw build
43468         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
43469         Reported by Bruno Haible.
43470
43471         error: avoid undefined use of stdout
43472         * lib/error.c (error, error_at_line): Check that fd 1 is open
43473         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
43474         is handling faults and the close_stdout module wants to report the
43475         detection of closed stdout as an error.
43476
43477 2009-07-17  Eric Blake  <ebb9@byu.net>
43478
43479         pipe: be robust in face of closed fds
43480         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
43481         should cause child to misbehave.
43482         * modules/pipe-tests: New module.
43483         * tests/test-pipe.c: New file.
43484         * tests/test-pipe.sh: New file.
43485         Reported by Akim Demaille.
43486
43487 2009-07-14  Bruno Haible  <bruno@clisp.org>
43488
43489         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
43490         Reported by anonymous kc.
43491
43492 2009-07-07  Jim Meyering  <meyering@redhat.com>
43493
43494         maint.mk: don't look for translatable strings in *.m4 or *.mk
43495         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
43496         when searching for translatable strings.
43497
43498 2009-07-05  Jim Meyering  <meyering@redhat.com>
43499
43500         remove superfluous parentheses in STREQ definition
43501         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
43502         * lib/getugroups.c (STREQ): Likewise.
43503         * lib/fnmatch.c (STREQ): Likewise.
43504         Spotted by Bruno Haible.
43505
43506 2009-07-04  Jim Meyering  <meyering@redhat.com>
43507
43508         argv-iter: new module
43509         * MODULES.html.sh: Add argv-iter.
43510         * lib/argv-iter.c, lib/argv-iter.h: New files.
43511         * modules/argv-iter: New file.
43512         * modules/argv-iter-tests: New file.
43513         * tests/test-argv-iter.c: Test it.
43514
43515 2009-07-04  Bruno Haible  <bruno@clisp.org>
43516
43517         Fix assertion.
43518         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
43519         contains more exact copies of a given entry than file2, leave the extra
43520         copies unpaired rather than aborting.
43521         Reported by Eric Blake.
43522
43523 2009-07-02  Bruno Haible  <bruno@clisp.org>
43524
43525         Speedup git-merge-changelog for git cherry-pick.
43526         * lib/git-merge-changelog.c (struct entries_mapping): New type.
43527         (entries_mapping_get): New function, extracted from compute_mapping.
43528         (entries_mapping_reverse_get): New function.
43529         (compute_mapping): Add a 'full' argument. Return the result in a
43530         'struct entries_mapping'.
43531         (main): Update. Access the mappings through entries_mapping_get.
43532         Reported by Eric Blake.
43533
43534 2009-07-02  Bruno Haible  <bruno@clisp.org>
43535
43536         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
43537         best_i.
43538
43539 2009-07-02  Bruno Haible  <bruno@clisp.org>
43540
43541         Speed up approximate search for matching ChangeLog entries.
43542         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
43543         argument. Call fstrcmp_bounded instead of fstrcmp.
43544         (compute_mapping, try_split_merged_entry, main): Update callers.
43545
43546 2009-07-02  Bruno Haible  <bruno@clisp.org>
43547
43548         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
43549
43550 2009-06-30  Bruno Haible  <bruno@clisp.org>
43551
43552         Reduce the number of uc_is_cased calls.
43553         * lib/unicase.h (casing_suffix_context_t): Add
43554         'first_char_except_ignorable' field.
43555         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
43556         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
43557         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
43558         Update initializer.
43559         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
43560         case-ignorable characters.
43561         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
43562         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
43563         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
43564         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
43565         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
43566
43567 2009-06-30  Bruno Haible  <bruno@clisp.org>
43568
43569         Tests for module 'unicase/ignorable'.
43570         * modules/unicase/ignorable-tests: New file.
43571         * tests/unicase/test-ignorable.c: New file, generated by
43572         gen-uni-tables.
43573
43574         Tests for module 'unicase/cased'.
43575         * modules/unicase/cased-tests: New file.
43576         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
43577         * tests/unicase/test-predicate-part1.h: New file, derived from
43578         tests/unictype/test-predicate-part1.h.
43579         * tests/unicase/test-predicate-part2.h: New file, same as
43580         tests/unictype/test-predicate-part2.h.
43581
43582         Fix evaluation of "Before C" condition of FINAL_SIGMA.
43583         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
43584         (output_casing_properties): New function.
43585         (main): Call it.
43586         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
43587         * lib/unicase/cased.c: Include unictype/bitmap.h.
43588         (uc_is_cased): Define through a bitmap lookup.
43589         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
43590         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
43591         (uc_is_case_ignorable): Define through a bitmap lookup.
43592         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
43593         lib/unictype/bitmap.h.
43594         (Depends-on): Add inline. Clean up.
43595         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
43596         lib/unictype/bitmap.h.
43597         (Depends-on): Add inline. Clean up.
43598         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
43599         recognition.
43600         * tests/unicase/test-u16-tolower.c (main): Likewise.
43601         * tests/unicase/test-u32-tolower.c (main): Likewise.
43602
43603 2009-06-30  Bruno Haible  <bruno@clisp.org>
43604
43605         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
43606         * lib/unicase/u16-casemap.c: Likewise.
43607         * lib/unicase/u32-casemap.c: Likewise.
43608
43609 2009-06-29  Bruno Haible  <bruno@clisp.org>
43610
43611         Define u32_casefold as a wrapper around u32_ct_casefold.
43612         * lib/unicase/u32-casefold.c: Update.
43613         * modules/unicase/u32-casefold (Depends-on): Add
43614         unicase/u32-ct-casefold, unicase/empty-prefix-context,
43615         unicase/empty-suffix-context. Clean up.
43616
43617         Define u16_casefold as a wrapper around u16_ct_casefold.
43618         * lib/unicase/u16-casefold.c: Update.
43619         * modules/unicase/u16-casefold (Depends-on): Add
43620         unicase/u16-ct-casefold, unicase/empty-prefix-context,
43621         unicase/empty-suffix-context. Clean up.
43622
43623         Define u8_casefold as a wrapper around u8_ct_casefold.
43624         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
43625         * lib/unicase/u8-casefold.c: Update.
43626         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
43627         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43628
43629         Define u32_totitle as a wrapper around u32_ct_totitle.
43630         * lib/unicase/u32-totitle.c: Update.
43631         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
43632         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43633
43634         Define u16_totitle as a wrapper around u16_ct_totitle.
43635         * lib/unicase/u16-totitle.c: Update.
43636         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
43637         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43638
43639         Define u8_totitle as a wrapper around u8_ct_totitle.
43640         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
43641         functions.
43642         (FUNC): Delegate to U_CT_TOTITLE.
43643         * lib/unicase/u8-totitle.c: Update.
43644         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
43645         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43646
43647         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
43648         invocation.
43649         * modules/unicase/u32-tolower (Depends-on): Add
43650         unicase/empty-prefix-context, unicase/empty-suffix-context.
43651
43652         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
43653         invocation.
43654         * modules/unicase/u16-tolower (Depends-on): Add
43655         unicase/empty-prefix-context, unicase/empty-suffix-context.
43656
43657         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
43658         * modules/unicase/u8-tolower (Depends-on): Add
43659         unicase/empty-prefix-context, unicase/empty-suffix-context.
43660
43661         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
43662         invocation.
43663         * modules/unicase/u32-toupper (Depends-on): Add
43664         unicase/empty-prefix-context, unicase/empty-suffix-context.
43665
43666         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
43667         invocation.
43668         * modules/unicase/u16-toupper (Depends-on): Add
43669         unicase/empty-prefix-context, unicase/empty-suffix-context.
43670
43671         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
43672         * modules/unicase/u8-toupper (Depends-on): Add
43673         unicase/empty-prefix-context, unicase/empty-suffix-context.
43674
43675         New module 'unicase/u32-ct-casefold'.
43676         * lib/unicase/u32-ct-casefold.c: New file.
43677         * modules/unicase/u32-ct-casefold: New file.
43678
43679         New module 'unicase/u16-ct-casefold'.
43680         * lib/unicase/u16-ct-casefold.c: New file.
43681         * modules/unicase/u16-ct-casefold: New file.
43682
43683         New module 'unicase/u8-ct-casefold'.
43684         * lib/unicase/u8-ct-casefold.c: New file.
43685         * lib/unicase/u-ct-casefold.h: New file, derived from
43686         lib/unicase/u-casefold.h.
43687         * modules/unicase/u8-ct-casefold: New file.
43688
43689         New module 'unicase/u32-ct-totitle'.
43690         * lib/unicase/u32-ct-totitle.c: New file.
43691         * modules/unicase/u32-ct-totitle: New file.
43692
43693         New module 'unicase/u16-ct-totitle'.
43694         * lib/unicase/u16-ct-totitle.c: New file.
43695         * modules/unicase/u16-ct-totitle: New file.
43696
43697         New module 'unicase/u8-ct-totitle'.
43698         * lib/unicase/u8-ct-totitle.c: New file.
43699         * lib/unicase/u-ct-totitle.h: New file, derived from
43700         lib/unicase/u-totitle.h.
43701         * modules/unicase/u8-ct-totitle: New file.
43702
43703         New module 'unicase/u32-ct-tolower'.
43704         * lib/unicase/u32-ct-tolower.c: New file.
43705         * modules/unicase/u32-ct-tolower: New file.
43706
43707         New module 'unicase/u16-ct-tolower'.
43708         * lib/unicase/u16-ct-tolower.c: New file.
43709         * modules/unicase/u16-ct-tolower: New file.
43710
43711         New module 'unicase/u8-ct-tolower'.
43712         * lib/unicase/u8-ct-tolower.c: New file.
43713         * modules/unicase/u8-ct-tolower: New file.
43714
43715         New module 'unicase/u32-ct-toupper'.
43716         * lib/unicase/u32-ct-toupper.c: New file.
43717         * modules/unicase/u32-ct-toupper: New file.
43718
43719         New module 'unicase/u16-ct-toupper'.
43720         * lib/unicase/u16-ct-toupper.c: New file.
43721         * modules/unicase/u16-ct-toupper: New file.
43722
43723         New module 'unicase/u8-ct-toupper'.
43724         * lib/unicase/u8-ct-toupper.c: New file.
43725         * modules/unicase/u8-ct-toupper: New file.
43726
43727         Add context arguments to u*_casemap functions.
43728         * lib/unicase/unicasemap.h: Include unicase.h.
43729         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
43730         suffix_context arguments.
43731         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
43732         functions.
43733         (FUNC): Add prefix_context and suffix_context arguments. Use
43734         uc_is_cased and uc_is_case_ignorable.
43735         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
43736         * lib/unicase/u16-casemap.c: Likewise.
43737         * lib/unicase/u32-casemap.c: Likewise.
43738         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
43739         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43740         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
43741         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43742         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
43743         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43744
43745         New module 'unicase/u32-suffix-context'.
43746         * lib/unicase/u32-suffix-context.c: New file.
43747         * modules/unicase/u32-suffix-context: New file.
43748
43749         New module 'unicase/u16-suffix-context'.
43750         * lib/unicase/u16-suffix-context.c: New file.
43751         * modules/unicase/u16-suffix-context: New file.
43752
43753         New module 'unicase/u8-suffix-context'.
43754         * lib/unicase/u8-suffix-context.c: New file.
43755         * lib/unicase/u-suffix-context.h: New file.
43756         * modules/unicase/u8-suffix-context: New file.
43757
43758         New module 'unicase/empty-suffix-context'.
43759         * lib/unicase/empty-suffix-context.c: New file.
43760         * modules/unicase/empty-suffix-context: New file.
43761
43762         New module 'unicase/u32-prefix-context'.
43763         * lib/unicase/u32-prefix-context.c: New file.
43764         * modules/unicase/u32-prefix-context: New file.
43765
43766         New module 'unicase/u16-prefix-context'.
43767         * lib/unicase/u16-prefix-context.c: New file.
43768         * modules/unicase/u16-prefix-context: New file.
43769
43770         New module 'unicase/u8-prefix-context'.
43771         * lib/unicase/u8-prefix-context.c: New file.
43772         * lib/unicase/u-prefix-context.h: New file.
43773         * lib/unicase/context.h: New file.
43774         * modules/unicase/u8-prefix-context: New file.
43775
43776         New module 'unicase/empty-prefix-context'.
43777         * lib/unicase/empty-prefix-context.c: New file.
43778         * modules/unicase/empty-prefix-context: New file.
43779
43780         New module 'unicase/ignorable'.
43781         * lib/unicase/ignorable.c: New file.
43782         * modules/unicase/ignorable: New file.
43783
43784         New module 'unicase/cased'.
43785         * lib/unicase/caseprop.h: New file.
43786         * lib/unicase/cased.c: New file.
43787         * modules/unicase/cased: New file.
43788
43789         New functions for case mapping of substrings.
43790         * lib/unicase.h (casing_prefix_context_t): New type.
43791         (unicase_empty_prefix_context): New variable.
43792         (u8_casing_prefix_context, u16_casing_prefix_context,
43793         u32_casing_prefix_context, u8_casing_prefixes_context,
43794         u16_casing_prefixes_context, u32_casing_prefixes_context): New
43795         declarations.
43796         (casing_suffix_context_t): New type.
43797         (unicase_empty_suffix_context): New variable.
43798         (u8_casing_suffix_context, u16_casing_suffix_context,
43799         u32_casing_suffix_context, u8_casing_suffixes_context,
43800         u16_casing_suffixes_context, u32_casing_suffixes_context,
43801         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
43802         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
43803         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
43804         declarations.
43805
43806 2009-06-28  Jim Meyering  <meyering@redhat.com>
43807
43808         boostrap: indent only with spaces
43809         * build-aux/bootstrap: Indent only with spaces, never TABs.
43810
43811         bootstrap: split long lines
43812         * build-aux/bootstrap: Keep line length < 80.
43813
43814         bootstrap: sync from coreutils
43815         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
43816         just as autoreconf does.  Verify a list of prerequisite
43817         package-name,version-number pairs if defined in bootstrap.conf.
43818         Refer to README-prereq, if prerequisites are not satisfied.
43819
43820 2009-06-27  Eric Blake  <ebb9@byu.net>
43821
43822         tests: add test for bogus NULL definition
43823         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
43824         * tests/test-stdlib.c: Likewise.
43825         * tests/test-string.c: Likewise.
43826         * tests/test-locale.c: Likewise.
43827         * tests/test-unistd.c: Likewise.
43828         * modules/stdio-tests (Depends-on): Add verify.
43829         * modules/stdlib-tests (Depends-on): Likewise.
43830         * modules/string-tests (Depends-on): Likewise.
43831         * modules/locale-tests (Depends-on): Likewise.
43832         * modules/unistd-tests (Depends-on): Likewise.
43833
43834 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
43835
43836         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
43837         self-explaining comment.
43838         * m4/selinux-selinux-h: Update serial.
43839         (gl_LIBSELINUX): New macro, adding a warning for missing development
43840         packages to code extracted from...
43841         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
43842         Add warning for missing development packages here, too.
43843
43844 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
43845
43846         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
43847
43848 2009-06-25  Eric Blake  <ebb9@byu.net>
43849
43850         version-etc: fix regression
43851         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
43852         gcc.
43853         (version_etc): Use it, to catch bugs with trailing NULL.
43854         * lib/version-etc.c (version_etc_arn): Delete unused argument.
43855         (version_etc_va): Fix logic bug.
43856         * modules/version-etc-tests: Add test.
43857         * tests/test-version-etc.c: New file.
43858         * tests/test-version-etc.sh: Likewise.
43859
43860 2009-06-25  Sam Steingold  <sds@gnu.org>
43861
43862         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
43863         mbtowc declaration.
43864
43865 2009-06-25  Eric Blake  <ebb9@byu.net>
43866
43867         fpurge: migrate into <stdio.h>
43868         * lib/fpurge.h: Delete...
43869         * lib/stdio.in.h (fpurge): ...and declare here, instead.
43870         * lib/fpurge.c (fpurge): Change declaring header.
43871         * modules/fpurge (Files): Drop deleted file.
43872         (Depends-on): Add stdio.
43873         (configure.ac): Set witness.
43874         * modules/stdio (Makefile.am): Support fpurge macros.
43875         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43876         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
43877         * lib/fflush.c: Update client.
43878         * tests/test-fpurge.c: Likewise.
43879         * NEWS: Mention the change.
43880
43881 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43882
43883         * lib/argp-version-etc.c (program_authors): Add const
43884         qualifier.
43885         * lib/version-etc.c: Fix typos in the comments.
43886         * modules/argp-version-etc: Depends on version-etc.
43887
43888 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43889
43890         argp-version-etc: new module.
43891
43892         * lib/argp-version-etc.c: New file.
43893         * lib/argp-version-etc.h: New file.
43894         * modules/argp-version-etc: New file.
43895         * modules/argp-version-etc-tests: New file.
43896         * tests/test-argp-version-etc.c: New test.
43897         * tests/test-argp-version-etc-1.sh: New test.
43898
43899 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43900
43901         Provide additional interfaces and documentation for version-etc
43902         module.
43903
43904         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
43905         interfaces.
43906         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
43907         prototypes.
43908
43909 2009-06-24  Bruno Haible  <bruno@clisp.org>
43910
43911         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
43912         HAVE_LIB${NAME} macro.
43913         Reported by Sam Steingold <sds@gnu.org>.
43914
43915 2009-06-23  Simon Josefsson  <simon@josefsson.org>
43916
43917         * modules/hash-tests (test_hash_LDADD): Link to libintl when
43918         needed.
43919
43920 2009-06-21  Bruno Haible  <bruno@clisp.org>
43921
43922         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
43923         work.
43924         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
43925         together with LIB${NAME}, LTLIB${NAME}.
43926         Reported by Sam Steingold <sds@gnu.org>.
43927
43928 2009-06-20  Jim Meyering  <meyering@redhat.com>
43929
43930         tests: make sc_require_test_exit_idiom more generic
43931         * top/maint.mk (Exit_witness_file): New overridable variable.
43932         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
43933         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
43934
43935 2009-06-19  Jim Meyering  <meyering@redhat.com>
43936
43937         hash: reverse order of src/dst parameters in an internal interface
43938         * lib/hash.c (transfer_entries): Reverse order of parameters to
43939         put DST before SRC.  Adjust callers.
43940
43941         tests: test-hash: avoid wholesale duplication
43942         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
43943         Instead, use a loop and add a single conditional.
43944
43945         tests: test-hash: allow seed selection via a command line argument
43946         * tests/test-hash.c (get_seed): New function.
43947         (main): Use it.
43948
43949 2009-06-19  Eric Blake  <ebb9@byu.net>
43950
43951         hash: avoid memory leak on allocation failure
43952         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
43953         failure.  Factor repeated algorithm...
43954         (transfer_entries): ...into new helper routine.
43955         (hash_delete): React to hash_rehash return value.
43956
43957         hash: reduce memory pressure in hash_rehash no-op case
43958         * lib/hash.c (next_prime): Avoid overflow.
43959         (hash_initialize): Factor bucket size computation...
43960         (compute_bucket_size): ...into new helper function.
43961         (hash_rehash): Use new function and open coding to reduce memory
43962         pressure, and avoid a memory leak in USE_OBSTACK code.
43963         Reported by Jim Meyering.
43964
43965 2009-06-18  Eric Blake  <ebb9@byu.net>
43966
43967         hash: make rotation more obvious
43968         * modules/hash (Depends-on): Add bitrotate and stdint.
43969         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
43970         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
43971         (SIZE_MAX): Rely on headers for definition.
43972         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
43973         (raw_hasher): Use rotr_sz.
43974         Suggested by Jim Meyering.
43975
43976         hash: fix memory leak in last patch
43977         * lib/hash.c (hash_rehash): Avoid memory leak.
43978
43979         hash: avoid no-op rehashing
43980         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
43981
43982         hash: provide default callback functions
43983         * lib/hash.c (raw_hasher, raw_comparator): New functions.
43984         (hash_initialize): Use them as defaults.
43985         * tests/test-hash.c (main): Test this.
43986
43987         hash: minor optimization
43988         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
43989         when possible.
43990         (hash_initialize): Document this promise.
43991         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
43992         * tests/test-hash.c (hash_compare_strings): Test this.
43993
43994 2009-06-18  Bruno Haible  <bruno@clisp.org>
43995
43996         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
43997         going to be replaced anyway.
43998
43999 2009-06-18  Bruno Haible  <bruno@clisp.org>
44000
44001         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
44002         in one place.
44003         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
44004         be replaced anyway.
44005
44006 2009-06-18  Eric Blake  <ebb9@byu.net>
44007
44008         hash: check for resize before insertion
44009         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
44010         threshold before insertion, so that a pathological hash_rehash
44011         that fills every bucket can still trigger another rehash.
44012
44013 2009-06-18  Jim Meyering  <meyering@redhat.com>
44014
44015         hash-tests: add a loop around the small tests
44016         * tests/test-hash.c (main): Repeat small tests with selected
44017         small initial table sizes.
44018
44019 2009-06-17  Eric Blake  <ebb9@byu.net>
44020
44021         hash: minor cleanups
44022         * lib/hash.h (hash_entry): Make opaque, by moving...
44023         * lib/hash.c (hash_entry): ...here.
44024         (hash_insert): Clarify restrictions on what can be inserted.
44025         (hash_get_next): Clarify when it is safe to remove an element
44026         during traversal.
44027         (check_tuning): Skip verification when tuning is known safe.
44028         (hash_initialize): Clarify restrictions on tuning.
44029
44030 2009-06-17  Jim Meyering  <jim@meyering.net>
44031         and Eric Blake  <ebb9@byu.net>
44032
44033         hash-tests: new module
44034         * modules/hash-tests: New file.
44035         * tests/test-hash.c: New file.
44036
44037 2009-06-17  Eric Blake  <ebb9@byu.net>
44038
44039         strstr-simple: document new module
44040         * MODULES.html.sh: Document new module.
44041
44042         strstr, strcasestr: replace on platforms with broken memchr
44043         * modules/strstr: Split into...
44044         * modules/strstr-simple: ...new module that does not care about
44045         performance, but does care about glibc bug.
44046         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
44047         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
44048         if platform memchr is broken, per Debian bug 521737.
44049         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
44050         memchr.
44051         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
44052         * doc/posix-functions/strstr.texi (strstr): Document the fix.
44053         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
44054         * modules/mountlist (Depends-on): Add strstr-simple.
44055         * modules/gen-uni-tables (Depends-on): Likewise.
44056         * modules/argz (Depends-on): Add strstr.
44057
44058 2009-06-17  Bruno Haible  <bruno@clisp.org>
44059
44060         * modules/posix_spawn-internal (Depends-on): Add errno.
44061
44062 2009-06-17  Bruno Haible  <bruno@clisp.org>
44063
44064         Define missing ESTALE on Interix 3.5.
44065         * lib/errno.in.h (ESTALE): Assign a value if missing.
44066         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
44067         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
44068         missing.
44069         * doc/posix-headers/errno.texi: Mention the Interix bug.
44070         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
44071
44072 2009-06-15  Eric Blake  <ebb9@byu.net>
44073
44074         memchr, memchr2: add valgrind exception
44075         * lib/memchr.valgrind: New file.
44076         * lib/memchr2.valgrind: New file.
44077         * modules/memchr (Files): Distribute valgrind file.
44078         * modules/memchr2 (Files): Likewise.
44079
44080         docs: memchr is no longer obsolete
44081         * MODULES.html.sh: Move memchr from obsolete to string.h section.
44082         * lib/string.in.h (memchr): Simplify logic.
44083
44084 2009-06-14  Jim Meyering  <meyering@redhat.com>
44085
44086         link-follow: fix the "checking..." message to not mention trailing slash
44087         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
44088         never considered trailing slashes.
44089
44090 2009-06-14  Bruno Haible  <bruno@clisp.org>
44091
44092         * m4/memchr.m4: Mention also the bug on IA-64.
44093         * doc/posix-functions/memchr.texi: Likewise.
44094
44095 2009-06-12  Eric Blake  <ebb9@byu.net>
44096
44097         memchr: detect broken x86_64 and alpha implementations
44098         * modules/memchr-tests (Depends-on): Move mmap detection...
44099         * modules/memchr (Depends-on): ...here.
44100         (configure.ac): Set indicator.
44101         * lib/string.in.h (memchr): Declare replacement.
44102         * modules/string (Makefile.am): Trigger replacement.
44103         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44104         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
44105         bugs.
44106         * doc/posix-functions/memchr.texi (memchr): Document the bug.
44107         * modules/getpagesize (License): Relax license.
44108
44109 2009-06-11  Bruno Haible  <bruno@clisp.org>
44110
44111         * lib/idpriv.h: Add more references.
44112
44113 2009-06-08  Bruno Haible  <bruno@clisp.org>
44114
44115         Tests for module 'idpriv-droptemp'.
44116         * modules/idpriv-droptemp-tests: New file.
44117         * tests/test-idpriv-droptemp.sh: New file.
44118         * tests/test-idpriv-droptemp.su.sh: New file.
44119         * tests/test-idpriv-droptemp.c: New file.
44120
44121         New module 'idpriv-droptemp'.
44122         * lib/idpriv-droptemp.c: New file.
44123         * modules/idpriv-droptemp: New file.
44124
44125 2009-06-08  Bruno Haible  <bruno@clisp.org>
44126
44127         Tests for module 'idpriv-drop'.
44128         * modules/idpriv-drop-tests: New file.
44129         * tests/test-idpriv-drop.sh: New file.
44130         * tests/test-idpriv-drop.su.sh: New file.
44131         * tests/test-idpriv-drop.c: New file.
44132
44133         New module 'idpriv-drop'.
44134         * lib/idpriv.h: New file.
44135         * lib-idpriv-drop.c: New file.
44136         * m4/idpriv.m4: New file.
44137         * modules/idpriv-drop: New file.
44138
44139 2009-06-08  Bruno Haible  <bruno@clisp.org>
44140
44141         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
44142         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44143         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44144         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44145         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44146         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44147         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44148
44149 2009-06-08  Eric Blake  <ebb9@byu.net>
44150
44151         test-strstr: use memory fence, when possible
44152         * tests/test-strstr.c (main): Use memory fence, in order to be
44153         more likely to trigger Debian bug 521737.
44154         * modules/strstr-tests (Files): Pull in additional files.
44155
44156         memchr: no longer obsolete, for wider field testing
44157         * modules/memchr (Status, Notice): Delete, this module is no
44158         longer obsolete.
44159         * modules/vasnprintf (Depends-on): Add memchr.
44160
44161 2009-06-07  Jim Meyering  <meyering@redhat.com>
44162
44163         hash: declare some functions with the warn_unused_result attribute
44164         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
44165
44166 2009-06-07  Bruno Haible  <bruno@clisp.org>
44167
44168         * tests/test-alignof.c: Don't test int64_t if it does not exist.
44169         Reported by Eric Blake.
44170
44171 2009-06-06  Eric Blake  <ebb9@byu.net>
44172
44173         test-alignof: fix typo with long double
44174         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
44175         compiler error.
44176
44177 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
44178
44179         Escape non-texinfo { and }s.
44180         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
44181         markup error.
44182
44183 2009-06-04  Jim Meyering  <meyering@redhat.com>
44184
44185         gitlog-to-changelog: don't infloop on an empty commit log
44186         * build-aux/gitlog-to-changelog: Warn about an empty log message.
44187         Reported by Boris Petersen <transacid@centerim.org>.
44188
44189 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
44190
44191         version-etc: extend for packagers
44192         Add three new configure options, intended for packagers:
44193           --with-packager="packager name"
44194           --with-packager-version="packager-specific version"
44195           --with-packager-bug-reports="packager bug reporting"
44196         An example with coreutils:
44197           $ ./configure \
44198             --with-packager=Gentoo \
44199             --with-packager-bug-report=http://bugs.gentoo.org/ \
44200             --with-packager-version="patchset 1.6"
44201           $ ./src/ls --version | head -n2
44202           ls (GNU coreutils) 7.1-dirty
44203           Packaged by Gentoo (patchset 1.6)
44204         Note that the bug reporting info via --help doesn't show up because
44205         coreutils uses its own custom emit_bug_reporting_address() implementation
44206         in src/system.h.  If it didn't, it'd look like:
44207           $ ./src/ls --help | tail -n4
44208           Report bugs to <bug-coreutils@gnu.org>.
44209           Report Gentoo bugs to <http://bugs.gentoo.org/>.
44210           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
44211           General help using GNU software: <http://www.gnu.org/gethelp/>.
44212         * lib/version-etc.c: Print new information, if provided.
44213         * m4/version-etc.m4: New file.
44214         * modules/version-etc (Files): Add m4/version-etc.m4.
44215         (configure.ac): Add gl_VERSION_ETC.
44216
44217 2009-05-31  Bruno Haible  <bruno@clisp.org>
44218
44219         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
44220         and 'int64_t'.
44221         * modules/alignof-tests (Dependencies): Add stdint.
44222         Reported by Eric Blake.
44223
44224 2009-05-31  Bruno Haible  <bruno@clisp.org>
44225
44226         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
44227         restriction due to compiler bugs.
44228         Reported by Eric Blake.
44229
44230 2009-05-31  Simon Josefsson  <simon@josefsson.org>
44231             Bruno Haible  <bruno@clisp.org>
44232
44233         Fix test-alignof failure.
44234         * lib/alignof.h (alignof_slot): New macro.
44235         (alignof_type): New macro, with the same semantics as the previous
44236         'alignof'.
44237         (alignof): Alias to alignof_slot.
44238         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
44239         check that the results are usable as constant expressions.
44240
44241 2009-05-31  Bruno Haible  <bruno@clisp.org>
44242
44243         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
44244         * tests/test-memchr.c (main): Check that memchr does not read past the
44245         first occurrence of the byte.
44246         * tests/test-strstr.c (main): Update comment.
44247         Suggested by Eric Blake.
44248
44249 2009-05-30  Bruno Haible  <bruno@clisp.org>
44250
44251         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
44252         detail how to use dumpbin.
44253         Reported by David Byron <dbyron@dbyron.com>.
44254
44255 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44256
44257         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
44258
44259 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44260
44261         * m4/manywarnings.m4: Add GCC 4.4 warnings.
44262
44263 2009-05-28  Bruno Haible  <bruno@clisp.org>
44264
44265         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
44266         build-aux/ files.
44267
44268 2009-05-28  Simon Josefsson  <simon@josefsson.org>
44269
44270         * gnulib-tool (func_import): Transform license on build-aux/ files too.
44271
44272 2009-05-27  Simon Josefsson  <simon@josefsson.org>
44273
44274         * gnulib-tool (sed_transform_main_lib_file)
44275         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
44276         regexps.
44277
44278 2009-05-26  Simon Josefsson  <simon@josefsson.org>
44279
44280         * tests/test-strstr.c: Add another self-test.
44281         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
44282         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
44283
44284 2009-05-23  Bruno Haible  <bruno@clisp.org>
44285
44286         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
44287         change.
44288
44289 2009-05-21  Bruno Haible  <bruno@clisp.org>
44290
44291         Simplify use of mode_t varargs.
44292         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
44293         uses 'mode_t' or 'int'.
44294         * lib/openat.c (openat): Likewise.
44295         * lib/open-safer.c (open_safer): Likewise.
44296         * m4/mode_t.m4: New file.
44297         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
44298         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
44299         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
44300         * modules/open (Files): Add m4/mode_t.m4.
44301         * modules/openat (Files): Likewise.
44302         * modules/fcntl-safer (Files): Likewise.
44303         Suggested by Eric Blake.
44304
44305 2009-05-21  Pádraig Brady  <P@draigbrady.com>
44306
44307         * doc/glibc-functions/fallocate.texi: New file.
44308         * doc/gnulib.texi: Include it.
44309
44310 2009-05-21  Eric Blake  <ebb9@byu.net>
44311             Bruno Haible  <bruno@clisp.org>
44312
44313         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
44314         invocations.
44315         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44316
44317 2009-05-21  Eric Blake  <ebb9@byu.net>
44318             Bruno Haible  <bruno@clisp.org>
44319
44320         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
44321         include_next. Fix of 2008-11-20 commit.
44322         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
44323         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
44324         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
44325         NEXT_MATH_H.
44326         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
44327         instead of NEXT_MATH_H.
44328
44329 2009-05-21  Bruno Haible  <bruno@clisp.org>
44330
44331         Avoid redefinition warnings for SIZE_MAX.
44332         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
44333         Reported by Simon Josefsson.
44334
44335 2009-05-21  Bruno Haible  <bruno@clisp.org>
44336
44337         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
44338         AC_CACHE_VAL.
44339
44340 2009-05-20  Bruno Haible  <bruno@clisp.org>
44341
44342         Make zeroptr.h work on mingw.
44343         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
44344         mprotect.
44345         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
44346         * modules/memchr2-tests (configure.ac): Likewise.
44347         * modules/memcmp-tests (configure.ac): Likewise.
44348         * modules/memmem-tests (configure.ac): Likewise.
44349         * modules/memrchr-tests (configure.ac): Likewise.
44350         Reported by Simon Josefsson.
44351
44352 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44353
44354         * tests/test-glob.c: Include string.h for strcmp prototype.
44355
44356 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44357
44358         * modules/getdelim (Depends-on): Add explicit stdint, although it
44359         was implicitly already pulled in via realloc-posix.
44360         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
44361
44362 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44363
44364         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
44365         G. Christensen" <tgc@jupiterrise.com>.
44366         * m4/sys_socket_h.m4: Check for sa_family_t.
44367         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
44368         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
44369         * tests/test-sys_socket.c: Check that sa_family_t works.
44370
44371 2009-05-18  Eric Blake  <ebb9@byu.net>
44372
44373         maint.mk: allow gnulib_dir in VPATH build
44374         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
44375
44376 2009-05-15  Jim Meyering  <meyering@redhat.com>
44377
44378         maint.mk: Give gnulib_dir a default definition.
44379         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
44380         Thus, most packages no longer need to specify this variable in cfg.mk
44381
44382 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
44383
44384         rename.m4: fix typos that would make non-mingw cross-configure fail
44385         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
44386
44387 2009-05-13  Eric Blake  <ebb9@byu.net>
44388
44389         mmap-anon: avoid out-of-order autoconf expansion
44390         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
44391         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
44392         * modules/memchr-tests (Depends-on): Add extensions.
44393         * modules/memchr2-tests (Depends-on): Add extensions.
44394         * modules/memcmp-tests (Depends-on): Add extensions.
44395         * modules/memmem-tests (Depends-on): Add extensions.
44396         * modules/memrchr-tests (Depends-on): Add extensions.
44397
44398 2009-05-13  Bruno Haible  <bruno@clisp.org>
44399
44400         Make some tests ISO C 99 compliant.
44401         * tests/zerosize-ptr.h: New file.
44402         * tests/test-memchr.c: Include zerosize-ptr.h.
44403         (main): Use a zero-size object pointer instead of NULL.
44404         * tests/test-memchr2.c: Include zerosize-ptr.h.
44405         (main): Use a zero-size object pointer instead of NULL.
44406         * tests/test-memcmp.c: Include zerosize-ptr.h.
44407         (main): Use a zero-size object pointer instead of NULL.
44408         * tests/test-memmem.c: Include zerosize-ptr.h.
44409         (main): Use a zero-size object pointer instead of NULL.
44410         * tests/test-memrchr.c: Include zerosize-ptr.h.
44411         (main): Use a zero-size object pointer instead of NULL.
44412         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
44413         m4/mmap-anon.m4.
44414         (Depends-on): Add getpagesize.
44415         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44416         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
44417         m4/mmap-anon.m4.
44418         (Depends-on): Add getpagesize.
44419         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44420         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
44421         m4/mmap-anon.m4.
44422         (Depends-on): Add getpagesize.
44423         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44424         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
44425         m4/mmap-anon.m4.
44426         (Depends-on): Add getpagesize.
44427         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44428         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
44429         m4/mmap-anon.m4.
44430         (Depends-on): Add getpagesize.
44431         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44432
44433 2009-05-12  Bruno Haible  <bruno@clisp.org>
44434
44435         Tests for module 'alignof'.
44436         * modules/alignof-tests: New file.
44437         * tests/test-alignof.c: New file.
44438
44439 2009-05-12  Bruno Haible  <bruno@clisp.org>
44440
44441         Fix alignof macro.
44442         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
44443         vendor compilers that are always correct.
44444
44445 2009-05-12  Bruno Haible  <bruno@clisp.org>
44446
44447         Make the MAP_ANONYMOUS detection work on HP-UX 11.
44448         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
44449         not whether its fully works.
44450
44451 2009-05-12  Bruno Haible  <bruno@clisp.org>
44452
44453         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
44454
44455 2009-05-12  Jim Meyering  <meyering@redhat.com>
44456
44457         * top/maint.mk: Adjust backslash alignment.
44458
44459 2009-05-11  Simon Josefsson  <simon@josefsson.org>
44460
44461         * top/maint.mk: Make $(srcdir)/build-aux configurable.
44462
44463 2009-05-11  Eric Blake  <ebb9@byu.net>
44464
44465         argp: avoid undefined behavior
44466         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
44467         macros.
44468
44469 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44470
44471         * tests/test-vc-list-files-git.sh: Do git config of user.email and
44472         user.name to prevent git commit from complaining.
44473
44474 2009-05-10  Bruno Haible  <bruno@clisp.org>
44475
44476         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
44477         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
44478         it rewrites every file name only once.
44479         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
44480
44481 2009-05-08  Bruno Haible  <bruno@clisp.org>
44482
44483         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
44484         instead of 'max'.
44485
44486 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44487
44488         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
44489         sockaddr_storage test.
44490
44491 2009-05-07  Simon Josefsson  <simon@josefsson.org>
44492
44493         * modules/sys_socket (Makefile.am): Substitute
44494         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
44495         * m4/sys_socket_h.m4: Check for sockaddr_storage.
44496         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
44497         * tests/test-sys_socket.c: Check sockaddr_storage.
44498
44499 2009-05-08  Bruno Haible  <bruno@clisp.org>
44500
44501         New module 'alignof'.
44502         * lib/alignof.h: New file.
44503         * modules/alignof: New file.
44504
44505 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44506             Bruno Haible  <bruno@clisp.org>
44507
44508         Fix test-file-has-acl on FreeBSD.
44509         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
44510         mask is implicitly added.
44511         * tests/test-file-has-acl.c: Include <signal.h>.
44512         (main): Terminate the test after 5 seconds.
44513         * modules/acl-tests (configure.ac): Check for alarm function.
44514
44515 2009-05-04  Bruno Haible  <bruno@clisp.org>
44516
44517         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
44518         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
44519         * modules/errno (configure.ac): Drop AC_REQUIRE.
44520         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
44521         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
44522
44523 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44524
44525         * modules/glob-tests: New module.
44526         * tests/test-glob.c: Add.
44527
44528 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44529
44530         * modules/fnmatch-tests: New module.
44531         * tests/test-fnmatch.c: Add.
44532
44533 2009-05-04  Eric Blake  <ebb9@byu.net>
44534
44535         maint: make the new no-submodule-changes rule VPATH-safe
44536         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
44537
44538 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44539             Bruno Haible  <bruno@clisp.org>
44540
44541         acl: Fix infinite loop on FreeBSD.
44542         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
44543         of return value from acl_get_entry.
44544         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
44545         Likewise.
44546
44547 2009-05-03  Bruno Haible  <bruno@clisp.org>
44548
44549         * lib/acl-internal.h (acl_entries): Clarify return value.
44550         * lib/acl_entries.c (acl_entries): Likewise.
44551
44552 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44553
44554         Bug fix in acl module.
44555         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
44556
44557 2009-05-03  Bruno Haible  <bruno@clisp.org>
44558
44559         Create gperf-generated file in the source dir, not in the build dir.
44560         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
44561         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
44562         * modules/unicase/locale-language (unicase/locale-languages.h):
44563         Likewise.
44564         * modules/unicase/special-casing (unicase/special-casing-table.h):
44565         Likewise.
44566         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
44567         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
44568         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
44569         Reported by Ralf Wildenhues.
44570
44571 2009-05-03  Bruno Haible  <bruno@clisp.org>
44572
44573         * modules/fnmatch (Description, configure.ac): Taken from
44574         fnmatch-posix.
44575         * modules/fnmatch-posix: Turn into a symbolic reference to the
44576         'fnmatch' module, and deprecate.
44577         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
44578
44579 2009-05-03  Bruno Haible  <bruno@clisp.org>
44580
44581         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
44582         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
44583         Reported by Ralf Wildenhues.
44584
44585 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44586
44587         * m4/fnmatch.m4: Fix fnmatch re-define.
44588
44589 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44590
44591         priv-set: new module and tests; adapt write-any-file
44592         * lib/priv-set.c: New file.
44593         * lib/priv-set.h: New file.
44594         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
44595         * lib/write-any-file.c: Simplify by using priv-set module.
44596         * m4/priv-set.m4: New file.
44597         * modules/priv-set: New file.
44598         * modules/unlinkdir: Add dependency on priv-set module.
44599         * modules/write-any-file: Likewise.
44600
44601         Tests for module 'priv-set'.
44602         * modules/priv-set-tests: New file.
44603         * tests/test-priv-set.c: New file.
44604
44605 2009-05-03  Jim Meyering  <meyering@redhat.com>
44606             Bruno Haible  <bruno@clisp.org>
44607
44608         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
44609         use the converted UTF-8 variant of the name instead.
44610
44611 2009-05-03  Jim Meyering  <meyering@redhat.com>
44612
44613         tests: tighten some getdate tests
44614         * tests/test-getdate.c (main): Tighten tests: require equality,
44615         not just greater than.  Set TZ envvar to UTC0.
44616
44617 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
44618
44619         getdate: correctly interpret "next monday" when run on a Monday
44620         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
44621         that e.g., "next tues" (when run on a tuesday) results in a date
44622         that is one week in the future, and not today's date.
44623         I.e., add a week when the wday is the same as the current one.
44624         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
44625         and earlier by Martin Bernreuther and Jan Minář.
44626         * tests/test-getdate.c (main): Check that "next DAY" is always in
44627         the future and that "last DAY" is always in the past.
44628
44629 2009-05-02  Jim Meyering  <meyering@redhat.com>
44630
44631         build: ensure that a release build fails when a submodule is unclean
44632         * top/maint.mk (no-submodule-changes): New rule.
44633         (alpha beta major): Depend on it.
44634
44635 2009-05-02  Bruno Haible  <bruno@clisp.org>
44636
44637         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
44638         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
44639         shell variable gl_fnmatch_required to detect which variant is
44640         requested.
44641         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
44642         gl_FUNC_FNMATCH_POSIX.
44643         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
44644         exclude fnmatch-posix.
44645
44646 2009-05-02  Bruno Haible  <bruno@clisp.org>
44647
44648         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
44649         * modules/mbsrtowcs (License): Change to LGPLv2+.
44650         * modules/strnlen1 (License): Likewise.
44651         Reported by Simon Josefsson.
44652
44653 2009-05-02  Bruno Haible  <bruno@clisp.org>
44654
44655         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
44656         "cross".
44657         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
44658         gnulib-tool was called with option --source-base=lib.
44659
44660 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44661
44662         Use automake *-local hooks without commands, for extensibility.
44663         * modules/localcharset (Makefile.am): Rename install-exec-local
44664         rule to install-exec-localcharset, and make it a prerequisite of
44665         install-exec-local.  Likewise, rename the uninstall-local rule to
44666         uninstall-localcharset, and make it a prerequisite of the former.
44667
44668 2009-05-01  Bruno Haible  <bruno@clisp.org>
44669
44670         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
44671         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44672         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
44673         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
44674         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
44675         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44676         m4/locale-zh.m4, m4/codeset.m4.
44677
44678         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44679         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
44680         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44681         m4/locale-zh.m4.
44682
44683         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
44684         REPLACE_WCRTOMB if mbstate_t must be replaced.
44685         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
44686         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
44687
44688 2009-05-01  Bruno Haible  <bruno@clisp.org>
44689
44690         Avoid compiler warnings when redefining macros defined by <libintl.h>.
44691         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
44692         dngettext, dcngettext, textdomain, bindtextdomain,
44693         bind_textdomain_codeset): Undefine before redefining.
44694
44695 2009-04-30  Bruno Haible  <bruno@clisp.org>
44696
44697         Fix bug introduced on 2009-04-25.
44698         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
44699         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
44700         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
44701         is defined.
44702         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
44703         is defined.
44704         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
44705         is defined.
44706         Reported by Elbert_Pol <elbert.pol@gmail.com>.
44707
44708 2009-04-28  Bruno Haible  <bruno@clisp.org>
44709
44710         Comment tweaks.
44711         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
44712         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
44713         * lib/unicase.h (u*_casexfrm): Likewise.
44714         Reported by Paolo Bonzini.
44715
44716 2009-04-28  Bruno Haible  <bruno@clisp.org>
44717
44718         Fix a compilation error.
44719         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
44720         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44721         Reported by Jim Meyering.
44722
44723 2009-04-27  Bruno Haible  <bruno@clisp.org>
44724
44725         New module 'libunistring'.
44726         * modules/libunistring: New file.
44727         * m4/libunistring.m4: New file.
44728         * MODULES.html.sh (Unicode string functions): Add it.
44729
44730 2009-04-27  Eric Blake  <ebb9@byu.net>
44731
44732         maint.mk: allow package-specific header to provide <config.h>
44733         * top/maint.mk (sc_require_config_h): New variable.
44734         (sc_require_config_h, sc_require_config_h_first): Use it.
44735
44736 2009-04-27  Simon Josefsson  <simon@josefsson.org>
44737
44738         * top/maint.mk (sc_avoid_if_before_free): Except
44739         useless-if-before-free script.
44740
44741 2009-04-27  Eric Blake  <ebb9@byu.net>
44742
44743         maintainer-makefile: depend on all required helper scripts
44744         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
44745         useless-if-before-free.
44746         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
44747         version, rather than assuming gnulib checkout is available.
44748         Reported by Simen Josefsson.
44749
44750 2009-04-26  Bruno Haible  <bruno@clisp.org>
44751
44752         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
44753         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
44754         "../" or "..".
44755
44756 2009-04-26  Bruno Haible  <bruno@clisp.org>
44757
44758         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
44759         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
44760         AC_LIB_HAVE_LINKFLAGS.
44761
44762 2009-04-26  Bruno Haible  <bruno@clisp.org>
44763
44764         Simplify calling convention of u*_conv_from_encoding.
44765         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
44766         u32_conv_from_encoding): Expect a resultbuf argument and return the
44767         result directly as a pointer.
44768         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
44769         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
44770         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
44771         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
44772         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
44773         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44774         Update.
44775         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
44776         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
44777         * lib/vasnprintf.c (VASNPRINTF): Update.
44778         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
44779         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
44780         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
44781         * NEWS: Mention the change.
44782
44783 2009-04-26  Bruno Haible  <bruno@clisp.org>
44784
44785         Simplify calling convention of u*_conv_to_encoding.
44786         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44787         u32_conv_to_encoding): Expect a resultbuf argument and return the
44788         result directly as a pointer.
44789         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44790         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
44791         freeing scaled_offsets if mem_iconveha failed.
44792         * lib/unicase/u-casexfrm.h (FUNC): Update.
44793         * lib/uninorm/u-normxfrm.h (FUNC): Update.
44794         * lib/vasnprintf.c (VASNPRINTF): Update.
44795         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
44796         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
44797         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
44798         * NEWS: Mention the change.
44799
44800 2009-04-26  Bruno Haible  <bruno@clisp.org>
44801
44802         Avoid test failures on AIX and OSF/1.
44803         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
44804         malloc(0).
44805         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44806         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44807         Likewise.
44808         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
44809         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
44810         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
44811         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
44812         * doc/posix-functions/malloc.texi: Document the portability problem
44813         related to malloc(0).
44814
44815 2009-04-26  Bruno Haible  <bruno@clisp.org>
44816
44817         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
44818         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
44819         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
44820
44821 2009-04-25  Bruno Haible  <bruno@clisp.org>
44822
44823         Avoid link error when creating a namespace clean library.
44824         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
44825         as macro with arguments if already defined as an alias.
44826         * lib/signbitf.c (gl_signbitf): Don't undefine.
44827         * lib/signbitd.c (gl_signbitd): Don't undefine.
44828         * lib/signbitl.c (gl_signbitl): Don't undefine.
44829
44830 2009-04-25  Jim Meyering  <meyering@redhat.com>
44831
44832         vc-list-files: fix another quoting bug
44833         * build-aux/vc-list-files: Avoid sed backslash expansion
44834         of pathological directory names.
44835
44836 2009-04-25  Eric Blake  <ebb9@byu.net>
44837
44838         vc-list-files: fix shell quoting error
44839         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
44840         timestamp.
44841
44842 2009-04-25  Jim Meyering  <meyering@redhat.com>
44843
44844         vc-list-files: restore lost functionality with subdir argument
44845         * build-aux/vc-list-files: When given a non-"." sub-directory
44846         argument, substitute the $dir/ prefix back onto each resulting name.
44847         Otherwise, coreutils' root_tests check would fail.
44848
44849 2009-04-24  Eric Blake  <ebb9@byu.net>
44850
44851         vc-list-files: ignore git symlinks
44852         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
44853         than ls-files, to ignore git symlinks.
44854
44855         maint.mk: import improvements from m4
44856         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
44857         (move_if_change): Delete unused macro.
44858         (news-date-check, vc-diff-check): Support VPATH builds.
44859         (announcement): Likewise.  Split --bootstrap-tools list...
44860         (boostrap-tools): ...into separate list, which can be overridden
44861         in cfg.mk.
44862         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
44863         requiring dependency on useless-if-before-free module.
44864         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
44865         Support VPATH builds.
44866
44867 2009-04-24  Jim Meyering  <meyering@redhat.com>
44868
44869         maint.mk: remove coreutils-specific rules and variables
44870         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
44871         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
44872         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
44873
44874         maint.mk: remove obsolete rule
44875         * top/maint.mk (rel-check): Remove rule.
44876         (WGET, WGETFLAGS): Remove now-unused variables.
44877
44878 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44879
44880         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
44881         consistency.
44882
44883         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
44884         '$(PATH_SEPARATOR)' instead of ':'.
44885
44886 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44887
44888         * lib/getopt1.c (main): Use 'const' for static array.
44889
44890 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44891
44892         * top/maint.mk: Sync with coreutils.
44893         * NEWS: Explain incompatibilities.
44894
44895 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44896             Bruno Haible  <bruno@clisp.org>
44897
44898         Fix cross-compilation results.
44899         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
44900         statement, as third argument of AC_TRY_RUN.
44901         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
44902         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
44903         Likewise.
44904         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44905         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
44906         Likewise.
44907         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44908         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
44909         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
44910
44911 2009-04-20  Bruno Haible  <bruno@clisp.org>
44912
44913         Avoid test failure on mingw.
44914         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
44915
44916 2009-04-20  Bruno Haible  <bruno@clisp.org>
44917
44918         Avoid compilation error on mingw.
44919         * modules/localename-tests (Depends-on): Add locale.
44920
44921 2009-04-19  Bruno Haible  <bruno@clisp.org>
44922
44923         Support for building a shared library on Windows platforms.
44924         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
44925         (main): Test the presence of UNINORM_NFC here.
44926         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
44927         (main): Test the presence of UNINORM_NFD here.
44928         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
44929         (main): Test the presence of UNINORM_NFKC here.
44930         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
44931         (main): Test the presence of UNINORM_NFKD here.
44932
44933 2009-04-19  Bruno Haible  <bruno@clisp.org>
44934
44935         Avoid a compiler warning.
44936         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
44937         Change type of variable 'sequence'.
44938
44939 2009-04-19  Bruno Haible  <bruno@clisp.org>
44940
44941         * modules/configmake (Makefile.am): When the contents of configmake.h
44942         does not change, arrange to preserve its modification time.
44943
44944 2009-04-17  Simon Josefsson  <simon@josefsson.org>
44945
44946         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
44947         gettext domain.
44948
44949 2009-04-16  Jim Meyering  <meyering@redhat.com>
44950
44951         useless-if-before-free: improve conversion code
44952         * build-aux/useless-if-before-free: Adjust code-in-comment to match
44953         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
44954
44955 2009-04-14  Bruno Haible  <bruno@clisp.org>
44956
44957         * modules/fcntl (Depends-on): Add extensions.
44958         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
44959
44960 2009-04-12  Ben Pfaff  <blp@gnu.org>
44961
44962         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
44963         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
44964
44965 2009-03-20  Ben Pfaff  <blp@gnu.org>
44966
44967         Make rename replace existing destinations on Windows.
44968         * m4/rename.m4: Add test for Mingw.
44969         * lib/rename.c: Add rename replacement that uses MoveFileEx with
44970         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
44971         * doc/posix-functions/rename.texi: Document.
44972
44973 2009-04-10  Bruno Haible  <bruno@clisp.org>
44974
44975         New include file "iconveh.h".
44976         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
44977         * lib/striconveh.h: Include it.
44978         (enum iconv_ilseq_handler): Remove definition.
44979         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
44980         striconveh.h.
44981         * lib/striconveha.c: Include striconveh.h.
44982         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
44983         * modules/striconveh (Files): Add lib/iconveh.h.
44984         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
44985         lib/striconveh.h.
44986
44987 2009-04-10  Bruno Haible  <bruno@clisp.org>
44988
44989         * lib/uniconv.h: Update comment.
44990
44991 2009-04-10  Bruno Haible  <bruno@clisp.org>
44992
44993         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
44994         always.
44995         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
44996         * lib/unistr/u16-mbtouc-aux.c: Likewise.
44997         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
44998         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
44999         "unistring-notinline.h", so that the function gets defined always.
45000         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
45001         * lib/unistr/u8-uctomb.c: Likewise.
45002         * lib/unistr/u16-mbtouc.c: Likewise.
45003         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
45004         * lib/unistr/u16-uctomb.c: Likewise.
45005         * lib/unistr/u32-mbtouc.c: Likewise.
45006         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
45007         * lib/unistr/u32-uctomb.c: Likewise.
45008
45009 2009-04-10  Bruno Haible  <bruno@clisp.org>
45010
45011         Mark 'utime' obsolete.
45012         * modules/utime (Status, Notice): New sections.
45013         Suggested by Jim Meyering.
45014
45015         Fix cross-compile guess for utime test.
45016         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
45017         autoconf.
45018         * doc/posix-functions/utime.texi: Give more precisions.
45019         Reported by Jan <ipif@ymail.com>.
45020
45021 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
45022
45023         filevercmp: correct today's change
45024         * lib/filevercmp.c: Also handle coreutils' test inputs.
45025         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
45026
45027         Fix regression in 'filevercmp' module. Thanks Sven Joachim
45028         for reporting it.
45029         * lib/filevercmp.c: Special handle for "", "." and "..".
45030         * tests/test-filevercmp.c: Enlarge the set suite.
45031
45032 2009-04-07  Jim Meyering  <meyering@redhat.com>
45033
45034         useless-if-before-free: show how to remove braced useless free, too
45035         * build-aux/useless-if-before-free: still only in a comment, though.
45036
45037 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
45038
45039         maint.mk: import changes to syntax-check macros from coreutils
45040         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
45041         Use them in the relevant macros.
45042
45043 2009-04-06  Bruno Haible  <bruno@clisp.org>
45044
45045         Fix unportable use of bit-fields.
45046         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
45047         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
45048         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
45049
45050 2009-04-06  Bruno Haible  <bruno@clisp.org>
45051
45052         Avoid test failures on AIX and OSF/1.
45053         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
45054         that malloc(0) = NULL.
45055         * tests/unicase/test-u8-tolower.c (check): Likewise.
45056         * tests/unicase/test-u8-totitle.c (check): Likewise.
45057         * tests/unicase/test-u8-toupper.c (check): Likewise.
45058         * tests/unicase/test-u16-casefold.c (check): Likewise.
45059         * tests/unicase/test-u16-tolower.c (check): Likewise.
45060         * tests/unicase/test-u16-totitle.c (check): Likewise.
45061         * tests/unicase/test-u16-toupper.c (check): Likewise.
45062         * tests/unicase/test-u32-casefold.c (check): Likewise.
45063         * tests/unicase/test-u32-tolower.c (check): Likewise.
45064         * tests/unicase/test-u32-totitle.c (check): Likewise.
45065         * tests/unicase/test-u32-toupper.c (check): Likewise.
45066         * tests/uninorm/test-u8-nfc.c (check): Likewise.
45067         * tests/uninorm/test-u8-nfd.c (check): Likewise.
45068         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
45069         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
45070         * tests/uninorm/test-u16-nfc.c (check): Likewise.
45071         * tests/uninorm/test-u16-nfd.c (check): Likewise.
45072         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
45073         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
45074         * tests/uninorm/test-u32-nfc.c (check): Likewise.
45075         * tests/uninorm/test-u32-nfd.c (check): Likewise.
45076         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
45077         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
45078
45079 2009-04-05  Bruno Haible  <bruno@clisp.org>
45080
45081         Work around an autoconf limitation.
45082         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
45083         comment line if it would be longer than 3 KB.
45084
45085 2009-04-05  Bruno Haible  <bruno@clisp.org>
45086
45087         Avoid test failure with libiconv-1.13.
45088         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
45089         of the expected test results.
45090
45091 2009-04-05  Bruno Haible  <bruno@clisp.org>
45092
45093         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
45094         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
45095         that it should be installed.
45096
45097 2009-04-05  Bruno Haible  <bruno@clisp.org>
45098
45099         * gnulib-tool: New option --copy-file.
45100         (func_usage): Document it.
45101         (func_dest_tmpfilename): Moved out of func_import.
45102         (func_add_file, func_update_file): New functions, extracted from
45103         func_import.
45104         (func_import): Update.
45105
45106 2009-04-05  Karl Berry  <karl@gnu.org>
45107
45108         * README: prominently mention gnulib-tool.
45109         Rearrange sections so getting the code is near the top.
45110
45111 2009-04-05  Bruno Haible  <bruno@clisp.org>
45112
45113         * lib/unicase.h: Mention u*_cmp2.
45114         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45115         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
45116         * lib/unicase/ulc-casecmp.c: Likewise.
45117         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
45118         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
45119         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
45120         unistr/u8-cmp.
45121         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
45122         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
45123         unistr/u16-cmp.
45124         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
45125         unistr/u32-cmp.
45126
45127         * lib/uninorm.h: Mention u*_cmp2.
45128         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45129         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
45130         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
45131         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
45132         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
45133         unistr/u8-cmp.
45134         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
45135         unistr/u16-cmp.
45136         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
45137         unistr/u32-cmp.
45138
45139         New module 'unistr/u32-cmp2'.
45140         * lib/unistr/u32-cmp2.c: New file.
45141         * modules/unistr/u32-cmp2: New file.
45142
45143         New module 'unistr/u16-cmp2'.
45144         * lib/unistr/u16-cmp2.c: New file.
45145         * modules/unistr/u16-cmp2: New file.
45146
45147         New module 'unistr/u8-cmp2'.
45148         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
45149         * lib/unistr/u8-cmp2.c: New file.
45150         * lib/unistr/u-cmp2.h: New file.
45151         * modules/unistr/u8-cmp2: New file.
45152
45153 2009-04-05  Bruno Haible  <bruno@clisp.org>
45154
45155         * lib/unictype.h (uc_property_is_valid): New macro.
45156         * tests/unictype/test-pr_byname.c (main): Use it.
45157
45158         * lib/unistr.h: Doc fixes.
45159         * lib/uniconv.h: Doc fixes.
45160         * lib/unictype.h: Doc fixes.
45161
45162 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
45163
45164         Port coreutils 7.2 to Solaris 8.
45165
45166         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
45167         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
45168         for Solaris 8.  This is a bit of a hack, as it means it's the
45169         caller's responsibility to add -lnsl if needed, but most likely it
45170         won't be needed since only getaddrinfo uses this and getaddrinfo
45171         isn't needed on Solaris 8.
45172
45173         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
45174         problem to Solaris 8 encountered with coreutils 7.2, which
45175         resulted in a message "fnmatch.c:292: warning: passing argument 4
45176         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
45177         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
45178
45179 2009-04-03  Simon Josefsson  <simon@josefsson.org>
45180
45181         * m4/ld-version-script.m4: Add FIXME comment.
45182
45183 2009-04-02  Simon Josefsson  <simon@josefsson.org>
45184
45185         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
45186         SOVERSION variable.
45187
45188 2009-04-02  Bruno Haible  <bruno@clisp.org>
45189
45190         * Makefile (info, html, dvi, pdf): Combine the rules.
45191         Suggested by Jim Meyering.
45192
45193 2009-04-01  Bruno Haible  <bruno@clisp.org>
45194
45195         * Makefile (info, html, dvi, pdf): New targets.
45196         Reported by Reuben Thomas <rrt@sc3d.org>.
45197
45198 2009-04-01  Bruno Haible  <bruno@clisp.org>
45199
45200         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
45201         can be put into PATH.
45202         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
45203
45204 2009-04-01  Bruno Haible  <bruno@clisp.org>
45205
45206         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
45207
45208 2009-04-01  Bruno Haible  <bruno@clisp.org>
45209
45210         Rename module 'visibility'.
45211         * modules/lib-symbol-visibility: Renamed from modules/visibility.
45212         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
45213         * doc/gnulib.texi: Update.
45214         * MODULES.html.sh (Misc): Update.
45215         * NEWS: Mention the change.
45216
45217 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45218
45219         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
45220         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
45221         Eric Blake <ebb9@byu.net> for review.
45222         * MODULES.html.sh: Add lib-msvc-compat.
45223         * doc/gnulib.texi: Link to new section.
45224         * m4/ld-output-def.m4: New file.
45225         * doc/ld-output-def.texi: New file.
45226
45227 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45228
45229         Rename ld-version-script to lib-symbol-versions.  Suggested by
45230         Bruno Haible <bruno@clisp.org>.
45231         * modules/ld-version-script: Renamed to lib-symbol-versions.
45232         * doc/ld-version-script.texi: Fix module name.
45233         * MODULES.html.sh: Add lib-symbol-versions.
45234
45235 2009-03-31  Simon Josefsson  <simon@josefsson.org>
45236
45237         * modules/u64-tests: New file.
45238         * tests/test-u64.c: New file.
45239
45240 2009-03-04  Simon Josefsson  <simon@josefsson.org>
45241
45242         * MODULES.html.sh: Mention u64.
45243         * modules/u64: New module.
45244         * modules/crypto/sha512: Depend on u64 module instead of providing
45245         u64.h.
45246
45247 2009-03-27  Eric Blake  <ebb9@byu.net>
45248
45249         test-strerror: make debugging EAI_SYSTEM easier
45250         * modules/getaddrinfo-tests (Depends-on): Add strerror.
45251         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
45252         failure was EAI_SYSTEM.
45253
45254 2009-03-25  Bruno Haible  <bruno@clisp.org>
45255
45256         Fix a problem with --enable-relocatable on Solaris 7.
45257         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
45258         since 2008-02-24.
45259
45260 2009-03-25  Eric Blake  <ebb9@byu.net>
45261
45262         test-sockets: avoid gcc warning
45263         * tests/test-sockets.c (main): Silence compiler warning.
45264
45265 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
45266
45267         New modules nproc, pthread, contributed by Glen Lenker.
45268
45269         * MODULES.html.sh: Add pthread, nproc.
45270         * lib/nproc.c: New file.
45271         * lib/nproc.h: New file.
45272         * lib/pthread.in.h: New file.
45273         * m4/pthread.m4: New file.
45274         * modules/nproc: New file.
45275         * modules/pthread: New file.
45276
45277 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45278
45279         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
45280         New variable.
45281
45282 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
45283
45284         filevercmp: handle simple~ and numbered.~3~ backup suffixes
45285         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
45286         * tests/test-filevercmp.c: Add tests for backup suffixes.
45287
45288 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45289
45290         * modules/stdlib (Depends-on): Add stdint, needed when defining
45291         struct random_data on, for example, HP-UX 10.20.  Reported by
45292         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45293
45294 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45295
45296         * lib/readline.c (readline): Call fflush on stdout after printing
45297         prompt.
45298
45299 2009-03-20  Bruno Haible  <bruno@clisp.org>
45300
45301         Remove dependency from 'close' module to -lws2_32 on native Windows.
45302         * lib/close-hook.h: New file.
45303         * lib/close-hook.c: New file.
45304         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
45305         w32sock.h.
45306         (_gl_close_fd_maybe_socket): Remove function.
45307         (rpl_close): Invoke execute_all_close_hooks instead of
45308         _gl_close_fd_maybe_socket.
45309         * lib/sockets.c: Include close-hook.h, w32sock.h.
45310         (close_fd_maybe_socket): New function, essentially from lib/close.c.
45311         (close_sockets_hook): New variable.
45312         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
45313         (gl_sockets_cleanup): Unregister it.
45314         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
45315         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
45316         * modules/close-hook: New file.
45317         * modules/close (Files): Remove lib/w32sock.h.
45318         (Depends-on): Add close-hook.
45319         (Link): Remove section.
45320         * modules/sockets (Files): Add lib/w32sock.h.
45321         (Depends-on): Add close-hook.
45322         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
45323         invocation.
45324         * NEWS: Mention that LIB_CLOSE is gone.
45325
45326 2009-03-23  Eric Blake  <ebb9@byu.net>
45327
45328         signal-tests: test previous patch
45329         * tests/test-signal.c: New file.
45330         * modules/signal-tests: Likewise.
45331
45332         signal.h: always support 'volatile sig_atomic_t'
45333         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
45334         (gl_SIGNAL_H_DEFAULTS): Add a default.
45335         * modules/signal (Makefile.am): Substitute if needed.
45336         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
45337         users can blindly add volatile.
45338         * doc/posix-headers/signal.texi (signal.h): Document it.
45339         Reported by Matthew Woehlke.
45340
45341 2009-03-23  Jim Meyering  <meyering@redhat.com>
45342
45343         pathmax: PATH_MAX: use pathconf only when available
45344         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
45345         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
45346         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
45347         This avoids a link failure in a PSP cross-compilation environment
45348         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
45349
45350         * lib/vasnprintf.c (divide): Fix typo in comment.
45351
45352 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45353
45354         * gnulib-tool (func_filter_filelist): Fix comment.
45355
45356 2009-03-20  Bruno Haible  <bruno@clisp.org>
45357
45358         Make sockets.h self-contained.
45359         * lib/sockets.c: Include sockets.h first.
45360         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
45361
45362 2009-03-19  Eric Blake  <ebb9@byu.net>
45363
45364         doc: mention more functions added in cygwin 1.7.0
45365         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
45366         addition.
45367         * doc/posix-functions/log2f.texi: Likewise.
45368
45369 2009-03-19  Jim Meyering  <meyering@redhat.com>
45370
45371         fsusage: avoid syntax error due to statement-before-declaration
45372         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
45373         after all declarations.  Reported by Matthew Woehlke in
45374         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
45375
45376 2009-03-18  Eric Blake  <ebb9@byu.net>
45377
45378         build-aux/compile: sync from automake
45379         * build-aux/compile: New file, from automake.
45380         * config/srclist.txt: Mention build-aux/compile.
45381
45382 2009-03-17  Bruno Haible  <bruno@clisp.org>
45383
45384         * lib/git-merge-changelog.c: Fix typo in comment.
45385         Reported by Reuben Thomas <rrt@sc3d.org>.
45386
45387 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
45388
45389         * m4/regex.m4: update and improve help for
45390         --without-included-regex.
45391
45392 2009-03-17  Simon Josefsson  <simon@josefsson.org>
45393
45394         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
45395         failure on missing include files.
45396
45397 2009-03-17  Eric Blake  <ebb9@byu.net>
45398
45399         doc: mention more functions added in cygwin 1.7.0
45400         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
45401         addition.
45402         * doc/posix-functions/fwscanf.texi: Likewise.
45403         * doc/posix-functions/swprintf.texi: Likewise.
45404         * doc/posix-functions/swscanf.texi: Likewise.
45405         * doc/posix-functions/vfwprintf.texi: Likewise.
45406         * doc/posix-functions/vfwscanf.texi: Likewise.
45407         * doc/posix-functions/vswprintf.texi: Likewise.
45408         * doc/posix-functions/vswscanf.texi: Likewise.
45409         * doc/posix-functions/vwprintf.texi: Likewise.
45410         * doc/posix-functions/vwscanf.texi: Likewise.
45411         * doc/posix-functions/wcscasecmp.texi: Likewise.
45412         * doc/posix-functions/wcsdup.texi: Likewise.
45413         * doc/posix-functions/wcsftime.texi: Likewise.
45414         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45415         * doc/posix-functions/wprintf.texi: Likewise.
45416         * doc/posix-functions/wscanf.texi: Likewise.
45417         * doc/glibc-functions/gethostbyname2.texi: Likewise.
45418
45419 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45420
45421         maint.mk: really add $(AM_MAKEFLAGS)
45422         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
45423         was inadvertently omitted in the last commit.
45424         Spotted by Bruno Haible.
45425
45426         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
45427         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
45428         $(AM_MAKEFLAGS)' rather than plain `make'.
45429
45430         gnulib-tool: execute $MAKE not make
45431         * gnulib-tool: Default $MAKE to 'make'.
45432         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
45433         than make.  Initialize $MAKE in the do-autobuild script.
45434
45435         gnulib-tool: use $MAKE not make in generated files
45436         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
45437         make, in generated files.  Initialize $MAKE in the do-autobuild
45438         script.
45439
45440         * top/GNUmakefile (_have-git-version-gen): Fix typo.
45441
45442         GNUmakefile: disable parallelism only for multiple, recursive targets
45443         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
45444         additions in the Makefile.
45445         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
45446         by Automake.
45447         (.NOTPARALLEL): Only disable parallel builds if multiple targets
45448         are listed on the command line and at least one of them is
45449         listed in $(ALL_RECURSIVE_TARGETS).
45450
45451 2009-03-14  Bruno Haible  <bruno@clisp.org>
45452
45453         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
45454         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
45455         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
45456         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
45457         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
45458         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
45459         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
45460         unistr/u8-uctomb.
45461         * modules/unistr/u8-strchr (Depends-on): Likewise.
45462         * modules/unistr/u8-strrchr (Depends-on): Likewise.
45463         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
45464         unistr/u16-uctomb.
45465         * modules/unistr/u16-strchr (Depends-on): Likewise.
45466         * modules/unistr/u16-strrchr (Depends-on): Likewise.
45467
45468 2009-03-12  Bruno Haible  <bruno@clisp.org>
45469
45470         Work around select() bug on Interix 3.5.
45471         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
45472         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
45473         * m4/select.m4: New file.
45474         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
45475         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
45476         * modules/select (Files): Add m4/select.m4.
45477         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
45478         * modules/nanosleep (Depends-on): Add select.
45479         * modules/poll (Depends-on): Likewise.
45480         * doc/posix-functions/select.texi: Mention the Interix bug.
45481         Reported by Markus Duft <mduft@gentoo.org>.
45482
45483         * lib/select.c: Renamed from lib/winsock-select.c.
45484         * modules/select (Files): Add lib/select.c, remove
45485         lib/winsock-select.c.
45486         (configure.ac): Update.
45487
45488 2009-03-12  Jim Meyering  <meyering@redhat.com>
45489
45490         avoid gcc warnings about unused macro definitions
45491         * lib/readtokens.c (STREQ): Remove unused definition.
45492         * lib/xmalloc.c (SIZE_MAX): Likewise.
45493         * lib/openat-die.c (N_): Likewise.
45494         * lib/mountlist.c (SIZE_MAX): Remove definition.
45495         Instead, include <stdint.h>.
45496         * lib/readutmp.c: Likewise.
45497         * modules/readutmp (Depends-on): Add stdint.
45498         * modules/mountlist (Depends-on): Add stdint.
45499         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
45500
45501 2009-03-10  Bruno Haible  <bruno@clisp.org>
45502
45503         Tests for module 'mbmemcasecoll'.
45504         * modules/mbmemcasecoll-tests: New file.
45505         * tests/test-mbmemcasecoll1.sh: New file.
45506         * tests/test-mbmemcasecoll2.sh: New file.
45507         * tests/test-mbmemcasecoll3.sh: New file.
45508         * tests/test-mbmemcasecoll.c: New file.
45509
45510         New module 'mbmemcasecoll'.
45511         * lib/mbmemcasecoll.h: New file.
45512         * lib/mbmemcasecoll.c: New file.
45513         * modules/mbmemcasecoll: New file.
45514
45515         * tests/test-mbmemcasecmp.h: New file, extracted from
45516         tests/test-mbmemcasecmp.c.
45517         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
45518         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
45519         (main): Update.
45520         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
45521
45522 2009-03-09  Bruno Haible  <bruno@clisp.org>
45523
45524         Tests for module 'mbmemcasecmp'.
45525         * modules/mbmemcasecmp-tests: New file.
45526         * tests/test-mbmemcasecmp1.sh: New file.
45527         * tests/test-mbmemcasecmp2.sh: New file.
45528         * tests/test-mbmemcasecmp3.sh: New file.
45529         * tests/test-mbmemcasecmp.c: New file.
45530
45531         New module 'mbmemcasecmp'.
45532         * lib/mbmemcasecmp.h: New file.
45533         * lib/mbmemcasecmp.c: New file.
45534         * modules/mbmemcasecmp: New file.
45535
45536 2009-03-09  Bruno Haible  <bruno@clisp.org>
45537
45538         Tests for module 'unicase/ulc-casecoll'.
45539         * modules/unicase/ulc-casecoll-tests: New file.
45540         * tests/unicase/test-ulc-casecoll1.sh: New file.
45541         * tests/unicase/test-ulc-casecoll2.sh: New file.
45542         * tests/unicase/test-ulc-casecoll.c: New file.
45543
45544         New module 'unicase/ulc-casecoll'.
45545         * lib/unicase.h (ulc_casecoll): New declaration.
45546         * lib/unicase/ulc-casecoll.c: New file.
45547         * modules/unicase/ulc-casecoll: New file.
45548
45549         New module 'unicase/ulc-casexfrm'.
45550         * lib/unicase.h (ulc_casexfrm): New declaration.
45551         * lib/unicase/ulc-casexfrm.c: New file.
45552         * modules/unicase/ulc-casexfrm: New file.
45553
45554 2009-03-09  Bruno Haible  <bruno@clisp.org>
45555
45556         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
45557         invocations.
45558
45559         * m4/mbscasecmp.m4: Remove file.
45560         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
45561         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
45562
45563         * m4/mbscasestr.m4: Remove file.
45564         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
45565         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
45566
45567         * m4/mbschr.m4: Remove file.
45568         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
45569         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
45570
45571         * m4/mbscspn.m4: Remove file.
45572         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
45573         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
45574
45575         * m4/mbslen.m4: Remove file.
45576         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
45577         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
45578
45579         * m4/mbsncasecmp.m4: Remove file.
45580         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
45581         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
45582
45583         * m4/mbsnlen.m4: Remove file.
45584         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
45585         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
45586
45587         * m4/mbspbrk.m4: Remove file.
45588         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
45589         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
45590
45591         * m4/mbspcasecmp.m4: Remove file.
45592         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
45593         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
45594
45595         * m4/mbsrchr.m4: Remove file.
45596         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
45597         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
45598
45599         * m4/mbssep.m4: Remove file.
45600         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
45601         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
45602
45603         * m4/mbsspn.m4: Remove file.
45604         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
45605         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
45606
45607         * m4/mbsstr.m4: Remove file.
45608         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
45609         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
45610
45611         * m4/mbstok_r.m4: Remove file.
45612         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
45613         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
45614
45615         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
45616
45617         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
45618         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
45619
45620         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
45621
45622 2009-03-08  Bruno Haible  <bruno@clisp.org>
45623
45624         Tests for module 'unicase/ulc-casecmp'.
45625         * modules/unicase/ulc-casecmp-tests: New file.
45626         * tests/unicase/test-ulc-casecmp1.sh: New file.
45627         * tests/unicase/test-ulc-casecmp2.sh: New file.
45628         * tests/unicase/test-ulc-casecmp.c: New file.
45629
45630         New module 'unicase/ulc-casecmp'.
45631         * lib/unicase.h (ulc_casecmp): New declaration.
45632         * lib/unicase/ulc-casecmp.c: New file.
45633         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
45634         'const SRC_UNIT *'.
45635         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
45636         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
45637         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
45638         * modules/unicase/ulc-casecmp: New file.
45639
45640         Tests for module 'unicase/u32-is-cased'.
45641         * modules/unicase/u32-is-cased-tests: New file.
45642         * tests/unicase/test-u32-is-cased.c: New file.
45643
45644         Tests for module 'unicase/u16-is-cased'.
45645         * modules/unicase/u16-is-cased-tests: New file.
45646         * tests/unicase/test-u16-is-cased.c: New file.
45647
45648         Tests for module 'unicase/u8-is-cased'.
45649         * modules/unicase/u8-is-cased-tests: New file.
45650         * tests/unicase/test-u8-is-cased.c: New file.
45651         * tests/unicase/test-is-cased.h: New file.
45652
45653         New module 'unicase/u32-is-cased'.
45654         * lib/unicase/u32-is-cased.c: New file.
45655         * modules/unicase/u32-is-cased: New file.
45656
45657         New module 'unicase/u16-is-cased'.
45658         * lib/unicase/u16-is-cased.c: New file.
45659         * modules/unicase/u16-is-cased: New file.
45660
45661         New module 'unicase/u8-is-cased'.
45662         * lib/unicase/u8-is-cased.c: New file.
45663         * lib/unicase/u-is-cased.h: New file.
45664         * modules/unicase/u8-is-cased: New file.
45665
45666         Tests for module 'unicase/u32-is-casefolded'.
45667         * modules/unicase/u32-is-casefolded-tests: New file.
45668         * tests/unicase/test-u32-is-casefolded.c: New file.
45669
45670         Tests for module 'unicase/u16-is-casefolded'.
45671         * modules/unicase/u16-is-casefolded-tests: New file.
45672         * tests/unicase/test-u16-is-casefolded.c: New file.
45673
45674         Tests for module 'unicase/u8-is-casefolded'.
45675         * modules/unicase/u8-is-casefolded-tests: New file.
45676         * tests/unicase/test-u8-is-casefolded.c: New file.
45677         * tests/unicase/test-is-casefolded.h: New file.
45678
45679         New module 'unicase/u32-is-casefolded'.
45680         * lib/unicase/u32-is-casefolded.c: New file.
45681         * modules/unicase/u32-is-casefolded: New file.
45682
45683         New module 'unicase/u16-is-casefolded'.
45684         * lib/unicase/u16-is-casefolded.c: New file.
45685         * modules/unicase/u16-is-casefolded: New file.
45686
45687         New module 'unicase/u8-is-casefolded'.
45688         * lib/unicase/u8-is-casefolded.c: New file.
45689         * modules/unicase/u8-is-casefolded: New file.
45690
45691         Tests for module 'unicase/u32-is-titlecase'.
45692         * modules/unicase/u32-is-titlecase-tests: New file.
45693         * tests/unicase/test-u32-is-titlecase.c: New file.
45694
45695         Tests for module 'unicase/u16-is-titlecase'.
45696         * modules/unicase/u16-is-titlecase-tests: New file.
45697         * tests/unicase/test-u16-is-titlecase.c: New file.
45698
45699         Tests for module 'unicase/u8-is-titlecase'.
45700         * modules/unicase/u8-is-titlecase-tests: New file.
45701         * tests/unicase/test-u8-is-titlecase.c: New file.
45702         * tests/unicase/test-is-titlecase.h: New file.
45703
45704         New module 'unicase/u32-is-titlecase'.
45705         * lib/unicase/u32-is-titlecase.c: New file.
45706         * modules/unicase/u32-is-titlecase: New file.
45707
45708         New module 'unicase/u16-is-titlecase'.
45709         * lib/unicase/u16-is-titlecase.c: New file.
45710         * modules/unicase/u16-is-titlecase: New file.
45711
45712         New module 'unicase/u8-is-titlecase'.
45713         * lib/unicase/u8-is-titlecase.c: New file.
45714         * modules/unicase/u8-is-titlecase: New file.
45715
45716         Tests for module 'unicase/u32-is-lowercase'.
45717         * modules/unicase/u32-is-lowercase-tests: New file.
45718         * tests/unicase/test-u32-is-lowercase.c: New file.
45719
45720         Tests for module 'unicase/u16-is-lowercase'.
45721         * modules/unicase/u16-is-lowercase-tests: New file.
45722         * tests/unicase/test-u16-is-lowercase.c: New file.
45723
45724         Tests for module 'unicase/u8-is-lowercase'.
45725         * modules/unicase/u8-is-lowercase-tests: New file.
45726         * tests/unicase/test-u8-is-lowercase.c: New file.
45727         * tests/unicase/test-is-lowercase.h: New file.
45728
45729         New module 'unicase/u32-is-lowercase'.
45730         * lib/unicase/u32-is-lowercase.c: New file.
45731         * modules/unicase/u32-is-lowercase: New file.
45732
45733         New module 'unicase/u16-is-lowercase'.
45734         * lib/unicase/u16-is-lowercase.c: New file.
45735         * modules/unicase/u16-is-lowercase: New file.
45736
45737         New module 'unicase/u8-is-lowercase'.
45738         * lib/unicase/u8-is-lowercase.c: New file.
45739         * modules/unicase/u8-is-lowercase: New file.
45740
45741         Tests for module 'unicase/u32-is-uppercase'.
45742         * modules/unicase/u32-is-uppercase-tests: New file.
45743         * tests/unicase/test-u32-is-uppercase.c: New file.
45744
45745         Tests for module 'unicase/u16-is-uppercase'.
45746         * modules/unicase/u16-is-uppercase-tests: New file.
45747         * tests/unicase/test-u16-is-uppercase.c: New file.
45748
45749         Tests for module 'unicase/u8-is-uppercase'.
45750         * modules/unicase/u8-is-uppercase-tests: New file.
45751         * tests/unicase/test-u8-is-uppercase.c: New file.
45752         * tests/unicase/test-is-uppercase.h: New file.
45753
45754         New module 'unicase/u32-is-uppercase'.
45755         * lib/unicase/u32-is-uppercase.c: New file.
45756         * modules/unicase/u32-is-uppercase: New file.
45757
45758         New module 'unicase/u16-is-uppercase'.
45759         * lib/unicase/u16-is-uppercase.c: New file.
45760         * modules/unicase/u16-is-uppercase: New file.
45761
45762         New module 'unicase/u8-is-uppercase'.
45763         * lib/unicase/u8-is-uppercase.c: New file.
45764         * modules/unicase/u8-is-uppercase: New file.
45765
45766         New module 'unicase/u32-is-invariant'.
45767         * lib/unicase/u32-is-invariant.c: New file.
45768         * modules/unicase/u32-is-invariant: New file.
45769
45770         New module 'unicase/u16-is-invariant'.
45771         * lib/unicase/u16-is-invariant.c: New file.
45772         * modules/unicase/u16-is-invariant: New file.
45773
45774         New module 'unicase/u8-is-invariant'.
45775         * lib/unicase/u8-is-invariant.c: New file.
45776         * lib/unicase/invariant.h: New file.
45777         * lib/unicase/u-is-invariant.h: New file.
45778         * modules/unicase/u8-is-invariant: New file.
45779
45780         Tests for module 'unicase/u32-casecoll'.
45781         * modules/unicase/u32-casecoll-tests: New file.
45782         * tests/unicase/test-u32-casecoll.c: New file.
45783
45784         Tests for module 'unicase/u16-casecoll'.
45785         * modules/unicase/u16-casecoll-tests: New file.
45786         * tests/unicase/test-u16-casecoll.c: New file.
45787
45788         Tests for module 'unicase/u8-casecoll'.
45789         * modules/unicase/u8-casecoll-tests: New file.
45790         * tests/unicase/test-u8-casecoll.c: New file.
45791
45792         New module 'unicase/u32-casecoll'.
45793         * lib/unicase/u32-casecoll.c: New file.
45794         * modules/unicase/u32-casecoll: New file.
45795
45796         New module 'unicase/u16-casecoll'.
45797         * lib/unicase/u16-casecoll.c: New file.
45798         * modules/unicase/u16-casecoll: New file.
45799
45800         New module 'unicase/u8-casecoll'.
45801         * lib/unicase/u8-casecoll.c: New file.
45802         * lib/unicase/u-casecoll.h: New file.
45803         * modules/unicase/u8-casecoll: New file.
45804
45805         New module 'unicase/u32-casexfrm'.
45806         * lib/unicase/u32-casexfrm.c: New file.
45807         * modules/unicase/u32-casexfrm: New file.
45808
45809         New module 'unicase/u16-casexfrm'.
45810         * lib/unicase/u16-casexfrm.c: New file.
45811         * modules/unicase/u16-casexfrm: New file.
45812
45813         New module 'unicase/u8-casexfrm'.
45814         * lib/unicase/u8-casexfrm.c: New file.
45815         * lib/unicase/u-casexfrm.h: New file.
45816         * modules/unicase/u8-casexfrm: New file.
45817
45818         Tests for module 'unicase/u32-casecmp'.
45819         * modules/unicase/u32-casecmp-tests: New file.
45820         * tests/unicase/test-u32-casecmp.c: New file.
45821
45822         Tests for module 'unicase/u16-casecmp'.
45823         * modules/unicase/u16-casecmp-tests: New file.
45824         * tests/unicase/test-u16-casecmp.c: New file.
45825
45826         Tests for module 'unicase/u8-casecmp'.
45827         * modules/unicase/u8-casecmp-tests: New file.
45828         * tests/unicase/test-u8-casecmp.c: New file.
45829         * tests/unicase/test-casecmp.h: New file.
45830
45831         New module 'unicase/u32-casecmp'.
45832         * lib/unicase/u32-casecmp.c: New file.
45833         * modules/unicase/u32-casecmp: New file.
45834
45835         New module 'unicase/u16-casecmp'.
45836         * lib/unicase/u16-casecmp.c: New file.
45837         * modules/unicase/u16-casecmp: New file.
45838
45839         New module 'unicase/u8-casecmp'.
45840         * lib/unicase/u8-casecmp.c: New file.
45841         * lib/unicase/u-casecmp.h: New file.
45842         * modules/unicase/u8-casecmp: New file.
45843
45844         Tests for module 'unicase/u32-casefold'.
45845         * modules/unicase/u32-casefold-tests: New file.
45846         * tests/unicase/test-u32-casefold.c: New file.
45847
45848         Tests for module 'unicase/u16-casefold'.
45849         * modules/unicase/u16-casefold-tests: New file.
45850         * tests/unicase/test-u16-casefold.c: New file.
45851
45852         Tests for module 'unicase/u8-casefold'.
45853         * modules/unicase/u8-casefold-tests: New file.
45854         * tests/unicase/test-u8-casefold.c: New file.
45855
45856         New module 'unicase/u32-casefold'.
45857         * lib/unicase/u32-casefold.c: New file.
45858         * modules/unicase/u32-casefold: New file.
45859
45860         New module 'unicase/u16-casefold'.
45861         * lib/unicase/u16-casefold.c: New file.
45862         * modules/unicase/u16-casefold: New file.
45863
45864         New module 'unicase/u8-casefold'.
45865         * lib/unicase/u8-casefold.c: New file.
45866         * lib/unicase/u-casefold.h: New file.
45867         * modules/unicase/u8-casefold: New file.
45868
45869         New module 'unicase/tocasefold'.
45870         * lib/unicase/casefold.h: New file.
45871         * lib/unicase/tocasefold.c: New file.
45872         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
45873         * modules/unicase/tocasefold: New file.
45874
45875         Tests for module 'unicase/u32-totitle'.
45876         * modules/unicase/u32-totitle-tests: New file.
45877         * tests/unicase/test-u32-totitle.c: New file.
45878
45879         Tests for module 'unicase/u16-totitle'.
45880         * modules/unicase/u16-totitle-tests: New file.
45881         * tests/unicase/test-u16-totitle.c: New file.
45882
45883         Tests for module 'unicase/u8-totitle'.
45884         * modules/unicase/u8-totitle-tests: New file.
45885         * tests/unicase/test-u8-totitle.c: New file.
45886
45887         New module 'unicase/u32-totitle'.
45888         * lib/unicase/u32-totitle.c: New file.
45889         * modules/unicase/u32-totitle: New file.
45890
45891         New module 'unicase/u16-totitle'.
45892         * lib/unicase/u16-totitle.c: New file.
45893         * modules/unicase/u16-totitle: New file.
45894
45895         New module 'unicase/u8-totitle'.
45896         * lib/unicase/u8-totitle.c: New file.
45897         * lib/unicase/u-totitle.h: New file.
45898         * modules/unicase/u8-totitle: New file.
45899
45900         Tests for module 'unicase/u32-tolower'.
45901         * modules/unicase/u32-tolower-tests: New file.
45902         * tests/unicase/test-u32-tolower.c: New file.
45903
45904         Tests for module 'unicase/u16-tolower'.
45905         * modules/unicase/u16-tolower-tests: New file.
45906         * tests/unicase/test-u16-tolower.c: New file.
45907
45908         Tests for module 'unicase/u8-tolower'.
45909         * modules/unicase/u8-tolower-tests: New file.
45910         * tests/unicase/test-u8-tolower.c: New file.
45911
45912         New module 'unicase/u32-tolower'.
45913         * lib/unicase/u32-tolower.c: New file.
45914         * modules/unicase/u32-tolower: New file.
45915
45916         New module 'unicase/u16-tolower'.
45917         * lib/unicase/u16-tolower.c: New file.
45918         * modules/unicase/u16-tolower: New file.
45919
45920         New module 'unicase/u8-tolower'.
45921         * lib/unicase/u8-tolower.c: New file.
45922         * modules/unicase/u8-tolower: New file.
45923
45924         Tests for module 'unicase/u32-toupper'.
45925         * modules/unicase/u32-toupper-tests: New file.
45926         * tests/unicase/test-u32-toupper.c: New file.
45927
45928         Tests for module 'unicase/u16-toupper'.
45929         * modules/unicase/u16-toupper-tests: New file.
45930         * tests/unicase/test-u16-toupper.c: New file.
45931
45932         Tests for module 'unicase/u8-toupper'.
45933         * modules/unicase/u8-toupper-tests: New file.
45934         * tests/unicase/test-u8-toupper.c: New file.
45935
45936         New module 'unicase/u32-toupper'.
45937         * lib/unicase/u32-toupper.c: New file.
45938         * modules/unicase/u32-toupper: New file.
45939
45940         New module 'unicase/u16-toupper'.
45941         * lib/unicase/u16-toupper.c: New file.
45942         * modules/unicase/u16-toupper: New file.
45943
45944         New module 'unicase/u8-toupper'.
45945         * lib/unicase/u8-toupper.c: New file.
45946         * modules/unicase/u8-toupper: New file.
45947
45948         New module 'unicase/u32-casemap'.
45949         * lib/unicase/u32-casemap.c: New file.
45950         * modules/unicase/u32-casemap: New file.
45951
45952         New module 'unicase/u16-casemap'.
45953         * lib/unicase/u16-casemap.c: New file.
45954         * modules/unicase/u16-casemap: New file.
45955
45956         New module 'unicase/u8-casemap'.
45957         * lib/unicase/unicasemap.h: New file.
45958         * lib/unicase/u8-casemap.c: New file.
45959         * lib/unicase/u-casemap.h: New file.
45960         * modules/unicase/u8-casemap: New file.
45961
45962         New module 'unicase/special-casing'.
45963         * lib/unicase/special-casing.h: New file.
45964         * lib/unicase/special-casing.c: New file.
45965         * lib/unicase/special-casing-table.gperf: New file, generated by
45966         gen-uni-tables.c.
45967         * modules/unicase/special-casing: New file.
45968
45969         Tests for module 'unicase/locale-language'.
45970         * modules/unicase/locale-language-tests: New file.
45971         * tests/unicase/test-locale-language.sh: New file.
45972         * tests/unicase/test-locale-language.c: New file.
45973
45974         New module 'unicase/locale-language'.
45975         * lib/unicase/locale-language.c: New file.
45976         * lib/unicase/locale-languages.gperf: New file.
45977         * modules/unicase/locale-language: New file.
45978
45979         Generate more tables for case conversion and case folding.
45980         * lib/gen-uni-tables.c (SCC_*): New enum items.
45981         (struct special_casing_rule): New type.
45982         (casing_rules, num_casing_rules, allocated_casing_rules): New
45983         variables.
45984         (add_casing_rule, fill_casing_rules): New functions.
45985         (struct casefold_rule): New type.
45986         (casefolding_rules, num_casefolding_rules,
45987         allocated_casefolding_rules): New variables.
45988         (fill_casefolding_rules): New function.
45989         (unicode_casefold): New variable.
45990         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
45991         sort_casing_rules, output_casing_rules): New functions.
45992         (main): Accept to more arguments: SpecialCasing.txt and
45993         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
45994         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
45995         Output mapping for casefolding.
45996
45997         * lib/unicase.h: Include stdbool.h, uninorm.h.
45998         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
45999         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
46000         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
46001         arguments.
46002         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
46003         resultp arguments.
46004         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
46005         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
46006         resultp arguments.
46007         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
46008         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
46009         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
46010         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
46011         declarations.
46012         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
46013
46014 2009-03-08  Bruno Haible  <bruno@clisp.org>
46015
46016         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46017         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
46018         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
46019         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46020
46021 2009-03-07  Bruno Haible  <bruno@clisp.org>
46022
46023         Adjust u*_normcmp, u*_normcoll API.
46024         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46025         u16_normcoll, u32_normcoll): Change failure conventions.
46026         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
46027         errno and return -1.
46028         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46029
46030 2009-03-07  Bruno Haible  <bruno@clisp.org>
46031
46032         Tests for module 'uninorm/u32-normcoll'.
46033         * modules/uninorm/u32-normcoll-tests: New file.
46034         * tests/uninorm/test-u32-normcoll.c: New file.
46035
46036         Tests for module 'uninorm/u16-normcoll'.
46037         * modules/uninorm/u16-normcoll-tests: New file.
46038         * tests/uninorm/test-u16-normcoll.c: New file.
46039
46040         Tests for module 'uninorm/u8-normcoll'.
46041         * modules/uninorm/u8-normcoll-tests: New file.
46042         * tests/uninorm/test-u8-normcoll.c: New file.
46043
46044 2009-03-07  Bruno Haible  <bruno@clisp.org>
46045
46046         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
46047         tests/uninorm/test-u32-normcmp.c.
46048         * tests/uninorm/test-u32-normcmp.c: Include it.
46049         (test_nonascii): New function, extracted from main. Add some more
46050         tests.
46051         (main): Invoke test_ascii and test_nonascii.
46052         * modules/uninorm/u32-normcmp-tests (Files): Add
46053         tests/uninorm/test-u32-normcmp.h.
46054         (Depends-on): Remove uninorm/u32-normcmp.
46055
46056         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
46057         tests/uninorm/test-u16-normcmp.c.
46058         * tests/uninorm/test-u16-normcmp.c: Include it.
46059         (test_nonascii): New function, extracted from main. Add some more
46060         tests.
46061         (main): Invoke test_ascii and test_nonascii.
46062         * modules/uninorm/u16-normcmp-tests (Files): Add
46063         tests/uninorm/test-u16-normcmp.h.
46064         (Depends-on): Remove uninorm/u16-normcmp.
46065
46066         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
46067         tests/uninorm/test-u8-normcmp.c.
46068         * tests/uninorm/test-u8-normcmp.c: Include it.
46069         (test_nonascii): New function, extracted from main. Add some more
46070         tests.
46071         (main): Invoke test_ascii and test_nonascii.
46072         * modules/uninorm/u8-normcmp-tests (Files): Add
46073         tests/uninorm/test-u8-normcmp.h.
46074         (Depends-on): Remove uninorm/u8-normcmp.
46075
46076 2009-03-07  Bruno Haible  <bruno@clisp.org>
46077
46078         New module 'uninorm/u32-normcoll'.
46079         * lib/uninorm/u32-normcoll.c: New file.
46080         * modules/uninorm/u32-normcoll: New file.
46081
46082         New module 'uninorm/u16-normcoll'.
46083         * lib/uninorm/u16-normcoll.c: New file.
46084         * modules/uninorm/u16-normcoll: New file.
46085
46086         New module 'uninorm/u8-normcoll'.
46087         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
46088         declarations.
46089         * lib/uninorm/u8-normcoll.c: New file.
46090         * lib/uninorm/u-normcoll.h: New file.
46091         * modules/uninorm/u8-normcoll: New file.
46092
46093         New module 'uninorm/u32-normxfrm'.
46094         * lib/uninorm/u32-normxfrm.c: New file.
46095         * modules/uninorm/u32-normxfrm: New file.
46096
46097         New module 'uninorm/u16-normxfrm'.
46098         * lib/uninorm/u16-normxfrm.c: New file.
46099         * modules/uninorm/u16-normxfrm: New file.
46100
46101         New module 'uninorm/u8-normxfrm'.
46102         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
46103         declarations.
46104         * lib/uninorm/u8-normxfrm.c: New file.
46105         * lib/uninorm/u-normxfrm.h: New file.
46106         * modules/uninorm/u8-normxfrm: New file.
46107
46108 2009-03-07  Bruno Haible  <bruno@clisp.org>
46109
46110         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
46111         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
46112         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
46113
46114 2009-03-07  Bruno Haible  <bruno@clisp.org>
46115
46116         New module 'memxfrm'.
46117         * lib/memxfrm.h: New file.
46118         * lib/memxfrm.c: New file.
46119         * modules/memxfrm: New file.
46120
46121 2009-03-07  Bruno Haible  <bruno@clisp.org>
46122
46123         New module 'memcmp2'.
46124         * lib/memcmp2.h: New file.
46125         * lib/memcmp2.c: New file.
46126         * modules/memcmp2: New file.
46127
46128 2009-03-07  Bruno Haible  <bruno@clisp.org>
46129
46130         Tests for module 'uninorm/decomposing-form'.
46131         * modules/uninorm/decomposing-form-tests: New file.
46132         * tests/uninorm/test-decomposing-form.c: New file.
46133
46134         New module 'uninorm/decomposing-form'.
46135         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
46136         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
46137         Add 'decomposing_variant' field.
46138         * lib/uninorm/decomposing-form.c: New file.
46139         * lib/uninorm/nfc.c (uninorm_nfc): Update.
46140         * lib/uninorm/nfd.c (uninorm_nfd): Update.
46141         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
46142         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
46143         * modules/uninorm/decomposing-form: New file.
46144         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
46145         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
46146
46147 2009-03-07  Bruno Haible  <bruno@clisp.org>
46148
46149         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
46150         strings.
46151
46152 2009-03-06  Bruno Haible  <bruno@clisp.org>
46153
46154         Tests for module 'uninorm/u32-normcmp'.
46155         * tests/uninorm/test-u32-normcmp.c: New file.
46156         * modules/uninorm/u32-normcmp-tests: New file.
46157
46158         Tests for module 'uninorm/u16-normcmp'.
46159         * tests/uninorm/test-u16-normcmp.c: New file.
46160         * modules/uninorm/u16-normcmp-tests: New file.
46161
46162         Tests for module 'uninorm/u8-normcmp'.
46163         * tests/uninorm/test-u8-normcmp.c: New file.
46164         * modules/uninorm/u8-normcmp-tests: New file.
46165
46166         New module 'uninorm/u32-normcmp'.
46167         * lib/uninorm/u32-normcmp.c: New file.
46168         * modules/uninorm/u32-normcmp: New file.
46169
46170         New module 'uninorm/u16-normcmp'.
46171         * lib/uninorm/u16-normcmp.c: New file.
46172         * modules/uninorm/u16-normcmp: New file.
46173
46174         New module 'uninorm/u8-normcmp'.
46175         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
46176         declarations.
46177         * lib/uninorm/u8-normcmp.c: New file.
46178         * lib/uninorm/u-normcmp.h: New file.
46179         * modules/uninorm/u8-normcmp: New file.
46180
46181 2009-03-06  Bruno Haible  <bruno@clisp.org>
46182
46183         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
46184         Reported by Eric Blake.
46185
46186 2009-03-06  Eric Blake  <ebb9@byu.net>
46187             Bruno Haible  <bruno@clisp.org>
46188
46189         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
46190         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
46191         condition.
46192         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46193         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
46194         condition.
46195         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46196
46197 2009-03-06  Eric Blake  <ebb9@byu.net>
46198
46199         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
46200         to avoid compiler warnings.
46201         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
46202
46203 2009-03-05  Bruno Haible  <bruno@clisp.org>
46204
46205         * tests/test-ftell.c (main): Disable test beyond end of file on
46206         FreeMiNT.
46207         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46208
46209 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
46210
46211         * lib/filevercmp.c: Move hidden files up in ordering.
46212         * tests/test-filevercmp.c: Add tests for hidden files.
46213
46214 2009-03-04  Bruno Haible  <bruno@clisp.org>
46215
46216         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
46217         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
46218         AM_CFLAGS.
46219         Reported by Simon Josefsson.
46220
46221 2009-03-03  Bruno Haible  <bruno@clisp.org>
46222
46223         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
46224         Reported by Simon Josefsson.
46225
46226         * doc/ld-version-script.texi: Update node reference.
46227
46228 2009-03-03  Bruno Haible  <bruno@clisp.org>
46229
46230         * modules/visibility (License): Change to 'unlimited'.
46231         Suggested by Simon Josefsson.
46232
46233 2009-03-03  Jim Meyering  <meyering@redhat.com>
46234
46235         unlinkdir: cannot_unlink_dir may modify process state
46236         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
46237         it's neither thread-safe nor appropriate for use in a library.
46238
46239 2009-03-03  Eric Blake  <ebb9@byu.net>
46240
46241         test-closein: silence test under Darwin
46242         * tests/test-closein.sh: Ignore stderr from cat, since we don't
46243         care if it dies from EPIPE or EBADF.
46244
46245 2009-03-03  Bruno Haible  <bruno@clisp.org>
46246
46247         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
46248         earlier.
46249         * doc/visibility.texi: Fix @node and @section.
46250
46251 2009-03-03  Simon Josefsson  <simon@josefsson.org>
46252
46253         * doc/gnulib.texi: Link to sections for ld version script and
46254         visibility.
46255         * doc/visibility.texi: Add @node and @section.
46256         * modules/ld-version-script: New module.
46257         * m4/ld-version-script.m4: New file.
46258         * doc/ld-version-script.texi: New file.
46259
46260 2009-03-02  David Lutterkort  <lutter@redhat.com>
46261
46262         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
46263         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46264
46265 2009-03-02  Bruno Haible  <bruno@clisp.org>
46266
46267         * doc/visibility.texi: Mention libtool's -export-symbols option.
46268
46269 2009-03-02  Jim Meyering  <meyering@redhat.com>
46270
46271         announce-gen: new option: --no-print-checksums
46272         * build-aux/announce-gen (usage): Describe it.
46273         (print_checksums): Print a newline here, not in the [*] footnote.
46274         (main): Honor it.
46275
46276 2009-03-01  Bruno Haible  <bruno@clisp.org>
46277
46278         Use socklen_t in the native Windows replacements prototypes.
46279         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
46280         instead of 'int'.
46281         * lib/getsockopt.c (rpl_getsockopt): Likewise.
46282         * lib/setsockopt.c (rpl_setsockopt): Likewise.
46283         * modules/getsockopt (Depends-on): Add socklen.
46284         * modules/setsockopt (Depends-on): Add socklen.
46285
46286 2009-03-01  Bruno Haible  <bruno@clisp.org>
46287
46288         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
46289         least 4.2.
46290
46291 2009-03-01  Eric Blake  <ebb9@byu.net>
46292             Bruno Haible  <bruno@clisp.org>
46293
46294         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
46295         error messages.
46296         * lib/wait-process.c (wait_subprocess): Omit error message about
46297         deadly signal sent to the child of termsigp != NULL.
46298
46299 2009-03-01  Eric Blake  <ebb9@byu.net>
46300
46301         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
46302
46303 2009-03-01  Bruno Haible  <bruno@clisp.org>
46304
46305         Avoid a gcc warning.
46306         * tests/test-sched.c (b): Make global.
46307         Reported by Eric Blake.
46308
46309 2009-01-19  Martin Lambers  <marlam@marlam.de>
46310
46311         Provide POSIX semantics for socket timeout options on W32.
46312         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
46313         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
46314         * modules/setsockopt: Depend on sys_time module for struct timeval.
46315         * modules/getsockopt: Depend on sys_time module for struct timeval.
46316
46317 2009-03-01  Simon Josefsson  <simon@josefsson.org>
46318
46319         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
46320         __USE_GNU, for consistency with netdb.in.h.
46321         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46322
46323 2009-03-01  Bruno Haible  <bruno@clisp.org>
46324
46325         More support for FreeMiNT.
46326         * lib/fseeko.c (rpl_fseeko): Complete last commit.
46327         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46328
46329 2009-03-01  Bruno Haible  <bruno@clisp.org>
46330
46331         More support for FreeMiNT.
46332         * lib/fpurge.c (fpurge): Correct last commit.
46333         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46334
46335 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46336
46337         Fix unportable awk script in vc-list-files.
46338         * build-aux/vc-list-files: In the replacement awk script, use
46339         substr with a second argument of 1, not zero.
46340         Report by Simon Josefsson.
46341
46342 2009-02-28  Bruno Haible  <bruno@clisp.org>
46343
46344         More support for FreeMiNT.
46345         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
46346         to FreeMiNT today.
46347         * lib/fwriting.c (fwriting): Likewise.
46348         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
46349
46350 2009-02-28  Bruno Haible  <bruno@clisp.org>
46351
46352         * tests/test-freadseek.c (main): Disable test beyond end of file on
46353         FreeMiNT.
46354         * tests/test-ftello.c (main): Likewise.
46355         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46356
46357 2009-02-28  Bruno Haible  <bruno@clisp.org>
46358
46359         Add tentative support for FreeMiNT.
46360         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
46361         * lib/fpurge.c (fpurge): Likewise.
46362         * lib/freadable.c (freadable): Likewise.
46363         * lib/freading.c (freading): Likewise.
46364         * lib/freadptr.c (freadptr): Likewise.
46365         * lib/freadseek.c (freadptrinc): Likewise.
46366         * lib/fseeko.c (rpl_fseeko): Likewise.
46367         * lib/fseterr.c (fseterr): Likewise.
46368         * lib/fwritable.c (fwritable): Likewise.
46369         * lib/fwriting.c (fwriting): Likewise.
46370         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
46371         Hourihane.
46372         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46373
46374 2009-02-28  Bruno Haible  <bruno@clisp.org>
46375
46376         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
46377         SIGCHLD.
46378         Reported by Jim Meyering.
46379
46380 2009-02-28  Bruno Haible  <bruno@clisp.org>
46381
46382         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
46383         Mention the results of these tests on various platforms.
46384         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
46385         order.
46386         * doc/posix-functions/printf.texi: Likewise.
46387         * doc/posix-functions/snprintf.texi: Likewise.
46388         * doc/posix-functions/sprintf.texi: Likewise.
46389         * doc/posix-functions/vfprintf.texi: Likewise.
46390         * doc/posix-functions/vprintf.texi: Likewise.
46391         * doc/posix-functions/vsnprintf.texi: Likewise.
46392         * doc/posix-functions/vsprintf.texi: Likewise.
46393         * doc/glibc-functions/obstack_printf.texi: Likewise.
46394         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
46395
46396 2009-02-28  Bruno Haible  <bruno@clisp.org>
46397
46398         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
46399         Reported by Loïc Minier <lool@dooz.org>.
46400
46401 2009-02-27  Bruno Haible  <bruno@clisp.org>
46402
46403         * gnulib-tool (func_import): Make the sed expression used to create the
46404         sed script for updating the .gitignore file POSIX compliant.
46405         Reported by Eric Blake.
46406
46407 2009-02-27  Bruno Haible  <bruno@clisp.org>
46408
46409         * gnulib-tool (sed): Don't alias as "sed --posix".
46410         Reported by Eric Blake.
46411
46412 2009-02-27  Bruno Haible  <bruno@clisp.org>
46413
46414         Avoid test link errors.
46415         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
46416         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
46417         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
46418         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
46419         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46420
46421 2009-02-27  Bruno Haible  <bruno@clisp.org>
46422
46423         Avoid spurious "(cached)" in configure output.
46424         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
46425         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
46426         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46427         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46428         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46429         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
46430         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46431         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
46432         Reported by Eric Blake.
46433
46434 2009-02-27  Eric Blake  <ebb9@byu.net>
46435
46436         printf: fix regression in previous patch
46437         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
46438
46439 2009-02-27  Bruno Haible  <bruno@clisp.org>
46440
46441         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
46442         value.
46443         * lib/stdint.in.h: Likewise.
46444         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
46445
46446 2009-02-27  Eric Blake  <ebb9@byu.net>
46447
46448         doc: mention more functions added in cygwin 1.7.0
46449         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
46450         addition.
46451         * doc/posix-functions/open_wmemstream.texi: Likewise.
46452         * doc/posix-functions/wcsnlen.texi: Likewise.
46453         * doc/posix-functions/wcsnrtombs.texi: Likewise.
46454         * doc/posix-functions/wcstod.texi: Likewise.
46455         * doc/posix-functions/wcstof.texi: Likewise.
46456         * doc/posix-functions/wcstoimax.texi: Likewise.
46457         * doc/posix-functions/wcstok.texi: Likewise.
46458         * doc/posix-functions/wcstoumax.texi: Likewise.
46459
46460         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
46461         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
46462         * doc/posix-functions/fprintf.texi: Update.
46463         * doc/posix-functions/printf.texi: Update.
46464         * doc/posix-functions/snprintf.texi: Update.
46465         * doc/posix-functions/sprintf.texi: Update.
46466         * doc/posix-functions/vfprintf.texi: Update.
46467         * doc/posix-functions/vprintf.texi: Update.
46468         * doc/posix-functions/vsnprintf.texi: Update.
46469         * doc/posix-functions/vsprintf.texi: Update.
46470         * doc/glibc-functions/obstack_printf.texi: Update.
46471         * doc/glibc-functions/obstack_vprintf.texi: Update.
46472
46473 2009-02-26  Eric Blake  <ebb9@byu.net>
46474
46475         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
46476         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
46477         compilation bug by using runtime conversion.
46478         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
46479         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
46480         * modules/ceill-tests (Files): Use nan.h.
46481         * modules/floorl-tests (Files): Likewise.
46482         * modules/frexpl-tests (Files): Likewise.
46483         * modules/isnanl-tests (Files): Likewise.
46484         * modules/ldexpl-tests (Files): Likewise.
46485         * modules/roundl-tests (Files): Likewise.
46486         * modules/truncl-tests (Files): Likewise.
46487         * tests/test-ceill.c (main): Use a working NaN.
46488         * tests/test-floorl.c (main): Likewise.
46489         * tests/test-frexpl.c (main): Likewise.
46490         * tests/test-isnan.c (test_long_double): Likewise.
46491         * tests/test-isnanl.h (main): Likewise.
46492         * tests/test-ldexpl.h (main): Likewise.
46493         * tests/test-roundl.h (main): Likewise.
46494         * tests/test-truncl.h (main): Likewise.
46495         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
46496
46497 2009-02-26  Eric Blake  <ebb9@byu.net>
46498             Bruno Haible  <bruno@clisp.org>
46499
46500         Work around a *printf bug with %ls on Solaris.
46501         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
46502         precision is specified, sprintf stops converting the wide string
46503         argument when the number of bytes that have been produced by this
46504         conversion equals or exceeds the precision.
46505         * doc/posix-functions/fprintf.texi: Update.
46506         * doc/posix-functions/printf.texi: Update.
46507         * doc/posix-functions/snprintf.texi: Update.
46508         * doc/posix-functions/sprintf.texi: Update.
46509         * doc/posix-functions/vfprintf.texi: Update.
46510         * doc/posix-functions/vprintf.texi: Update.
46511         * doc/posix-functions/vsnprintf.texi: Update.
46512         * doc/posix-functions/vsprintf.texi: Update.
46513         * doc/glibc-functions/obstack_printf.texi: Update.
46514         * doc/glibc-functions/obstack_vprintf.texi: Update.
46515
46516 2009-02-26  Eric Blake  <ebb9@byu.net>
46517
46518         stdlib: favor compiler check of random.h
46519         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
46520         to avoid an ObjC random.h installed by Swarm.
46521
46522 2009-02-26  Bruno Haible  <bruno@clisp.org>
46523
46524         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
46525         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
46526         Reported by Gary V. Vaughan <gary@gnu.org>.
46527
46528 2009-02-26  Bruno Haible  <bruno@clisp.org>
46529
46530         Fix *printf behaviour regarding the %ls directive.
46531         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
46532         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
46533         NEED_PRINTF_DIRECTIVE_LS.
46534         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
46535         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46536         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46537         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
46538         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
46539         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
46540         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
46541         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46542         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46543         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46544         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46545         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
46546         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46547         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46548         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46549         * doc/posix-functions/fprintf.texi: Update.
46550         * doc/posix-functions/printf.texi: Update.
46551         * doc/posix-functions/snprintf.texi: Update.
46552         * doc/posix-functions/sprintf.texi: Update.
46553         * doc/posix-functions/vfprintf.texi: Update.
46554         * doc/posix-functions/vprintf.texi: Update.
46555         * doc/posix-functions/vsnprintf.texi: Update.
46556         * doc/posix-functions/vsprintf.texi: Update.
46557         * doc/glibc-functions/obstack_printf.texi: Update.
46558         * doc/glibc-functions/obstack_vprintf.texi: Update.
46559         Reported by Eric Blake.
46560
46561 2009-02-25  Bruno Haible  <bruno@clisp.org>
46562
46563         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
46564         with known value.
46565         Reported by Gary V. Vaughan <gary@gnu.org>.
46566
46567 2009-02-25  Bruno Haible  <bruno@clisp.org>
46568
46569         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
46570         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
46571         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
46572         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
46573         Reported by Gary V. Vaughan <gary@gnu.org>.
46574
46575 2009-02-25  Bruno Haible  <bruno@clisp.org>
46576
46577         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
46578         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
46579         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
46580         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
46581         Reported by Gary V. Vaughan <gary@gnu.org>.
46582
46583 2009-02-25  Eric Blake  <ebb9@byu.net>
46584
46585         tests: skip fseek/ftell tests if ungetc is broken
46586         * m4/ungetc.m4: New file.
46587         * modules/fseek-tests: Split test, so ungetc dependency is
46588         separate from rest of test.
46589         * modules/fseeko-tests: Likewise.
46590         * modules/ftell-tests: Likewise.
46591         * modules/ftello-tests: Likewise.
46592         * tests/test-fseek.c (main): Isolate ungetc dependency.
46593         * tests/test-fseeko.c (main): Likewise.
46594         * tests/test-ftell.c (main): Likewise.
46595         * tests/test-ftello.c (main): Likewise.
46596         * tests/test-fseek2.sh: New file.
46597         * tests/test-fseeko2.sh: Likewise.
46598         * tests/test-ftell2.sh: Likewise.
46599         * tests/test-ftello2.sh: Likewise.
46600
46601 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
46602
46603         test-getaddrinfo: fix usage of skip return code 77
46604         * tests/test-gettaddrinfo.c: Return skip code 77 only
46605         for first occurance of skip (4x77 is not 77)
46606
46607 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
46608
46609         strtod: avoid C99 decl-after-statement
46610         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
46611
46612 2009-02-24  Eric Blake  <ebb9@byu.net>
46613
46614         strtod: detect HP-UX 11.31 bug
46615         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
46616         Reported by Gary V. Vaughan.
46617
46618 2009-02-23  Bruno Haible  <bruno@clisp.org>
46619
46620         Fix invalid read past end of memory block.
46621         * lib/vasnprintf.c (DCHAR_SET): Define.
46622         (local_wcslen): Define only when needed.
46623         (local_strnlen, local_wcsnlen): New functions.
46624         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
46625         directives that involve a conversion ourselves.
46626         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
46627         wcsnlen, mbrtowc, wcrtomb.
46628         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
46629         * tests/test-vasprintf-posix.c (test_function): Likewise.
46630         * tests/test-snprintf-posix.h (test_function): Likewise.
46631         * tests/test-sprintf-posix.h (test_function): Likewise.
46632         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46633
46634 2009-02-22  Bruno Haible  <bruno@clisp.org>
46635
46636         Implement new clarified decomposition of Hangul syllables.
46637         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
46638         of type LTV, return only a pairwise decomposition.
46639         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
46640         Likewise.
46641         * tests/uninorm/test-decomposition.c (main): Updated expected result.
46642         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
46643         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
46644
46645 2009-02-22  Bruno Haible  <bruno@clisp.org>
46646
46647         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
46648         zero-length results and shrink excess allocated memory.
46649         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
46650         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
46651         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
46652         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
46653         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
46654         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
46655         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
46656         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
46657         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
46658         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
46659         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
46660         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
46661
46662 2009-02-21  Bruno Haible  <bruno@clisp.org>
46663
46664         * doc/gnulib.texi: Include safe-alloc.texi earlier.
46665         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
46666         spaces after a period. Put a space between a macro name and its
46667         argument list. Trivial rewordings.
46668         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
46669         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
46670         (main): Return 0 explicitly.
46671
46672 2009-02-21  Bruno Haible  <bruno@clisp.org>
46673
46674         Tests for module 'uninorm/filter'.
46675         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
46676         * modules/uninorm/filter-tests: New file.
46677
46678         New module 'uninorm/filter'.
46679         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
46680         uninorm_filter_flush, uninorm_filter_free): New declarations.
46681         * lib/uninorm/uninorm-filter.c: New file.
46682         * modules/uninorm/filter: New file.
46683
46684 2009-02-21  Bruno Haible  <bruno@clisp.org>
46685
46686         Tests for module 'uninorm/nfkc'.
46687         * tests/uninorm/test-nfkc.c: New file.
46688         * tests/uninorm/test-u8-nfkc.c: New file.
46689         * tests/uninorm/test-u16-nfkc.c: New file.
46690         * tests/uninorm/test-u32-nfkc.c: New file.
46691         * tests/uninorm/test-u32-nfkc-big.sh: New file.
46692         * tests/uninorm/test-u32-nfkc-big.c: New file.
46693         * modules/uninorm/nfkc-tests: New file.
46694
46695         New module 'uninorm/nfkc'.
46696         * lib/uninorm/nfkc.c: New file.
46697         * modules/uninorm/nfkc: New file.
46698
46699         Tests for module 'uninorm/nfkd'.
46700         * tests/uninorm/test-nfkd.c: New file.
46701         * tests/uninorm/test-u8-nfkd.c: New file.
46702         * tests/uninorm/test-u16-nfkd.c: New file.
46703         * tests/uninorm/test-u32-nfkd.c: New file.
46704         * tests/uninorm/test-u32-nfkd-big.sh: New file.
46705         * tests/uninorm/test-u32-nfkd-big.c: New file.
46706         * modules/uninorm/nfkd-tests: New file.
46707
46708         New module 'uninorm/nfkd'.
46709         * lib/uninorm/nfkd.c: New file.
46710         * modules/uninorm/nfkd: New file.
46711
46712         Tests for module 'uninorm/nfc'.
46713         * tests/uninorm/test-nfc.c: New file.
46714         * tests/uninorm/test-u8-nfc.c: New file.
46715         * tests/uninorm/test-u16-nfc.c: New file.
46716         * tests/uninorm/test-u32-nfc.c: New file.
46717         * tests/uninorm/test-u32-nfc-big.sh: New file.
46718         * tests/uninorm/test-u32-nfc-big.c: New file.
46719         * modules/uninorm/nfc-tests: New file.
46720
46721         New module 'uninorm/nfc'.
46722         * lib/uninorm/nfc.c: New file.
46723         * modules/uninorm/nfc: New file.
46724
46725         Tests for module 'uninorm/nfd'.
46726         * tests/uninorm/test-nfd.c: New file.
46727         * tests/uninorm/test-u8-nfd.c: New file.
46728         * tests/uninorm/test-u16-nfd.c: New file.
46729         * tests/uninorm/test-u32-nfd.c: New file.
46730         * tests/uninorm/test-u32-nfd-big.sh: New file.
46731         * tests/uninorm/test-u32-nfd-big.c: New file.
46732         * tests/uninorm/test-u32-normalize-big.h: New file.
46733         * tests/uninorm/test-u32-normalize-big.c: New file.
46734         * tests/uninorm/NormalizationTest.txt: New file, created from
46735         Unicode 5.1.0 NormalizationTest.txt.
46736         * modules/uninorm/nfd-tests: New file.
46737
46738         New module 'uninorm/nfd'.
46739         * lib/uninorm/nfd.c: New file.
46740         * modules/uninorm/nfd: New file.
46741
46742         New module 'uninorm/u32-normalize'.
46743         * lib/uninorm/u32-normalize.c: New file.
46744         * modules/uninorm/u32-normalize: New file.
46745
46746         New module 'uninorm/u16-normalize'.
46747         * lib/uninorm/u16-normalize.c: New file.
46748         * modules/uninorm/u16-normalize: New file.
46749
46750         New module 'uninorm/u8-normalize'.
46751         * lib/uninorm/u8-normalize.c: New file.
46752         * lib/uninorm/normalize-internal.h: New file.
46753         * lib/uninorm/u-normalize-internal.h: New file.
46754         * modules/uninorm/u8-normalize: New file.
46755
46756         New module 'uninorm/decompose-internal'.
46757         * lib/uninorm/decompose-internal.c: New file.
46758         * modules/uninorm/decompose-internal: New file.
46759
46760         Tests for module 'uninorm/composition'.
46761         * tests/uninorm/test-composition.c: New file.
46762         * modules/uninorm/composition-tests: New file.
46763
46764         New module 'uninorm/composition'.
46765         * lib/uninorm/composition.c: New file.
46766         * lib/uninorm/composition-table.gperf: New file, generated by
46767         gen-uni-tables.
46768         * modules/uninorm/composition: New file.
46769
46770         Tests for module 'uninorm/compat-decomposition'.
46771         * tests/uninorm/test-compat-decomposition.c: New file.
46772         * modules/uninorm/compat-decomposition-tests: New file.
46773
46774         New module 'uninorm/compat-decomposition'.
46775         * lib/uninorm/decompose-internal.h: New file.
46776         * lib/uninorm/compat-decomposition.c: New file.
46777         * modules/uninorm/compat-decomposition: New file.
46778
46779         Tests for module 'uninorm/canonical-decomposition'.
46780         * tests/uninorm/test-canonical-decomposition.c: New file.
46781         * modules/uninorm/canonical-decomposition-tests: New file.
46782
46783         New module 'uninorm/canonical-decomposition'.
46784         * lib/uninorm/canonical-decomposition.c: New file.
46785         * modules/uninorm/canonical-decomposition: New file.
46786
46787         Tests for module 'uninorm/decomposition'.
46788         * tests/uninorm/test-decomposition.c: New file.
46789         * modules/uninorm/decomposition-tests: New file.
46790
46791         New module 'uninorm/decomposition'.
46792         * lib/uninorm/decomposition.c: New file.
46793         * modules/uninorm/decomposition: New file.
46794
46795         New module 'uninorm/decomposition-table'.
46796         * lib/uninorm/decomposition-table.h: New file.
46797         * lib/uninorm/decomposition-table.c: New file.
46798         * lib/uninorm/decomposition-table1.h: New file, generated by
46799         gen-uni-tables.
46800         * lib/uninorm/decomposition-table2.h: New file, generated by
46801         gen-uni-tables.
46802         * modules/uninorm/decomposition-table: New file.
46803
46804         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
46805         (UC_DECOMP_*): New enumeration items.
46806         (get_decomposition): New function.
46807         (struct decomp_table): New type.
46808         (output_decomposition, output_decomposition_tables): New functions.
46809         (unicode_composition_exclusions): New variable.
46810         (fill_composition_exclusions, debug_output_composition_tables): New
46811         functions.
46812         (main): Accept one more argument. Invoke fill_composition_exclusions.
46813         Output decomposition and composition tables.
46814
46815         New module 'uninorm/base'.
46816         * lib/uninorm.h: New file.
46817         * lib/unictype.h: Update comment.
46818         * modules/uninorm/base: New file.
46819
46820 2009-02-21  David Lutterkort  <lutter@redhat.com>
46821
46822         Tests for module 'safe-alloc'.
46823         * tests/test-safe-alloc.c: New file.
46824         * modules/safe-alloc-tests: New file.
46825
46826         New module 'safe-alloc'.
46827         * lib/safe-alloc.h: New file.
46828         * lib/safe-alloc.c: New file.
46829         * m4/safe-alloc.m4: New file.
46830         * modules/safe-alloc: New file.
46831         * doc/safe-alloc.texi: New file.
46832         * doc/gnulib.texi: Include it.
46833         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
46834         safe-alloc.
46835
46836 2009-02-18  Bruno Haible  <bruno@clisp.org>
46837
46838         Fix link error on non-glibc systems.
46839         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
46840         variable.
46841         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46842
46843 2009-02-18  Jim Meyering  <meyering@redhat.com>
46844
46845         fts: avoid used-uninitialized error due to recent change
46846         * lib/fts.c (fts_read): Guard uses of the new member,
46847         parent->fts_n_dirs_remaining, since it's not relevant for
46848         the parent of a directory specified on the command-line.
46849
46850 2009-02-17  James Youngman  <jay@gnu.org>
46851             Bruno Haible  <bruno@clisp.org>
46852
46853         * m4/include_next.m4: Reformulate comment.
46854
46855 2009-02-16  Jim Meyering  <meyering@redhat.com>
46856
46857         fts: add #if guards so that the fts_lgpl module still builds
46858         * lib/fts.c: Guard just-added hash-table-using parts with
46859         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
46860         Reported by Simon Josefsson.
46861
46862 2009-02-15  Bruno Haible  <bruno@clisp.org>
46863
46864         * modules/array-mergesort-tests: New file.
46865         * tests/test-array-mergesort.c: New file.
46866
46867         New module 'array-mergesort'.
46868         * modules/array-mergesort: New file.
46869         * lib/array-mergesort.h: New file.
46870
46871 2009-02-15  Bruno Haible  <bruno@clisp.org>
46872
46873         Fix 2009-02-07 commit.
46874         * lib/gen-uni-tables.c (output_predicate, output_category,
46875         output_combclass, output_bidi_category, output_decimal_digit,
46876         output_digit, output_numeric, output_mirror, output_scripts,
46877         output_ident_category, output_simple_mapping): Fix format directives.
46878         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
46879
46880 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
46881
46882         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
46883         fixes are available from IBM.
46884
46885 2009-02-13  Jim Meyering  <meyering@redhat.com>
46886
46887         fts: arrange not to stat non-directories in more cases
46888         This makes GNU find (when it doesn't need to stat each file)
46889         *much* more efficient at traversing reiserfs file systems.
46890         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
46891         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
46892         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
46893         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
46894         (leaf_optimization_applies): New function.
46895         (LCO_hash, LCO_compare): New helper functions.
46896         (link_count_optimize_ok): New function.
46897         (fts_stat): Initialize new member (if dir).
46898         (fts_read): Decrement parent's fts_n_dirs_remaining count if
46899         we've just stat'ed a directory.  Skip the stat call when possible.
46900         ---
46901         Note this AFS-related exchange:
46902         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
46903         and note find's pioctl call in find/fstype.c.
46904         But that is necessary only if you want to enable the
46905         optimization for AFS, and for now, I don't.
46906
46907         fts: move a function definition "up" (no semantic change)
46908         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
46909         "up" to precede upcoming use of a related function.
46910
46911 2009-02-11  Jim Meyering  <meyering@redhat.com>
46912
46913         fts: correct internal computation of nlinks (optimization-related)
46914         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
46915         whether the current entry is a directory, so don't test it.
46916
46917 2009-02-10  Bruno Haible  <bruno@clisp.org>
46918
46919         Tests for module 'uniwbrk/ulc-wordbreaks'.
46920         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
46921         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
46922         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
46923
46924         Tests for module 'uniwbrk/u32-wordbreaks'.
46925         * modules/uniwbrk/u32-wordbreaks-tests: New file.
46926         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
46927
46928         Tests for module 'uniwbrk/u16-wordbreaks'.
46929         * modules/uniwbrk/u16-wordbreaks-tests: New file.
46930         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
46931
46932         Tests for module 'uniwbrk/u8-wordbreaks'.
46933         * modules/uniwbrk/u8-wordbreaks-tests: New file.
46934         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
46935
46936 2009-02-10  Bruno Haible  <bruno@clisp.org>
46937
46938         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
46939         property.
46940         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
46941         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
46942         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
46943
46944 2009-02-10  Simon Josefsson  <simon@josefsson.org>
46945
46946         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
46947         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
46948
46949 2009-02-10  Bruno Haible  <bruno@clisp.org>
46950
46951         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
46952         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
46953         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
46954         * lib/unilbrk/u8-possible-linebreaks.c: Update.
46955         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
46956         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
46957
46958 2009-02-09  Simon Josefsson  <simon@josefsson.org>
46959
46960         * lib/sockets.h (gl_fd_to_handle): New function.
46961
46962         * tests/test-sockets.c: Call gl_fd_to_handle.
46963
46964 2009-02-09  Bruno Haible  <bruno@clisp.org>
46965
46966         * doc/havelib.texi: Document the conventions on bi-arch systems.
46967
46968 2009-02-08  Bruno Haible  <bruno@clisp.org>
46969
46970         Document the AC_LIB_LINKFLAGS macro.
46971         * doc/havelib.texi: New file, mostly written on 2005-05-24.
46972         * doc/gnulib.texi: Include it.
46973
46974 2009-02-08  Bruno Haible  <bruno@clisp.org>
46975
46976         Fix wrong order of sections, compared to TOC.
46977         * doc/gnulib.texi: Include relocatable-maint.texi after the
46978         "Regular expressions" node, not before.
46979
46980 2009-02-08  Bruno Haible  <bruno@clisp.org>
46981
46982         Tests for module 'unicase/totitle'.
46983         * modules/unicase/totitle-tests: New file.
46984
46985         Tests for module 'unicase/tolower'.
46986         * modules/unicase/tolower-tests: New file.
46987
46988         Tests for module 'unicase/toupper'.
46989         * modules/unicase/toupper-tests: New file.
46990         * tests/unicase/test-mapping-part1.h: New file.
46991         * tests/unicase/test-mapping-part2.h: New file.
46992
46993         New module 'unicase/totitle'.
46994         * modules/unicase/totitle: New file.
46995         * lib/unicase/totitle.c: New file.
46996
46997         New module 'unicase/tolower'.
46998         * modules/unicase/tolower: New file.
46999         * lib/unicase/tolower.c: New file.
47000
47001         New module 'unicase/toupper'.
47002         * modules/unicase/toupper: New file.
47003         * lib/unicase/toupper.c: New file.
47004         * lib/unicase/simple-mapping.h: New file.
47005
47006         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
47007         (mapping_table): New structure.
47008         (output_simple_mapping): New function.
47009         (main): Invoke output_simple_mapping_test and output_simple_mapping.
47010         * modules/gen-uni-tables (Description): Update.
47011         * lib/unicase/toupper.h: New file, automatically generated by
47012         gen-uni-tables.
47013         * lib/unicase/tolower.h: New file, automatically generated by
47014         gen-uni-tables.
47015         * lib/unicase/totitle.h: New file, automatically generated by
47016         gen-uni-tables.
47017         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
47018         gen-uni-tables.
47019         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
47020         gen-uni-tables.
47021         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
47022         gen-uni-tables.
47023
47024         New module 'unicase/base'.
47025         * modules/unicase/base: New file.
47026         * lib/unicase.h: New file.
47027
47028 2009-02-08  Bruno Haible  <bruno@clisp.org>
47029
47030         New module 'uniwbrk/ulc-wordbreaks'.
47031         * modules/uniwbrk/ulc-wordbreaks: New file.
47032         * lib/uniwbrk/ulc-wordbreaks.c: New file.
47033
47034         New module 'uniwbrk/u32-wordbreaks'.
47035         * modules/uniwbrk/u32-wordbreaks: New file.
47036         * lib/uniwbrk/u32-wordbreaks.c: New file.
47037
47038         New module 'uniwbrk/u16-wordbreaks'.
47039         * modules/uniwbrk/u16-wordbreaks: New file.
47040         * lib/uniwbrk/u16-wordbreaks.c: New file.
47041
47042         New module 'uniwbrk/u8-wordbreaks'.
47043         * modules/uniwbrk/u8-wordbreaks: New file.
47044         * lib/uniwbrk/u8-wordbreaks.c: New file.
47045         * lib/uniwbrk/u-wordbreaks.h: New file.
47046
47047         New module 'uniwbrk/table'.
47048         * modules/uniwbrk/table: New file.
47049         * lib/uniwbrk/wbrktable.h: New file.
47050         * lib/uniwbrk/wbrktable.c: New file.
47051
47052         New module 'uniwbrk/wordbreak-property'.
47053         * modules/uniwbrk/wordbreak-property: New file.
47054         * lib/uniwbrk/wordbreak-property.c: New file.
47055
47056         * lib/gen-uni-tables.c (WBP_*): New enum items.
47057         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
47058         (unicode_org_wbp): New variable.
47059         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
47060         New functions.
47061         (wbp_table): New structure.
47062         (output_wbp, output_wbrk_tables): New functions.
47063         (main): Accept additional argument. Invoke fill_org_wbp,
47064         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
47065         output_wbrk_tables.
47066         * modules/gen-uni-tables (Description): Update.
47067         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
47068         gen-uni-tables.
47069
47070         New module 'uniwbrk/base'.
47071         * modules/uniwbrk/base: New file.
47072         * lib/uniwbrk.h: New file.
47073
47074 2009-02-08  Bruno Haible  <bruno@clisp.org>
47075
47076         Update to Unicode 5.1.0.
47077         * lib/gen-uni-tables.c (is_property_alphabetic): Include
47078         U+2185..U+2188.
47079         (is_property_default_ignorable_code_point): Don't include characters
47080         of category Cc or Cs and not-a-characters.
47081         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
47082         U+0D79, U+109E, U+109F, U+A60C.
47083         * lib/unictype/bidi_of.h: Regenerated.
47084         * lib/unictype/blocks.h: Regenerated.
47085         * lib/unictype/categ_C.h: Regenerated.
47086         * lib/unictype/categ_Cf.h: Regenerated.
47087         * lib/unictype/categ_Cn.h: Regenerated.
47088         * lib/unictype/categ_L.h: Regenerated.
47089         * lib/unictype/categ_Ll.h: Regenerated.
47090         * lib/unictype/categ_Lm.h: Regenerated.
47091         * lib/unictype/categ_Lo.h: Regenerated.
47092         * lib/unictype/categ_Lu.h: Regenerated.
47093         * lib/unictype/categ_M.h: Regenerated.
47094         * lib/unictype/categ_Mc.h: Regenerated.
47095         * lib/unictype/categ_Me.h: Regenerated.
47096         * lib/unictype/categ_Mn.h: Regenerated.
47097         * lib/unictype/categ_N.h: Regenerated.
47098         * lib/unictype/categ_Nd.h: Regenerated.
47099         * lib/unictype/categ_Nl.h: Regenerated.
47100         * lib/unictype/categ_No.h: Regenerated.
47101         * lib/unictype/categ_P.h: Regenerated.
47102         * lib/unictype/categ_Pd.h: Regenerated.
47103         * lib/unictype/categ_Pe.h: Regenerated.
47104         * lib/unictype/categ_Pf.h: Regenerated.
47105         * lib/unictype/categ_Pi.h: Regenerated.
47106         * lib/unictype/categ_Po.h: Regenerated.
47107         * lib/unictype/categ_Ps.h: Regenerated.
47108         * lib/unictype/categ_S.h: Regenerated.
47109         * lib/unictype/categ_Sk.h: Regenerated.
47110         * lib/unictype/categ_Sm.h: Regenerated.
47111         * lib/unictype/categ_So.h: Regenerated.
47112         * lib/unictype/categ_of.h: Regenerated.
47113         * lib/unictype/combining.h: Regenerated.
47114         * lib/unictype/ctype_alnum.h: Regenerated.
47115         * lib/unictype/ctype_alpha.h: Regenerated.
47116         * lib/unictype/ctype_graph.h: Regenerated.
47117         * lib/unictype/ctype_lower.h: Regenerated.
47118         * lib/unictype/ctype_print.h: Regenerated.
47119         * lib/unictype/ctype_punct.h: Regenerated.
47120         * lib/unictype/ctype_upper.h: Regenerated.
47121         * lib/unictype/decdigit.h: Regenerated.
47122         * lib/unictype/digit.h: Regenerated.
47123         * lib/unictype/mirror.h: Regenerated.
47124         * lib/unictype/numeric.h: Regenerated.
47125         * lib/unictype/pr_alphabetic.h: Regenerated.
47126         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
47127         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
47128         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
47129         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
47130         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
47131         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
47132         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
47133         * lib/unictype/pr_combining.h: Regenerated.
47134         * lib/unictype/pr_dash.h: Regenerated.
47135         * lib/unictype/pr_decimal_digit.h: Regenerated.
47136         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
47137         * lib/unictype/pr_deprecated.h: Regenerated.
47138         * lib/unictype/pr_diacritic.h: Regenerated.
47139         * lib/unictype/pr_extender.h: Regenerated.
47140         * lib/unictype/pr_format_control.h: Regenerated.
47141         * lib/unictype/pr_grapheme_base.h: Regenerated.
47142         * lib/unictype/pr_grapheme_extend.h: Regenerated.
47143         * lib/unictype/pr_grapheme_link.h: Regenerated.
47144         * lib/unictype/pr_id_continue.h: Regenerated.
47145         * lib/unictype/pr_id_start.h: Regenerated.
47146         * lib/unictype/pr_ideographic.h: Regenerated.
47147         * lib/unictype/pr_ignorable_control.h: Regenerated.
47148         * lib/unictype/pr_lowercase.h: Regenerated.
47149         * lib/unictype/pr_math.h: Regenerated.
47150         * lib/unictype/pr_numeric.h: Regenerated.
47151         * lib/unictype/pr_other_alphabetic.h: Regenerated.
47152         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
47153         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
47154         * lib/unictype/pr_other_id_continue.h: Regenerated.
47155         * lib/unictype/pr_other_lowercase.h: Regenerated.
47156         * lib/unictype/pr_other_math.h: Regenerated.
47157         * lib/unictype/pr_punctuation.h: Regenerated.
47158         * lib/unictype/pr_sentence_terminal.h: Regenerated.
47159         * lib/unictype/pr_soft_dotted.h: Regenerated.
47160         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
47161         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
47162         * lib/unictype/pr_unified_ideograph.h: Regenerated.
47163         * lib/unictype/pr_uppercase.h: Regenerated.
47164         * lib/unictype/pr_xid_continue.h: Regenerated.
47165         * lib/unictype/pr_xid_start.h: Regenerated.
47166         * lib/unictype/pr_zero_width.h: Regenerated.
47167         * lib/unictype/scripts.h: Regenerated.
47168         * lib/unictype/scripts_byname.gperf: Regenerated.
47169         * lib/unictype/sy_java_ident.h: Regenerated.
47170         * lib/unilbrk/lbrkprop1.h: Regenerated.
47171         * lib/unilbrk/lbrkprop2.h: Regenerated.
47172         * tests/unictype/test-categ_C.c: Regenerated.
47173         * tests/unictype/test-categ_Cf.c: Regenerated.
47174         * tests/unictype/test-categ_Cn.c: Regenerated.
47175         * tests/unictype/test-categ_L.c: Regenerated.
47176         * tests/unictype/test-categ_Ll.c: Regenerated.
47177         * tests/unictype/test-categ_Lm.c: Regenerated.
47178         * tests/unictype/test-categ_Lo.c: Regenerated.
47179         * tests/unictype/test-categ_Lu.c: Regenerated.
47180         * tests/unictype/test-categ_M.c: Regenerated.
47181         * tests/unictype/test-categ_Mc.c: Regenerated.
47182         * tests/unictype/test-categ_Me.c: Regenerated.
47183         * tests/unictype/test-categ_Mn.c: Regenerated.
47184         * tests/unictype/test-categ_N.c: Regenerated.
47185         * tests/unictype/test-categ_Nd.c: Regenerated.
47186         * tests/unictype/test-categ_Nl.c: Regenerated.
47187         * tests/unictype/test-categ_No.c: Regenerated.
47188         * tests/unictype/test-categ_P.c: Regenerated.
47189         * tests/unictype/test-categ_Pd.c: Regenerated.
47190         * tests/unictype/test-categ_Pe.c: Regenerated.
47191         * tests/unictype/test-categ_Pf.c: Regenerated.
47192         * tests/unictype/test-categ_Pi.c: Regenerated.
47193         * tests/unictype/test-categ_Po.c: Regenerated.
47194         * tests/unictype/test-categ_Ps.c: Regenerated.
47195         * tests/unictype/test-categ_S.c: Regenerated.
47196         * tests/unictype/test-categ_Sk.c: Regenerated.
47197         * tests/unictype/test-categ_Sm.c: Regenerated.
47198         * tests/unictype/test-categ_So.c: Regenerated.
47199         * tests/unictype/test-ctype_alnum.c: Regenerated.
47200         * tests/unictype/test-ctype_alpha.c: Regenerated.
47201         * tests/unictype/test-ctype_graph.c: Regenerated.
47202         * tests/unictype/test-ctype_lower.c: Regenerated.
47203         * tests/unictype/test-ctype_print.c: Regenerated.
47204         * tests/unictype/test-ctype_punct.c: Regenerated.
47205         * tests/unictype/test-ctype_upper.c: Regenerated.
47206         * tests/unictype/test-decdigit.h: Regenerated.
47207         * tests/unictype/test-digit.h: Regenerated.
47208         * tests/unictype/test-numeric.h: Regenerated.
47209         * tests/unictype/test-pr_alphabetic.c: Regenerated.
47210         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
47211         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
47212         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
47213         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
47214         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
47215         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
47216         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
47217         * tests/unictype/test-pr_combining.c: Regenerated.
47218         * tests/unictype/test-pr_dash.c: Regenerated.
47219         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
47220         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
47221         * tests/unictype/test-pr_deprecated.c: Regenerated.
47222         * tests/unictype/test-pr_diacritic.c: Regenerated.
47223         * tests/unictype/test-pr_extender.c: Regenerated.
47224         * tests/unictype/test-pr_format_control.c: Regenerated.
47225         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
47226         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
47227         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
47228         * tests/unictype/test-pr_id_continue.c: Regenerated.
47229         * tests/unictype/test-pr_id_start.c: Regenerated.
47230         * tests/unictype/test-pr_ideographic.c: Regenerated.
47231         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
47232         * tests/unictype/test-pr_lowercase.c: Regenerated.
47233         * tests/unictype/test-pr_math.c: Regenerated.
47234         * tests/unictype/test-pr_numeric.c: Regenerated.
47235         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
47236         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
47237         Regenerated.
47238         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
47239         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
47240         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
47241         * tests/unictype/test-pr_other_math.c: Regenerated.
47242         * tests/unictype/test-pr_punctuation.c: Regenerated.
47243         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
47244         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
47245         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
47246         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
47247         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
47248         * tests/unictype/test-pr_uppercase.c: Regenerated.
47249         * tests/unictype/test-pr_xid_continue.c: Regenerated.
47250         * tests/unictype/test-pr_xid_start.c: Regenerated.
47251         * tests/unictype/test-pr_zero_width.c: Regenerated.
47252
47253         Update to Unicode 5.1.0.
47254         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
47255         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
47256         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
47257         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
47258         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
47259         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
47260         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
47261         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
47262         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
47263         (nonspacing_table_ind): Update.
47264         * tests/uniwidth/test-uc_width2.sh: Update expected result.
47265
47266         Update to Unicode 5.1.0.
47267         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
47268         code transform.
47269         * lib/uniname/uniname.c (unicode_character_name,
47270         unicode_name_character): Add the range 0x1Fxxx to the code transform.
47271         * lib/uniname/uninames.h: Regenerated.
47272         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
47273
47274 2009-02-07  Bruno Haible  <bruno@clisp.org>
47275
47276         Merge gen-ctype and gen-lbrk into a single program.
47277         * lib/gen-uni-tables.c: New file, incorporating
47278         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
47279         Add directory prefixes to the names of the generated files.
47280         * lib/unictype/gen-ctype.c: Remove file.
47281         * lib/unilbrk/gen-lbrk.c: Remove file.
47282         * modules/gen-uni-tables: New file.
47283         * modules/unictype/gen-ctype: Remove file.
47284         * modules/unilbrk/gen-lbrk: Remove file.
47285
47286 2009-02-07  Bruno Haible  <bruno@clisp.org>
47287
47288         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
47289
47290         New module 'unistr/u32-strcoll'.
47291         * modules/unistr/u32-strcoll: New file.
47292         * lib/unistr/u32-strcoll.c: New file.
47293
47294         New module 'unistr/u16-strcoll'.
47295         * modules/unistr/u16-strcoll: New file.
47296         * lib/unistr/u16-strcoll.c: New file.
47297
47298         New module 'unistr/u8-strcoll'.
47299         * modules/unistr/u8-strcoll: New file.
47300         * lib/unistr/u8-strcoll.c: New file.
47301         * lib/unistr/u-strcoll.h: New file.
47302
47303 2009-02-07  Bruno Haible  <bruno@clisp.org>
47304
47305         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
47306         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47307         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47308         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
47309         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
47310         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
47311
47312 2009-02-07  Bruno Haible  <bruno@clisp.org>
47313
47314         Make 64-bit clean.
47315         * lib/unictype/gen-ctype.c (output_predicate, output_category,
47316         output_combclass, output_bidi_category, output_decimal_digit,
47317         output_digit, output_numeric, output_mirror, output_scripts,
47318         output_ident_category): Use proper width specifier in format strings.
47319
47320 2009-02-07  Bruno Haible  <bruno@clisp.org>
47321
47322         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
47323         failure behaviour.
47324
47325 2009-02-07  Jim Meyering  <meyering@redhat.com>
47326
47327         regex: avoid compilation failure with upcoming gcc-4.4
47328         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
47329         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
47330         "... error: integer overflow in preprocessor expression".
47331
47332 2009-02-05  Ben Pfaff  <blp@gnu.org>
47333
47334         Fix link errors on Windows when close module is used.
47335         * modules/close: Add $(LIB_CLOSE) to Link section.
47336         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
47337         $(LIB_CLOSE) on Windows.
47338
47339 2009-02-05  Jim Meyering  <meyering@redhat.com>
47340
47341         still avoid unused-parameter warnings, but do it cleanly
47342         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
47343         (get_fs_usage): Cast to void instead.
47344         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
47345         (dev_from_mount_options, read_file_system_list): Cast to void.
47346         Prompted by Bruno Haible.
47347
47348 2009-02-04  Jim Meyering  <meyering@redhat.com>
47349
47350         fsusage.c: correct copyright year
47351         * lib/fsusage.c: Reflect year in which the change is pushed into
47352
47353         avoid misc. warnings
47354         * lib/fsusage.c (UNUSED_PARAM): Define.
47355         (get_fs_usage): Mark parameter "disk" as unused.
47356         * lib/getugroups.c (getgrent): Use "void" in prototype.
47357         * lib/mountlist.c: Mark unused parameters.
47358         (read_file_system_list): Declare a local with "const".
47359         * lib/nanosleep.c (getnow): Declare static.
47360         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
47361
47362         dirfd: set errno upon failure
47363         * lib/dirfd.c: Include <errno.h>.
47364         Set errno to ENOTSUP when returning -1.
47365         * modules/dirfd (Depends-on): Add errno.
47366         Suggested by John Kodis <kodis@comcast.net>.
47367
47368 2009-02-01  Bruno Haible  <bruno@clisp.org>
47369
47370         Don't assume sizeof (long) >= sizeof (void *).
47371         * lib/memcmp.c: Include stdint.h.
47372         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
47373         srcp2 to 'const byte *'.
47374         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
47375         types to uintptr_t.
47376         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
47377         * modules/memcmp (Depends-on): Add stdint.
47378         Reported by Ozkan Sezer <sezeroz@gmail.com>.
47379
47380 2009-01-30  Eric Blake  <ebb9@byu.net>
47381
47382         fix more require-before-expand issues
47383         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
47384         expand, AC_PROG_AWK.
47385         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
47386
47387 2009-01-28  Eric Blake  <ebb9@byu.net>
47388
47389         version-etc: use consistent URL formatting
47390         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
47391         Improve formatting.  Use fputs for string without %.
47392
47393 2009-01-28  Jim Meyering  <meyering@redhat.com>
47394
47395         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
47396         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
47397         "underquoted definition of NAME" from autoconf-2.59.
47398
47399 2009-01-28  Bruno Haible  <bruno@clisp.org>
47400
47401         * doc/gnulib.texi: Add "Obsolete modules" to index.
47402
47403 2009-01-28  Jim Meyering  <meyering@redhat.com>
47404
47405         useless-if-before-free: recognize more variants
47406         * build-aux/useless-if-before-free: Also recognize e.g.,
47407         if (NULL != p) free (p);
47408
47409 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
47410
47411         test-getaddrinfo: skip (don't fail) this test when there's no network
47412         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
47413         on the presumption that it means you lack network access.
47414
47415 2009-01-26  Jim Meyering  <meyering@redhat.com>
47416
47417         fflush: avoid warnings on modern systems
47418         * lib/fflush.c (rpl_fflush): Move declarations of locals,
47419         pos and result, into scopes where they're used.
47420
47421 2009-01-26  Eric Blake  <ebb9@byu.net>
47422
47423         Silence warning reintroduced by recent extensions patch.
47424         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
47425         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
47426         autoconf.
47427
47428         Backport improved autoconf semantics of AC_DEFUN_ONCE.
47429         * m4/00gnulib.m4: New file.
47430         * gnulib-tool (func_get_filelist): Always use it.
47431         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
47432         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
47433
47434 2009-01-25  Bruno Haible  <bruno@clisp.org>
47435
47436         Make test-quotearg work on MacOS X and AIX.
47437         * tests/test-quotearg.sh: New file.
47438         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
47439         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
47440         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
47441         include <libintl.h>.
47442         (fake_locale): Remove variable.
47443         (gettext, dgettext, dcgettext): Remove functions.
47444         (main): Instead of setting a fake locale, set a real locale. Call
47445         textdomain and bindtextdomain.
47446         * modules/quotearg-tests (Files): Add the new files.
47447         (Depends-on): Add gettext, setenv, unsetenv.
47448         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
47449         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
47450         Augment TESTS_ENVIRONMENT.
47451
47452 2009-01-25  Bruno Haible  <bruno@clisp.org>
47453
47454         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
47455         fr_FR.ISO8859-1 locale on MacOS X.
47456         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
47457         ja_JP.eucJP locale on MacOS X.
47458         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
47459         zh_CN.GB18030 locale on MacOS X.
47460
47461 2009-01-25  Bruno Haible  <bruno@clisp.org>
47462
47463         Avoid link errors on MacOS X 10.3.
47464         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
47465         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47466
47467 2009-01-25  Bruno Haible  <bruno@clisp.org>
47468
47469         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47470         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
47471         * modules/pipe (Files): Remove m4/posix_spawn.m4.
47472         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47473         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
47474         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47475         posix_spawnattr_init, posix_spawnattr_setsigmask,
47476         posix_spawnattr_setflags, posix_spawnattr_destroy.
47477
47478         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47479         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
47480         * modules/execute (Files): Remove m4/posix_spawn.m4.
47481         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47482         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47483         posix_spawnattr_init, posix_spawnattr_setsigmask,
47484         posix_spawnattr_setflags, posix_spawnattr_destroy.
47485
47486 2009-01-25  Bruno Haible  <bruno@clisp.org>
47487
47488         * lib/glthread/threadlib.c: Include <stdlib.h>.
47489
47490 2009-01-25  Bruno Haible  <bruno@clisp.org>
47491
47492         * lib/glthread/threadlib.c (dummy): New declaration.
47493
47494 2009-01-25  Bruno Haible  <bruno@clisp.org>
47495
47496         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
47497         multibyte characters also for the GB18030 encoding. Don't crash when
47498         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
47499
47500 2009-01-25  Bruno Haible  <bruno@clisp.org>
47501
47502         Avoid redefining 'struct random_data' on OSF/1 5.1.
47503         * lib/stdlib.in.h: Include <random.h> if it exists.
47504         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
47505         HAVE_RANDOM_H. Include <random.h> when testing whether
47506         'struct random_data' exists.
47507         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
47508
47509 2009-01-25  Bruno Haible  <bruno@clisp.org>
47510
47511         Don't install charset.alias on MacOS X >= 10.3.
47512         * lib/localcharset.c (DARWIN7): New macro.
47513         (get_charset_aliases): Hardcode the result for Darwin7.
47514         * modules/localcharset (install-exec-local): Don't install
47515         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
47516
47517 2009-01-25  Bruno Haible  <bruno@clisp.org>
47518
47519         Don't install charset.alias on mingw and Cygwin.
47520         * modules/localcharset (install-exec-local): Don't install
47521         charset.alias on mingw and Cygwin, if the file does not yet exist.
47522         The result for these platforms is hardcoded in localcharset.c.
47523
47524 2009-01-25  Bruno Haible  <bruno@clisp.org>
47525
47526         Make it possible again to use AC_GNU_SOURCE together with gnulib.
47527         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
47528         before requiring AC_USE_SYSTEM_EXTENSIONS.
47529
47530 2009-01-25  Jim Meyering  <meyering@redhat.com>
47531
47532         c-strtod: avoid warnings
47533         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
47534         "assignment discards qualifiers from pointer target type" warnings.
47535
47536 2009-01-24  Bruno Haible  <bruno@clisp.org>
47537
47538         Add support for non-UTF-8 locales on MacOS X.
47539         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
47540         canonical encodings. For Darwin 7 and newer, don't map traditional
47541         encodings to UTF-8.
47542         Reported by Vincent Lefevre <vincent@vinc17.org>
47543         at <http://savannah.gnu.org/bugs/?25235>.
47544
47545 2009-01-24  Bruno Haible  <bruno@clisp.org>
47546
47547         * doc/gnulib.texi (Obsolete modules): New section.
47548         Reported by Mike Frysinger <vapier@gentoo.org>.
47549
47550 2009-01-24  Bruno Haible  <bruno@clisp.org>
47551
47552         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
47553         (%.dvi): New rule.
47554
47555 2009-01-24  Bruno Haible  <bruno@clisp.org>
47556
47557         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
47558         Reported by Eric Blake.
47559
47560 2009-01-24  Bruno Haible  <bruno@clisp.org>
47561
47562         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
47563         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
47564         Reported by Gary V. Vaughan <gary@gnu.org>.
47565
47566 2009-01-24  Bruno Haible  <bruno@clisp.org>
47567
47568         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
47569
47570 2009-01-23  Bruno Haible  <bruno@clisp.org>
47571
47572         Make c-strtod, c-strtold usable in libraries.
47573         * lib/c-strtod.c: Include string.h instead of xalloc.h.
47574         (C_STRTOD): Call strdup instead of xstrdup.
47575         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
47576         * modules/c-strtold (Depends-on): Likewise.
47577         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
47578         * NEWS: Mention the change.
47579         Reported by Michael Gold <mgold@ncf.ca>.
47580
47581 2009-01-23  Jim Meyering  <meyering@redhat.com>
47582
47583         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
47584         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
47585         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
47586
47587 2009-01-23  Simon Josefsson  <simon@josefsson.org>
47588
47589         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
47590         GNU CoreUtils.
47591         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
47592         * modules/version-etc (Description): Update.
47593
47594 2009-01-22  Bruno Haible  <bruno@clisp.org>
47595
47596         Cache the C locale object.
47597         * lib/c-strtod.c (c_locale_cache): New variable.
47598         (c_locale): New function.
47599         (C_STRTOD): Use it, and don't call freelocale.
47600         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
47601         Suggested by Paolo Bonzini.
47602
47603 2009-01-21  Bruno Haible  <bruno@clisp.org>
47604
47605         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
47606         conditions other than overflow.
47607
47608 2009-01-21  Bruno Haible  <bruno@clisp.org>
47609
47610         * lib/c-strtod.c: Include errno.h.
47611         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
47612         value from STRTOD_L and STRTOD.
47613
47614 2009-01-21  Bruno Haible  <bruno@clisp.org>
47615         and Jim Meyering  <meyering@redhat.com>
47616
47617         nanosleep: skip configure test (fail it) for apple universal builds
47618         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
47619         universal builds, assume that nanosleep does not work.
47620         * modules/nanosleep (Depends-on): Add multiarch.
47621
47622         mktime: skip configure test (fail it) for apple universal builds
47623         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
47624         universal builds, assume that mktime does not work.
47625         * modules/mktime (Depends-on): Add multiarch.
47626
47627 2009-01-21  Eric Blake  <ebb9@byu.net>
47628
47629         multiarch: avoid expand-before-require warning
47630         * modules/multiarch (configure.ac): Require, rather than expand,
47631         gl_MULTIARCH.
47632         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
47633         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
47634         enforce that all clients require it.  Partial reversion of
47635         2008-12-29 patch.
47636
47637         error: avoid expand-before-require warning
47638         * modules/errno (configure.ac): Require, rather than expand,
47639         gl_HEADER_ERRNO_H.
47640         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
47641         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
47642         enforce that all clients require it.
47643
47644         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
47645         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
47646         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
47647         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
47648
47649 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
47650
47651         Revert:
47652         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47653
47654         regex: do not depend on obsolete modules.
47655         * modules/regex: Remove memcmp and memmove.
47656
47657 2009-01-20  Bruno Haible  <bruno@clisp.org>
47658
47659         Make the 'link' module link on Windows NT 4.
47660         * lib/link.c (_WIN32_WINNT): Don't define.
47661         (CreateHardLinkFuncType): New type.
47662         (CreateHardLinkFunc, initialized): New variables.
47663         (initialize): New function.
47664         (link): Invoke CreateHardLink indirectly through the function pointer.
47665
47666 2009-01-20  Bruno Haible  <bruno@clisp.org>
47667
47668         Fix compilation failure on mingw.
47669         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
47670
47671 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
47672
47673         * doc/c-strtod.texi: Mention a couple of restrictions.
47674
47675 2009-01-20  Jim Meyering  <meyering@redhat.com>
47676
47677         gettimeofday: move more declarations out of functions
47678         * lib/gettimeofday.c: Move extern declarations of tzset and
47679         gmtime out of containing functions.  Prompted by Bruno Haible.
47680
47681 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47682
47683         regex: do not depend on obsolete modules.
47684         * modules/regex: Remove memcmp and memmove.
47685
47686 2009-01-19  Bruno Haible  <bruno@clisp.org>
47687
47688         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47689         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
47690         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47691         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
47692         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
47693
47694 2009-01-19  Bruno Haible  <bruno@clisp.org>
47695
47696         * tests/test-link.c: Include <errno.h>.
47697         (main): Exit with code 77 when a hard link cannot be created due to
47698         the file system.
47699         * tests/test-link.sh: Skip test when a hard link cannot be created due
47700         to the file system.
47701         Suggested by Eric Blake.
47702
47703 2009-01-19  Martin Lambers  <marlam@marlam.de>
47704
47705         * modules/link-tests: New file.
47706         * tests/test-link.sh: New file.
47707         * tests/test-link.c: New file.
47708
47709 2009-01-19  Eric Blake  <ebb9@byu.net>
47710
47711         doc: mention another function added in cygwin 1.7.0
47712         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
47713         Another new function in cygwin 1.7.
47714
47715 2009-01-19  Bruno Haible  <bruno@clisp.org>
47716
47717         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47718         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
47719         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
47720         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47721         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
47722         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
47723         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47724         * m4/md4.m4 (gl_MD4): Likewise.
47725         * m4/md5.m4 (gl_MD5): Likewise.
47726         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
47727         * m4/sha1.m4 (gl_SHA1): Likewise.
47728         * m4/sha256.m4 (gl_SHA256): Likewise.
47729         * m4/sha512.m4 (gl_SHA512): Likewise.
47730
47731 2009-01-19  Bruno Haible  <bruno@clisp.org>
47732
47733         * modules/uniname/uniname-tests (Depends-on): Add progname.
47734         * tests/uniname/test-uninames.c: Include progname.h.
47735         (main): Call set_program_name.
47736
47737         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
47738         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
47739         (main): Call set_program_name.
47740
47741         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
47742         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
47743         (main): Call set_program_name.
47744
47745         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
47746         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
47747         (main): Call set_program_name.
47748
47749         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
47750         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
47751         (main): Call set_program_name.
47752
47753         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
47754         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
47755         (main): Call set_program_name.
47756
47757         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
47758         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
47759         (main): Call set_program_name.
47760
47761         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
47762         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
47763         (main): Call set_program_name.
47764
47765         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
47766         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
47767         (main): Call set_program_name.
47768
47769 2009-01-19  Eric Blake  <ebb9@byu.net>
47770
47771         test-unistd: test previous patch
47772         * tests/test-unistd.c: Test *_FILENO macros.
47773
47774         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
47775         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47776         Guarantee a definition.
47777         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
47778         * modules/unistd-safer (Depends-on): Add dependency on unistd.
47779         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
47780         * lib/dup-safer.c (STDERR_FILENO): Likewise.
47781         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47782         Likewise.
47783         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
47784         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
47785         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47786         Likewise.
47787         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
47788         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
47789         (STDERR_FILENO): Likewise.
47790         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
47791         (STDERR_FILENO): Likewise.
47792         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
47793         (STDERR_FILENO): Likewise.
47794         Reported by Elbert Pol.
47795
47796 2009-01-19  Eric Blake  <ebb9@byu.net>
47797
47798         doc: mention more functions added in cygwin 1.7.0
47799         * doc/posix-functions/abort.texi (abort): Update wording related
47800         to cygwin.
47801         * doc/posix-functions/daylight.texi (daylight): Likewise.
47802         * doc/posix-functions/optarg.texi (optarg): Likewise.
47803         * doc/posix-functions/optarg.texi (opterr): Likewise.
47804         * doc/posix-functions/optarg.texi (optind): Likewise.
47805         * doc/posix-functions/optarg.texi (optopt): Likewise.
47806         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
47807         worked in 1.5.x, and was withdrawn in 1.7.
47808         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
47809         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
47810         cygwin versions.
47811         * doc/posix-functions/perror.texi (perror): Likewise.
47812         * doc/posix-functions/printf.texi (printf): Likewise.
47813         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
47814         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
47815         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
47816         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
47817         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47818         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
47819         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47820         Likewise.
47821         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47822         Likewise.
47823         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
47824         this function.
47825         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
47826         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
47827         Likewise.
47828         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
47829         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
47830         * doc/posix-functions/confstr.texi (confstr): Likewise.
47831         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
47832         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
47833         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
47834         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
47835         * doc/posix-functions/fputws.texi (fputws): Likewise.
47836         * doc/posix-functions/fwide.texi (fwide): Likewise.
47837         * doc/posix-functions/getwc.texi (getwc): Likewise.
47838         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
47839         * doc/posix-functions/putwc.texi (putwc): Likewise.
47840         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
47841         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
47842         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
47843         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
47844         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
47845         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
47846         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
47847         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
47848         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
47849         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
47850         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
47851
47852 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47853
47854         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
47855         * lib/ioctl.c: Include <sys/ioctl.h>.
47856
47857 2009-01-19  Simon Josefsson  <simon@josefsson.org>
47858
47859         * modules/getdate-tests (Depends-on): Add progname.
47860         * tests/test-getdate.c: Use progname module, to avoid link errors
47861         on non-glibc systems.
47862
47863 2009-01-18  Simon Josefsson  <simon@josefsson.org>
47864
47865         * modules/filenamecat-tests (Depends-on): Add progname.
47866         * modules/fstrcmp-tests (Depends-on): Likewise.
47867
47868         * tests/test-filenamecat.c: Use progname module, to avoid link
47869         errors on non-glibc systems.
47870         * tests/test-fstrcmp.c: Likewise.
47871
47872 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47873
47874         gettimeofday: avoid warning: nested extern declaration of 'localtime'
47875         * lib/gettimeofday.c: Move extern declaration out of function.
47876
47877 2009-01-18  Bruno Haible  <bruno@clisp.org>
47878
47879         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
47880         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
47881         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
47882
47883 2009-01-18  Bruno Haible  <bruno@clisp.org>
47884
47885         * lib/strftime.c (MEMPCPY): Remove unused macro.
47886         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
47887
47888 2009-01-18  Martin Lambers  <marlam@marlam.de>
47889
47890         New module 'link'.
47891         * lib/unistd.in.h (link): New declaration.
47892         * lib/link.c: New file.
47893         * m4/link.m4: New file.
47894         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
47895         HAVE_LINK.
47896         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
47897         * modules/link: New file.
47898         * doc/posix-functions/link.texi: Mention the new module.
47899
47900 2009-01-18  Bruno Haible  <bruno@clisp.org>
47901
47902         * tests/test-avltree_list.c (main): Call set_program_name.
47903         * tests/test-avltree_oset.c (main): Likewise.
47904         * tests/test-obstack-printf.c: Include progname.h.
47905         (main): Call set_program_name.
47906         * tests/test-quotearg.c: Include progname.h.
47907         (main): Call set_program_name.
47908         * tests/test-xmemdup0.c: Include progname.h.
47909         (main): Call set_program_name.
47910
47911 2009-01-18  Bruno Haible  <bruno@clisp.org>
47912
47913         New module 'alphasort'.
47914         * lib/dirent.in.h (alphasort): New declaration.
47915         * lib/alphasort.c: New file, from glibc with modifications.
47916         * m4/alphasort.m4: New file.
47917         * modules/alphasort: New file.
47918         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
47919         HAVE_ALPHASORT.
47920         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
47921         HAVE_ALPHASORT.
47922         * doc/posix-functions/alphasort.texi: Mention the new module and the
47923         portability problems.
47924
47925 2009-01-18  Bruno Haible  <bruno@clisp.org>
47926
47927         New module 'scandir'.
47928         * lib/dirent.in.h (scandir): New declaration.
47929         * lib/scandir.c: New file, from glibc with modifications.
47930         * m4/scandir.m4: New file.
47931         * modules/scandir: New file.
47932         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
47933         HAVE_SCANDIR.
47934         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
47935         HAVE_SCANDIR.
47936         * doc/posix-functions/scandir.texi: Mention the new module and the
47937         portability problems.
47938
47939 2009-01-17  Bruno Haible  <bruno@clisp.org>
47940
47941         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
47942         Update documentation.
47943         (func_remove_suffix): Escape all dots in the suffix. Update
47944         documentation.
47945         (func_filter_filelist): Update documentation.
47946         Reported by Ralf Wildenhues.
47947
47948 2009-01-17  Bruno Haible  <bruno@clisp.org>
47949
47950         * modules/dprintf-posix-tests: New file.
47951         * tests/test-dprintf-posix.sh: New file.
47952         * tests/test-dprintf-posix.c: New file.
47953
47954         New modules 'dprintf', 'dprintf-posix'.
47955         * lib/stdio.in.h (dprintf): New declaration.
47956         * lib/dprintf.c: New file.
47957         * m4/dprintf.m4: New file.
47958         * m4/dprintf-posix.m4: New file.
47959         * modules/dprintf: New file.
47960         * modules/dprintf-posix: New file.
47961         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
47962         HAVE_DPRINTF, REPLACE_DPRINTF.
47963         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
47964         HAVE_DPRINTF, REPLACE_DPRINTF.
47965         * doc/posix-functions/dprintf.texi: Mention the new modules.
47966
47967 2009-01-17  Bruno Haible  <bruno@clisp.org>
47968
47969         * modules/vdprintf-posix-tests: New file.
47970         * tests/test-vdprintf-posix.sh: New file.
47971         * tests/test-vdprintf-posix.c: New file.
47972
47973         New modules 'vdprintf', 'vdprintf-posix'.
47974         * lib/stdio.in.h (vdprintf): New declaration.
47975         * lib/vdprintf.c: New file.
47976         * m4/vdprintf.m4: New file.
47977         * m4/vdprintf-posix.m4: New file.
47978         * modules/vdprintf: New file.
47979         * modules/vdprintf-posix: New file.
47980         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
47981         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47982         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
47983         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47984         * doc/posix-functions/vdprintf.texi: Mention the new modules.
47985
47986 2009-01-17  Bruno Haible  <bruno@clisp.org>
47987
47988         Fix replacement of fopen on mingw.
47989         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
47990         mingw.
47991
47992 2009-01-17  Bruno Haible  <bruno@clisp.org>
47993
47994         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
47995         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
47996
47997 2009-01-17  Bruno Haible  <bruno@clisp.org>
47998
47999         Avoid test-fflush2.sh failure on mingw.
48000         * tests/test-fflush2.c: Include binary-io.h.
48001         (main): Put standard input into binary mode.
48002         * modules/fflush-tests (Depends-on): Add binary-io.
48003
48004 2009-01-17  Bruno Haible  <bruno@clisp.org>
48005
48006         * lib/wchar.in.h: In another particular situation, include only the
48007         system's <wchar.h> file.
48008         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
48009         Reported by Albert Chin-A-Young <china@thewrittenword.com>
48010         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
48011
48012 2009-01-17  Bruno Haible  <bruno@clisp.org>
48013
48014         Support for stripping executables in --enable-relocatable.
48015         * build-aux/install-reloc: Expect one more argument, or an environment
48016         variable RELOC_STRIP_PROG. If set, strip the destination program and
48017         its wrapper.
48018         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
48019         RELOC_STRIP_PROG.
48020         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
48021         to set RELOCATABLE_STRIP.
48022         * NEWS: Mention the new Makefile requirement.
48023
48024 2009-01-17  Bruno Haible  <bruno@clisp.org>
48025
48026         * build-aux/install-reloc: Remove debugging information left over by
48027         C compiler on MacOS X.
48028
48029 2009-01-17  Bruno Haible  <bruno@clisp.org>
48030
48031         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
48032         * lib/progreloc.c (find_executable): Fix type of pointer passed to
48033         _NSGetExecutablePath.
48034
48035 2009-01-16  Jim Meyering  <meyering@redhat.com>
48036
48037         strerror: avoid warnings about discarding "const"
48038         * lib/strerror.c (rpl_strerror): Instead of returning a const
48039         string from each and every "case", use a variable, and add a single
48040         cast after the switch.
48041
48042 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
48043
48044         * lib/arpa_inet.in.h: Add extern "C" block for C++.
48045
48046 2009-01-16  Bruno Haible  <bruno@clisp.org>
48047
48048         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
48049         array initializer syntax that also works in C++ mode.
48050         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48051
48052 2009-01-16  Jim Meyering  <meyering@redhat.com>
48053
48054         poll: suppress a warning
48055         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
48056         to ignore "...unsigned expression < 0 is always false" warnings.
48057
48058 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
48059
48060         poll: remove declarations of unused variables
48061         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
48062         sockbuf and optlen.
48063
48064 2009-01-15  Bruno Haible  <bruno@clisp.org>
48065
48066         Make fflush-after-ungetc POSIX compliant on BSD systems.
48067         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
48068         (clear_ungetc_buffer): Implement also for other systems.
48069         (rpl_fflush): On glibc systems, invoke
48070         clear_ungetc_buffer_preserving_position. Otherwise, invoke
48071         clear_ungetc_buffer after fetching the stream's position, not before.
48072
48073 2009-01-15  Bruno Haible  <bruno@clisp.org>
48074
48075         Make fflush-after-ungetc POSIX compliant on glibc systems.
48076         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
48077         after ungetc.
48078         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
48079         (rpl_fflush): On glibc systems, simply call the system's fflush
48080         function after clearing the ungetc buffer.
48081         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
48082         Instead, lseek only to the end of file, then use the system's fseeko
48083         for the rest. On glibc systems, reset the EOF indicator bit.
48084
48085 2009-01-15  Jim Meyering  <meyering@redhat.com>
48086
48087         openmp.m4: revert quote-adding change, for portability to older autoconf
48088         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
48089         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
48090         Simon Josefsson noticed the problem when using autoconf-2.61.
48091
48092 2009-01-15  Bruno Haible  <bruno@clisp.org>
48093
48094         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
48095         * tests/test-fflush2.c (ASSERT): Always fail.
48096         (main): Add two tests for fflush() after ungetc(), taking into account
48097         the Austin Group's clarification.
48098         Suggested by Eric Blake.
48099
48100 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
48101
48102         mktime.m4: remove K&R-style function prototypes
48103         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
48104         for the Sun C++ compiler.
48105
48106 2009-01-14  Bruno Haible  <bruno@clisp.org>
48107
48108         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
48109         while including <wchar.h>.
48110         * lib/wchar.in.h: In two particular situations on HP-UX, include only
48111         the system's <wchar.h> file.
48112         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48113
48114 2009-01-14  Bruno Haible  <bruno@clisp.org>
48115
48116         * m4/csharp.m4: Don't mention gettext on the serial number line.
48117         * m4/csharpexec.m4: Likewise.
48118         * m4/eaccess.m4: Likewise.
48119         * m4/javaexec.m4: Likewise.
48120         * m4/sig_atomic_t.m4: Likewise.
48121         * m4/tmpdir.m4: Likewise.
48122         * m4/intldir.m4: Bump gettext version.
48123         * m4/lib-ld.m4: Likewise.
48124
48125 2009-01-14  Bruno Haible  <bruno@clisp.org>
48126
48127         * lib/progname.c (set_program_name): Add more comments.
48128         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
48129
48130 2009-01-14  Simon Josefsson  <simon@josefsson.org>
48131
48132         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
48133         were sys/stat.h does not define it.
48134
48135 2009-01-14  Jim Meyering  <meyering@redhat.com>
48136
48137         many *.m4 files: improve m4 quoting
48138         99% of this change was performed by running the following commands:
48139         git ls-files | grep '\.m4$' | xargs perl -pi \
48140           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
48141           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48142           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48143           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
48144         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
48145         The remainder were to add Copyright dates, increment serial numbers,
48146         undo some changes in comments, exclude m4/intl.m4, and add quotes
48147         around the "1" in ",1" where the unusual spacing prohibited the
48148         above regexps from doing the job.  For more details, see
48149         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
48150         * m4/acl.m4: Modified.
48151         * m4/afs.m4: Likewise.
48152         * m4/alloca.m4: Likewise.
48153         * m4/argp.m4: Likewise.
48154         * m4/argz.m4: Likewise.
48155         * m4/atexit.m4: Likewise.
48156         * m4/bison-i18n.m4: Likewise.
48157         * m4/bison.m4: Likewise.
48158         * m4/byteswap.m4: Likewise.
48159         * m4/c-stack.m4: Likewise.
48160         * m4/c-strtod.m4: Likewise.
48161         * m4/calloc.m4: Likewise.
48162         * m4/canonicalize-lgpl.m4: Likewise.
48163         * m4/chown.m4: Likewise.
48164         * m4/clock_time.m4: Likewise.
48165         * m4/codeset.m4: Likewise.
48166         * m4/copy-file.m4: Likewise.
48167         * m4/csharp.m4: Likewise.
48168         * m4/csharpcomp.m4: Likewise.
48169         * m4/csharpexec.m4: Likewise.
48170         * m4/d-ino.m4: Likewise.
48171         * m4/d-type.m4: Likewise.
48172         * m4/dirfd.m4: Likewise.
48173         * m4/double-slash-root.m4: Likewise.
48174         * m4/eaccess.m4: Likewise.
48175         * m4/eealloc.m4: Likewise.
48176         * m4/environ.m4: Likewise.
48177         * m4/errno_h.m4: Likewise.
48178         * m4/euidaccess.m4: Likewise.
48179         * m4/execute.m4: Likewise.
48180         * m4/fatal-signal.m4: Likewise.
48181         * m4/fchdir.m4: Likewise.
48182         * m4/fcntl_h.m4: Likewise.
48183         * m4/fileblocks.m4: Likewise.
48184         * m4/filenamecat.m4: Likewise.
48185         * m4/findprog.m4: Likewise.
48186         * m4/flexmember.m4: Likewise.
48187         * m4/fnmatch.m4: Likewise.
48188         * m4/fopen.m4: Likewise.
48189         * m4/fpending.m4: Likewise.
48190         * m4/fprintf-posix.m4: Likewise.
48191         * m4/free.m4: Likewise.
48192         * m4/frexp.m4: Likewise.
48193         * m4/frexpl.m4: Likewise.
48194         * m4/fsusage.m4: Likewise.
48195         * m4/ftruncate.m4: Likewise.
48196         * m4/gc-camellia.m4: Likewise.
48197         * m4/gc-random.m4: Likewise.
48198         * m4/gc.m4: Likewise.
48199         * m4/getaddrinfo.m4: Likewise.
48200         * m4/getcwd-abort-bug.m4: Likewise.
48201         * m4/getcwd-path-max.m4: Likewise.
48202         * m4/getdate.m4: Likewise.
48203         * m4/getdomainname.m4: Likewise.
48204         * m4/getgroups.m4: Likewise.
48205         * m4/gethostname.m4: Likewise.
48206         * m4/gethrxtime.m4: Likewise.
48207         * m4/getline.m4: Likewise.
48208         * m4/getloadavg.m4: Likewise.
48209         * m4/getndelim2.m4: Likewise.
48210         * m4/getpass.m4: Likewise.
48211         * m4/gettext.m4: Likewise.
48212         * m4/gettime.m4: Likewise.
48213         * m4/gettimeofday.m4: Likewise.
48214         * m4/gnulib-common.m4: Likewise.
48215         * m4/group-member.m4: Likewise.
48216         * m4/host-os.m4: Likewise.
48217         * m4/iconv.m4: Likewise.
48218         * m4/iconv_open.m4: Likewise.
48219         * m4/inet_ntop.m4: Likewise.
48220         * m4/inet_pton.m4: Likewise.
48221         * m4/inline.m4: Likewise.
48222         * m4/intldir.m4: Likewise.
48223         * m4/intlmacosx.m4: Likewise.
48224         * m4/intmax.m4: Likewise.
48225         * m4/intmax_t.m4: Likewise.
48226         * m4/inttypes.m4: Likewise.
48227         * m4/inttypes_h.m4: Likewise.
48228         * m4/inttypes-pri.m4: Likewise.
48229         * m4/isapipe.m4: Likewise.
48230         * m4/isnand.m4: Likewise.
48231         * m4/isnanf.m4: Likewise.
48232         * m4/isnanl.m4: Likewise.
48233         * m4/javacomp.m4: Likewise.
48234         * m4/javaexec.m4: Likewise.
48235         * m4/jm-winsz1.m4: Likewise.
48236         * m4/jm-winsz2.m4: Likewise.
48237         * m4/lchown.m4: Likewise.
48238         * m4/lcmessage.m4: Likewise.
48239         * m4/ldexpl.m4: Likewise.
48240         * m4/lib-ld.m4: Likewise.
48241         * m4/lib-link.m4: Likewise.
48242         * m4/libsigsegv.m4: Likewise.
48243         * m4/link-follow.m4: Likewise.
48244         * m4/localcharset.m4: Likewise.
48245         * m4/locale-fr.m4: Likewise.
48246         * m4/locale-ja.m4: Likewise.
48247         * m4/locale-tr.m4: Likewise.
48248         * m4/locale-zh.m4: Likewise.
48249         * m4/lock.m4: Likewise.
48250         * m4/longlong.m4: Likewise.
48251         * m4/ls-mntd-fs.m4: Likewise.
48252         * m4/lstat.m4: Likewise.
48253         * m4/malloc.m4: Likewise.
48254         * m4/mathl.m4: Likewise.
48255         * m4/mbrtowc.m4: Likewise.
48256         * m4/mbstate_t.m4: Likewise.
48257         * m4/mbswidth.m4: Likewise.
48258         * m4/memchr.m4: Likewise.
48259         * m4/memcmp.m4: Likewise.
48260         * m4/memcpy.m4: Likewise.
48261         * m4/memmem.m4: Likewise.
48262         * m4/memmove.m4: Likewise.
48263         * m4/mempcpy.m4: Likewise.
48264         * m4/memrchr.m4: Likewise.
48265         * m4/memset.m4: Likewise.
48266         * m4/minmax.m4: Likewise.
48267         * m4/mkdir-slash.m4: Likewise.
48268         * m4/mkdtemp.m4: Likewise.
48269         * m4/mktime.m4: Likewise.
48270         * m4/mmap-anon.m4: Likewise.
48271         * m4/mountlist.m4: Likewise.
48272         * m4/nanosleep.m4: Likewise.
48273         * m4/nls.m4: Likewise.
48274         * m4/nocrash.m4: Likewise.
48275         * m4/open.m4: Likewise.
48276         * m4/openat.m4: Likewise.
48277         * m4/openmp.m4: Likewise.
48278         * m4/pathmax.m4: Likewise.
48279         * m4/perl.m4: Likewise.
48280         * m4/physmem.m4: Likewise.
48281         * m4/pipe.m4: Likewise.
48282         * m4/po.m4: Likewise.
48283         * m4/poll.m4: Likewise.
48284         * m4/posixtm.m4: Likewise.
48285         * m4/posixver.m4: Likewise.
48286         * m4/printf-frexp.m4: Likewise.
48287         * m4/printf-frexpl.m4: Likewise.
48288         * m4/printf-posix.m4: Likewise.
48289         * m4/printf-posix-rpl.m4: Likewise.
48290         * m4/printf.m4: Likewise.
48291         * m4/progtest.m4: Likewise.
48292         * m4/putenv.m4: Likewise.
48293         * m4/readline.m4: Likewise.
48294         * m4/readlink.m4: Likewise.
48295         * m4/readutmp.m4: Likewise.
48296         * m4/realloc.m4: Likewise.
48297         * m4/regex.m4: Likewise.
48298         * m4/relocatable.m4: Likewise.
48299         * m4/relocatable-lib.m4: Likewise.
48300         * m4/rename-dest-slash.m4: Likewise.
48301         * m4/rename.m4: Likewise.
48302         * m4/rmdir-errno.m4: Likewise.
48303         * m4/rmdir.m4: Likewise.
48304         * m4/roundf.m4: Likewise.
48305         * m4/roundl.m4: Likewise.
48306         * m4/rpmatch.m4: Likewise.
48307         * m4/save-cwd.m4: Likewise.
48308         * m4/selinux-selinux-h.m4: Likewise.
48309         * m4/setenv.m4: Likewise.
48310         * m4/settime.m4: Likewise.
48311         * m4/sig2str.m4: Likewise.
48312         * m4/sig_atomic_t.m4: Likewise.
48313         * m4/signalblocking.m4: Likewise.
48314         * m4/signbit.m4: Likewise.
48315         * m4/sigpipe.m4: Likewise.
48316         * m4/sockets.m4: Likewise.
48317         * m4/sockpfaf.m4: Likewise.
48318         * m4/st_dm_mode.m4: Likewise.
48319         * m4/stat-time.m4: Likewise.
48320         * m4/stdbool.m4: Likewise.
48321         * m4/stdint.m4: Likewise.
48322         * m4/stdint_h.m4: Likewise.
48323         * m4/stpcpy.m4: Likewise.
48324         * m4/stpncpy.m4: Likewise.
48325         * m4/strcase.m4: Likewise.
48326         * m4/strchrnul.m4: Likewise.
48327         * m4/strcspn.m4: Likewise.
48328         * m4/strdup.m4: Likewise.
48329         * m4/strftime.m4: Likewise.
48330         * m4/strndup.m4: Likewise.
48331         * m4/strnlen.m4: Likewise.
48332         * m4/strpbrk.m4: Likewise.
48333         * m4/strptime.m4: Likewise.
48334         * m4/strsep.m4: Likewise.
48335         * m4/strtod.m4: Likewise.
48336         * m4/strtoimax.m4: Likewise.
48337         * m4/strtok_r.m4: Likewise.
48338         * m4/strtol.m4: Likewise.
48339         * m4/strtoll.m4: Likewise.
48340         * m4/strtoul.m4: Likewise.
48341         * m4/strtoull.m4: Likewise.
48342         * m4/strtoumax.m4: Likewise.
48343         * m4/strverscmp.m4: Likewise.
48344         * m4/threadlib.m4: Likewise.
48345         * m4/timegm.m4: Likewise.
48346         * m4/tm_gmtoff.m4: Likewise.
48347         * m4/tmpdir.m4: Likewise.
48348         * m4/tmpfile.m4: Likewise.
48349         * m4/tzset.m4: Likewise.
48350         * m4/uintmax_t.m4: Likewise.
48351         * m4/unlinkdir.m4: Likewise.
48352         * m4/unlocked-io.m4: Likewise.
48353         * m4/uptime.m4: Likewise.
48354         * m4/userspec.m4: Likewise.
48355         * m4/utimbuf.m4: Likewise.
48356         * m4/utime.m4: Likewise.
48357         * m4/utimes-null.m4: Likewise.
48358         * m4/utimes.m4: Likewise.
48359         * m4/vararrays.m4: Likewise.
48360         * m4/vasnprintf.m4: Likewise.
48361         * m4/vfprintf-posix.m4: Likewise.
48362         * m4/vprintf-posix.m4: Likewise.
48363         * m4/wait-process.m4: Likewise.
48364         * m4/wchar_t.m4: Likewise.
48365         * m4/wint_t.m4: Likewise.
48366         * m4/write-any-file.m4: Likewise.
48367         * m4/yield.m4: Likewise.
48368
48369 2009-01-13  Bruno Haible  <bruno@clisp.org>
48370
48371         Avoid test-copy-file.sh failures when ACL support insufficient.
48372         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
48373         TESTS_ENVIRONMENT.
48374         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
48375         Reported by Jim Meyering.
48376
48377 2009-01-13  Bruno Haible  <bruno@clisp.org>
48378
48379         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
48380         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
48381         * modules/unistdio/u8-printf-parse (Files): Likewise.
48382         * modules/unistdio/u32-printf-parse (Files): Likewise.
48383         * modules/unistdio/ulc-printf-parse (Files): Likewise.
48384
48385 2009-01-13  Simon Josefsson  <simon@josefsson.org>
48386
48387         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
48388         and m4/inttypes_h.m4 too.
48389
48390 2009-01-12  Eric Blake  <ebb9@byu.net>
48391
48392         tests: IRIX 6.2 cc can't compile -0.0 into .data
48393         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
48394         rather than at compile-time.
48395         * tests/test-floorl.c (minus_zero): Likewise.
48396         * tests/test-frexpl.c (minus_zero): Likewise.
48397         * tests/test-isnan.c (minus_zerol): Likewise.
48398         * tests/test-isnanl.h (minus_zero): Likewise.
48399         * tests/test-ldexpl.c (minus_zero): Likewise.
48400         * tests/test-roundl.c (minus_zero): Likewise.
48401         * tests/test-signbit.c (minus_zerol): Likewise.
48402         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
48403         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
48404         * tests/test-truncl.c (minus_zero): Likewise.
48405         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
48406         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
48407         Reported by Tom G. Christensen and Nelson H. F. Beebe.
48408
48409 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48410
48411         regex: fix glibc bug 9697
48412         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
48413         handling.
48414
48415 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48416
48417         regex: fix glibc bug 697
48418         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
48419         being NULL also if there are no backreferences.
48420
48421 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48422
48423         regex: merge glibc changes
48424         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
48425         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
48426         re_string_skip_chars, re_string_reconstruct): Likewise.
48427         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
48428
48429 2009-01-07  Jim Meyering  <meyering@redhat.com>
48430
48431         poll: filter through cppi
48432         * lib/poll.c: Indent cpp directives to reflect nesting.
48433
48434 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
48435
48436         poll: don't return uninitialized
48437         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
48438
48439 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
48440
48441         avoid compile failure on AIX 6.1
48442         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
48443         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
48444
48445 2009-01-04  Jim Meyering  <meyering@redhat.com>
48446
48447         remove duplicate inclusion of <stdio.h>
48448         * tests/test-fprintf-posix.c: Likewise.
48449         * tests/test-printf-posix.c: Likewise.
48450         * tests/test-snprintf-posix.c: Likewise.
48451         * tests/test-sprintf-posix.c: Likewise.
48452         * tests/test-vasprintf-posix.c: Likewise.
48453         * tests/test-vfprintf-posix.c: Likewise.
48454         * tests/test-vprintf-posix.c: Likewise.
48455         * tests/test-vsnprintf-posix.c: Likewise.
48456         * tests/test-vsprintf-posix.c: Likewise.
48457
48458 2009-01-03  Jim Meyering  <meyering@redhat.com>
48459
48460         gnulib-tool: fix sed-based filtering
48461         * gnulib-tool (func_filter_filelist): Remove extra backslash
48462         in sed_fff_filter definition.
48463
48464 2009-01-02  Jim Meyering  <meyering@redhat.com>
48465
48466         strftime: avoid compilation failure on Solaris 2.6
48467         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
48468         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
48469         Don't #define mbrlen or mbsinit, since now they're guaranteed to
48470         be available.  Reported by Tom G. Christensen.  Details in
48471         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
48472
48473 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48474             Bruno Haible  <bruno@clisp.org>
48475
48476         Speed up gnulib-tool by doing more string processing through shell
48477         built-ins.
48478         * gnulib-tool (fast_func_append): New variable.
48479         (func_remove_prefix, func_remove_suffix): New functions.
48480         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
48481         (func_filter_filelist): New function.
48482         (func_get_dependencies): Use func_remove_suffix instead of sed.
48483         (func_get_automake_snippet): Use func_filter_filelist instead of a
48484         subshell and sed invocation.
48485
48486 2009-01-01  Bruno Haible  <bruno@clisp.org>
48487
48488         Fix a security bug.
48489         * gnulib-tool (func_import, import, update): Don't allow the characters
48490         '"', '$', '`', '\' in macro arguments that become part of commands that
48491         are evaluated.
48492
48493 2009-01-01  Bruno Haible  <bruno@clisp.org>
48494
48495         * gnulib-tool (func_reset_sigpipe): Add more comments.
48496
48497 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48498
48499         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
48500         func_emit_tests_Makefile_am, func_import): Abort loops early if we
48501         already know the answer.
48502
48503 2009-01-01  Jim Meyering  <meyering@redhat.com>
48504
48505         * lib/version-etc.c (version_etc_va): Update copyright year.
48506
48507 2008-12-30  Bruno Haible  <bruno@clisp.org>
48508
48509         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
48510         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
48511         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
48512
48513 2008-12-29  Eric Blake  <ebb9@byu.net>
48514
48515         multiarch: avoid autoconf AC_REQUIRE bug
48516         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
48517         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
48518         2.63 and older.
48519         Reported by Bruno Haible, and analyzed in
48520         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
48521
48522 2008-12-29  Bruno Haible  <bruno@clisp.org>
48523
48524         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
48525         files in subdirectories correctly.
48526         Reported by Ralf Wildenhues.
48527
48528 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48529
48530         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
48531         rather than 'join FILE -', for Solaris join.
48532
48533 2008-12-29  Bruno Haible  <bruno@clisp.org>
48534
48535         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
48536         quoting.
48537         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
48538         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
48539         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
48540         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
48541         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
48542         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
48543         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
48544         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
48545         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
48546         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
48547         * m4/nls.m4 (AM_NLS): Likewise.
48548         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
48549         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
48550         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
48551         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
48552         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
48553         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
48554         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
48555         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
48556         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
48557         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
48558         * m4/xsize.m4 (gl_XSIZE): Likewise.
48559         Suggested by Jim Meyering.
48560
48561 2008-11-17  Bruce Korb  <bkorb@gnu.org>
48562
48563         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
48564         * lib/parse-duration.c: use a switch instead of cascading if's.
48565
48566 2008-12-29  Eric Blake  <ebb9@byu.net>
48567
48568         wchar.h: supply WEOF on Irix 5.3
48569         * lib/wchar.in.h (wint_t): Also supply WEOF.
48570         * lib/wctype.in.h (wint_t): Likewise.
48571         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
48572         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
48573         Reported by Tom G. Christensen.
48574
48575 2008-12-26  Bruno Haible  <bruno@clisp.org>
48576
48577         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
48578         i486, i586, i686.
48579
48580 2008-12-26  Bruno Haible  <bruno@clisp.org>
48581
48582         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
48583
48584 2008-12-26  Bruno Haible  <bruno@clisp.org>
48585
48586         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
48587         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
48588         not __STDC_CONSTANT_MACROS.
48589         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
48590
48591 2008-12-25  Bruno Haible  <bruno@clisp.org>
48592
48593         Add support for universal builds to vasnprintf.
48594         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
48595         universal builds, guess no.
48596         * modules/vasnprintf-posix (Depends-on): Add multiarch.
48597         * modules/vasprintf-posix (Depends-on): Likewise.
48598         * modules/fprintf-posix (Depends-on): Likewise.
48599         * modules/vfprintf-posix (Depends-on): Likewise.
48600         * modules/snprintf-posix (Depends-on): Likewise.
48601         * modules/vsnprintf-posix (Depends-on): Likewise.
48602         * modules/sprintf-posix (Depends-on): Likewise.
48603         * modules/vsprintf-posix (Depends-on): Likewise.
48604         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48605         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48606         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48607         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48608         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48609         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48610         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48611
48612         Add support for universal builds to <inttypes.h>.
48613         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
48614         _SCNu64_PREFIX): In Apple
48615         universal builds, define directly, using _LP64.
48616         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
48617         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
48618         * modules/inttypes (Depends-on): Add multiarch.
48619         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48620
48621         Add support for universal builds to <stdint.h>.
48622         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
48623         universal builds, define directly, using _LP64.
48624         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
48625         Apple universal builds, don't test for the size and suffix of ptrdiff_t
48626         and size_t.
48627         * modules/stdint (Depends-on): Add multiarch.
48628         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48629
48630         New module 'multiarch'.
48631         * modules/multiarch: New file.
48632         * m4/multiarch.m4: New file.
48633
48634 2008-12-25  Bruno Haible  <bruno@clisp.org>
48635
48636         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
48637
48638 2008-12-25  Bruno Haible  <bruno@clisp.org>
48639
48640         * modules/btowc (License): Relicense under LGPLv2+.
48641         * modules/mbsinit (License): Likewise.
48642         * modules/mbrtowc (License): Likewise.
48643         * modules/wcrtomb (License): Likewise.
48644         * modules/streq (License): Likewise.
48645         Reported by David Lutterkort <lutter@redhat.com>.
48646
48647 2008-12-23  Bruno Haible  <bruno@clisp.org>
48648
48649         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
48650
48651 2008-12-23  Bruno Haible  <bruno@clisp.org>
48652
48653         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
48654         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
48655         GETADDRINFO_LIB, not in LIBS.
48656         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
48657         * modules/canon-host (Link): Likewise.
48658         * NEWS: Mention the change.
48659         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
48660         GETADDRINFO_LIB.
48661
48662 2008-12-22  Bruno Haible  <bruno@clisp.org>
48663
48664         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
48665         * doc/posix-functions/iswalpha_l.texi: Likewise.
48666         * doc/posix-functions/iswblank_l.texi: Likewise.
48667         * doc/posix-functions/iswcntrl_l.texi: Likewise.
48668         * doc/posix-functions/iswctype_l.texi: Likewise.
48669         * doc/posix-functions/iswdigit_l.texi: Likewise.
48670         * doc/posix-functions/iswgraph_l.texi: Likewise.
48671         * doc/posix-functions/iswlower_l.texi: Likewise.
48672         * doc/posix-functions/iswprint_l.texi: Likewise.
48673         * doc/posix-functions/iswpunct_l.texi: Likewise.
48674         * doc/posix-functions/iswspace_l.texi: Likewise.
48675         * doc/posix-functions/iswupper_l.texi: Likewise.
48676         * doc/posix-functions/iswxdigit_l.texi: Likewise.
48677         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
48678         * doc/posix-functions/open_wmemstream.texi: Likewise.
48679         * doc/posix-functions/swscanf.texi: Likewise.
48680         * doc/posix-functions/towctrans_l.texi: Likewise.
48681         * doc/posix-functions/towlower.texi: Likewise.
48682         * doc/posix-functions/towlower_l.texi: Likewise.
48683         * doc/posix-functions/towupper.texi: Likewise.
48684         * doc/posix-functions/towupper_l.texi: Likewise.
48685         * doc/posix-functions/vfwprintf.texi: Likewise.
48686         * doc/posix-functions/vfwscanf.texi: Likewise.
48687         * doc/posix-functions/vswscanf.texi: Likewise.
48688         * doc/posix-functions/vwprintf.texi: Likewise.
48689         * doc/posix-functions/vwscanf.texi: Likewise.
48690         * doc/posix-functions/wcpcpy.texi: Likewise.
48691         * doc/posix-functions/wcpncpy.texi: Likewise.
48692         * doc/posix-functions/wcscasecmp.texi: Likewise.
48693         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
48694         * doc/posix-functions/wcscoll_l.texi: Likewise.
48695         * doc/posix-functions/wcsdup.texi: Likewise.
48696         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48697         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
48698         * doc/posix-functions/wcsnlen.texi: Likewise.
48699         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48700         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
48701         * doc/posix-functions/wctrans_l.texi: Likewise.
48702         * doc/posix-functions/wctype_l.texi: Likewise.
48703         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
48704         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
48705         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
48706         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
48707         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
48708         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
48709         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
48710         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
48711         * doc/glibc-functions/wcschrnul.texi: Likewise.
48712         * doc/glibc-functions/wcsftime_l.texi: Likewise.
48713         * doc/glibc-functions/wcstod_l.texi: Likewise.
48714         * doc/glibc-functions/wcstof_l.texi: Likewise.
48715         * doc/glibc-functions/wcstol_l.texi: Likewise.
48716         * doc/glibc-functions/wcstold_l.texi: Likewise.
48717         * doc/glibc-functions/wcstoll_l.texi: Likewise.
48718         * doc/glibc-functions/wcstoq.texi: Likewise.
48719         * doc/glibc-functions/wcstoul_l.texi: Likewise.
48720         * doc/glibc-functions/wcstoull_l.texi: Likewise.
48721         * doc/glibc-functions/wcstouq.texi: Likewise.
48722         * doc/glibc-functions/wmempcpy.texi: Likewise.
48723
48724 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
48725             Eric Blake  <ebb9@byu.net>
48726             Paolo Bonzini  <bonzini@gnu.org>
48727             Bruno Haible  <bruno@clisp.org>
48728
48729         Make c-stack work on Haiku.
48730         * lib/c-stack.c (SA_ONSTACK): Define fallback.
48731         (c_stack_action): Use SA_ONSTACK flag.
48732
48733 2008-12-22  Bruno Haible  <bruno@clisp.org>
48734
48735         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
48736
48737 2008-12-22  Bruno Haible  <bruno@clisp.org>
48738
48739         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
48740         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
48741         being overridden.
48742         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
48743         New macros.
48744         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
48745         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
48746         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
48747         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
48748
48749 2008-12-22  Bruno Haible  <bruno@clisp.org>
48750
48751         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
48752         from test code.
48753
48754 2008-12-22  Eric Blake  <ebb9@byu.net>
48755
48756         Avoid gcc warnings on cygwin.
48757         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
48758         Avoid unused variable.
48759         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
48760         Likewise.
48761
48762 2008-12-22  Bruno Haible  <bruno@clisp.org>
48763
48764         Remove HAVE_MBRTOWC conditionals.
48765         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
48766         (mbscasecmp): Assume mbrtowc function.
48767         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
48768         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
48769         * lib/mbschr.c: Include mbuiter.h unconditionally.
48770         (mbschr): Assume mbrtowc function.
48771         * lib/mbscspn.c: Include mbuiter.h unconditionally.
48772         (mbscspn): Assume mbrtowc function.
48773         * lib/mbslen.c: Include mbuiter.h unconditionally.
48774         (mbslen): Assume mbrtowc function.
48775         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
48776         (mbsncasecmp): Assume mbrtowc function.
48777         * lib/mbsnlen.c: Include mbiter.h unconditionally.
48778         (mbsnlen): Assume mbrtowc function.
48779         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
48780         (mbspbrk): Assume mbrtowc function.
48781         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
48782         (mbspcasecmp): Assume mbrtowc function.
48783         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
48784         (mbsrchr): Assume mbrtowc function.
48785         * lib/mbssep.c: Include mbuiter.h unconditionally.
48786         (mbssep): Assume mbrtowc function.
48787         * lib/mbsspn.c: Include mbuiter.h unconditionally.
48788         (mbsspn): Assume mbrtowc function.
48789         * lib/mbsstr.c: Include mbuiter.h unconditionally.
48790         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
48791         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
48792         (mbstok_r): Assume mbrtowc function.
48793         * lib/propername.c: Include mbuiter.h unconditionally.
48794         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
48795         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
48796         (trim2): Assume mbrtowc function.
48797         * lib/mbswidth.c (mbsinit): Remove fallback definition.
48798         (mbsnwidth): Assume mbrtowc function.
48799         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
48800         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
48801         fallback definitions.
48802         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
48803
48804 2008-12-22  Bruno Haible  <bruno@clisp.org>
48805
48806         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
48807
48808 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
48809
48810         * modules/regex: Request emulations for the mb*/wc* functions we need.
48811         * m4/regex.m4: Don't look for those functions here.
48812         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
48813
48814 2008-12-22  Bruno Haible  <bruno@clisp.org>
48815
48816         * modules/fnmatch (Depends-on): Remove duplicated dependency.
48817
48818 2008-12-21  Bruno Haible  <bruno@clisp.org>
48819
48820         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
48821         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
48822         (Include): Remove conditionalization.
48823         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
48824         (Include): Remove conditionalization.
48825         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
48826         (Include): Remove conditionalization.
48827         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
48828         * m4/mbfile.m4 (gl_MBFILE): Likewise.
48829         * NEWS: Mention the change.
48830         Reported by Alan Hourihane <alanh@fairlite.co.uk>
48831         via Sergey Poznyakoff <gray@gnu.org.ua>.
48832
48833 2008-12-21  Bruno Haible  <bruno@clisp.org>
48834
48835         * MODULES.html.sh (Extended multibyte and wide character utilities
48836         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
48837         wcrtomb, wcsrtombs.
48838         (Support for systems lacking POSIX:2008): Add accept, bind, close,
48839         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
48840         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
48841         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
48842
48843 2008-12-21  Bruno Haible  <bruno@clisp.org>
48844
48845         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
48846
48847 2008-12-21  Bruno Haible  <bruno@clisp.org>
48848
48849         * modules/wcsnrtombs-tests: New file.
48850         * tests/test-wcsnrtombs1.sh: New file.
48851         * tests/test-wcsnrtombs2.sh: New file.
48852         * tests/test-wcsnrtombs3.sh: New file.
48853         * tests/test-wcsnrtombs4.sh: New file.
48854         * tests/test-wcsnrtombs.c: New file.
48855
48856         New module 'wcsnrtombs'.
48857         * lib/wchar.in.h (wcsnrtombs): New declaration.
48858         * lib/wcsnrtombs.c: New file.
48859         * lib/wcsrtombs-state.c: New file.
48860         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
48861         (internal_state): Remove variable.
48862         * m4/wcsnrtombs.m4: New file.
48863         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
48864         compilation units.
48865         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
48866         HAVE_WCSNRTOMBS.
48867         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
48868         HAVE_WCSNRTOMBS.
48869         * modules/wcsnrtombs: New file.
48870         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
48871         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
48872
48873 2008-12-21  Bruno Haible  <bruno@clisp.org>
48874
48875         * modules/wcsrtombs-tests: New file.
48876         * tests/test-wcsrtombs1.sh: New file.
48877         * tests/test-wcsrtombs2.sh: New file.
48878         * tests/test-wcsrtombs3.sh: New file.
48879         * tests/test-wcsrtombs4.sh: New file.
48880         * tests/test-wcsrtombs.c: New file.
48881
48882         New module 'wcsrtombs'.
48883         * lib/wchar.in.h (wcsrtombs): New declaration.
48884         * lib/wcsrtombs.c: New file.
48885         * m4/wcsrtombs.m4: New file.
48886         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
48887         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48888         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
48889         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48890         * modules/wcsrtombs: New file.
48891         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
48892         bugs.
48893
48894 2008-12-21  Bruno Haible  <bruno@clisp.org>
48895
48896         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
48897         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
48898         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
48899         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
48900         if not correct.
48901         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
48902         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
48903         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48904         m4/locale-zh.m4, m4/codeset.m4.
48905         * doc/posix-functions/wcrtomb.texi: Document the bug.
48906
48907 2008-12-21  Bruno Haible  <bruno@clisp.org>
48908
48909         Work around a btowc() bug on IRIX 6.5.
48910         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
48911         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
48912         REPLACE_WTOBC if not.
48913         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
48914         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
48915         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
48916
48917 2008-12-21  Bruno Haible  <bruno@clisp.org>
48918
48919         * modules/wcrtomb-tests: New file.
48920         * tests/test-wcrtomb.sh: New file.
48921         * tests/test-wcrtomb.c: New file.
48922
48923         New module 'wcrtomb'.
48924         * lib/wchar.in.h (wcrtomb): New declaration.
48925         * lib/wcrtomb.c: New file.
48926         * m4/wcrtomb.m4: New file.
48927         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
48928         HAVE_WCRTOMB.
48929         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
48930         HAVE_WCRTOMB.
48931         * modules/wcrtomb: New file.
48932         * doc/posix-functions/wcrtomb.texi: Mention the new module.
48933
48934 2008-12-21  Bruno Haible  <bruno@clisp.org>
48935
48936         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
48937         * modules/mbsrtowcs (Files): Likewise.
48938         * modules/wctob (Files): Likewise.
48939         * modules/c-strcase-tests (Files): Likewise.
48940         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
48941         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
48942         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
48943         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
48944         * modules/vasnprintf-posix-tests (Files): Likewise.
48945
48946 2008-12-21  William Pursell  <bill.pursell@gmail.com>
48947
48948         gitlog-to-changelog: pass all command-line arguments to git-log
48949         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
48950         it is sometimes convenient to filter the commits in various ways.
48951         gitlog-to-changelog only allows --since to specify a start date,
48952         but git-log itself supports many other filtering mechanisms.
48953         At the moment, I want to filter by branch name.  Rather than
48954         adding a --branch option to gitlog-to-changelog, it seems more
48955         flexible to simply pass all options directly to git-log and let
48956         git do the work.  Notice that this effectively makes --since a
48957         redundant option for gitlog-to-changelog, but removing it would
48958         require current usage to change since calls would then require
48959         an additional '--'.
48960
48961 2008-12-21  Bruno Haible  <bruno@clisp.org>
48962
48963         * modules/mbsnrtowcs-tests: New file.
48964         * tests/test-mbsnrtowcs1.sh: New file.
48965         * tests/test-mbsnrtowcs2.sh: New file.
48966         * tests/test-mbsnrtowcs3.sh: New file.
48967         * tests/test-mbsnrtowcs4.sh: New file.
48968         * tests/test-mbsnrtowcs.c: New file.
48969
48970         New module 'mbsnrtowcs'.
48971         * lib/wchar.in.h (mbsnrtowcs): New declaration.
48972         * lib/mbsnrtowcs.c: New file.
48973         * lib/mbsrtowcs-state.c: New file.
48974         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
48975         (internal_state): Remove variable.
48976         * m4/mbsnrtowcs.m4: New file.
48977         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
48978         compilation units.
48979         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
48980         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48981         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
48982         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48983         * modules/mbsnrtowcs: New file.
48984         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
48985         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
48986         portability problem.
48987
48988 2008-12-21  Bruno Haible  <bruno@clisp.org>
48989
48990         Work around mbsrtowcs bug.
48991         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
48992         (gl_FUNC_MBSRTOWCS): Invoke it.
48993         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48994         m4/locale-zh.m4.
48995         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
48996
48997 2008-12-21  Bruno Haible  <bruno@clisp.org>
48998
48999         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
49000
49001 2008-12-21  Bruno Haible  <bruno@clisp.org>
49002
49003         Update doc for AIX.
49004         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
49005         16-bit wchar_t type.
49006         * doc/posix-functions/btowc.texi: Likewise.
49007         * doc/posix-functions/fgetwc.texi: Likewise.
49008         * doc/posix-functions/fgetws.texi: Likewise.
49009         * doc/posix-functions/fputwc.texi: Likewise.
49010         * doc/posix-functions/fputws.texi: Likewise.
49011         * doc/posix-functions/fwide.texi: Likewise.
49012         * doc/posix-functions/fwprintf.texi: Likewise.
49013         * doc/posix-functions/fwscanf.texi: Likewise.
49014         * doc/posix-functions/getwchar.texi: Likewise.
49015         * doc/posix-functions/getwc.texi: Likewise.
49016         * doc/posix-functions/iswalnum.texi: Likewise.
49017         * doc/posix-functions/iswalpha.texi: Likewise.
49018         * doc/posix-functions/iswblank.texi: Likewise.
49019         * doc/posix-functions/iswcntrl.texi: Likewise.
49020         * doc/posix-functions/iswctype.texi: Likewise.
49021         * doc/posix-functions/iswdigit.texi: Likewise.
49022         * doc/posix-functions/iswgraph.texi: Likewise.
49023         * doc/posix-functions/iswlower.texi: Likewise.
49024         * doc/posix-functions/iswprint.texi: Likewise.
49025         * doc/posix-functions/iswpunct.texi: Likewise.
49026         * doc/posix-functions/iswspace.texi: Likewise.
49027         * doc/posix-functions/iswupper.texi: Likewise.
49028         * doc/posix-functions/iswxdigit.texi: Likewise.
49029         * doc/posix-functions/mbrtowc.texi: Likewise.
49030         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49031         * doc/posix-functions/mbstowcs.texi: Likewise.
49032         * doc/posix-functions/mbtowc.texi: Likewise.
49033         * doc/posix-functions/putwchar.texi: Likewise.
49034         * doc/posix-functions/putwc.texi: Likewise.
49035         * doc/posix-functions/swprintf.texi: Likewise.
49036         * doc/posix-functions/tolower.texi: Likewise.
49037         * doc/posix-functions/toupper.texi: Likewise.
49038         * doc/posix-functions/towctrans.texi: Likewise.
49039         * doc/posix-functions/ungetwc.texi: Likewise.
49040         * doc/posix-functions/vswprintf.texi: Likewise.
49041         * doc/posix-functions/wcrtomb.texi: Likewise.
49042         * doc/posix-functions/wcscat.texi: Likewise.
49043         * doc/posix-functions/wcschr.texi: Likewise.
49044         * doc/posix-functions/wcscmp.texi: Likewise.
49045         * doc/posix-functions/wcscoll.texi: Likewise.
49046         * doc/posix-functions/wcscpy.texi: Likewise.
49047         * doc/posix-functions/wcscspn.texi: Likewise.
49048         * doc/posix-functions/wcsftime.texi: Likewise.
49049         * doc/posix-functions/wcslen.texi: Likewise.
49050         * doc/posix-functions/wcsncat.texi: Likewise.
49051         * doc/posix-functions/wcsncmp.texi: Likewise.
49052         * doc/posix-functions/wcsncpy.texi: Likewise.
49053         * doc/posix-functions/wcspbrk.texi: Likewise.
49054         * doc/posix-functions/wcsrchr.texi: Likewise.
49055         * doc/posix-functions/wcsrtombs.texi: Likewise.
49056         * doc/posix-functions/wcsspn.texi: Likewise.
49057         * doc/posix-functions/wcsstr.texi: Likewise.
49058         * doc/posix-functions/wcstod.texi: Likewise.
49059         * doc/posix-functions/wcstof.texi: Likewise.
49060         * doc/posix-functions/wcstoimax.texi: Likewise.
49061         * doc/posix-functions/wcstok.texi: Likewise.
49062         * doc/posix-functions/wcstold.texi: Likewise.
49063         * doc/posix-functions/wcstoll.texi: Likewise.
49064         * doc/posix-functions/wcstol.texi: Likewise.
49065         * doc/posix-functions/wcstombs.texi: Likewise.
49066         * doc/posix-functions/wcstoull.texi: Likewise.
49067         * doc/posix-functions/wcstoul.texi: Likewise.
49068         * doc/posix-functions/wcstoumax.texi: Likewise.
49069         * doc/posix-functions/wcswidth.texi: Likewise.
49070         * doc/posix-functions/wcsxfrm.texi: Likewise.
49071         * doc/posix-functions/wctob.texi: Likewise.
49072         * doc/posix-functions/wctomb.texi: Likewise.
49073         * doc/posix-functions/wctrans.texi: Likewise.
49074         * doc/posix-functions/wctype.texi: Likewise.
49075         * doc/posix-functions/wcwidth.texi: Likewise.
49076         * doc/posix-functions/wmemchr.texi: Likewise.
49077         * doc/posix-functions/wmemcmp.texi: Likewise.
49078         * doc/posix-functions/wmemcpy.texi: Likewise.
49079         * doc/posix-functions/wmemmove.texi: Likewise.
49080         * doc/posix-functions/wmemset.texi: Likewise.
49081         * doc/posix-functions/wprintf.texi: Likewise.
49082         * doc/posix-functions/wscanf.texi: Likewise.
49083
49084 2008-12-21  Bruno Haible  <bruno@clisp.org>
49085
49086         Update doc for HP-UX 11.11.
49087         * doc/posix-functions/btowc.texi: Clarify that the function is missing
49088         in HP-UX version 11.00, not in all versions of HP-UX 11.
49089         * doc/posix-functions/fwide.texi: Likewise.
49090         * doc/posix-functions/fwprintf.texi: Likewise.
49091         * doc/posix-functions/fwscanf.texi: Likewise.
49092         * doc/posix-functions/inet_ntop.texi: Likewise.
49093         * doc/posix-functions/inet_pton.texi: Likewise.
49094         * doc/posix-functions/mbrlen.texi: Likewise.
49095         * doc/posix-functions/mbrtowc.texi: Likewise.
49096         * doc/posix-functions/mbsinit.texi: Likewise.
49097         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49098         * doc/posix-functions/swprintf.texi: Likewise.
49099         * doc/posix-functions/swscanf.texi: Likewise.
49100         * doc/posix-functions/towctrans.texi: Likewise.
49101         * doc/posix-functions/vfwprintf.texi: Likewise.
49102         * doc/posix-functions/vswprintf.texi: Likewise.
49103         * doc/posix-functions/vwprintf.texi: Likewise.
49104         * doc/posix-functions/wcrtomb.texi: Likewise.
49105         * doc/posix-functions/wcsrtombs.texi: Likewise.
49106         * doc/posix-functions/wcsstr.texi: Likewise.
49107         * doc/posix-functions/wctob.texi: Likewise.
49108         * doc/posix-functions/wctrans.texi: Likewise.
49109         * doc/posix-functions/wmemchr.texi: Likewise.
49110         * doc/posix-functions/wmemcmp.texi: Likewise.
49111         * doc/posix-functions/wmemcpy.texi: Likewise.
49112         * doc/posix-functions/wmemmove.texi: Likewise.
49113         * doc/posix-functions/wmemset.texi: Likewise.
49114         * doc/posix-functions/wprintf.texi: Likewise.
49115         * doc/posix-functions/wscanf.texi: Likewise.
49116
49117 2008-12-21  Bruno Haible  <bruno@clisp.org>
49118
49119         Work around a portability problem.
49120         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
49121         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
49122
49123 2008-12-20  Bruno Haible  <bruno@clisp.org>
49124
49125         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
49126         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
49127         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
49128         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
49129         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
49130
49131         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
49132         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
49133         set.
49134         (GNULIB_defined_mbstate_t): New macro.
49135         (mbsinit): Redefine if REPLACE_MBSINIT is set.
49136         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
49137         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
49138         reuses the system's mbrtowc function but works around the bugs.
49139         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
49140         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
49141         macros.
49142         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
49143         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
49144         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
49145         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
49146         REPLACE_MBSINIT if mbsinit needs to be overridden.
49147         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
49148         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49149         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
49150         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49151         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49152         m4/locale-zh.m4.
49153         (Depends): Add mbsinit.
49154         * modules/mbsinit (Depends): Add mbrtowc.
49155         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
49156
49157 2008-12-20  Bruno Haible  <bruno@clisp.org>
49158
49159         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
49160         so that there are no conversion errors on AIX.
49161         * tests/test-mbsrtowcs.c (main): LIkewise.
49162
49163 2008-12-20  Bruno Haible  <bruno@clisp.org>
49164
49165         Work around wctob bug on Solaris <= 9.
49166         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
49167         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
49168         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
49169         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
49170         * modules/wctob (Files): Add m4/locale-fr.m4.
49171         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
49172
49173 2008-12-20  Bruno Haible  <bruno@clisp.org>
49174
49175         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
49176         /dev/null.
49177         * tests/test-select-in.sh: Likewise.
49178         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49179
49180 2008-12-20  Bruno Haible  <bruno@clisp.org>
49181
49182         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
49183         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
49184         Cygwin 1.5.x.
49185
49186 2008-12-20  Bruno Haible  <bruno@clisp.org>
49187
49188         Ensure mbstate_t is defined on HP-UX 11.11.
49189         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
49190         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
49191         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
49192         AC_USE_SYSTEM_EXTENSIONS.
49193         * modules/fnmatch (Depends-on): Add extensions.
49194         * modules/mbrlen (Depends-on): Likewise.
49195         * modules/mbrtowc (Depends-on): Likewise.
49196         * modules/mbsinit (Depends-on): Likewise.
49197         * modules/mbsrtowcs (Depends-on): Likewise.
49198         * modules/mbswidth (Depends-on): Likewise.
49199         * modules/quotearg (Depends-on): Likewise.
49200         * modules/strftime (Depends-on): Likewise.
49201
49202 2008-12-20  Bruno Haible  <bruno@clisp.org>
49203
49204         Ensure wctob is declared on IRIX 6.5.
49205         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
49206         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
49207         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
49208         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
49209         of HAVE_WCTOB.
49210         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
49211         HAVE_WCTOB.
49212         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
49213
49214 2008-12-19  Bruno Haible  <bruno@clisp.org>
49215
49216         * modules/mbsrtowcs-tests: New file.
49217         * tests/test-mbsrtowcs1.sh: New file.
49218         * tests/test-mbsrtowcs2.sh: New file.
49219         * tests/test-mbsrtowcs3.sh: New file.
49220         * tests/test-mbsrtowcs4.sh: New file.
49221         * tests/test-mbsrtowcs.c: New file.
49222
49223         New module 'mbsrtowcs'.
49224         * lib/wchar.in.h (mbsrtowcs): New declaration.
49225         * lib/mbsrtowcs.c: New file.
49226         * m4/mbsrtowcs.m4: New file.
49227         * modules/mbsrtowcs: New file.
49228         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
49229         HAVE_MBSRTOWCS.
49230         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
49231         HAVE_MBSRTOWCS.
49232         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
49233
49234 2008-12-19  Bruno Haible  <bruno@clisp.org>
49235
49236         New module 'mbrlen'.
49237         * lib/wchar.in.h (mbrlen): New declaration.
49238         * lib/mbrlen.c: New file.
49239         * m4/mbrlen.m4: New file.
49240         * modules/mbrlen: New file.
49241         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
49242         HAVE_MBRLEN.
49243         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
49244         HAVE_MBRLEN.
49245         * doc/posix-functions/mbrlen.texi: Document the new module.
49246
49247 2008-12-19  Bruno Haible  <bruno@clisp.org>
49248
49249         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
49250         * modules/mbrtowc (Depends-on): Add verify.
49251         Suggested by Paul Eggert.
49252
49253 2008-12-18  Bruno Haible  <bruno@clisp.org>
49254
49255         * modules/mbsinit-tests: New file.
49256         * tests/test-mbsinit.sh: New file.
49257         * tests/test-mbsinit.c: New file.
49258
49259 2008-12-18  Bruno Haible  <bruno@clisp.org>
49260
49261         * modules/mbrtowc-tests: New file.
49262         * tests/test-mbrtowc1.sh: New file.
49263         * tests/test-mbrtowc2.sh: New file.
49264         * tests/test-mbrtowc3.sh: New file.
49265         * tests/test-mbrtowc4.sh: New file.
49266         * tests/test-mbrtowc.c: New file.
49267
49268         New module 'mbrtowc'.
49269         * lib/wchar.in.h (mbstate_t): Override when the system does not have
49270         mbsinit and mbrtowc.
49271         (mbrtowc): New declaration.
49272         * lib/mbrtowc.c: New file.
49273         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
49274         * modules/mbrtowc: New file.
49275         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
49276         HAVE_MBRTOWC.
49277         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
49278         HAVE_MBRTOWC.
49279         * doc/posix-functions/mbrtowc.texi: Document the new module.
49280
49281 2008-12-18  Bruno Haible  <bruno@clisp.org>
49282
49283         New module 'wctob'.
49284         * lib/wchar.in.h (wctob): New declaration.
49285         * lib/wctob.c: New file.
49286         * m4/wctob.m4: New file.
49287         * modules/wctob: New file.
49288         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
49289         HAVE_WCTOB.
49290         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
49291         * doc/posix-functions/wctob.texi: Document the new module.
49292
49293 2008-12-18  Bruno Haible  <bruno@clisp.org>
49294
49295         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
49296         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
49297
49298 2008-12-18  Simon Josefsson  <simon@josefsson.org>
49299
49300         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
49301         G. Christensen" <tgc@jupiterrise.com>.
49302
49303         * lib/flock.c: Need to include errno.h.  Reported by "Tom
49304         G. Christensen" <tgc@jupiterrise.com>.
49305
49306         * lib/flock.c: Need to include string.h.  Reported by "Tom
49307         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
49308         <ebb9@byu.net>.
49309
49310 2008-12-18  Bruno Haible  <bruno@clisp.org>
49311
49312         * m4/locale-ja.m4: New file, from GNU gettext.
49313
49314 2008-12-17  Bruno Haible  <bruno@clisp.org>
49315
49316         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
49317         Suggested by Eric Blake.
49318
49319 2008-12-17  Bruno Haible  <bruno@clisp.org>
49320
49321         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
49322
49323 2008-12-17  Bruno Haible  <bruno@clisp.org>
49324
49325         * lib/mbsinit.c: Include verify.h. Verify an assumption.
49326         * modules/mbsinit (Depends-on): Add verify.
49327         Suggested by Paul Eggert.
49328
49329 2008-12-17  Bruno Haible  <bruno@clisp.org>
49330
49331         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
49332         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
49333         gl_FUNC_MBRTOWC.
49334         * m4/mbiter.m4 (gl_MBITER): LIkewise.
49335         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
49336         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
49337         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
49338         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
49339         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
49340         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
49341         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
49342         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
49343         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
49344         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
49345         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
49346         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
49347         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
49348         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
49349         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49350         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
49351         * modules/trim (configure.ac): Likewise.
49352
49353 2008-12-17  Bruno Haible  <bruno@clisp.org>
49354
49355         * modules/btowc-tests: New file.
49356         * tests/test-btowc1.sh: New file.
49357         * tests/test-btowc2.sh: New file.
49358         * tests/test-btowc.c: New file.
49359
49360         New module 'btowc'.
49361         * lib/wchar.in.h (btowc): New declaration.
49362         * lib/btowc.c: New file.
49363         * m4/btowc.m4: New file.
49364         * modules/btowc: New file.
49365         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
49366         HAVE_BTOWC.
49367         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
49368         * doc/posix-functions/btowc.texi: Document the new module.
49369
49370 2008-12-17  Bruno Haible  <bruno@clisp.org>
49371
49372         New module 'mbsinit'.
49373         * lib/wchar.in.h (mbsinit): New declaration.
49374         * lib/mbsinit.c: New file.
49375         * m4/mbsinit.m4: New file.
49376         * modules/mbsinit: New file.
49377         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
49378         HAVE_MBSINIT.
49379         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
49380         HAVE_MBSINIT.
49381         * doc/posix-functions/mbsinit.texi: Document the new module.
49382
49383 2008-12-16  Bruno Haible  <bruno@clisp.org>
49384
49385         * lib/unistd.in.h: Add comment.
49386         * tests/test-environ.c: Don't include <stdlib.h>.
49387
49388 2008-12-16  Bruno Haible  <bruno@clisp.org>
49389
49390         * lib/parse-duration.h (parse_duration): Document return value
49391         convention.
49392         * lib/parse-duration.c: Include specification header first. Add
49393         comments.
49394         (_): Remove macro.
49395         (parse_year_month_day, parse_hour_minute_second): Move side effects
49396         outside of strchr call.
49397         (parse_non_iso8601): Move side effects outside of isspace call.
49398         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
49399         call.
49400
49401 2008-12-16  Bruno Haible  <bruno@clisp.org>
49402
49403         * tests/test-parse-duration.sh: Produce no output when the test
49404         succeeds.
49405
49406 2008-12-16  Bruno Haible  <bruno@clisp.org>
49407
49408         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
49409         expressions.
49410
49411 2008-12-15  Bruno Haible  <bruno@clisp.org>
49412
49413         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
49414         * doc/glibc-functions/flistxattr.texi: Likewise.
49415         * doc/glibc-functions/fopencookie.texi: Likewise.
49416         * doc/glibc-functions/fremovexattr.texi: Likewise.
49417         * doc/glibc-functions/fsetxattr.texi: Likewise.
49418         * doc/glibc-functions/getxattr.texi: Likewise.
49419         * doc/glibc-functions/lgetxattr.texi: Likewise.
49420         * doc/glibc-functions/listxattr.texi: Likewise.
49421         * doc/glibc-functions/llistxattr.texi: Likewise.
49422         * doc/glibc-functions/lremovexattr.texi: Likewise.
49423         * doc/glibc-functions/lsetxattr.texi: Likewise.
49424         * doc/glibc-functions/removexattr.texi: Likewise.
49425         * doc/glibc-functions/setxattr.texi: Likewise.
49426         * doc/posix-functions/open_memstream.texi: Likewise.
49427
49428 2008-12-15  Eric Blake  <ebb9@byu.net>
49429
49430         Update doc for cygwin 1.7.
49431         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
49432         functions.
49433         * doc/posix-functions/fchmodat.texi: Likewise.
49434         * doc/posix-functions/fchownat.texi: Likewise.
49435         * doc/posix-functions/fdopendir.texi: Likewise.
49436         * doc/posix-functions/fmemopen.texi: Likewise.
49437         * doc/posix-functions/freeaddrinfo.texi: Likewise.
49438         * doc/posix-functions/fstatat.texi: Likewise.
49439         * doc/posix-functions/futimens.texi: Likewise.
49440         * doc/posix-functions/gai_strerror.texi: Likewise.
49441         * doc/posix-functions/getaddrinfo.texi: Likewise.
49442         * doc/posix-functions/getnameinfo.texi: Likewise.
49443         * doc/posix-functions/if_freenameindex.texi: Likewise.
49444         * doc/posix-functions/if_indextoname.texi: Likewise.
49445         * doc/posix-functions/if_nameindex.texi: Likewise.
49446         * doc/posix-functions/if_nametoindex.texi: Likewise.
49447         * doc/posix-functions/insque.texi: Likewise.
49448         * doc/posix-functions/linkat.texi: Likewise.
49449         * doc/posix-functions/llrint.texi: Likewise.
49450         * doc/posix-functions/llrintf.texi: Likewise.
49451         * doc/posix-functions/llrintl.texi: Likewise.
49452         * doc/posix-functions/lockf.texi: Likewise.
49453         * doc/posix-functions/lrintl.texi: Likewise.
49454         * doc/posix-functions/mkdirat.texi: Likewise.
49455         * doc/posix-functions/mkfifoat.texi: Likewise.
49456         * doc/posix-functions/mknodat.texi: Likewise.
49457         * doc/posix-functions/mq_close.texi: Likewise.
49458         * doc/posix-functions/mq_getattr.texi: Likewise.
49459         * doc/posix-functions/mq_notify.texi: Likewise.
49460         * doc/posix-functions/mq_open.texi: Likewise.
49461         * doc/posix-functions/mq_receive.texi: Likewise.
49462         * doc/posix-functions/mq_send.texi: Likewise.
49463         * doc/posix-functions/mq_setattr.texi: Likewise.
49464         * doc/posix-functions/mq_timedreceive.texi: Likewise.
49465         * doc/posix-functions/mq_timedsend.texi: Likewise.
49466         * doc/posix-functions/mq_unlink.texi: Likewise.
49467         * doc/posix-functions/open_memstream.texi: Likewise.
49468         * doc/posix-functions/openat.texi: Likewise.
49469         * doc/posix-functions/posix_fadvise.texi: Likewise.
49470         * doc/posix-functions/posix_fallocate.texi: Likewise.
49471         * doc/posix-functions/posix_madvise.texi: Likewise.
49472         * doc/posix-functions/posix_memalign.texi: Likewise.
49473         * doc/posix-functions/posix_openpt.texi: Likewise.
49474         * doc/posix-functions/readlinkat.texi: Likewise.
49475         * doc/posix-functions/remque.texi: Likewise.
49476         * doc/posix-functions/renameat.texi: Likewise.
49477         * doc/posix-functions/rintl.texi: Likewise.
49478         * doc/posix-functions/sem_unlink.texi: Likewise.
49479         * doc/posix-functions/shm_open.texi: Likewise.
49480         * doc/posix-functions/shm_unlink.texi: Likewise.
49481         * doc/posix-functions/signgam.texi: Likewise.
49482         * doc/posix-functions/sigset.texi: Likewise.
49483         * doc/posix-functions/stpcpy.texi: Likewise.
49484         * doc/posix-functions/stpncpy.texi: Likewise.
49485         * doc/posix-functions/strerror.texi: Likewise.
49486         * doc/posix-functions/strtod.texi: Likewise.
49487         * doc/posix-functions/symlinkat.texi: Likewise.
49488         * doc/posix-functions/unlinkat.texi: Likewise.
49489         * doc/posix-functions/utimensat.texi: Likewise.
49490         * doc/glibc-functions/bindresvport.texi: Likewise.
49491         * doc/glibc-functions/dn_expand.texi: Likewise.
49492         * doc/glibc-functions/exp10.texi: Likewise.
49493         * doc/glibc-functions/exp10f.texi: Likewise.
49494         * doc/glibc-functions/fgetxattr.texi: Likewise.
49495         * doc/glibc-functions/flistxattr.texi: Likewise.
49496         * doc/glibc-functions/fopencookie.texi: Likewise.
49497         * doc/glibc-functions/freeifaddrs.texi: Likewise.
49498         * doc/glibc-functions/fremovexattr.texi: Likewise.
49499         * doc/glibc-functions/fsetxattr.texi: Likewise.
49500         * doc/glibc-functions/getifaddrs.texi: Likewise.
49501         * doc/glibc-functions/getxattr.texi: Likewise.
49502         * doc/glibc-functions/lgetxattr.texi: Likewise.
49503         * doc/glibc-functions/listxattr.texi: Likewise.
49504         * doc/glibc-functions/llistxattr.texi: Likewise.
49505         * doc/glibc-functions/lremovexattr.texi: Likewise.
49506         * doc/glibc-functions/lsetxattr.texi: Likewise.
49507         * doc/glibc-functions/pow10.texi: Likewise.
49508         * doc/glibc-functions/pow10f.texi: Likewise.
49509         * doc/glibc-functions/rcmd_af.texi: Likewise.
49510         * doc/glibc-functions/removexattr.texi: Likewise.
49511         * doc/glibc-functions/res_init.texi: Likewise.
49512         * doc/glibc-functions/res_mkquery.texi: Likewise.
49513         * doc/glibc-functions/res_query.texi: Likewise.
49514         * doc/glibc-functions/res_querydomain.texi: Likewise.
49515         * doc/glibc-functions/res_send.texi: Likewise.
49516         * doc/glibc-functions/rresvport_af.texi: Likewise.
49517         * doc/glibc-functions/setxattr.texi: Likewise.
49518         * doc/glibc-functions/strcasestr.texi: Likewise.
49519
49520 2008-12-15  Bruno Haible  <bruno@clisp.org>
49521
49522         Fix compilation error on OSF/1 4.0.
49523         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
49524         <sys/time.h>, simply delegate to the system header.
49525         Reported by Daniel Richard G. <oss@teragram.com>.
49526
49527 2008-12-15  Bruno Haible  <bruno@clisp.org>
49528
49529         * doc/posix-functions/openat.texi: Mention the 'openat' module.
49530         * doc/posix-functions/fchmodat.texi: Likewise.
49531         * doc/posix-functions/fchownat.texi: Likewise.
49532         * doc/posix-functions/fdopendir.texi: Likewise.
49533         * doc/posix-functions/fstatat.texi: Likewise.
49534         * doc/posix-functions/mkdirat.texi: Likewise.
49535         * doc/posix-functions/unlinkat.texi: Likewise.
49536
49537 2008-12-14  Bruno Haible  <bruno@clisp.org>
49538
49539         Update doc for POSIX:2008.
49540         * doc/posix-functions/faccessat.texi: New file.
49541         * doc/posix-functions/fchmodat.texi: New file.
49542         * doc/posix-functions/fchownat.texi: New file.
49543         * doc/posix-functions/fdopendir.texi: New file.
49544         * doc/posix-functions/fstatat.texi: New file.
49545         * doc/posix-functions/futimens.texi: New file.
49546         * doc/posix-functions/linkat.texi: New file.
49547         * doc/posix-functions/mkdirat.texi: New file.
49548         * doc/posix-functions/mkfifoat.texi: New file.
49549         * doc/posix-functions/mknodat.texi: New file.
49550         * doc/posix-functions/open_wmemstream.texi: New file.
49551         * doc/posix-functions/openat.texi: New file.
49552         * doc/posix-functions/psiginfo.texi: New file.
49553         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
49554         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
49555         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
49556         * doc/posix-functions/readlinkat.texi: New file.
49557         * doc/posix-functions/renameat.texi: New file.
49558         * doc/posix-functions/strerror_l.texi: New file.
49559         * doc/posix-functions/symlinkat.texi: New file.
49560         * doc/posix-functions/unlinkat.texi: New file.
49561         * doc/posix-functions/utimensat.texi: New file.
49562         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49563
49564 2008-12-14  Bruno Haible  <bruno@clisp.org>
49565
49566         Update doc for POSIX:2008.
49567         * doc/posix-functions/alphasort.texi: Renamed from
49568         doc/glibc-functions/alphasort.texi.
49569         * doc/posix-functions/dirfd.texi: Renamed from
49570         doc/glibc-functions/dirfd.texi.
49571         * doc/posix-functions/dprintf.texi: Renamed from
49572         doc/glibc-functions/dprintf.texi.
49573         * doc/posix-functions/duplocale.texi: Renamed from
49574         doc/glibc-functions/duplocale.texi.
49575         * doc/posix-functions/fexecve.texi: Renamed from
49576         doc/glibc-functions/fexecve.texi.
49577         * doc/posix-functions/fmemopen.texi: Renamed from
49578         doc/glibc-functions/fmemopen.texi.
49579         * doc/posix-functions/freelocale.texi: Renamed from
49580         doc/glibc-functions/freelocale.texi.
49581         * doc/posix-functions/getdate_err.texi: Renamed from
49582         doc/glibc-functions/getdate_err.texi.
49583         * doc/posix-functions/isalnum_l.texi: Renamed from
49584         doc/glibc-functions/isalnum_l.texi.
49585         * doc/posix-functions/isalpha_l.texi: Renamed from
49586         doc/glibc-functions/isalpha_l.texi.
49587         * doc/posix-functions/isblank_l.texi: Renamed from
49588         doc/glibc-functions/isblank_l.texi.
49589         * doc/posix-functions/iscntrl_l.texi: Renamed from
49590         doc/glibc-functions/iscntrl_l.texi.
49591         * doc/posix-functions/isdigit_l.texi: Renamed from
49592         doc/glibc-functions/isdigit_l.texi.
49593         * doc/posix-functions/isgraph_l.texi: Renamed from
49594         doc/glibc-functions/isgraph_l.texi.
49595         * doc/posix-functions/islower_l.texi: Renamed from
49596         doc/glibc-functions/islower_l.texi.
49597         * doc/posix-functions/isprint_l.texi: Renamed from
49598         doc/glibc-functions/isprint_l.texi.
49599         * doc/posix-functions/ispunct_l.texi: Renamed from
49600         doc/glibc-functions/ispunct_l.texi.
49601         * doc/posix-functions/isspace_l.texi: Renamed from
49602         doc/glibc-functions/isspace_l.texi.
49603         * doc/posix-functions/isupper_l.texi: Renamed from
49604         doc/glibc-functions/isupper_l.texi.
49605         * doc/posix-functions/iswalnum_l.texi: Renamed from
49606         doc/glibc-functions/iswalnum_l.texi.
49607         * doc/posix-functions/iswalpha_l.texi: Renamed from
49608         doc/glibc-functions/iswalpha_l.texi.
49609         * doc/posix-functions/iswblank_l.texi: Renamed from
49610         doc/glibc-functions/iswblank_l.texi.
49611         * doc/posix-functions/iswcntrl_l.texi: Renamed from
49612         doc/glibc-functions/iswcntrl_l.texi.
49613         * doc/posix-functions/iswctype_l.texi: Renamed from
49614         doc/glibc-functions/iswctype_l.texi.
49615         * doc/posix-functions/iswdigit_l.texi: Renamed from
49616         doc/glibc-functions/iswdigit_l.texi.
49617         * doc/posix-functions/iswgraph_l.texi: Renamed from
49618         doc/glibc-functions/iswgraph_l.texi.
49619         * doc/posix-functions/iswlower_l.texi: Renamed from
49620         doc/glibc-functions/iswlower_l.texi.
49621         * doc/posix-functions/iswprint_l.texi: Renamed from
49622         doc/glibc-functions/iswprint_l.texi.
49623         * doc/posix-functions/iswpunct_l.texi: Renamed from
49624         doc/glibc-functions/iswpunct_l.texi.
49625         * doc/posix-functions/iswspace_l.texi: Renamed from
49626         doc/glibc-functions/iswspace_l.texi.
49627         * doc/posix-functions/iswupper_l.texi: Renamed from
49628         doc/glibc-functions/iswupper_l.texi.
49629         * doc/posix-functions/iswxdigit_l.texi: Renamed from
49630         doc/glibc-functions/iswxdigit_l.texi.
49631         * doc/posix-functions/isxdigit_l.texi: Renamed from
49632         doc/glibc-functions/isxdigit_l.texi.
49633         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
49634         doc/glibc-functions/mbsnrtowcs.texi.
49635         * doc/posix-functions/mkdtemp.texi: Renamed from
49636         doc/glibc-functions/mkdtemp.texi.
49637         * doc/posix-functions/newlocale.texi: Renamed from
49638         doc/glibc-functions/newlocale.texi.
49639         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
49640         doc/glibc-functions/nl_langinfo_l.texi.
49641         * doc/posix-functions/open_memstream.texi: Renamed from
49642         doc/glibc-functions/open_memstream.texi.
49643         * doc/posix-functions/opterr.texi: Renamed from
49644         doc/glibc-functions/opterr.texi.
49645         * doc/posix-functions/optind.texi: Renamed from
49646         doc/glibc-functions/optind.texi.
49647         * doc/posix-functions/optopt.texi: Renamed from
49648         doc/glibc-functions/optopt.texi.
49649         * doc/posix-functions/psignal.texi: Renamed from
49650         doc/glibc-functions/psignal.texi.
49651         * doc/posix-functions/scandir.texi: Renamed from
49652         doc/glibc-functions/scandir.texi.
49653         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
49654         doc/glibc-functions/sched_get_priority_min.texi.
49655         * doc/posix-functions/signgam.texi: Renamed from
49656         doc/glibc-functions/signgam.texi.
49657         * doc/posix-functions/stpcpy.texi: Renamed from
49658         doc/glibc-functions/stpcpy.texi.
49659         * doc/posix-functions/stpncpy.texi: Renamed from
49660         doc/glibc-functions/stpncpy.texi.
49661         * doc/posix-functions/strcasecmp_l.texi: Renamed from
49662         doc/glibc-functions/strcasecmp_l.texi.
49663         * doc/posix-functions/strcoll_l.texi: Renamed from
49664         doc/glibc-functions/strcoll_l.texi.
49665         * doc/posix-functions/strfmon_l.texi: Renamed from
49666         doc/glibc-functions/strfmon_l.texi.
49667         * doc/posix-functions/strftime_l.texi: Renamed from
49668         doc/glibc-functions/strftime_l.texi.
49669         * doc/posix-functions/strncasecmp_l.texi: Renamed from
49670         doc/glibc-functions/strncasecmp_l.texi.
49671         * doc/posix-functions/strndup.texi: Renamed from
49672         doc/glibc-functions/strndup.texi.
49673         * doc/posix-functions/strnlen.texi: Renamed from
49674         doc/glibc-functions/strnlen.texi.
49675         * doc/posix-functions/strsignal.texi: Renamed from
49676         doc/glibc-functions/strsignal.texi.
49677         * doc/posix-functions/strxfrm_l.texi: Renamed from
49678         doc/glibc-functions/strxfrm_l.texi.
49679         * doc/posix-functions/timer_gettime.texi: Renamed from
49680         doc/glibc-functions/timer_gettime.texi.
49681         * doc/posix-functions/tolower_l.texi: Renamed from
49682         doc/glibc-functions/tolower_l.texi.
49683         * doc/posix-functions/toupper_l.texi: Renamed from
49684         doc/glibc-functions/toupper_l.texi.
49685         * doc/posix-functions/towctrans_l.texi: Renamed from
49686         doc/glibc-functions/towctrans_l.texi.
49687         * doc/posix-functions/towlower_l.texi: Renamed from
49688         doc/glibc-functions/towlower_l.texi.
49689         * doc/posix-functions/towupper_l.texi: Renamed from
49690         doc/glibc-functions/towupper_l.texi.
49691         * doc/posix-functions/uselocale.texi: Renamed from
49692         doc/glibc-functions/uselocale.texi.
49693         * doc/posix-functions/vdprintf.texi: Renamed from
49694         doc/glibc-functions/vdprintf.texi.
49695         * doc/posix-functions/wcpcpy.texi:
49696         Renamed from doc/glibc-functions/wcpcpy.texi.
49697         * doc/posix-functions/wcpncpy.texi: Renamed from
49698         doc/glibc-functions/wcpncpy.texi.
49699         * doc/posix-functions/wcscasecmp.texi: Renamed from
49700         doc/glibc-functions/wcscasecmp.texi.
49701         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
49702         doc/glibc-functions/wcscasecmp_l.texi.
49703         * doc/posix-functions/wcscoll_l.texi: Renamed from
49704         doc/glibc-functions/wcscoll_l.texi.
49705         * doc/posix-functions/wcsdup.texi: Renamed from
49706         doc/glibc-functions/wcsdup.texi.
49707         * doc/posix-functions/wcsncasecmp.texi: Renamed from
49708         doc/glibc-functions/wcsncasecmp.texi.
49709         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
49710         doc/glibc-functions/wcsncasecmp_l.texi.
49711         * doc/posix-functions/wcsnlen.texi: Renamed from
49712         doc/glibc-functions/wcsnlen.texi.
49713         * doc/posix-functions/wcsnrtombs.texi: Renamed from
49714         doc/glibc-functions/wcsnrtombs.texi.
49715         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
49716         doc/glibc-functions/wcsxfrm_l.texi.
49717         * doc/posix-functions/wctrans_l.texi: Renamed from
49718         doc/glibc-functions/wctrans_l.texi.
49719         * doc/posix-functions/wctype_l.texi: Renamed from
49720         doc/glibc-functions/wctype_l.texi.
49721         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49722         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
49723         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
49724         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
49725         these subsections.
49726         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
49727         Remove sections.
49728
49729 2008-12-14  Bruno Haible  <bruno@clisp.org>
49730
49731         Update doc for POSIX:2008.
49732         * doc/posix-functions/*.texi: Update URL of POSIX specification.
49733
49734 2008-12-14  Bruno Haible  <bruno@clisp.org>
49735
49736         Update doc for POSIX:2008.
49737         * doc/pastposix-functions/bcmp.texi: Renamed from
49738         doc/posix-functions/bcmp.texi.
49739         * doc/pastposix-functions/bcopy.texi: Renamed from
49740         doc/posix-functions/bcopy.texi.
49741         * doc/pastposix-functions/bsd_signal.texi: Renamed from
49742         doc/posix-functions/bsd_signal.texi.
49743         * doc/pastposix-functions/bzero.texi: Renamed from
49744         doc/posix-functions/bzero.texi.
49745         * doc/pastposix-functions/ecvt.texi: Renamed from
49746         doc/posix-functions/ecvt.texi.
49747         * doc/pastposix-functions/fcvt.texi: Renamed from
49748         doc/posix-functions/fcvt.texi.
49749         * doc/pastposix-functions/ftime.texi: Renamed from
49750         doc/posix-functions/ftime.texi.
49751         * doc/pastposix-functions/gcvt.texi: Renamed from
49752         doc/posix-functions/gcvt.texi.
49753         * doc/pastposix-functions/getcontext.texi: Renamed from
49754         doc/posix-functions/getcontext.texi.
49755         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
49756         doc/posix-functions/gethostbyaddr.texi.
49757         * doc/pastposix-functions/gethostbyname.texi: Renamed from
49758         doc/posix-functions/gethostbyname.texi.
49759         * doc/pastposix-functions/getwd.texi: Renamed from
49760         doc/posix-functions/getwd.texi.
49761         * doc/pastposix-functions/h_errno.texi: Renamed from
49762         doc/posix-functions/h_errno.texi.
49763         * doc/pastposix-functions/index.texi: Renamed from
49764         doc/posix-functions/index.texi.
49765         * doc/pastposix-functions/makecontext.texi: Renamed from
49766         doc/posix-functions/makecontext.texi.
49767         * doc/pastposix-functions/mktemp.texi: Renamed from
49768         doc/posix-functions/mktemp.texi.
49769         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
49770         doc/posix-functions/pthread_attr_getstackaddr.texi.
49771         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
49772         doc/posix-functions/pthread_attr_setstackaddr.texi.
49773         * doc/pastposix-functions/rindex.texi: Renamed from
49774         doc/posix-functions/rindex.texi.
49775         * doc/pastposix-functions/scalb.texi: Renamed from
49776         doc/posix-functions/scalb.texi.
49777         * doc/pastposix-functions/setcontext.texi: Renamed from
49778         doc/posix-functions/setcontext.texi.
49779         * doc/pastposix-functions/swapcontext.texi: Renamed from
49780         doc/posix-functions/swapcontext.texi.
49781         * doc/pastposix-functions/ualarm.texi: Renamed from
49782         doc/posix-functions/ualarm.texi.
49783         * doc/pastposix-functions/usleep.texi: Renamed from
49784         doc/posix-functions/usleep.texi.
49785         * doc/pastposix-functions/vfork.texi: Renamed from
49786         doc/posix-functions/vfork.texi.
49787         * doc/pastposix-functions/wcswcs.texi: Renamed from
49788         doc/posix-functions/wcswcs.texi.
49789         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
49790         (Function Substitutes): Update.
49791
49792 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49793
49794         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
49795         m4/strerror.m4.
49796
49797 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49798             Bruno Haible  <bruno@clisp.org>
49799
49800         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
49801
49802 2008-12-13  Bruno Haible  <bruno@clisp.org>
49803
49804         * modules/strtoull (Depends-on): Remove unistd.
49805
49806 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49807
49808         * modules/strtoull (Depends-on): Add stdlib.
49809
49810 2008-12-11  Simon Josefsson  <simon@josefsson.org>
49811
49812         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
49813
49814 2008-12-10  Jim Meyering  <meyering@redhat.com>
49815
49816         gl_ASSERT: don't say assertions are disabled when they're not
49817         * m4/assert.m4 (gl_ASSERT): Do not make configure report
49818         "checking whether to enable assertions... no", when they are in
49819         fact enabled.  This is solely a bug in the output of configure.
49820         In spite of saying "no", NDEBUG was not defined in that case.
49821         Also, as noted by Eric Blake, leave assertions enabled upon
49822         --enable-assert=INVALID.
49823
49824 2008-12-10  Bruno Haible  <bruno@clisp.org>
49825
49826         Change MODULES.html to refer to POSIX:2008 where possible.
49827         * MODULES.html.sh (POSIX2008_URL): New variable.
49828         (posix_headers): Remove sys/timeb, ucontext.
49829         (posix2001_headers): New variable.
49830         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
49831         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
49832         index, makecontext, mktemp, pthread_attr_getstackaddr,
49833         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
49834         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
49835         (posix2001_functions): New variable.
49836         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
49837         otherwise.
49838
49839 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49840
49841         add missing include to parse-duration.c
49842         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
49843         * modules/parse-duration (Depends-on): Add xalloc.
49844
49845         fix sed script reading maint.mk
49846         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
49847         (syntax-check-rules): Use it.
49848
49849 2008-12-09  Bruno Haible  <bruno@clisp.org>
49850
49851         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
49852         MacOS X 10.4/PowerPC.
49853         Reported by Simon Josefsson.
49854
49855 2008-12-08  Jim Meyering  <meyering@redhat.com>
49856
49857         work around mingw's lack of some S_IF definitions
49858         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
49859         Reported by Simon Josefsson.
49860
49861 2008-12-08  Bruno Haible  <bruno@clisp.org>
49862
49863         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
49864         applied to variables. Needed on MacOS X 10.4/PowerPC.
49865         Reported by Simon Josefsson.
49866
49867 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
49868         and Eric Blake  <ebb9@byu.net>
49869
49870         assert: honor --enable-assert
49871         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
49872         order to honor --enable-assert, rather than treating it as a
49873         synonym for --disable-assert.
49874
49875 2008-12-08  Jim Meyering  <meyering@redhat.com>
49876
49877         * lib/posixtm.c: Remove now-useless declaration of mktime.
49878
49879         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
49880
49881 2008-12-07  Bruno Haible  <bruno@clisp.org>
49882
49883         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
49884         test_once): Mark functions as static.
49885         * tests/test-tls.c (test_tls): Likewise.
49886
49887 2008-12-07  Bruno Haible  <bruno@clisp.org>
49888
49889         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
49890         iconv_register_autodetect.
49891
49892 2008-12-07  Jim Meyering  <meyering@redhat.com>
49893
49894         posixtm.c: avoid a warning
49895         * lib/posixtm.c (posixtime): Don't initialize tm0.
49896         It's no longer needed to placate gcc4's -Wuninitialized,
49897         and the attempt to placate would elicit a new warning.
49898
49899         unicodeio.c: mark unused parameters
49900         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49901         (fallback_failure_callback): Likewise.
49902
49903 2008-12-07  Bruno Haible  <bruno@clisp.org>
49904
49905         * gnulib-tool (func_create_testdir): When building the tests
49906         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
49907         Reported by Simon Josefsson.
49908
49909 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49910
49911         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
49912
49913 2008-12-06  Bruno Haible  <bruno@clisp.org>
49914
49915         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
49916         Suggested by Eric Blake.
49917
49918 2008-12-06  Bruno Haible  <bruno@clisp.org>
49919
49920         Fix a c-stack test failure on MacOS X.
49921         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
49922         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
49923         handler for SIGBUS as well.
49924         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
49925         install a signal handler for SIGBUS as well.
49926         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
49927
49928 2008-12-06  Bruno Haible  <bruno@clisp.org>
49929
49930         Advocacy documentation.
49931         * doc/gnulib-intro.texi (Benefits): New section.
49932         * doc/gnulib.texi: Update.
49933
49934 2008-12-06  Bruno Haible  <bruno@clisp.org>
49935
49936         Document the 'manywarnings' module.
49937         * doc/manywarnings.texi: New file.
49938         * doc/gnulib.texi: Include it.
49939
49940 2008-12-05  Eric Blake  <ebb9@byu.net>
49941
49942         tests: silence some gcc warnings
49943         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
49944         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
49945         type mismatches.
49946
49947 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49948             Bruno Haible  <bruno@clisp.org>
49949
49950         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
49951
49952 2008-11-29  Jim Meyering  <meyering@redhat.com>
49953
49954         unicodeio.c: mark unused parameters
49955         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49956         (fallback_failure_callback): Likewise.
49957
49958         fts: fix a thinko
49959         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
49960         (set_stat_type): Return S_IF*-valued "type" directly.
49961         Prompted by James Youngman's spotting a related bug.
49962         Confirmed by further testing through find.
49963
49964         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
49965         * lib/fts.c (D_TYPE): Define.
49966         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
49967         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
49968         (s_ifmt_shift_bits): New function.
49969         (set_stat_type): New function.
49970         (fts_build): When not calling fts_stat, call set_stat_type
49971         to propagate dirent.d_type info to fts_read caller.
49972         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
49973         fts_statp->st_mode type information may be valid.
49974
49975 2008-11-28  Simon Josefsson  <simon@josefsson.org>
49976
49977         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
49978         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
49979         <sds@gnu.org>.
49980
49981 2008-11-20  Bruno Haible  <bruno@clisp.org>
49982
49983         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
49984         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
49985         INCLUDE_NEXT.
49986         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
49987         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
49988         * modules/math (Makefile.am): Substitute
49989         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
49990         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49991
49992 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
49993             Bruno Haible  <bruno@clisp.org>
49994
49995         * lib/stdint.in.h: Define all type macros so that their expansion is
49996         a single typedef'ed token. Fixes a compilation failure in Boost which
49997         does "using ::int8_t;".
49998
49999 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50000
50001         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
50002         gl_MANYWARN_ALL_GCC.
50003         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
50004         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
50005         * modules/manywarnings: New file.
50006         * MODULES.html.sh: Mention manywarnings module.
50007
50008 2008-11-18  Bruno Haible  <bruno@clisp.org>
50009
50010         * doc/gnulib-tool.texi (Unit tests): New section.
50011
50012 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50013
50014         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
50015         paths like 'lib/po/foo.po'.
50016
50017 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50018
50019         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
50020         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
50021
50022 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50023
50024         * m4/warnings.m4: Use CPPFLAGS to really check whether the
50025         parameter works.
50026
50027 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50028
50029         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
50030
50031 2008-11-17  Bruce Korb  <bkorb@gnu.org>
50032
50033         * modules/parse-duration-tests: New file.
50034         * tests/test-parse-duration.sh: New file.
50035         * tests/test-parse-duration.c: New file.
50036
50037         New module 'parse-duration'.
50038         * lib/parse-duration.h: New file.
50039         * lib/parse-duration.c: New file.
50040         * modules/parse-duration: New file.
50041
50042 2008-11-17  Bruno Haible  <bruno@clisp.org>
50043
50044         * tests/test-select-out.sh: Comment out the first pipe test.
50045         Reported by Simon Josefsson.
50046
50047 2008-11-17  Bruno Haible  <bruno@clisp.org>
50048
50049         * modules/getaddrinfo (Depends-on): Add servent, hostent.
50050         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
50051         gl_HOSTENT.
50052
50053 2008-11-17  Bruno Haible  <bruno@clisp.org>
50054
50055         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
50056         -lnetwork and -lnet. Needed for Haiku and BeOS.
50057
50058 2008-11-16  Bruno Haible  <bruno@clisp.org>
50059
50060         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
50061
50062 2008-11-16  Bruno Haible  <bruno@clisp.org>
50063
50064         Avoid test failure on Haiku.
50065         * tests/test-fsync.c: Include <errno.h>.
50066         (main): Don't require that fsync (0) fails.
50067
50068 2008-11-15  Bruno Haible  <bruno@clisp.org>
50069
50070         New module 'hostent'.
50071         * modules/hostent: New file.
50072         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
50073
50074 2008-11-15  Bruno Haible  <bruno@clisp.org>
50075
50076         New module 'servent'.
50077         * modules/servent: New file.
50078         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
50079
50080 2008-11-15  Bruno Haible  <bruno@clisp.org>
50081
50082         Avoid generating same test program with two different rules.
50083         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
50084         test-frexp to test-frexp-nolibm.
50085         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
50086         test-frexpl to test-frexpl-nolibm.
50087
50088 2008-11-15  Bruno Haible  <bruno@clisp.org>
50089
50090         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
50091         $(FREXPL_LIBM).
50092
50093 2008-11-15  Bruno Haible  <bruno@clisp.org>
50094
50095         * lib/netdb.in.h: Activate the definitions also when the system's
50096         <netdb.h> has 'struct addrinfo'.
50097         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
50098         EAI_OVERFLOW or AI_NUMERICSERV.
50099         * doc/posix-headers/netdb.texi: Document the problem.
50100
50101 2008-11-15  Bruno Haible  <bruno@clisp.org>
50102
50103         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
50104
50105         Make the 'sched' module work on platforms where <sched.h> exists but
50106         is incomplete (such as Haiku).
50107         * lib/sched.in.h; Include the system's <sched.h> if it exists.
50108         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
50109         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
50110         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
50111         HAVE_STRUCT_SCHED_PARAM.
50112         * modules/sched (Depends-on): Add include_next.
50113         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
50114         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
50115         * doc/posix-headers/sched.texi: Document the issue.
50116
50117 2008-11-13  Jim Meyering  <meyering@redhat.com>
50118
50119         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
50120         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
50121         test would fail due to the difference in the Report bugs to ...
50122         line.  The expected address is empty, "<>", while the actual
50123         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
50124
50125 2008-11-12  Bruno Haible  <bruno@clisp.org>
50126
50127         lstat: don't compile lstat.c on systems lacking lstat
50128         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
50129         which don't have lstat; this is handled by lib/sys_stat.in.h already.
50130         Reported by Daniel P. Berrange via Jim Meyering.
50131
50132 2008-11-12  Jim Meyering  <meyering@redhat.com>
50133
50134         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
50135
50136 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50137
50138         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
50139         instead.
50140
50141 2008-11-12  Bruno Haible  <bruno@clisp.org>
50142
50143         * lib/unicodeio.c: Include unistr.h.
50144         (utf8_wctomb): Remove function.
50145         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
50146
50147 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50148
50149         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
50150         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
50151         <bruno@clisp.org>.
50152         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
50153
50154 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50155
50156         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
50157         * doc/gnulib.texi: Add section for warnings.
50158
50159 2008-11-11  Bruno Haible  <bruno@clisp.org>
50160
50161         * lib/sockets.h: Add a comment.
50162
50163 2008-11-11  Karl Berry  <karl@gnu.org>
50164
50165         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
50166
50167 2008-11-11  Eric Blake  <ebb9@byu.net>
50168
50169         fdl.texi: avoid git symlinks
50170         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
50171
50172 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50173
50174         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
50175
50176 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50177
50178         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
50179         (gl_WARN_ADD): Substitute $2 if literal.
50180
50181 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50182
50183         * m4/warning.m4: Remove.
50184
50185 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50186
50187         * m4/warnings.m4: Almost complete rewrite. :-)
50188
50189 2008-11-10  Simon Josefsson  <simon@josefsson.org>
50190
50191         * modules/warnings: New module.
50192         * m4/warnings.m4: New file.
50193         * MODULES.html.sh: Mention warnings module.
50194         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
50195         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50196
50197 2008-11-10  Eric Blake  <ebb9@byu.net>
50198
50199         fdl.texi: make a symlink to the latest version
50200         * doc/standards.texi: Revert today's earlier change.
50201         * doc/fdl-1.2.texi: Rename from old fdl.texi...
50202         * doc/fdl.texi: ...and replace this with a symlink to the newer
50203         fdl-1.3.texi.
50204
50205 2008-11-10  Bruno Haible  <bruno@clisp.org>
50206
50207         * tests/test-select-fd.c (main): Accept the result file name as fourth
50208         argument.
50209         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
50210         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
50211
50212 2008-11-10  Bruno Haible  <bruno@clisp.org>
50213
50214         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
50215         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
50216         as autoconf-substituted macros.
50217         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
50218         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
50219         gl_NETDB_H_DEFAULTS. Set these variables.
50220         * modules/netdb (Makefile.am): Substitute these variables.
50221
50222 2008-11-10  Eric Blake  <ebb9@byu.net>
50223
50224         standards.texi: include correct file for FDL 1.3
50225         * doc/standards.texi (GNU Free Documentation License): Change
50226         include file to pull in FDL 1.3, not 1.2.
50227
50228         fdl.texi: revert accidental change to license
50229         * doc/fdl.texi: This is FDL 1.2, not 1.3.
50230
50231 2008-11-10  Bruno Haible  <bruno@clisp.org>
50232
50233         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
50234         cross-compiling guesses also when the native compile gives no result.
50235
50236 2008-11-10  Bruno Haible  <bruno@clisp.org>
50237
50238         * lib/spawni.c (__spawni): Force variable into the stack.
50239
50240 2008-11-10  Bruno Haible  <bruno@clisp.org>
50241
50242         Add support for Haiku.
50243         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
50244         glibc and BeOS, but also on Haiku.
50245         * lib/fpurge.c (fpurge): Likewise.
50246         * lib/freadable.c (freadable): Likewise.
50247         * lib/freadahead.c (freadahead): Likewise.
50248         * lib/freading.c (freading): Likewise.
50249         * lib/freadptr.c (freadptr): Likewise.
50250         * lib/freadseek.c (freadptrinc): Likewise.
50251         * lib/fseeko.c (rpl_fseeko): Likewise.
50252         * lib/fseterr.c (fseterr): Likewise.
50253         * lib/fwritable.c (fwritable): Likewise.
50254         * lib/fwriting.c (fwriting): Likewise.
50255         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
50256
50257 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50258
50259         * lib/config.charset: Treat Haiku like BeOS.
50260
50261 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50262
50263         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
50264         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
50265
50266 2008-11-08  Bruno Haible  <bruno@clisp.org>
50267
50268         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
50269         AC_CACHE_CHECK.
50270
50271 2008-11-08  Bruno Haible  <bruno@clisp.org>
50272
50273         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
50274
50275 2008-11-08  Bruno Haible  <bruno@clisp.org>
50276
50277         * tests/test-select-fd.c: New file.
50278         * tests/test-select-in.sh: New file.
50279         * tests/test-select-out.sh: New file.
50280         * tests/test-select-stdin.c: New file.
50281         * modules/select-tests (Files): Add the new files.
50282         (Depends-on): Add gettimeofday.
50283         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
50284         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
50285         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
50286
50287 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
50288             Bruno Haible  <bruno@clisp.org>
50289
50290         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
50291
50292 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
50293
50294         * build-aux/pmccabe2html: Added support for C++ source files.
50295
50296 2008-11-05  Ben Pfaff  <blp@gnu.org>
50297
50298         Fix lib/close.c build on Windows.
50299         * modules/close (Files): Add lib/w32sock.h.
50300
50301 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
50302
50303         Accept Bison's NEWS format.
50304         * build-aux/announce-gen (print_news_deltas): Tweak
50305         $re_prefix.
50306
50307 2008-11-04  Bruno Haible  <bruno@clisp.org>
50308
50309         * modules/random_r (Maintainer): Add glibc.
50310
50311 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50312
50313         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
50314         by karl@freefriends.org (Karl Berry).
50315         * doc/alloca.texi: Likewise.
50316         * doc/c-ctype.texi: Likewise.
50317         * doc/c-strcase.texi: Likewise.
50318         * doc/c-strcaseeq.texi: Likewise.
50319         * doc/c-strcasestr.texi: Likewise.
50320         * doc/c-strstr.texi: Likewise.
50321         * doc/c-strtod.texi: Likewise.
50322         * doc/c-strtold.texi: Likewise.
50323         * doc/ctime.texi: Likewise.
50324         * doc/error.texi: Likewise.
50325         * doc/fdl.texi: Likewise.
50326         * doc/gcd.texi: Likewise.
50327         * doc/getdate.texi: Likewise.
50328         * doc/gnulib-intro.texi: Likewise.
50329         * doc/gnulib-tool.texi: Likewise.
50330         * doc/gnulib.texi: Likewise.
50331         * doc/inet_ntoa.texi: Likewise.
50332         * doc/maintain.texi: Likewise.
50333         * doc/make-stds.texi: Likewise.
50334         * doc/quote.texi: Likewise.
50335         * doc/regexprops-generic.texi: Likewise.
50336         * doc/standards.texi: Likewise.
50337         * doc/verify.texi: Likewise.
50338         * doc/visibility.texi: Likewise.
50339         * doc/gnulib.texi (GNU Free Documentation License): Include
50340         fdl-1.3.texi instead of fdl.texi.
50341
50342 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50343
50344         * doc/fdl-1.3.texi: New file, from
50345         <http://www.gnu.org/licenses/fdl-1.3.texi>.
50346         * modules/fdl-1.3: Add.
50347         * MODULES.html.sh: Add fdl-1.3.
50348
50349 2008-11-03  Bruno Haible  <bruno@clisp.org>
50350
50351         Make determination of absolute name of header file work with AIX xlc.
50352         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
50353         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
50354         preprocessing.
50355         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50356         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50357
50358 2008-11-03  Simon Josefsson  <simon@josefsson.org>
50359
50360         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
50361         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
50362         <ludo@gnu.org>.
50363
50364 2008-11-02  Bruno Haible  <bruno@clisp.org>
50365
50366         Mark 'strpbrk' obsolete.
50367         * modules/strpbrk (Status, Notice): New sections.
50368         * modules/strtok_r (Depends-on): Add strpbrk.
50369
50370 2008-11-02  Bruno Haible  <bruno@clisp.org>
50371
50372         Mark 'strdup' obsolete.
50373         * modules/strdup (Status, Notice): New sections.
50374         * modules/findprog (Depends-on): Add strdup.
50375         * modules/getaddrinfo (Depends-on): Likewise.
50376         * modules/localename (Depends-on): Likewise.
50377         * modules/relocatable-lib (Depends-on): Likewise.
50378         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
50379         * modules/relocatable-prog (Depends-on): Likewise.
50380         * modules/trim (Depends-on): Likewise.
50381         * modules/unictype/gen-ctype (Depends-on): Likewise.
50382         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50383
50384 2008-11-02  Bruno Haible  <bruno@clisp.org>
50385
50386         Mark 'strcspn' obsolete.
50387         * modules/strcspn (Status, Notice): New sections.
50388
50389 2008-11-02  Bruno Haible  <bruno@clisp.org>
50390
50391         Mark 'rmdir' obsolete.
50392         * modules/rmdir (Status, Notice): New sections.
50393         * modules/clean-temp (Depends-on): Add rmdir.
50394         * modules/openat (Depends-on): Likewise.
50395
50396 2008-11-02  Bruno Haible  <bruno@clisp.org>
50397
50398         Mark 'raise' obsolete.
50399         * modules/raise (Status, Notice): New sections.
50400         (Include): Specify <signal.h>.
50401         * modules/stdio (Depends-on): Add raise.
50402         * modules/write (Depends-on): Likewise.
50403
50404 2008-11-02  Bruno Haible  <bruno@clisp.org>
50405
50406         Mark 'memset' obsolete.
50407         * modules/memset (Status, Notice): New sections.
50408
50409 2008-11-02  Bruno Haible  <bruno@clisp.org>
50410
50411         Mark 'memmove' obsolete.
50412         * modules/memmove (Status, Notice): New sections.
50413         * modules/argp (Depends-on): Add memmove.
50414         * modules/argz (Depends-on): Likewise.
50415         * modules/canonicalize (Depends-on): Likewise.
50416         * modules/canonicalize-lgpl (Depends-on): Likewise.
50417         * modules/fts (Depends-on): Likewise.
50418         * modules/getcwd (Depends-on): Likewise.
50419         * modules/human (Depends-on): Likewise.
50420         * modules/regex (Depends-on): Likewise.
50421         * modules/striconveh (Depends-on): Likewise.
50422         * modules/trim (Depends-on): Likewise.
50423         * modules/unistr/u8-move (Depends-on): Likewise.
50424         * modules/unistr/u16-move (Depends-on): Likewise.
50425         * modules/unistr/u32-move (Depends-on): Likewise.
50426
50427 2008-11-02  Bruno Haible  <bruno@clisp.org>
50428
50429         Mark 'memcpy' obsolete.
50430         * modules/memcpy (Status, Notice): New sections.
50431
50432 2008-11-02  Bruno Haible  <bruno@clisp.org>
50433
50434         Mark 'memcmp' obsolete.
50435         * modules/memcmp (Status, Notice): New sections.
50436         * modules/argmatch (Depends-on): Add memchr.
50437         * modules/backupfile (Depends-on): Likewise.
50438         * modules/c-strcasestr (Depends-on): Likewise.
50439         * modules/crypto/des (Depends-on): Likewise.
50440         * modules/csharpcomp (Depends-on): Likewise.
50441         * modules/fnmatch (Depends-on): Likewise.
50442         * modules/git-merge-changelog (Depends-on): Likewise.
50443         * modules/isnand (Depends-on): Likewise.
50444         * modules/isnand-nolibm (Depends-on): Likewise.
50445         * modules/isnanf (Depends-on): Likewise.
50446         * modules/isnanf-nolibm (Depends-on): Likewise.
50447         * modules/isnanl (Depends-on): Likewise.
50448         * modules/isnanl-nolibm (Depends-on): Likewise.
50449         * modules/mbchar (Depends-on): Likewise.
50450         * modules/memcoll (Depends-on): Likewise.
50451         * modules/quotearg (Depends-on): Likewise.
50452         * modules/regex (Depends-on): Likewise.
50453         * modules/relocatable-prog (Depends-on): Likewise.
50454         * modules/same (Depends-on): Likewise.
50455         * modules/signbit (Depends-on): Likewise.
50456         * modules/strcasestr-simple (Depends-on): Likewise.
50457         * modules/unictype/gen-ctype (Depends-on): Likewise.
50458         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50459         * modules/uniname/uniname (Depends-on): Likewise.
50460         * modules/unistr/u8-cmp (Depends-on): Likewise.
50461
50462 2008-11-02  Bruno Haible  <bruno@clisp.org>
50463
50464         Mark 'memchr' obsolete.
50465         * modules/memchr (Status, Notice): New sections.
50466         * modules/argp (Depends-on): Add memchr.
50467         * modules/base64 (Depends-on): Likewise.
50468         * modules/c-strcasestr (Depends-on): Likewise.
50469         * modules/chdir-long (Depends-on): Likewise.
50470         * modules/fnmatch (Depends-on): Likewise.
50471         * modules/getsubopt (Depends-on): Likewise.
50472         * modules/git-merge-changelog (Depends-on): Likewise.
50473         * modules/glob (Depends-on): Likewise.
50474         * modules/strcasestr-simple (Depends-on): Likewise.
50475         * modules/strnlen (Depends-on): Likewise.
50476
50477 2008-11-02  Bruno Haible  <bruno@clisp.org>
50478
50479         Mark 'atexit' obsolete.
50480         * modules/atexit (Status, Notice): New sections.
50481         * modules/chdir-long (Depends-on): Add atexit.
50482         * modules/wait-process (Depends-on): Likewise.
50483
50484 2008-11-02  Bruno Haible  <bruno@clisp.org>
50485
50486         * gnulib-tool: New option --with-obsolete.
50487         (func_usage): Document it.
50488         (func_modules_transitive_closure): Drop obsolete dependencies if
50489         incobsolete is not true.
50490         (func_import): Read and save the incobsolete variable to the cache.
50491
50492 2008-11-02  Bruno Haible  <bruno@clisp.org>
50493
50494         * modules/TEMPLATE-EXTENDED: New field 'Status'.
50495         * gnulib-tool: New option --extract-status.
50496         (func_usage): Document it.
50497         (sed_extract_prog): Recognize it.
50498         (func_get_status): New function.
50499
50500 2008-10-30  Simon Josefsson  <simon@josefsson.org>
50501
50502         * modules/sockets (License): Change from LGPL to LGPLv2+.
50503
50504 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50505
50506         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
50507
50508 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50509
50510         * MODULES.html.sh (Support for systems lacking POSIX:2001):
50511         Mention times and sys_times.
50512         * modules/sys_times, modules/sys_times-tests: New modules.
50513         * modules/times, modules/times-tests: Likewise
50514         * m4/sys_times_h.m4: New file.
50515         * lib/sys_times.in.h: Likewise
50516         * lib/times.c: Likewise.
50517         * tests/test-sys_times.c: Likewise.
50518         * tests/test-times.c: Likewise.
50519         * doc/posix-headers/sys_times.texi: Update.
50520         * doc/posix-functions/times.texi: Update.
50521
50522 2008-10-28  Jim Meyering  <meyering@redhat.com>
50523
50524         * modules/tempname (Depends-on): Add lstat.
50525
50526         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
50527
50528 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50529
50530         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
50531         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
50532         using idiom used elsewhere in gnulib.
50533
50534 2008-10-27  Jim Meyering  <meyering@redhat.com>
50535
50536         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
50537
50538 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50539
50540         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
50541         TESTS_ENVIRONMENT, for shell scripts that needs to call built
50542         programs.
50543         * tests/test-argp-2.sh: Use $EXEEXT when needed.
50544
50545 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50546
50547         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
50548
50549 2008-10-27  Bruno Haible  <bruno@clisp.org>
50550
50551         * tests/test-lstat.c: Include <stdio.h>.
50552
50553 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50554
50555         * modules/lstat-tests: New module.
50556         * tests/test-lstat.c: New file.
50557
50558 2008-10-26  Jim Meyering  <meyering@redhat.com>
50559
50560         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
50561
50562 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50563             Bruno Haible  <bruno@clisp.org>
50564
50565         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
50566         * modules/configmake (Include): Add a note that the include must come
50567         after all system headers.
50568         * lib/javaversion.c: Include configmake.h after all other includes.
50569
50570 2008-10-26  Bruno Haible  <bruno@clisp.org>
50571
50572         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
50573         HAVE_STRUCT_RANDOM_DATA to 1.
50574         (gl_STDLIB_H): Simplify.
50575
50576 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50577
50578         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
50579         substitute HAVE_STRUCT_RANDOM_DATA.
50580         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
50581         random_data.
50582         * modules/stdlib (Makefile.am): Substitute
50583         HAVE_STRUCT_RANDOM_DATA.
50584
50585 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50586
50587         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
50588         * doc/gnulib-intro.texi (Copyright): Likewise.
50589
50590 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50591
50592         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
50593         findings.
50594
50595 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
50596             Bruno Haible  <bruno@clisp.org>
50597
50598         * lib/unistd.in.h: Include <winsock2.h>.
50599         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
50600         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
50601         Provide dummy declarations.
50602         (gethostname): Override.
50603         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
50604         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
50605         gl_PREREQ_SYS_H_WINSOCK2.
50606         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
50607         * doc/posix-functions/gethostname.texi: More details.
50608
50609 2008-10-25  Bruno Haible  <bruno@clisp.org>
50610
50611         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50612         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
50613         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
50614
50615         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
50616         here ...
50617         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
50618         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
50619         gl_UNISTD_H_DEFAULTS.
50620
50621 2008-10-25  Eric Blake  <ebb9@byu.net>
50622
50623         signbit: avoid spurious compiler failure
50624         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
50625         declarations inside function.
50626
50627 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50628             Bruno Haible  <bruno@clisp.org>
50629
50630         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
50631         * modules/random_r (Depends-on): Add stdint.
50632
50633 2008-10-24  Bruno Haible  <bruno@clisp.org>
50634
50635         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
50636         Eggert.
50637         * modules/strerror (License): Likewise.
50638
50639 2008-10-24  Jim Meyering  <meyering@redhat.com>
50640
50641         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
50642         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
50643
50644 2008-10-24  Eric Blake  <ebb9@byu.net>
50645
50646         getgroups: fix compilation when getgroups is available
50647         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
50648         but with <config.h> override of getgroups disabled.
50649
50650 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50651
50652         * doc/gnulib.texi (Header files): Add note about C++ problems.
50653         Explained by Bruno Haible <bruno@clisp.org>.
50654
50655 2008-10-23  Bruno Haible  <bruno@clisp.org>
50656
50657         Define a dummy SA_NODEFER macro on Interix.
50658         * lib/signal.in.h (SA_NODEFER): Define fallback.
50659         Reported by Aleksey Cheusov <cheusov@tut.by> via
50660         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
50661
50662 2008-10-23  Bruno Haible  <bruno@clisp.org>
50663
50664         * modules/freadahead (License): Change to LGPLv2+.
50665         Suggested by Simon Josefsson.
50666
50667 2008-10-23  Jim Meyering  <meyering@redhat.com>
50668
50669         random_r: new module
50670         * modules/random_r: New file.
50671         * m4/random_r.m4: New file.
50672         * lib/random_r.c: New file, from glibc.
50673         * modules/random_r-tests: New file.
50674         * tests/test-random_r.c: New file.
50675         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
50676          Declare.
50677         (RAND_MAX): Define.
50678         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
50679         * modules/stdlib: Substitute them, too.
50680         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
50681         * doc/glibc-functions/initstate_r.texi: Mention the new module.
50682         * doc/glibc-functions/random_r.texi: Likewise.
50683         * doc/glibc-functions/setstate_r.texi: Likewise.
50684         * doc/glibc-functions/srandom_r.texi: Likewise.
50685         * config/srclist.txt: Mention it.
50686
50687 2008-10-23  David Lutterkort  <lutter@redhat.com>
50688
50689         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
50690         link requirement
50691
50692 2008-10-23  Jim Meyering  <meyering@redhat.com>
50693
50694         selinux-h: mark parameters of stub functions as intentionally unused
50695         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
50696         * lib/se-context.in.h: Likewise.
50697
50698 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50699
50700         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
50701
50702 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50703
50704         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
50705
50706 2008-10-22  Eric Blake  <ebb9@byu.net>
50707
50708         glthread/thread: avoid compiler warning
50709         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
50710         Add unreachable abort to silence compiler.
50711
50712 2008-10-22  Eric Blake  <ebb9@byu.net>
50713
50714         netdb: also supply struct addrinfo for cygwin 1.5.x
50715         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
50716         older cygwin.
50717         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
50718         cygwin.
50719         * doc/posix-headers/netdb.texi (netdb.h): Document this.
50720
50721 2008-10-22  Bruno Haible  <bruno@clisp.org>
50722
50723         * users.txt: Update entry about pspp.
50724
50725 2008-10-21  Bruno Haible  <bruno@clisp.org>
50726
50727         Simplification.
50728         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
50729         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
50730
50731         Simplification.
50732         * lib/ioctl.c (ioctl): Don't undefine.
50733         * lib/socket.c (socket): Don't undefine.
50734
50735         Remove unused module indicator macros.
50736         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
50737         GNULIB_$1 as a C macro.
50738
50739         * doc/posix-functions/close.texi: Undo last change.
50740         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
50741         Windows platforms.
50742
50743 2008-10-21  Bruno Haible  <bruno@clisp.org>
50744
50745         Add gethostname() declaration to <unistd.h>.
50746         * lib/unistd.in.h (gethostname): New declaration.
50747         * lib/gethostname.c: Include <unistd.h>.
50748         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
50749         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
50750         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
50751         and HAVE_GETHOSTNAME.
50752         * modules/gethostname (Depends-on): Add unistd.
50753         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50754         (Include): Specify <unistd.h>.
50755         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
50756         HAVE_GETHOSTNAME.
50757         * tests/test-gethostname.c: Include <unistd.h> first.
50758
50759 2008-10-21  Bruno Haible  <bruno@clisp.org>
50760
50761         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
50762         * modules/select-tests (Depends-on): Likewise.
50763         Reported by Simon Josefsson.
50764
50765 2008-10-21  Simon Josefsson  <simon@josefsson.org>
50766
50767         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
50768         * lib/accept.c: New file, based on winsock.c.
50769         * lib/bind.c: New file, based on winsock.c.
50770         * lib/connect.c: New file, based on winsock.c.
50771         * lib/getpeername.c: New file, based on winsock.c.
50772         * lib/getsockname.c: New file, based on winsock.c.
50773         * lib/getsockopt.c: New file, based on winsock.c.
50774         * lib/ioctl.c: New file, based on winsock.c.
50775         * lib/listen.c: New file, based on winsock.c.
50776         * lib/recv.c: New file, based on winsock.c.
50777         * lib/recvfrom.c: New file, based on winsock.c.
50778         * lib/send.c: New file, based on winsock.c.
50779         * lib/sendto.c: New file, based on winsock.c.
50780         * lib/setsockopt.c: New file, based on winsock.c.
50781         * lib/shutdown.c: New file, based on winsock.c.
50782         * lib/socket.c: New file, based on winsock.c.
50783         * lib/w32sock.h: New file, based on winsock.c.
50784         * lib/winsock.c: Remove file.
50785         * modules/accept: Likewise.
50786         * modules/bind: Likewise.
50787         * modules/connect: Likewise.
50788         * modules/getpeername: Likewise.
50789         * modules/getsockname: Likewise.
50790         * modules/getsockopt: Likewise.
50791         * modules/ioctl: Likewise.
50792         * modules/listen: Likewise.
50793         * modules/recv: Likewise.
50794         * modules/recvfrom: Likewise.
50795         * modules/send: Likewise.
50796         * modules/sendto: Likewise.
50797         * modules/setsockopt: Likewise.
50798         * modules/shutdown: Likewise.
50799         * modules/socket: Use socket.c instead of winsock.c.
50800         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
50801         * doc/posix-functions/accept.texi: Doc fix.
50802         * doc/posix-functions/bind.texi: Doc fix.
50803         * doc/posix-functions/close.texi: Doc fix.
50804         * doc/posix-functions/connect.texi: Doc fix.
50805         * doc/posix-functions/getpeername.texi: Doc fix.
50806         * doc/posix-functions/getsockname.texi: Doc fix.
50807         * doc/posix-functions/getsockopt.texi: Doc fix.
50808         * doc/posix-functions/ioctl.texi: Doc fix.
50809         * doc/posix-functions/listen.texi: Doc fix.
50810         * doc/posix-functions/recv.texi: Doc fix.
50811         * doc/posix-functions/recvfrom.texi: Doc fix.
50812         * doc/posix-functions/send.texi: Doc fix.
50813         * doc/posix-functions/sendto.texi: Doc fix.
50814         * doc/posix-functions/setsockopt.texi: Doc fix.
50815         * doc/posix-functions/shutdown.texi: Doc fix.
50816         * doc/posix-functions/socket.texi: Doc fix.
50817
50818 2008-10-20  Bruno Haible  <bruno@clisp.org>
50819
50820         Take into account the role of SIGABRT_COMPAT on Windows 2008.
50821         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
50822         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
50823         as an alias for SIGABRT.
50824         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
50825         (sigaction): Map it to SIGABRT.
50826         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
50827
50828 2008-10-20  Bruno Haible  <bruno@clisp.org>
50829
50830         * lib/fts.c: Don't include lstat.h.
50831         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
50832
50833         Move the lstat() declaration to <sys/stat.h>.
50834         * lib/lstat.h: Remove file.
50835         * lib/sys_stat.in.h: Add special invocation convention.
50836         (lstat): New declaration.
50837         * lib/lstat.c (orig_lstat): New function.
50838         (rpl_lstat): Use orig_lstat instead of lstat.
50839         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
50840         AC_C_INLINE. Set REPLACE_LSTAT.
50841         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
50842         and REPLACE_LSTAT.
50843         * modules/lstat (Files): Remove lib/lstat.h.
50844         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50845         (Include): Specify <sys/stat.h> instead of lstat.h.
50846         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
50847         REPLACE_LSTAT.
50848         * NEWS: Mention the change.
50849
50850 2008-10-20  Bruno Haible  <bruno@clisp.org>
50851
50852         * modules/posix_spawn-tests: New file.
50853         * tests/test-posix_spawn3.c: New file.
50854
50855 2008-10-20  Bruno Haible  <bruno@clisp.org>
50856
50857         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
50858         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50859         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
50860         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50861         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
50862
50863 2008-10-20  Bruno Haible  <bruno@clisp.org>
50864
50865         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
50866         of posix_spawn on AIX 5.3.
50867
50868 2008-10-20  Bruno Haible  <bruno@clisp.org>
50869
50870         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
50871
50872 2008-10-20  Bruno Haible  <bruno@clisp.org>
50873
50874         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
50875         of AC_LANG_PROGRAM.
50876
50877 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50878
50879         * lib/netdb.in.h: Don't define GNU specific constants until they
50880         are supported or needed.  Reported by Bruno Haible
50881         <bruno@clisp.org>.
50882
50883 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50884
50885         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
50886
50887 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50888
50889         * lib/getaddrinfo.h: Remove file.
50890         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
50891         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
50892         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
50893         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
50894         * modules/netdb: Substitute GNULIB_GETADDRINFO.
50895         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
50896         * tests/test-getaddrinfo.c: Likewise.
50897         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
50898         * NEWS: Mention change.
50899
50900 2008-10-19  Bruno Haible  <bruno@clisp.org>
50901
50902         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
50903
50904 2008-10-19  Bruno Haible  <bruno@clisp.org>
50905
50906         * lib/wait-process.c: Include simply <sys/wait.h>.
50907         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
50908         WIFSTOPPED): Remove fallback definitions.
50909         * modules/wait-process (Depends-on): Add sys_wait.
50910
50911         New module 'sys_wait'.
50912         * modules/sys_wait: New file.
50913         * lib/sys_wait.in.h: New file, partially copied from
50914         lib/wait-process.c.
50915         * m4/sys_wait_h.m4: New file.
50916         * doc/posix-headers/sys_wait.texi: Mention the new module.
50917
50918 2008-10-19  Bruno Haible  <bruno@clisp.org>
50919
50920         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
50921
50922 2008-10-19  Bruno Haible  <bruno@clisp.org>
50923
50924         Assume that waitpid() fills an 'int' status, not a 'union wait'.
50925         * lib/wait-process.c (WAIT_T): Remove type.
50926         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
50927         (wait_subprocess): Update.
50928
50929 2008-10-19  Bruno Haible  <bruno@clisp.org>
50930
50931         New module 'atoll'.
50932         * modules/atoll: New file.
50933         * lib/stdlib.in.h (atoll): New declaration.
50934         * lib/atoll.c: New file, from glibc with modifications.
50935         * m4/atoll.m4: New file.
50936         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
50937         HAVE_ATOLL.
50938         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
50939         * doc/posix-functions/atoll.texi: Mention the new module.
50940
50941 2008-10-19  Bruno Haible  <bruno@clisp.org>
50942
50943         Add strtoull() declaration to <stdlib.h>.
50944         * lib/stdlib.in.h (strtoull): New declaration.
50945         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50946         Set HAVE_STRTOULL.
50947         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
50948         HAVE_STRTOULL.
50949         * modules/strtoull (Depends-on): Add stdlib.
50950         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50951         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
50952         HAVE_STRTOULL.
50953
50954 2008-10-19  Bruno Haible  <bruno@clisp.org>
50955
50956         Add strtoll() declaration to <stdlib.h>.
50957         * lib/stdlib.in.h (strtoll): New declaration.
50958         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50959         Set HAVE_STRTOLL.
50960         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
50961         HAVE_STRTOLL.
50962         * modules/strtoll (Depends-on): Add stdlib.
50963         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50964         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
50965
50966 2008-10-19  Bruno Haible  <bruno@clisp.org>
50967
50968         * modules/bcopy (Depends-on): Add strings.
50969         (Include): Specify <strings.h>.
50970
50971 2008-10-19  Bruno Haible  <bruno@clisp.org>
50972
50973         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
50974
50975 2008-10-19  Bruno Haible  <bruno@clisp.org>
50976
50977         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
50978         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
50979         mingw.
50980
50981 2008-10-19  Bruno Haible  <bruno@clisp.org>
50982
50983         * lib/atanl.c: Don't include isnanl.h.
50984         * lib/cosl.c: Likewise.
50985         * lib/ldexpl.c: Likewise.
50986         * lib/logl.c: Likewise.
50987         * lib/sinl.c: Likewise.
50988         * lib/sqrtl.c: Likewise.
50989         * lib/tanl.c: Likewise.
50990
50991         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
50992         * lib/isnanf.h: Remove file.
50993         * lib/isnand.h: Remove file.
50994         * lib/isnanl.h: Remove file.
50995         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
50996         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
50997         macros.
50998         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
50999         HAVE_ISNANF, don't define it as a C macro.
51000         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
51001         HAVE_ISNAND, don't define it as a C macro.
51002         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
51003         HAVE_ISNANL, don't define it as a C macro.
51004         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
51005         HAVE_ISNAN[FDL].
51006         * modules/isnanf (Files): Remove lib/isnanf.h.
51007         (Depends-on): Add math.
51008         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51009         (Include): Specify <math.h> instead of isnanf.h.
51010         * modules/isnand (Files): Remove lib/isnand.h.
51011         (Depends-on): Add math.
51012         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51013         (Include): Specify <math.h> instead of isnand.h.
51014         * modules/isnanl (Files): Remove lib/isnanl.h.
51015         (Depends-on): Add math.
51016         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51017         (Include): Specify <math.h> instead of isnanl.h.
51018         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
51019         HAVE_ISNAN[FDL].
51020         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
51021         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
51022         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
51023         * NEWS: Mention the change.
51024
51025 2008-10-18  Bruno Haible  <bruno@clisp.org>
51026
51027         Add getusershell(), setusershell(), endusershell() declarations to
51028         <unistd.h>.
51029         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
51030         declarations.
51031         * lib/getusershell.c: Include unistd.h.
51032         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
51033         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51034         HAVE_GETUSERSHELL.
51035         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
51036         and HAVE_GETUSERSHELL.
51037         * modules/getusershell (Depends-on): Add unistd, extensions.
51038         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51039         (Include): Specify <unistd.h>.
51040         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
51041         HAVE_GETUSERSHELL.
51042
51043 2008-10-18  Bruno Haible  <bruno@clisp.org>
51044
51045         Add a getloadavg() declaration to <stdlib.h>.
51046         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
51047         getloadavg declaration.
51048         (getloadavg): New declaration.
51049         * lib/getloadavg.c: Include <stdlib.h> first.
51050         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
51051         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
51052         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
51053         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
51054         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51055         * modules/getloadavg (Depends-on): Add stdlib, extensions.
51056         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51057         (Include): Specify <stdlib.h>.
51058         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
51059         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51060
51061 2008-10-18  Bruno Haible  <bruno@clisp.org>
51062
51063         * lib/dirchownmod.c: Don't include lchmod.h.
51064
51065         Move the lchmod() declaration to <sys/stat.h>.
51066         * lib/lchmod.h: Remove file.
51067         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
51068         (lchmod): New declaration, moved here from lib/lchown.h.
51069         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
51070         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
51071         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
51072         and HAVE_LCHMOD.
51073         * modules/lchmod (Files): Remove lib/lchmod.h.
51074         (Depends-on): Add sys_stat, extensions.
51075         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51076         (Include): Specify <sys/stat.h> instead of lchmod.h.
51077         * modules/sys_stat (Depends-on): Add link-warning.
51078         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
51079         definition of GL_LINK_WARNING.
51080         * NEWS: Mention the change.
51081
51082 2008-10-18  Bruno Haible  <bruno@clisp.org>
51083
51084         * lib/fchdir.c: Don't include dirfd.h.
51085         * lib/fts.c: Likewise.
51086         * lib/getcwd.c: Likewise.
51087         * lib/glob.c: Likewise.
51088
51089         Move the dirfd() declaration to <dirent.h>.
51090         * lib/dirfd.h: Remove file.
51091         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
51092         (dirfd): New declaration.
51093         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
51094         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
51095         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
51096         HAVE_DECL_DIRFD.
51097         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
51098         HAVE_DECL_DIRFD.
51099         * modules/dirfd (Files): Remove lib/dirfd.h.
51100         (Depends-on): Add dirent, extensions.
51101         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
51102         (Include): Specify <dirent.h> instead of dirfd.h.
51103         * modules/dirent (Depends-on): Add link-warning.
51104         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
51105         definition of GL_LINK_WARNING.
51106         * NEWS: Mention the change.
51107
51108 2008-10-18  Bruno Haible  <bruno@clisp.org>
51109
51110         Move the euidaccess() declaration to <unistd.h>.
51111         * lib/euidaccess.h: Remove file.
51112         * lib/unistd.in.h (euidaccess): New declaration.
51113         * lib/euidaccess.c: Don't include euidaccess.h.
51114         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
51115         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
51116         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
51117         and HAVE_EUIDACCESS.
51118         * modules/euidaccess (Files): Remove lib/euidaccess.h.
51119         (Depends-on): Add unistd.
51120         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51121         (Include): Specify <unistd.h> instead of euidaccess.h.
51122         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
51123         HAVE_EUIDACCESS.
51124         * NEWS: Mention the change.
51125
51126 2008-10-18  Bruno Haible  <bruno@clisp.org>
51127
51128         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
51129
51130         Move the getdomainname() declaration to <unistd.h>.
51131         * lib/getdomainname.h: Remove file.
51132         * lib/unistd.in.h (getdomainname): New declaration.
51133         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
51134         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
51135         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51136         HAVE_GETDOMAINNAME.
51137         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51138         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
51139         * modules/getdomainname (Files): Remove lib/getdomainname.h.
51140         (Depends-on): Add unistd, extensions.
51141         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51142         (Includes): Specify <unistd.h> instead of getdomainname.h.
51143         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
51144         HAVE_GETDOMAINNAME.
51145         * NEWS: Mention the change.
51146
51147 2008-10-18  Bruno Haible  <bruno@clisp.org>
51148
51149         * modules/dirent: New file.
51150         * m4/dirent_h.m4: New file.
51151         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
51152         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
51153         * modules/fchdir (Files): Remove lib/dirent.in.h.
51154         (Depends-on): Add dirent.
51155         (Makefile.am): Move rules to modules/dirent.
51156         * doc/posix-headers/dirent.texi: Mention the new module.
51157
51158 2008-10-18  Bruno Haible  <bruno@clisp.org>
51159
51160         Avoid -Wunused-parameter warnings in public gnulib header files.
51161         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
51162         macro.
51163         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
51164
51165 2008-10-18  Bruno Haible  <bruno@clisp.org>
51166
51167         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
51168         * doc/glibc-functions/error.texi: Mention the module 'error'.
51169         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
51170         * doc/glibc-functions/getdomainname.texi: Mention the module
51171         'getdomainname'.
51172         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
51173         * doc/glibc-functions/getpagesize.texi: Mention the module
51174         'getpagesize'.
51175         * doc/glibc-functions/getusershell.texi: Mention the module
51176         'getusershell'.
51177         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
51178         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
51179         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
51180         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
51181         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
51182         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
51183         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
51184         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
51185         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
51186         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
51187         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
51188         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
51189         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
51190         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
51191
51192 2008-10-17  Bruno Haible  <bruno@clisp.org>
51193
51194         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
51195         HP-UX and IRIX, use -0.0L.
51196         * tests/test-ceill.c (minus_zero): Likewise.
51197         * tests/test-floorl.c (minus_zero): Likewise.
51198         * tests/test-frexpl.c (minus_zero): Likewise.
51199         * tests/test-isnan.c (minus_zerol): Likewise.
51200         * tests/test-isnanl.h (minus_zero): Likewise.
51201         * tests/test-ldexpl.c (minus_zero): Likewise.
51202         * tests/test-roundl.c (minus_zero): Likewise.
51203         * tests/test-signbit.c (minus_zerol): Likewise.
51204         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51205         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51206         * tests/test-truncl.c (minus_zero): Likewise.
51207         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51208         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51209         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
51210         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51211
51212 2008-10-17  Bruno Haible  <bruno@clisp.org>
51213
51214         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
51215         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
51216         that it gets activated only for gcc >= 3.0.
51217         * lib/dirent.in.h: Likewise.
51218         * lib/errno.in.h: Likewise.
51219         * lib/fcntl.in.h: Likewise.
51220         * lib/float.in.h: Likewise.
51221         * lib/iconv.in.h: Likewise.
51222         * lib/inttypes.in.h: Likewise.
51223         * lib/locale.in.h: Likewise.
51224         * lib/math.in.h: Likewise.
51225         * lib/netdb.in.h: Likewise.
51226         * lib/netinet_in.in.h: Likewise.
51227         * lib/search.in.h: Likewise.
51228         * lib/signal.in.h: Likewise.
51229         * lib/spawn.in.h: Likewise.
51230         * lib/stdarg.in.h: Likewise.
51231         * lib/stdint.in.h: Likewise.
51232         * lib/stdio.in.h: Likewise.
51233         * lib/stdlib.in.h: Likewise.
51234         * lib/string.in.h: Likewise.
51235         * lib/strings.in.h: Likewise.
51236         * lib/sys_file.in.h: Likewise.
51237         * lib/sys_ioctl.in.h: Likewise.
51238         * lib/sys_select.in.h: Likewise.
51239         * lib/sys_socket.in.h: Likewise.
51240         * lib/sys_stat.in.h: Likewise.
51241         * lib/sys_time.in.h: Likewise.
51242         * lib/sysexits.in.h: Likewise.
51243         * lib/time.in.h: Likewise.
51244         * lib/unistd.in.h: Likewise.
51245         * lib/wchar.in.h: Likewise.
51246         * lib/wctype.in.h: Likewise.
51247         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51248
51249 2008-10-17  Jim Meyering  <meyering@redhat.com>
51250
51251         ignore-value: don't depend on inline module
51252         * modules/ignore-value (Depends-on): Remove 'inline'.
51253         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
51254         Suggestion from Bruno Haible.
51255
51256 2008-10-17  Bruno Haible  <bruno@clisp.org>
51257
51258         New implementation of condition variables for Win32.
51259         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
51260         (gl_linked_waitqueue_t): New type.
51261         (gl_cond_t): Use it.
51262         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
51263         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
51264         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
51265         (glthread_cond_init_func, glthread_cond_wait_func,
51266         glthread_cond_timedwait_func, glthread_cond_signal_func,
51267         glthread_cond_broadcast_func, glthread_cond_destroy_func):
51268         Reimplemented on the basis of gl_linked_waitqueue_t.
51269         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
51270         gl_waitqueue_t.
51271         (gl_rwlock_t): Update.
51272         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
51273
51274 2008-10-17  Simon Josefsson  <simon@josefsson.org>
51275
51276         * modules/recvfrom (Depends-on): Add dependency on getpeername.
51277         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51278
51279 2008-10-17  Jim Meyering  <meyering@redhat.com>
51280
51281         ignore-value: new module
51282         * modules/ignore-value: New file.
51283         * lib/ignore-value.h: New file.
51284         * MODULES.html.sh (Compiler warning management): New section,
51285         just for this module.  More to come.
51286
51287 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51288
51289         open-safer.c: avoid 'signed and unsigned in conditional...' warning
51290         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
51291         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
51292
51293 2008-10-16  Jim Meyering  <meyering@redhat.com>
51294
51295         openat-die.c: avoid 'no previous prototype' warning
51296         * lib/openat-die.c: Include "openat.h".
51297         Reported by Reuben Thomas <rrt@sc3d.org>.
51298
51299 2008-10-16  Simon Josefsson  <simon@josefsson.org>
51300
51301         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
51302         * lib/netdb.in.h: Fix typo.
51303         Reported by Bruno Haible  <bruno@clisp.org>
51304
51305         * lib/netdb.in.h: Include sys/socket.h for platforms without
51306         netdb.h, to get structures like hostent on MinGW.
51307         * modules/netdb (Depends-on): Add sys_socket.
51308
51309 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51310
51311         * modules/netdb, modules/netdb-tests: New file.
51312         * m4/netdb_h.m4: New file.
51313         * lib/netdb.in.h: Add, currently just an empty file pending
51314         definitions.
51315         * tests/test-netdb.c: New file.
51316         * doc/posix-headers/netdb.texi: Mention that we replace it if
51317         needed.
51318         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51319         netdb.
51320
51321 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51322
51323         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
51324         with code.
51325
51326 2008-10-13  Bruno Haible  <bruno@clisp.org>
51327
51328         * lib/glthread/cond.c (glthread_cond_wait_func,
51329         glthread_cond_timedwait_func): Add a comment.
51330
51331 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51332
51333         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
51334         * tests/test-select.c: Likewise,
51335
51336 2008-10-13  Bruno Haible  <bruno@clisp.org>
51337
51338         * lib/glthread/cond.c (glthread_cond_wait_func,
51339         glthread_cond_timedwait_func): Fix variable name.
51340         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51341
51342 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
51343
51344         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
51345         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
51346         struct sockaddr.sa_len.
51347         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
51348
51349 2008-10-13  Simon Josefsson  <simon@josefsson.org>
51350
51351         * build-aux/pmccabe2html: Add css and css_url parameters.
51352
51353 2008-10-12  Bruno Haible  <bruno@clisp.org>
51354
51355         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
51356         calling aclx_get.
51357         Reported by Rainer Tammer <tammer@tammer.net>.
51358
51359 2008-10-12  Bruno Haible  <bruno@clisp.org>
51360
51361         Use msvcrt aware primitives for creation/termination of Win32 threads.
51362         * lib/glthread/thread.c: Include <process.h>.
51363         (glthread_create_func): Use _beginthreadex instead of CreateThread.
51364         (wrapper_func): Update signature.
51365         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
51366
51367 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51368             Bruno Haible  <bruno@clisp.org>
51369
51370         Provide a Win32 implementation of the 'cond' module.
51371         * lib/glthread/cond.h [USE_WIN32]: New implementation.
51372         * lib/glthread/cond.c (glthread_cond_init_func,
51373         glthread_cond_wait_func, glthread_cond_timedwait_func,
51374         glthread_cond_signal_func, glthread_cond_broadcast_func,
51375         glthread_cond_destroy_func) [USE_WIN32]: New functions.
51376         * modules/cond (Dependencies): Add gettimeofday.
51377
51378 2008-10-11  Bruno Haible  <bruno@clisp.org>
51379
51380         Make sleep work on older versions of mingw.
51381         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
51382         only whether it exists.
51383         * doc/posix-functions/sleep.texi: Mention the problem with older
51384         versions of mingw.
51385
51386 2008-10-11  Bruno Haible  <bruno@clisp.org>
51387
51388         New module 'shutdown'.
51389         * modules/shutdown: New file.
51390         * lib/sys_socket.in.h (shutdown): New declaration.
51391         * lib/winsock.c (shutdown): New function.
51392         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
51393         GNULIB_SHUTDOWN.
51394         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
51395         * doc/posix-functions/shutdown.texi: Document the new module.
51396
51397 2008-10-11  Jim Meyering  <meyering@redhat.com>
51398
51399         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
51400
51401 2008-10-11  Bruno Haible  <bruno@clisp.org>
51402
51403         New module 'fclose'.
51404         * modules/fclose: New file.
51405         * lib/stdio.in.h (fclose): New declaration.
51406         * lib/fclose.c: New file.
51407         * m4/fclose.m4: New file.
51408         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
51409         REPLACE_FCLOSE.
51410         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
51411         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
51412         REPLACE_FCLOSE.
51413         * modules/close (Depends-on): fclose.
51414         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
51415
51416 2008-10-11  Bruno Haible  <bruno@clisp.org>
51417
51418         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
51419         set errno and don't call _close.
51420
51421 2008-10-10  Bruno Haible  <bruno@clisp.org>
51422
51423         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
51424         ACL, not afterwards. Fixes test failure on Cygwin.
51425
51426 2008-10-09  Ben Pfaff  <blp@gnu.org>
51427
51428         * build-aux/announce-gen: Fix gnulib version related part of usage
51429         message.  Die with a useful error message if no tarballs are
51430         found.
51431
51432 2008-10-10  Jim Meyering  <meyering@redhat.com>
51433
51434         bootstrap: use git's --depth=N option only if it's supported
51435         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
51436         recognize the --depth option.  Reported by Pádraig Brady.
51437
51438 2008-10-09  Bruno Haible  <bruno@clisp.org>
51439
51440         New module 'ioctl'.
51441         * modules/ioctl: New file.
51442         * lib/sys_socket.in.h (ioctl): Remove declaration.
51443         * lib/winsock.c: Include <sys/ioctl.h>.
51444         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
51445         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51446         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
51447         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
51448         * doc/posix-functions/ioctl.texi: Mention the new module.
51449
51450 2008-10-09  Bruno Haible  <bruno@clisp.org>
51451
51452         New module 'sys_ioctl'.
51453         * lib/sys_ioctl.in.h: New file.
51454         * m4/sys_ioctl_h.m4: New file.
51455         * modules/sys_ioctl: New file.
51456         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
51457
51458 2008-10-09  Bruno Haible  <bruno@clisp.org>
51459
51460         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
51461         * lib/winsock.c: Include <stdarg.h>.
51462         (rpl_ioctl): Change to second argument 'int' and then varargs.
51463
51464 2008-10-09  Bruno Haible  <bruno@clisp.org>
51465
51466         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
51467         when the sys_socket module is present and the system has <winsock2.h>.
51468
51469 2008-10-09  Bruno Haible  <bruno@clisp.org>
51470
51471         * doc/posix-functions/close.texi: Mention module 'close' instead of
51472         module 'sys_socket'.
51473
51474 2008-10-09  Bruno Haible  <bruno@clisp.org>
51475
51476         * doc/glibc-headers/sys_ioctl.texi: New file.
51477         * doc/gnulib.texi: Include it.
51478
51479 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51480             Bruno Haible  <bruno@clisp.org>
51481
51482         Combine the two replacements of 'close'.
51483         * lib/sys_socket.in.h (close): Define to a reminder to include
51484         <unistd.h>.
51485         (_gl_close_fd_maybe_socket): New declaration.
51486         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
51487         * lib/winsock.c (close): Remove undefinition.
51488         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
51489         needed for the gnulib module 'close'.
51490         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
51491         define to an error symbol or to a warning, if suitable.
51492         * lib/close.c: Include <sys/socket.h>.
51493         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
51494         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
51495         UNISTD_H_HAVE_WINSOCK2_H.
51496         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
51497         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51498         UNISTD_H_HAVE_WINSOCK2_H.
51499         * modules/sys_socket (Files): Add m4/unistd_h.m4.
51500         (configure.ac): Set a module indicator.
51501         (Makefile.am): Substitute GNULIB_CLOSE.
51502         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
51503         * modules/poll-tests (Depends-on): Add close.
51504         * modules/select-tests (Depends-on): Likewise.
51505
51506 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51507             Bruno Haible  <bruno@clisp.org>
51508
51509         New module 'close'.
51510         * modules/close: New file.
51511         * lib/unistd.in.h (close): Move declaration out of the
51512         FCHDIR_REPLACEMENT scope.
51513         (_gl_unregister_fd): New declaration.
51514         * lib/close.c: New file.
51515         * lib/fchdir.c (rpl_close): Remove function.
51516         * m4/close.m4: New file.
51517         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51518         close.
51519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
51520         REPLACE_CLOSE.
51521         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
51522         REPLACE_CLOSE.
51523         * modules/fchdir (Depends-on): Add close.
51524
51525 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51526             Bruno Haible  <bruno@clisp.org>
51527
51528         * lib/fcntl.in.h (open): Simplify conditionals.
51529         (_gl_register_fd): New declaration.
51530         * lib/fchdir.c (rpl_open): Remove function.
51531         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
51532         also.
51533         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
51534         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51535         open.
51536
51537 2008-10-09  Jim Meyering  <meyering@redhat.com>
51538
51539         GNUmakefile: use the more name-space-friendly "_version"
51540         * top/GNUmakefile (_dummy): Update.
51541         (_version): Rename from "version".
51542
51543 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51544             Bruno Haible  <bruno@clisp.org>
51545
51546         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
51547         rpl_close.
51548         (_gl_register_fd): New function, extracted from rpl_open.
51549         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
51550         (rpl_open, rpl_opendir): Use _gl_register_fd.
51551
51552 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51553
51554         Fix organization of 'open' replacement.
51555         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
51556         (gl_FUNC_OPEN): Use it.
51557         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
51558
51559 2008-10-08  Bruno Haible  <bruno@clisp.org>
51560
51561         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
51562
51563 2008-10-08  Simon Josefsson  <simon@josefsson.org>
51564
51565         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
51566         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
51567         listen).
51568
51569 2008-10-08  Eric Blake  <ebb9@byu.net>
51570
51571         GNUmakefile: add 'make version' target
51572         * top/GNUmakefile (_curr-ver): Split version update rules...
51573         (version): ...into a target.
51574
51575 2008-10-07  Bruno Haible  <bruno@clisp.org>
51576
51577         Use a more portable replacement expression for -0.0L.
51578         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
51579         instead of -0.0L. Fix m4 quotation.
51580
51581         * tests/test-signbit.c: Include <float.h>.
51582         (minus_zero): New variable.
51583         (test_signbitl): Use minus_zero instead of -zero.
51584         * modules/signbit-tests (Depends-on): Add float.
51585
51586         * tests/test-ceill.c: Include <float.h>.
51587         (zero): Remove variable.
51588         (minus_zero): New variable.
51589         (main): Use minus_zero instead of -zero.
51590         * modules/ceill-tests (Depends-on): Add float.
51591
51592         * tests/test-floorl.c: Include <float.h>.
51593         (zero): Remove variable.
51594         (minus_zero): New variable.
51595         (main): Use minus_zero instead of -zero.
51596         * modules/floorl-tests (Depends-on): Add float.
51597
51598         * tests/test-roundl.c: Include <float.h>.
51599         (zero): Remove variable.
51600         (minus_zero): New variable.
51601         (main): Use minus_zero instead of -zero.
51602         * modules/roundl-tests (Depends-on): Add float.
51603
51604         * tests/test-truncl.c: Include <float.h>.
51605         (zero): Remove variable.
51606         (minus_zero): New variable.
51607         (main): Use minus_zero instead of -zero.
51608         * modules/truncl-tests (Depends-on): Add float.
51609
51610         * tests/test-frexpl.c (zero): Remove variable.
51611         (minus_zero): New variable.
51612         (main): Use minus_zero instead of -zero.
51613         * modules/frexpl-tests (Depends-on): Add float.
51614
51615         * tests/test-isnan.c (zerol): Remove variable.
51616         (minus_zerol): New variable.
51617         (test_long_double): Use minus_zerol instead of -zerol.
51618         * modules/isnan-tests (Depends-on): Add float.
51619
51620         * tests/test-isnanl.h (zero): Remove variable.
51621         (minus_zero): New variable.
51622         (main): Use minus_zero instead of -zero.
51623         * modules/isnanl-nolibm-tests (Depends-on): Add float.
51624         * modules/isnanl-tests (Depends-on): Add float.
51625
51626         * tests/test-ldexpl.c (zero): Remove variable.
51627         (minus_zero): New variable.
51628         (main): Use minus_zero instead of -zero.
51629         * modules/ldexpl-tests (Depends-on): Add float.
51630
51631         * tests/test-snprintf-posix.h (zerol): Remove variable.
51632         (minus_zerol): New variable.
51633         (test_function): Use minus_zerol instead of -zerol.
51634         * modules/snprintf-posix-tests (Depends-on): Add float.
51635         * modules/vsnprintf-posix-tests (Depends-on): Add float.
51636
51637         * tests/test-sprintf-posix.h (zerol): Remove variable.
51638         (minus_zerol): New variable.
51639         (test_function): Use minus_zerol instead of -zerol.
51640         * modules/sprintf-posix-tests (Depends-on): Add float.
51641         * modules/vsprintf-posix-tests (Depends-on): Add float.
51642
51643         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
51644         (minus_zerol): New variable.
51645         (test_function): Use minus_zerol instead of -zerol.
51646         * modules/vasnprintf-posix-tests (Depends-on): Add float.
51647
51648         * tests/test-vasprintf-posix.c (zerol): Remove variable.
51649         (minus_zerol): New variable.
51650         (test_function): Use minus_zerol instead of -zerol.
51651         * modules/vasprintf-posix-tests (Depends-on): Add float.
51652
51653 2008-10-07  Simon Josefsson  <simon@josefsson.org>
51654
51655         * MODULES.html.sh (Support for building documentation): Mention
51656         pmccabe2html.  Sort entries.
51657
51658         Add pmccabe2html module, from gnupdf.
51659         * build-aux/pmccabe.css: New file.
51660         * build-aux/pmccabe2html: New file.
51661         * m4/pmccabe2html.m4: New file.
51662         * modules/pmccabe2html: New file.
51663
51664 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
51665
51666         flock: new module
51667         * MODULES.html.sh: Add to list of modules.
51668         * lib/flock.c: flock implementation for Windows and Unix systems
51669         which have fcntl.
51670         * doc/glibc-functions/flock.texi: Update documentation.
51671         * lib/sys_file.in.h: <sys/file.h> header file.
51672         * m4/flock.m4: M4 macros.
51673         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
51674         * modules/flock: flock module.
51675         * modules/flock-tests: flock tests module.
51676         * modules/sys_file: sys/file.h module.
51677         * tests/test-flock.c: test suite for flock.
51678
51679 2008-10-06  Jim Meyering  <meyering@redhat.com>
51680
51681         bootstrap: check for LT_INIT more portably still ;-)
51682         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
51683         Spotted by Bruno Haible.
51684
51685 2008-10-06  Eric Blake  <ebb9@byu.net>
51686
51687         test-signbit: avoid tripping Irix cc bug on -0.0L
51688         * tests/test-signbit.c (minus_zerol): Delete, and replace with
51689         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
51690         entire testsuite consistent and avoids an Irix 6.2 bug.
51691
51692 2008-10-05  Bruno Haible  <bruno@clisp.org>
51693             Jim Meyering  <jim@meyering.net>
51694
51695         Add an option for ignoring EPIPE during close_stdout.
51696         * lib/closeout.h: Include <stdbool.h>.
51697         (close_stdout_set_ignore_EPIPE): New declaration.
51698         * lib/closeout.c: Include <stdbool.h>.
51699         (ignore_EPIPE): New variable.
51700         (close_stdout_set_ignore_EPIPE): New function.
51701         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
51702         * lib/close-stream.c (close_stream): Mention the possible EPIPE
51703         failure.
51704         * modules/closeout (Depends-on): Add stdbool.
51705
51706 2008-10-05  Bruno Haible  <bruno@clisp.org>
51707
51708         * modules/accept: New file.
51709         * modules/bind: New file.
51710         * modules/connect: New file.
51711         * modules/getpeername: New file.
51712         * modules/getsockname: New file.
51713         * modules/getsockopt: New file.
51714         * modules/listen: New file.
51715         * modules/recv: New file.
51716         * modules/recvfrom: New file.
51717         * modules/send: New file.
51718         * modules/sendto: New file.
51719         * modules/setsockopt: New file.
51720         * modules/socket: New file.
51721         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
51722         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51723         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
51724         the particular module is requested. Add a link warning when the
51725         particular module is not requested.
51726         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
51727         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
51728         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
51729         the particular module is requested.
51730         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
51731         gl_SYS_SOCKET_H_DEFAULTS): New macros.
51732         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
51733         * modules/sys_socket (Depends-on): Add link-warning.
51734         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
51735         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
51736         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
51737         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
51738         GL_LINK_WARNING.
51739         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
51740         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
51741         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
51742         * doc/posix-functions/getpeername.texi: Mention the new module
51743         'getpeername'.
51744         * doc/posix-functions/getsockname.texi: Mention the new module
51745         'getsockname'.
51746         * doc/posix-functions/getsockopt.texi: Mention the new module
51747         'getsockopt'.
51748         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
51749         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
51750         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
51751         * doc/posix-functions/send.texi: Mention the new module 'send'.
51752         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
51753         * doc/posix-functions/setsockopt.texi: Mention the new module
51754         'setsockopt'.
51755         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
51756         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
51757         listen, connect, accept.
51758         * modules/select-tests (Depends-on): Likewise.
51759
51760 2008-10-05  Bruno Haible  <bruno@clisp.org>
51761
51762         * lib/winsock.c (strerror): Remove unused #undef.
51763         (rpl_close): Remove unused local variable.
51764
51765         * modules/sys_socket (Depends-on); Add errno.
51766
51767 2008-10-05  Bruno Haible  <bruno@clisp.org>
51768
51769         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
51770         (select): Add a link warning when the 'select' module is not used.
51771         * modules/sys_select (Depends-on): Add link-warning.
51772         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
51773         Suggested by Paolo Bonzini.
51774
51775 2008-10-05  Jim Meyering  <meyering@redhat.com>
51776
51777         bootstrap: check for LT_INIT more portably
51778         * build-aux/bootstrap: Avoid using grep -E, since it's not
51779         portable enough.  Suggestion from Bruno Haible.
51780
51781 2008-10-05  Bruno Haible  <bruno@clisp.org>
51782
51783         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
51784         as being fixed by gnulib.
51785
51786 2008-10-05  Bruno Haible  <bruno@clisp.org>
51787
51788         * modules/select-tests: New file, mostly copied from
51789         modules/sys_select-tests.
51790         * tests/test-select.c: New file, mostly copied from
51791         tests/test-sys_select.c.
51792         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
51793         * modules/sys_select-tests (Depends-on): Remove all dependencies.
51794         (Makefile.am): Remove test_sys_select_LDADD.
51795
51796         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
51797         to an undefined symbol, for an error message.
51798         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
51799         (gl_SYS_SELECT_H_DEFAULTS): New macro.
51800         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
51801         winsock-select.c here.
51802         * modules/sys_select (Files): Remove lib/winsock-select.c.
51803         (Depends-on): Remove alloca.
51804         (Makefile.am): Substitute GNULIB_SELECT.
51805         * modules/select: New file.
51806         * doc/posix-functions/select.texi: Update.
51807
51808 2008-10-05  Bruno Haible  <bruno@clisp.org>
51809
51810         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
51811         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
51812         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
51813         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
51814         getdtablesize.
51815         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
51816         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
51817
51818 2008-10-05  Bruno Haible  <bruno@clisp.org>
51819
51820         * modules/getdtablesize-tests: New file.
51821         * tests/test-getdtablesize.c: New file.
51822
51823         New module 'getdtablesize'.
51824         * lib/unistd.in.h (getdtablesize): New declaration.
51825         * lib/getdtablesize.c: New file.
51826         * m4/getdtablesize.m4: New file.
51827         * modules/getdtablesize: New file.
51828         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51829         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
51830         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
51831         HAVE_GETDTABLESIZE.
51832         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
51833
51834 2008-10-05  Bruno Haible  <bruno@clisp.org>
51835
51836         * modules/sched (Makefile.am): Fix typo.
51837         Reported by Simon Josefsson.
51838
51839 2008-10-05  Jim Meyering  <meyering@redhat.com>
51840
51841         bootstrap: check for LT_INIT, too
51842         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
51843         are deprecated.  Suggestion from Ralf Wildenhues.
51844
51845 2008-10-05  Bruno Haible  <bruno@clisp.org>
51846
51847         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
51848         overriding them by ours.
51849         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
51850
51851 2008-10-05  Jim Meyering  <meyering@redhat.com>
51852
51853         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
51854         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
51855         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
51856
51857 2008-10-04  Bruno Haible  <bruno@clisp.org>
51858
51859         * modules/dup2 (License): Change to LGPLv2+.
51860         * modules/sleep (License): Likewise.
51861         * modules/perror (License): Likewise.
51862         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
51863         Blake.
51864         * modules/signal (License): Likewise.
51865         * modules/sigprocmask (License): Likewise.
51866         * modules/raise (License): Change to LGPLv2+, with approval by Jim
51867         Meyering.
51868
51869 2008-10-04  Bruno Haible  <bruno@clisp.org>
51870
51871         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
51872         Reported by Rainer Tammer <tammer@tammer.net>.
51873
51874 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
51875             Bruno Haible  <bruno@clisp.org>
51876
51877         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
51878         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
51879         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
51880
51881 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
51882
51883         filevercmp: new module
51884         * lib/filevercmp.h: New function filevercmp comparing version strings.
51885         * lib/filevercmp.c: Implementation of filevercmp function.
51886         * modules/filevercmp: Module metadata.
51887         * tests/test-filevercmp.c: Unit test for new module.
51888         * modules/filevercmp-tests: Unit test metadata.
51889         * MODULES.html.sh: Add filevercmp module.
51890
51891 2008-10-03  Bruno Haible  <bruno@clisp.org>
51892
51893         * lib/c-ctype.h: Add comment.
51894         Reported by Jim Meyering.
51895
51896 2008-10-02  Bruno Haible  <bruno@clisp.org>
51897
51898         * modules/posix_spawn-internal (Depends-on): Add 'open'.
51899
51900 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51901
51902         * build-aux/bootstrap: Allow renaming bootstrap, and change the
51903         name of bootstrap.conf accordingly.
51904
51905 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51906
51907         * build-aux/bootstrap: Install git-merge-changelog configuration
51908         items into .gitconfig if needed.
51909
51910 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51911
51912         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
51913         git repository, and initialize/update it accordingly.
51914
51915 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
51916
51917         * modules/fsync-tests: New file.
51918         * tests/test-fsync.c: New file.
51919
51920         New module 'fsync'.
51921         * lib/fsync.c: New file.
51922         * m4/fsync.m4: New file.
51923         * modules/fsync: New file.
51924         * lib/unistd.in.h (fsync): New declaration.
51925         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
51926         GNULIB_FSYNC and HAVE_FSYNC.
51927         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
51928         * MODULES.html.sh (posix_functions): Add fsync.
51929         * doc/posix-functions/fsync.texi: Mention the new module.
51930
51931 2008-10-02  Jim Meyering  <meyering@redhat.com>
51932
51933         fts.c: sync with similar code from coreutils' remove.c
51934         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
51935         Guard also with "#if defined __linux__", since for now at least,
51936         this code is Linux-kernel-specific.
51937
51938 2008-10-02  Jim Meyering  <meyering@redhat.com>
51939
51940         fts: bug fixes
51941         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
51942         Include <sys/vfs.h>, not <sys/statfs.h>.
51943
51944         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
51945         Include <sys/vfs.h>, not <sys/statfs.h>.
51946
51947 2008-10-01  Bruno Haible  <bruno@clisp.org>
51948
51949         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
51950         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
51951         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
51952         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
51953         * doc/posix-functions/posix_spawnp.texi: Likewise.
51954         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
51955         whether posix_spawn actually works.
51956         * m4/pipe.m4 (gl_PIPE): Likewise.
51957         * modules/execute (Files): Add m4/posix_spawn.m4.
51958         * modules/pipe (Files): Add m4/posix_spawn.m4.
51959         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
51960
51961 2008-10-01  Jim Meyering  <meyering@redhat.com>
51962
51963         remove trailing spaces
51964         * NEWS: Likewise.
51965         * lib/poll.c (poll): Likewise.
51966         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
51967         * lib/winsock.c (rpl_close): Likewise.
51968         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
51969         * modules/yield: Likewise.
51970         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
51971         * tests/test-sys_select.c (connect_to_socket): Likewise.
51972
51973         fts.c: adjust a new interface to be more generally useful
51974         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
51975         (fts_build): Adjust caller.
51976
51977 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51978
51979         * modules/cond-tests: New file.
51980         * tests/test-cond.c: New file.
51981
51982 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51983             Bruno Haible  <bruno@clisp.org>
51984
51985         * modules/cond (Dependencies): Add errno, time.
51986         * lib/glthread/cond.h: Include <time.h>.
51987         (gl_cond_define, gl_cond_define_initialized): Use the same definition
51988         across platforms.
51989
51990 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51991             Bruno Haible  <bruno@clisp.org>
51992
51993         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
51994
51995 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51996             Bruno Haible  <bruno@clisp.org>
51997
51998         * modules/tls-tests (Depends-on): Add thread, yield.
51999         (configure.ac): Remove all checks.
52000         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
52001         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52002         gl_thread_self): Remove definitions. Include glthread/thread.h and
52003         glthread/yield.h instead.
52004         (test_tls): Pass an additional NULL argument to gl_thread_join.
52005
52006 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52007             Bruno Haible  <bruno@clisp.org>
52008
52009         * modules/lock-tests (Depends-on): Add thread, yield.
52010         (configure.ac): Remove all checks.
52011         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
52012         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52013         gl_thread_self): Remove definitions. Include glthread/thread.h and
52014         glthread/yield.h instead.
52015         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
52016         additional NULL argument to gl_thread_join.
52017
52018 2008-09-30  Bruno Haible  <bruno@clisp.org>
52019
52020         Fix the Win32 implementation of the 'thread' module.
52021         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
52022         pointer type.
52023         (gl_thread_self): Invoke gl_thread_self_func.
52024         (gl_thread_self_func): New declaration.
52025         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
52026         (do_init_self_key, init_self_key): New functions.
52027         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
52028         Remove some fields.
52029         (running_threads, running_lock): Remove variables.
52030         (get_current_thread_handle): New function.
52031         (gl_thread_self_func, wrapper_func, glthread_create_func,
52032         glthread_join_func, gl_thread_exit_func): Largely rewritten and
52033         simplified.
52034
52035 2008-09-30  Bruno Haible  <bruno@clisp.org>
52036
52037         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
52038         files.
52039
52040 2008-09-30  Jim Meyering  <meyering@redhat.com>
52041
52042         fts.m4: correct the test for statfs.f_type
52043         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
52044         when checking for statfs.f_type.
52045
52046 2008-09-15  Simon Josefsson  <simon@josefsson.org>
52047
52048         tests: avoid some compiler warnings
52049         * tests/test-memchr.c (main): Pass NULL indirectly.
52050         * tests/test-getdate.c (main): Remove unused variable 'ret'.
52051
52052 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
52053
52054         getdate.y: disallow countable dayshifts like "4 yesterday ago"
52055         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
52056         exactly specified dayshifts.
52057         (dayshift): New rule.
52058         (rel): Add dayshift.
52059         (relative_time_table) [tomorrow, yesterday, today, now]:
52060         Use tDAY_SHIFT in place of tDAY_UNIT.
52061         * tests/test-getdate.c: Add tests for now-disallowed countable
52062         dayshifts, e.g., "4 yesterday ago".
52063
52064 2008-09-29  Bruno Haible  <bruno@clisp.org>
52065
52066         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
52067         * tests/test-posix_spawn1.in.sh: Renamed from
52068         tests/test-posix_spawn.in.sh.
52069         * tests/test-posix_spawn2.c: New file.
52070         * tests/test-posix_spawn2.in.sh: New file.
52071         * modules/posix_spawnp-tests (Files): Update.
52072         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
52073
52074 2008-09-29  Bruno Haible  <bruno@clisp.org>
52075
52076         Propagate effects of putenv/setenv/unsetenv to child processes.
52077         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
52078         * lib/pipe.c (create_pipe): Likewise.
52079
52080 2008-09-29  Bruno Haible  <bruno@clisp.org>
52081
52082         Enable use of shell scripts as executables in mingw.
52083         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
52084         run the program as a shell script.
52085         * lib/pipe.c (create_pipe): Likewise.
52086         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
52087         resulting array.
52088
52089 2008-09-29  Eric Blake  <ebb9@byu.net>
52090
52091         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
52092
52093 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
52094
52095         * doc/posix-functions/accept.texi: Update mingw problems.
52096         * doc/posix-functions/bind.texi: Update mingw problems.
52097         * doc/posix-functions/close.texi: Update mingw problems.
52098         * doc/posix-functions/connect.texi: Update mingw problems.
52099         * doc/posix-functions/getpeername.texi: Update mingw problems.
52100         * doc/posix-functions/getsockname.texi: Update mingw problems.
52101         * doc/posix-functions/getsockopt.texi: Update mingw problems.
52102         * doc/posix-functions/ioctl.texi: Update mingw problems.
52103         * doc/posix-functions/listen.texi: Update mingw problems.
52104         * doc/posix-functions/recv.texi: Update mingw problems.
52105         * doc/posix-functions/recvfrom.texi: Update mingw problems.
52106         * doc/posix-functions/select.texi: Update mingw problems.
52107         * doc/posix-functions/send.texi: Update mingw problems.
52108         * doc/posix-functions/sendto.texi: Update mingw problems.
52109         * doc/posix-functions/setsockopt.texi: Update mingw problems.
52110         * doc/posix-functions/socket.texi: Update mingw problems.
52111
52112 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
52113             Bruno Haible  <bruno@clisp.org>
52114
52115         * lib/sys_select.in.h: Include sys/time.h.
52116         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
52117         * modules/sys_select: Depend on sys_time.
52118         * tests/test-sys_select.c: Test that sys/select.h defines struct
52119         timeval fully.
52120
52121 2008-09-29  Bruno Haible  <bruno@clisp.org>
52122
52123         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
52124         * lib/sys_select.in.h: Likewise.
52125
52126 2008-09-29  Bruno Haible  <bruno@clisp.org>
52127
52128         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
52129
52130 2008-09-29  Bruno Haible  <bruno@clisp.org>
52131
52132         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
52133         Set LIBSOCKET instead of augmenting LIBS.
52134         * modules/sockets (Link): New section.
52135         * modules/sockets-tests (test_sockets_LDADD): New variable.
52136         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
52137         * modules/poll-tests (test_poll_LDADD): New variable.
52138         * NEWS: Document the change.
52139
52140 2008-09-29  Bruno Haible  <bruno@clisp.org>
52141
52142         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
52143         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
52144         ARPA_INET_H directly.
52145         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52146
52147 2008-09-28  Bruno Haible  <bruno@clisp.org>
52148
52149         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
52150         from gl_HEADER_SYS_SOCKET.
52151         (gl_HEADER_SYS_SOCKET): Invoke it.
52152         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52153
52154 2008-09-28  Bruno Haible  <bruno@clisp.org>
52155
52156         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
52157         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
52158         Needed on OSF/1 4.0.
52159
52160 2008-09-28  Bruno Haible  <bruno@clisp.org>
52161
52162         Override open more carefully.
52163         * lib/open.c (orig_open): New function.
52164         (rpl_open): Use orig_open instead of open.
52165         * lib/fcntl.in.h: Add special invocation convention.
52166         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
52167         (gl_FUNC_OPEN): Invoke it.
52168
52169         Override freopen more carefully.
52170         * lib/freopen.c (orig_freopen): New function.
52171         (rpl_freopen): Use orig_freopen instead of freopen.
52172         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
52173         (gl_FUNC_FREOPEN): Invoke it.
52174
52175         Override fopen more carefully.
52176         * lib/fopen.c (orig_fopen): New function.
52177         (rpl_fopen): Use orig_fopen instead of fopen.
52178         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
52179         (gl_FUNC_FOPEN): Invoke it.
52180         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
52181
52182 2008-09-28  Bruno Haible  <bruno@clisp.org>
52183
52184         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
52185         SIGPIPE.
52186
52187 2008-09-28  Bruno Haible  <bruno@clisp.org>
52188
52189         * tests/test-sigaction.c (handler, main): Disable the check whether
52190         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
52191         glibc systems with LinuxThreads.
52192
52193 2008-09-28  Bruno Haible  <bruno@clisp.org>
52194
52195         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
52196
52197         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
52198         with AIX xlc.
52199         * lib/fcntl.in.h (open): Likewise.
52200         Reported by Rainer Tammer <tammer@tammer.net>.
52201
52202 2008-09-28  Bruno Haible  <bruno@clisp.org>
52203
52204         * modules/posix_spawnp-tests: New file.
52205         * tests/test-posix_spawn.c: New file.
52206         * tests/test-posix_spawn.in.sh: New file.
52207
52208         New module 'posix_spawnp'.
52209         * modules/posix_spawnp: New file.
52210         * lib/spawnp.c: New file, from GNU libc with modifications.
52211         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
52212
52213         New module 'posix_spawn'.
52214         * modules/posix_spawn: New file.
52215         * lib/spawn.c: New file, from GNU libc with modifications.
52216         * doc/posix-functions/posix_spawn.texi: Mention the new module.
52217
52218         New module 'posix_spawnattr_destroy'.
52219         * modules/posix_spawnattr_destroy: New file.
52220         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
52221         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
52222         module.
52223
52224         New module 'posix_spawnattr_setsigmask'.
52225         * modules/posix_spawnattr_setsigmask: New file.
52226         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
52227         modifications.
52228         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
52229         new module.
52230
52231         New module 'posix_spawnattr_getsigmask'.
52232         * modules/posix_spawnattr_getsigmask: New file.
52233         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
52234         modifications.
52235         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
52236         new module.
52237
52238         New module 'posix_spawnattr_setsigdefault'.
52239         * modules/posix_spawnattr_setsigdefault: New file.
52240         * lib/spawnattr_setdefault.c: New file, from GNU libc with
52241         modifications.
52242         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
52243         new module.
52244
52245         New module 'posix_spawnattr_getsigdefault'.
52246         * modules/posix_spawnattr_getsigdefault: New file.
52247         * lib/spawnattr_getdefault.c: New file, from GNU libc with
52248         modifications.
52249         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
52250         new module.
52251
52252         New module 'posix_spawnattr_setschedpolicy'.
52253         * modules/posix_spawnattr_setschedpolicy: New file.
52254         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
52255         modifications.
52256         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
52257         new module.
52258
52259         New module 'posix_spawnattr_getschedpolicy'.
52260         * modules/posix_spawnattr_getschedpolicy: New file.
52261         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
52262         modifications.
52263         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
52264         new module.
52265
52266         New module 'posix_spawnattr_setschedparam'.
52267         * modules/posix_spawnattr_setschedparam: New file.
52268         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
52269         modifications.
52270         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
52271         new module.
52272
52273         New module 'posix_spawnattr_getschedparam'.
52274         * modules/posix_spawnattr_getschedparam: New file.
52275         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
52276         modifications.
52277         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
52278         new module.
52279
52280         New module 'posix_spawnattr_setpgroup'.
52281         * modules/posix_spawnattr_setpgroup: New file.
52282         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
52283         modifications.
52284         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
52285         module.
52286
52287         New module 'posix_spawnattr_getpgroup'.
52288         * modules/posix_spawnattr_getpgroup: New file.
52289         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
52290         modifications.
52291         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
52292         module.
52293
52294         New module 'posix_spawnattr_setflags'.
52295         * modules/posix_spawnattr_setflags: New file.
52296         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
52297         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
52298         module.
52299
52300         New module 'posix_spawnattr_getflags'.
52301         * modules/posix_spawnattr_getflags: New file.
52302         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
52303         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
52304         module.
52305
52306         New module 'posix_spawnattr_init'.
52307         * modules/posix_spawnattr_init: New file.
52308         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
52309         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
52310         module.
52311
52312         New module 'posix_spawn_file_actions_destroy'.
52313         * modules/posix_spawn_file_actions_destroy: New file.
52314         * lib/spawn_faction_destroy.c: New file, from GNU libc with
52315         modifications.
52316         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
52317         the new module.
52318
52319         New module 'posix_spawn_file_actions_addopen'.
52320         * modules/posix_spawn_file_actions_addopen: New file.
52321         * lib/spawn_faction_addopen.c: New file, from GNU libc with
52322         modifications.
52323         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
52324         the new module.
52325
52326         New module 'posix_spawn_file_actions_adddup2'.
52327         * modules/posix_spawn_file_actions_adddup2: New file.
52328         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
52329         modifications.
52330         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
52331         the new module.
52332
52333         New module 'posix_spawn_file_actions_addclose'.
52334         * modules/posix_spawn_file_actions_addclose: New file.
52335         * lib/spawn_faction_addclose.c: New file, from GNU libc with
52336         modifications.
52337         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
52338         the new module.
52339
52340         New module 'posix_spawn_file_actions_init'.
52341         * modules/posix_spawn_file_actions_init: New file.
52342         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
52343         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
52344         new module.
52345
52346         New module 'posix_spawn-internal'.
52347         * modules/posix_spawn-internal: New file.
52348         * lib/spawn_int.h: New file, from GNU libc with modifications.
52349         * lib/spawni.c: New file, from GNU libc with modifications.
52350         * m4/posix_spawn.m4: New file.
52351
52352         New module 'spawn'.
52353         * modules/spawn: New file.
52354         * lib/spawn.in.h: New file, from GNU libc with modifications.
52355         * m4/spawn_h.m4: New file.
52356         * doc/posix-headers/spawn.texi: Mention the new module.
52357
52358 2008-09-28  Bruno Haible  <bruno@clisp.org>
52359
52360         * modules/sched-tests: New file.
52361         * tests/test-sched.c: New file.
52362
52363         New module 'sched'.
52364         * modules/sched: New file.
52365         * lib/sched.in.h: New file.
52366         * m4/sched_h.m4: New file.
52367         * doc/posix-headers/sched.texi: Mention the new module.
52368
52369 2008-09-27  Eric Blake  <ebb9@byu.net>
52370
52371         Fix previous patch, and tweak references to $0.
52372         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
52373         (func_version, func_gnulib_dir): Don't call this program
52374         gnulib-tool.
52375         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
52376         with using $0 in function.
52377         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
52378         (func_fatal_error): Reuse the name the user invoked us with.
52379
52380 2008-09-27  Bruno Haible  <bruno@clisp.org>
52381
52382         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
52383         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
52384         (gl_ICONV_H): Not here.
52385         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
52386         instead of assigning ICONV_H directly.
52387
52388         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
52389         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
52390         WCHAR_H directly.
52391
52392 2008-09-27  Bruno Haible  <bruno@clisp.org>
52393
52394         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
52395         * modules/arpa_inet (Depends-on): Add link-warning.
52396         (Makefile.am): Insert the definition of GL_LINK-WARNING.
52397         * modules/unistd (Makefile.am): Likewise.
52398
52399 2008-09-26  Bruno Haible  <bruno@clisp.org>
52400
52401         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
52402         variables.
52403         (func_version): Essentially copied from gnulib-tool.
52404         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
52405         func_readlink): Copied from gnulib-tool.
52406
52407 2008-09-26  Bruno Haible  <bruno@clisp.org>
52408
52409         * gnulib-tool (func_version): Change directory to $gnulib_dir before
52410         invoking git-version-gen.
52411
52412 2008-09-26  Bruno Haible  <bruno@clisp.org>
52413
52414         * posix-modules: Update to directory names changed on 2008-01-19.
52415         Remove commas in output before splitting into words. No more need to
52416         avoid 'ftruncate' since 2007-02-19.
52417
52418 2008-09-26  Bruno Haible  <bruno@clisp.org>
52419
52420         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
52421
52422 2008-09-26  Bruno Haible  <bruno@clisp.org>
52423
52424         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
52425         * modules/fwriteerror (Depends-on): Add errno.
52426
52427 2008-09-26  Bruno Haible  <bruno@clisp.org>
52428
52429         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
52430         * tests/test-vc-list-files-cvs.sh: Likewise.
52431
52432 2008-09-26  Bruno Haible  <bruno@clisp.org>
52433
52434         * doc/posix-headers/sys_resource.texi: Reorder items.
52435
52436 2008-09-26  Jim Meyering  <meyering@redhat.com>
52437
52438         fts: tweak inode comparison function
52439         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
52440         inode numbers, as documented.
52441
52442         fts: sort dirent entries on inode number before traversing
52443         This avoids a quadratic, seek-related performance penalty when
52444         operating on a directory containing many entries (measurable at 10k;
52445         3.5 hours at 2 million entries with a cold cache) on certain types
52446         of file systems, including ext3 and ext4, but not tmpfs.
52447         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
52448         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
52449         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
52450         (fs_handles_readdir_ordered_dirents_efficiently): New function.
52451         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
52452         (fts_build): Set the stat.st_ino member from D_INO.
52453         If it is likely to be useful, sort dirent entries on inode number.
52454
52455         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
52456         and the struct statfs.f_type member.
52457         * modules/fts (Depends-on): Add d-ino.
52458
52459 2008-09-26  Bruno Haible  <bruno@clisp.org>
52460
52461         * modules/sigpipe-die (Depends-on): Add sigpipe.
52462
52463         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
52464         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
52465         and GNULIB_STDIO_H_SIGPIPE are set.
52466         * lib/stdio-write.c: New file.
52467         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
52468         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52469         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52470         REPLACE_STDIO_WRITE_FUNCS.
52471         (gl_STDIO_H_DEFAULTS): Initialize 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         * modules/stdio (Files): Add lib/stdio-write.c.
52476         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
52477         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52478         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52479         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52480         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
52481         REPLACE_FPRINTF_POSIX.
52482         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
52483         REPLACE_PRINTF_POSIX.
52484         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
52485         REPLACE_VFPRINTF_POSIX.
52486         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
52487         REPLACE_VPRINTF_POSIX.
52488         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
52489         SIGPIPE issue.
52490         * doc/posix-functions/fputc.texi: Likewise.
52491         * doc/posix-functions/fputs.texi: Likewise.
52492         * doc/posix-functions/fwrite.texi: Likewise.
52493         * doc/posix-functions/printf.texi: Likewise.
52494         * doc/posix-functions/putc.texi: Likewise.
52495         * doc/posix-functions/putchar.texi: Likewise.
52496         * doc/posix-functions/puts.texi: Likewise.
52497         * doc/posix-functions/vfprintf.texi: Likewise.
52498         * doc/posix-functions/vprintf.texi: Likewise.
52499
52500         * modules/safe-write (Depends-on): Add write.
52501
52502         * modules/sigpipe-tests: New file.
52503         * tests/test-sigpipe.c: New file.
52504         * tests/test-sigpipe.sh: New file.
52505
52506         * modules/write: New file.
52507         * lib/unistd.in.h: Include <sys/types.h>.
52508         (write): New declaration.
52509         * lib/write.c: New file.
52510         * m4/write.m4: New file.
52511         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52512         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
52513         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
52514         GNULIB_WRITE, REPLACE_WRITE.
52515         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
52516         and the SIGPIPE issue.
52517
52518         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
52519         (raise): New declaration.
52520         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
52521         (ext_signal): New function.
52522         (rpl_raise): New function.
52523         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
52524         GNULIB_SIGNAL_H_SIGPIPE.
52525         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
52526         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
52527
52528         * modules/sigpipe: New file.
52529         * m4/sigpipe.m4: New file.
52530
52531 2008-09-25  Derek Price  <derek@ximbiot.com>
52532             Bruno Haible  <bruno@clisp.org>
52533
52534         * gnulib-tool (func_import): Report all license incompatibilities, not
52535         just the first one.
52536
52537 2008-09-25  Bruno Haible  <bruno@clisp.org>
52538
52539         * gnulib-tool (func_import): When computing the edits, consider not
52540         only the Makefile.ams that exist but also those that will be generated.
52541
52542 2008-09-25  Simon Josefsson  <simon@josefsson.org>
52543
52544         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
52545         fixes gnulib-tool --test warning about duplicate dependency.
52546
52547 2008-09-25  Bruno Haible  <bruno@clisp.org>
52548
52549         * gnulib-tool: Don't ask the user to perform edits in the generated
52550         Makefile.ams.
52551         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
52552         apply to the Makefile.am being generated.
52553         (func_emit_tests_Makefile_am): Execute edits that apply to the
52554         Makefile.am being generated.
52555         (func_import): Setup list of Makefile.am edits before emitting the
52556         Makefile.ams, not at the end.
52557         (func_create_testdir): Update.
52558         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52559
52560 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52561
52562         * gnulib-tool (func_import): Store the --tests-base option in the
52563         comment in gnulib-cache.m4.
52564
52565 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
52566
52567         * NEWS: Document increased portability that sys_select now provides.
52568
52569         * lib/sys_select.in.h: Install select wrapper.
52570         * lib/sys_socket.in.h: Use more descriptive name when there is no
52571         select wrapper.
52572         * lib/winsock-select.c: New.
52573         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
52574         Require gl_HEADER_SYS_SOCKET.
52575         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
52576         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
52577         * tests/test-sys_select.c: Add functional tests.
52578
52579 2008-09-24  Eric Blake  <ebb9@byu.net>
52580
52581         open, fopen: close fd leak in last patch
52582         * lib/open.c (rpl_open): Close fd before returning error.
52583         * lib/fopen.c (rpl_fopen): Close fd before returning error.
52584         * doc/posix-functions/open.texi (open): Document that Irix also
52585         has the bug.
52586         * doc/posix-functions/fopen.texi (fopen): Likewise.
52587         Reported by Paolo Bonzini.
52588
52589 2008-09-24  Bruno Haible  <bruno@clisp.org>
52590
52591         Ensure that a filename ending in a slash cannot be used to access a
52592         non-directory.
52593         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
52594         to check whether it's really a directory.
52595         * lib/fopen.c: Include fcntl.h, unistd.h.
52596         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
52597         and fdopen().
52598         * modules/fopen (Depends-on): Add unistd.
52599         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
52600         * tests/test-fopen.c (main): Likewise.
52601         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
52602         * doc/posix-functions/fopen.texi: Likewise.
52603         Reported by Eric Blake.
52604
52605 2008-09-23  Eric Blake  <ebb9@byu.net>
52606
52607         c-stack: avoid compiler optimizations when provoking overflow
52608         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
52609         recursion harder to optimize, to ensure a stack overflow occurs.
52610         * tests/test-c-stack.c (recurse): Likewise.
52611         Borrowed from libsigsegv.
52612
52613         c-stack: work around Irix sigaltstack bug
52614         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
52615         whether sigaltstack uses wrong end of stack_t (copied in part from
52616         libsigsegv).
52617         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
52618         Irix bug, without requiring an over-allocation.
52619         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
52620         bug.
52621
52622         fopen: document mingw bug on directories
52623         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
52624         not allowing a stream visiting a directory, even though reading
52625         from such a stream is not portable.
52626
52627 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52628
52629         * lib/poll.c: Rewrite.
52630         * modules/poll: Depend on alloca.
52631
52632 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52633
52634         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
52635         instead define prototypes for a full set of wrappers.  Ensure
52636         that Cygwin does not use the compatibility code, which is only
52637         for MinGW.
52638         * lib/winsock.c: New.
52639         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
52640         * modules/sys_socket: Add lib/winsock.c.
52641
52642         * modules/poll-tests: Add errno and perror.
52643         * tests/test-poll.c: Use ioctl, not ioctlsocket.
52644
52645 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52646
52647         * tests/test-poll.c: Downgrade minimum needed Winsock version.
52648
52649 2008-09-23  Bruno Haible  <bruno@clisp.org>
52650
52651         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
52652         * doc/glibc-functions/*: Likewise.
52653
52654 2008-09-23  Simon Josefsson  <simon@josefsson.org>
52655
52656         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
52657         success.
52658
52659 2008-09-22  Eric Blake  <ebb9@byu.net>
52660             Bruno Haible  <bruno@clisp.org>
52661
52662         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
52663         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
52664         supply %A but mishandle pseudo-NaN.
52665         Reported by Simon Josefsson.
52666
52667 2008-09-21  Bruno Haible  <bruno@clisp.org>
52668
52669         * tests/test-lock.c (main): Tweak skip message.
52670         * tests/test-tls.c (main): Likewise.
52671
52672 2008-09-21  Bruno Haible  <bruno@clisp.org>
52673
52674         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
52675         whether 'struct sigaction' has sa_sigaction here...
52676         (gl_PREREQ_SIG_HANDLER_H): ... not here.
52677         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
52678
52679 2008-09-21  Bruno Haible  <bruno@clisp.org>
52680
52681         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
52682         section.
52683         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
52684         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
52685         the new section.
52686         (Support for obsolete systems lacking POSIX:2001): New section.
52687         (String handling <string.h>): Move strdup to the new section.
52688         Suggested by Simon Josefsson and Paolo Bonzini.
52689
52690 2008-09-21  Bruno Haible  <bruno@clisp.org>
52691
52692         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
52693         exponents in %e and %g results on 'long double'. Needed for mingw's
52694         improved *printf functions.
52695         * tests/test-vasprintf-posix.c (test_function): Likewise.
52696         * tests/test-snprintf-posix.h (test_function): Likewise.
52697         * tests/test-sprintf-posix.h (test_function): Likewise.
52698         Reported by Eric Blake.
52699
52700 2008-09-21  Bruno Haible  <bruno@clisp.org>
52701
52702         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
52703         * tests/test-sprintf-posix.h (test_function): Likewise.
52704
52705 2008-09-21  Bruno Haible  <bruno@clisp.org>
52706
52707         * modules/getpass (Depends-on): Add strdup-posix.
52708
52709         New module 'strdup-posix'.
52710         * modules/strdup-posix: New file.
52711         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
52712         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
52713         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52714         REPLACE_STRDUP.
52715         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
52716         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
52717         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52718         strdup-posix.
52719
52720         * modules/strdup (Depends-on): Remove malloc-posix.
52721
52722 2008-09-20  Bruno Haible  <bruno@clisp.org>
52723
52724         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
52725         Wildenhues.
52726
52727 2008-09-20  Bruno Haible  <bruno@clisp.org>
52728
52729         Ensure that wint_t gets defined on IRIX 5.3.
52730         * lib/wchar.in.h (wint_t): Define if not defined by the system.
52731         * lib/wctype.in.h (wint_t): Likewise.
52732         (__wctype_wint_t): Remove type.
52733         (isw*): Use wint_t instead of __wctype_wint_t.
52734         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
52735         * modules/wchar (Files): Add m4/wint_t.m4.
52736         (Makefile.am): Substitute HAVE_WINT_T.
52737         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
52738         * tests/test-wctype.c: Check that wint_t is defined.
52739         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
52740         * doc/posix-headers/wctype.texi: Likewise.
52741         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52742
52743 2008-09-18  Bruno Haible  <bruno@clisp.org>
52744
52745         * gnulib-tool (func_exit): Update comment.
52746
52747 2008-09-18  Simon Josefsson  <simon@josefsson.org>
52748
52749         * modules/getaddrinfo (Depends-on): Remove strdup, this module
52750         assumes strdup exists and does not depend on strdup to return
52751         ENOMEM on out of memory conditions.
52752
52753 2008-09-18  Bruno Haible  <bruno@clisp.org>
52754
52755         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
52756         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
52757         digits for the exponent.
52758
52759 2008-09-18  Jim Meyering  <meyering@redhat.com>
52760             Bruno Haible  <bruno@clisp.org>
52761
52762         * lib/vasnprintf.c (decimal_point_char): Define also if
52763         NEED_PRINTF_INFINITE_LONG_DOUBLE.
52764
52765 2008-09-16  Bruno Haible  <bruno@clisp.org>
52766         and Eric Blake  <ebb9@byu.net>
52767
52768         vasnprintf: support Irix 5.3
52769         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
52770         that mishandle long double infinity.
52771         Reported by Tom G. Christensen.
52772
52773 2008-09-16  Bruno Haible  <bruno@clisp.org>
52774
52775         * doc/glibc-functions/scandir.texi: Mention the function is missing on
52776         Solaris 9.
52777         * doc/glibc-functions/alphasort.texi: Likewise.
52778         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
52779
52780 2008-09-16  Jim Meyering  <meyering@redhat.com>
52781
52782         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
52783         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
52784         a umask modification leak out of a subshell.  Otherwise, the
52785         opensolaris /bin/sh would be accepted and thus cause unwarranted
52786         failures in the coreutils test suite.
52787
52788 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
52789
52790         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
52791         to succeed.
52792
52793 2008-09-16  Jim Meyering  <meyering@redhat.com>
52794
52795         avoid spurious test failure when library is built without ACL support
52796         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
52797         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
52798         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
52799         * tests/test-copy-acl.sh: Likewise.
52800
52801 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52802
52803         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
52804         based on character occurrence counts.
52805
52806 2008-09-15  Eric Blake  <ebb9@byu.net>
52807
52808         tests: avoid some compiler warnings
52809         * tests/test-memchr.c (main): Pass NULL indirectly.
52810         * tests/test-closein.c (main): Avoid unused variable.
52811
52812 2008-09-15  Bruno Haible  <bruno@clisp.org>
52813
52814         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
52815         are missing on OpenBSD 4.0 individually.
52816         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52817
52818 2008-09-15  Bruno Haible  <bruno@clisp.org>
52819
52820         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
52821         * doc/posix-functions/strerror.texi: Mention also Cygwin.
52822         * doc/posix-functions/perror.texi: Likewise.
52823         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
52824         is missing.
52825         Reported by Eric Blake.
52826
52827         * lib/errno.in.h: Use replacement values >= 2000.
52828         Reported by Eric Blake.
52829
52830 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52831
52832         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
52833         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
52834         limit.
52835         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
52836         compareseq was aborted.
52837
52838 2008-09-14  Bruno Haible  <bruno@clisp.org>
52839
52840         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
52841         yvec_edit_count.
52842         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
52843         (fstrcmp_bounded): Simplify result computation accordingly.
52844
52845 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52846
52847         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
52848         (fstrcmp): Define in terms of fstrcmp_bounded.
52849         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
52850         lower_bound argument.
52851         Return quickly if the result is certainly < lower_bound.
52852         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
52853
52854 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52855
52856         * lib/diffseq.h (EARLY_ABORT): New macro.
52857         (compareseq): Change return type to bool. Return true when EARLY_ABORT
52858         evaluates to true.
52859
52860 2008-09-14  Bruno Haible  <bruno@clisp.org>
52861
52862         * modules/perror-tests: New file.
52863         * tests/test-perror.sh: New file.
52864         * tests/test-perror.c: New file.
52865
52866         New module 'perror'.
52867         * lib/stdio.in.h (perror): New declaration.
52868         * lib/perror.c: New file.
52869         * m4/perror.m4: New file.
52870         * modules/perror: New file.
52871         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
52872         * doc/posix-functions/perror.texi: Mention the perror module.
52873         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
52874         REPLACE_PERROR.
52875         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
52876         REPLACE_PERROR.
52877
52878 2008-09-14  Bruno Haible  <bruno@clisp.org>
52879
52880         * modules/stdio (Makefile.am): Reorder to match the order in
52881         lib/stdio.in.h.
52882         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52883
52884 2008-09-13  Bruno Haible  <bruno@clisp.org>
52885
52886         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
52887
52888 2008-09-13  Bruno Haible  <bruno@clisp.org>
52889
52890         Extend strerror to cover the added errno values.
52891         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
52892         (rpl_strerror): Provide error messages for the added errno values and
52893         for the WSA* values.
52894         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
52895         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
52896         strerror.
52897         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
52898         * modules/strerror (Depends-on): Add errno.
52899         * doc/posix-functions/strerror.texi: Document the change.
52900         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
52901         and EOVERFLOW.
52902
52903 2008-09-13  Bruno Haible  <bruno@clisp.org>
52904
52905         * modules/EOVERFLOW: Remove file.
52906         * m4/eoverflow.m4: Remove file.
52907         * modules/EOVERFLOW-tests: Remove file.
52908         * tests/test-EOVERFLOW.c: Remove file.
52909         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
52910         * modules/ftell (Depends-on): Likewise.
52911         * modules/getdelim (Depends-on): Likewise.
52912         * modules/getugroups (Depends-on): Likewise.
52913         * modules/poll (Depends-on): Likewise.
52914         * modules/snprintf (Depends-on): Likewise.
52915         * modules/sprintf-posix (Depends-on): Likewise.
52916         * modules/vasnprintf (Depends-on): Likewise.
52917         * modules/vasprintf (Depends-on): Likewise.
52918         * modules/vfprintf-posix (Depends-on): Likewise.
52919         * modules/vsnprintf (Depends-on): Likewise.
52920         * modules/vsprintf-posix (Depends-on): Likewise.
52921         * modules/xvasprintf (Depends-on): Likewise.
52922         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52923         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
52924         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
52925         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
52926         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52927         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
52928         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
52929         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
52930         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52931         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
52932         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
52933         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
52934         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52935         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
52936         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
52937         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
52938         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52939         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
52940         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
52941         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
52942         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52943         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
52944         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
52945         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
52946         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
52947         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52948         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
52949         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
52950         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
52951         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
52952         * MODULES.html.sh: Remove EOVERFLOW.
52953         * NEWS: Mention the change.
52954
52955 2008-09-13  Bruno Haible  <bruno@clisp.org>
52956
52957         * modules/errno-tests: New file.
52958         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
52959
52960         * lib/errno.in.h: New file.
52961         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
52962         * modules/errno: New file.
52963         * doc/posix-headers/errno.texi: Update documentation.
52964         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
52965
52966 2008-09-13  Bruno Haible  <bruno@clisp.org>
52967
52968         * tests/test-poll.c: Use #if for native Windows, rather than testing
52969         __MSVCRT__.
52970
52971 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52972             Bruno Haible  <bruno@clisp.org>
52973
52974         * lib/glob.c: Don't include <pwd.h> on native Windows.
52975         (WINDOWS32): New macro.
52976         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
52977
52978 2008-09-13  Bruno Haible  <bruno@clisp.org>
52979
52980         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
52981         (ETIMEDOUT): Remove macro.
52982         (glthread_cond_timedwait_multithreaded): New declaration.
52983         (glthread_cond_timedwait): Use it.
52984         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
52985         (glthread_cond_timedwait_multithreaded): New function.
52986
52987 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52988
52989         * modules/poll-tests: Do not check for io.h.
52990         * tests/test-poll.c: Check for __MSVCRT__ instead.
52991
52992 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52993
52994         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
52995         * modules/poll-tests: Add inet_pton, stdbool, sockets.
52996         * tests/test-poll.c: Use them.  Use _pipe on Windows.
52997
52998 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52999
53000         * modules/poll-tests: New.
53001         * tests/test-poll.c: New.
53002
53003 2008-09-12  Eric Blake  <ebb9@byu.net>
53004
53005         frexp: test for NetBSD failure on -0.0
53006         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
53007         not all, bugs from NetBSD 3.0 have been fixed.
53008         * doc/posix-functions/frexp.texi (frexp): Document bug.
53009         Reported by Thomas Klausner.
53010
53011         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
53012         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
53013         literal -0.0.
53014         Reported by Jonathan C. Patschke <jp@centtech.com>.
53015
53016 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53017
53018         * lib/glthread/cond.h: Use dummy implementation also if
53019         USE_WIN32_THREADS.
53020
53021 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53022
53023         * modules/fnmatch-posix (License): Change to LGPLv2+.
53024         * modules/fnmatch-gnu (License): Likewise.
53025
53026 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53027
53028         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
53029
53030 2008-09-11  Jim Meyering  <meyering@redhat.com>
53031
53032         * users.txt: Add gtk-vnc.
53033
53034 2008-09-08  Simon Josefsson  <simon@josefsson.org>
53035
53036         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
53037         rotate amounts.
53038
53039         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
53040         required for 16-bit and 8-bit rotates.
53041         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
53042         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
53043         UINT8_MAX instead of hard-coded constants.
53044         Suggested by Paul Eggert.
53045
53046 2008-09-07  Bruno Haible  <bruno@clisp.org>
53047
53048         * tests/test-striconveh.c (main): Check behaviour when converting from
53049         UTF-7.
53050
53051         Make striconveh work better with stateful encodings.
53052         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
53053         that iconv does not increment the inptr when returning -1/EINVAL.
53054
53055 2008-09-07  Bruno Haible  <bruno@clisp.org>
53056
53057         * build-aux/config.rpath: Update according to libtool-2.2.6.
53058         * build-aux/config.libpath: Likewise.
53059
53060 2008-09-06  Bruno Haible  <bruno@clisp.org>
53061
53062         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
53063         * lib/freadptr.c (freadptr): Likewise.
53064         * lib/freadseek.c (freadptrinc): Likewise.
53065         Reported by Simon Josefsson.
53066
53067 2008-09-06  Bruno Haible  <bruno@clisp.org>
53068
53069         * modules/freadptr (License): Change to LGPLv2+.
53070         * modules/freadseek (License): Likewise.
53071         Suggested by Eric Blake.
53072
53073         * modules/memchr2 (License): Change to LGPLv2+.
53074         Approved by Eric Blake.
53075
53076 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53077             Bruno Haible  <bruno@clisp.org>
53078
53079         Make gnulib-tool work with native 'sed' on AIX.
53080         * gnulib-tool (sed_noop): New variable.
53081         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
53082         func_add_or_update, func_create_testdir): Use it to initialize sed
53083         script variables.
53084         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53085
53086 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
53087             Bruno Haible  <bruno@clisp.org>
53088
53089         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
53090         also works after #include directives.
53091
53092 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
53093
53094         getdate.y: reject an out-of-range timezone value
53095         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
53096         the range [-24...+24].  When specified with only one or two digits,
53097         * tests/test-getdate.c: Tests for the fix.
53098         * doc/getdate.texi: Document this change.
53099
53100 2008-09-03  Bruno Haible  <bruno@clisp.org>
53101
53102         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
53103
53104 2008-09-02  Simon Josefsson  <simon@josefsson.org>
53105
53106         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
53107         <bruce.korb@gmail.com> with ideas from Ben Pfaff
53108         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
53109         Blake <ebb9@byu.net>.
53110
53111         * tests/test-bitrotate.c: Add more test vectors.
53112
53113 2008-09-02  Eric Blake  <ebb9@byu.net>
53114
53115         vasnprintf-posix: handle large precision via %.*d
53116         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
53117         when handling it ourselves.
53118         * tests/test-vasnprintf-posix.c (test_function): Add test.
53119         * tests/test-snprintf-posix.h (test_function): Likewise.
53120         * tests/test-sprintf-posix.h (test_function): Likewise.
53121         * tests/test-vasprintf-posix.c (test_function): Likewise.
53122         Reported by Alain Guibert.
53123
53124 2008-09-01  Eric Blake  <ebb9@byu.net>
53125
53126         c-stack: make configure-time check more robust
53127         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
53128         successful sigaction call.
53129         Reported by Tom G. Christensen.
53130
53131 2008-09-01  Bruno Haible  <bruno@clisp.org>
53132
53133         New module 'findprog-lgpl'.
53134         * modules/findprog-lgpl: New file.
53135         * lib/findprog-lgpl.c: New file.
53136         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
53137         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
53138         to decide whether to use strdup or xstrdup, concatenated_filename or
53139         xconcatenated_filename.
53140
53141 2008-09-01  Bruno Haible  <bruno@clisp.org>
53142
53143         Split module 'concat-filename' into 'concat-filename' (LGPL) and
53144         'xconcat-filename' (GPL).
53145         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
53146         (License): Change to LGPLv2+.
53147         * modules/xconcat-filename: New file.
53148         * lib/concat-filename.h (concatenated_filename): Change specification.
53149         (xconcatenated_filename): New declaration.
53150         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
53151         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
53152         memory situations.
53153         * lib/xconcat-filename.c: New file.
53154         * NEWS: Mention the change.
53155         * lib/findprog.c: Include concat-filename.h, not filename.h.
53156         (find_in_path): Use xconcatenated_filename instead of
53157         concatenated_filename.
53158         * lib/javacomp.c: Include concat-filename.h, not filename.h.
53159         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53160         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53161         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53162         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
53163         instead of concatenated_filename.
53164         * lib/javaexec.c: Include concat-filename.h, not filename.h.
53165         (execute_java_class): Use xconcatenated_filename instead of
53166         concatenated_filename.
53167         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
53168         * modules/javacomp (Depends-on): Likewise.
53169         * modules/javaexec (Depends-on): Likewise.
53170
53171 2008-09-01  Bruno Haible  <bruno@clisp.org>
53172
53173         Split module 'filename' into 'filename' and 'concat-filename'.
53174         * modules/filename: Keep only lib/filename.h.
53175         (License): Change to LGPLv2+.
53176         * modules/concat-filename: New file, extracted from modules/filename.
53177         * lib/filename.h (concatenated_filename): Remove declaration.
53178         * lib/concat-filename.h: New file, extracted from lib/filename.h.
53179         * lib/concat-filename.c: Include concat-filename.h.
53180         * NEWS: Mention the change.
53181
53182 2008-09-01  Simon Josefsson  <simon@josefsson.org>
53183
53184         * lib/bitrotate.h (rotl8, rotr8): Add.
53185
53186         * modules/bitrotate (configure.ac): Need
53187         AC_REQUIRE([AC_C_INLINE]).
53188         (Description): Mention stdint.h.  Reported by Bruno Haible
53189         <bruno@clisp.org>.
53190
53191         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
53192         Paolo Bonzini <bonzini@gnu.org>.
53193
53194 2008-08-31  Bruno Haible  <bruno@clisp.org>
53195
53196         Assume Solaris specific bi-arch conventions on Solaris systems.
53197         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
53198         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
53199         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
53200         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
53201         like acl_libdirstem.
53202         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
53203         acl_libdirstem.
53204         * NEWS: Mention the change.
53205         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
53206
53207 2008-08-31  Jim Meyering  <meyering@redhat.com>
53208
53209         * lib/strftime.h: Add comments describing the two added arguments.
53210
53211         remove duplicate #include directives
53212         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
53213         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
53214
53215 2008-08-31  Bruno Haible  <bruno@clisp.org>
53216
53217         New module 'sigpipe-die'.
53218         * modules/sigpipe-die: New file.
53219         * lib/sigpipe-die.h: New file.
53220         * lib/sigpipe-die.c: New file.
53221         * MODULES.html.sh (Signal handling): Add sigpipe-die.
53222
53223 2008-08-31  Bruno Haible  <bruno@clisp.org>
53224
53225         Don't override previously installed signal handlers.
53226         * lib/fatal-signal.c (saved_sigactions): New variable.
53227         (uninstall_handlers): Reset the signal to the saved handler, not
53228         to SIG_DFL (except when ignored).
53229         (install_handlers): Save the previous handlers.
53230
53231 2008-08-30  Bruno Haible  <bruno@clisp.org>
53232
53233         * gnulib-tool (func_reset_sigpipe): New function.
53234         (func_get_automake_snippet, func_modules_transitive_closure,
53235         func_import): Invoke it before a join command that reads from stdin,
53236         to avoid "echo: write error: Broken pipe" error messages on stderr.
53237         Reported by Sam Steingold <sds@gnu.org>.
53238
53239 2008-08-30  Bruno Haible  <bruno@clisp.org>
53240
53241         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
53242         Code copied from m4/open.m4.
53243         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
53244         access and the filename ends in a slash. Code copied from lib/open.c.
53245         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
53246         * tests/test-fopen.c (main): Check against bug with trailing slash.
53247
53248 2008-08-29  Bruno Haible  <bruno@clisp.org>
53249
53250         Avoid some "gcc -pedantic" warnings.
53251         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
53252         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
53253         * lib/dirent.in.h: Likewise.
53254         * lib/fcntl.in.h: Likewise.
53255         * lib/float.in.h: Likewise.
53256         * lib/iconv.in.h: Likewise.
53257         * lib/inttypes.in.h: Likewise.
53258         * lib/locale.in.h: Likewise.
53259         * lib/math.in.h: Likewise.
53260         * lib/netinet_in.in.h: Likewise.
53261         * lib/search.in.h: Likewise.
53262         * lib/signal.in.h: Likewise.
53263         * lib/stdarg.in.h: Likewise.
53264         * lib/stdint.in.h: Likewise.
53265         * lib/stdio.in.h: Likewise.
53266         * lib/stdlib.in.h: Likewise.
53267         * lib/string.in.h: Likewise.
53268         * lib/strings.in.h: Likewise.
53269         * lib/sys_select.in.h: Likewise.
53270         * lib/sys_socket.in.h: Likewise.
53271         * lib/sys_stat.in.h: Likewise.
53272         * lib/sys_time.in.h: Likewise.
53273         * lib/sysexits.in.h: Likewise.
53274         * lib/time.in.h: Likewise.
53275         * lib/unistd.in.h: Likewise.
53276         * lib/wchar.in.h: Likewise.
53277         * lib/wctype.in.h: Likewise.
53278         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
53279         * modules/fchdir (Makefile.am): Likewise.
53280         * modules/fcntl (Makefile.am): Likewise.
53281         * modules/float (Makefile.am): Likewise.
53282         * modules/iconv_open (Makefile.am): Likewise.
53283         * modules/inttypes (Makefile.am): Likewise.
53284         * modules/locale (Makefile.am): Likewise.
53285         * modules/math (Makefile.am): Likewise.
53286         * modules/netinet_in (Makefile.am): Likewise.
53287         * modules/search (Makefile.am): Likewise.
53288         * modules/signal (Makefile.am): Likewise.
53289         * modules/stdarg (Makefile.am): Likewise.
53290         * modules/stdint (Makefile.am): Likewise.
53291         * modules/stdio (Makefile.am): Likewise.
53292         * modules/stdlib (Makefile.am): Likewise.
53293         * modules/string (Makefile.am): Likewise.
53294         * modules/strings (Makefile.am): Likewise.
53295         * modules/sys_select (Makefile.am): Likewise.
53296         * modules/sys_socket (Makefile.am): Likewise.
53297         * modules/sys_stat (Makefile.am): Likewise.
53298         * modules/sys_time (Makefile.am): Likewise.
53299         * modules/sysexits (Makefile.am): Likewise.
53300         * modules/time (Makefile.am): Likewise.
53301         * modules/unistd (Makefile.am): Likewise.
53302         * modules/wchar (Makefile.am): Likewise.
53303         * modules/wctype (Makefile.am): Likewise.
53304         Reported by Reuben Thomas <rrt@sc3d.org>.
53305
53306 2008-08-29  Bruno Haible  <bruno@clisp.org>
53307
53308         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
53309         any more.
53310
53311 2008-08-29  Simon Josefsson  <simon@josefsson.org>
53312
53313         * MODULES.html.sh (Misc): Add bitrotate.
53314
53315         * modules/bitrotate: New file.
53316
53317         * lib/bitrotate.h: New file.
53318
53319         * modules/bitrotate-tests: New file.
53320
53321         * tests/test-bitrotate.c: New file.
53322
53323         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
53324         on the bitrotate module.
53325
53326         * lib/arctwo.c: Use new bitrotate module.
53327
53328 2008-08-29  Jim Meyering  <meyering@redhat.com>
53329
53330         bootstrap: merge changes from coreutils
53331         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
53332         of copied files.  Remove a kludge, now that this is fixed.
53333         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
53334         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
53335         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
53336
53337 2008-08-29  Bruno Haible  <bruno@clisp.org>
53338
53339         * MODULES.html.sh: Remove --cvs-urls option.
53340
53341 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
53342
53343         maint.mk: adjust to file name change
53344         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
53345
53346 2008-08-28  Jim Meyering  <meyering@redhat.com>
53347
53348         * modules/getndelim2 (License): Relicense to LGPLv2+.
53349         Approved by Richard Stallman for the version of 1995, and by
53350         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
53351
53352 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
53353
53354         * lib/getdelim.c (flockfile, funlockfile): Make all of them
53355         dummy if one is not available.  Do not touch them if
53356         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
53357         (getc_maybe_unlocked): New.
53358         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
53359
53360 2008-08-26  Eric Blake  <ebb9@byu.net>
53361
53362         doc/INSTALL: resync from autoconf
53363         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
53364         (INSTALL_PRELUDE): Delete; this is done more efficiently by
53365         moving...
53366         * install.texi [!autoconf]: ...here.  Resync from autoconf.
53367         * INSTALL: Regenerate.
53368         * INSTALL.ISO: New file.
53369         * INSTALL.UTF-8: Likewise.
53370
53371 2008-08-26  Jim Meyering  <meyering@redhat.com>
53372
53373         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
53374         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
53375         these definitions conditional, so that they may be overridden, too.
53376
53377 2008-08-26  Bruno Haible  <bruno@clisp.org>
53378
53379         Generate INSTALL file variants with prettier quotes.
53380         * doc/Makefile (INSTALL_PRELUDE): New macro.
53381         (INSTALL): Use it.
53382         (INSTALL.ISO, INSTALL.UTF-8): New rules.
53383
53384 2008-08-26  Bruno Haible  <bruno@clisp.org>
53385
53386         Run makeinfo in an English locale.
53387         * doc/Makefile (MAKEINFO): New variable.
53388
53389 2008-08-26  Bruno Haible  <bruno@clisp.org>
53390
53391         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
53392         Suggested by Eric Blake.
53393
53394 2008-08-25  Bruno Haible  <bruno@clisp.org>
53395
53396         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
53397
53398 2008-08-25  Eric Blake  <ebb9@byu.net>
53399
53400         c-stack: test that stack overflow can be caught
53401         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
53402         that platform allows handling stack overflow; at least OS/2 EMX
53403         has sigaltstack, but crashes before transferring control to
53404         handler on stack overflow.
53405         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
53406         check for HAVE_STACK_OVERFLOW_HANDLING.
53407         Reported by Elbert Pol.
53408
53409 2008-08-25  Bruno Haible  <bruno@clisp.org>
53410
53411         * doc/posix-functions/strftime.texi: Fix description of strftime
53412         module.
53413
53414 2008-08-24  Bruno Haible  <bruno@clisp.org>
53415
53416         * tests/uniwidth/test-uc_width2.c: New file.
53417         * tests/uniwidth/test-uc_width2.sh: New file.
53418         * modules/uniwidth/width-tests (Files): Add the new files.
53419         (TESTS): Add uniwidth/test-uc_width2.sh.
53420         (TESTS_ENVIRONMENT): New variable.
53421         (check_PROGRAMS): Add test-uc_width2.
53422         (test_uc_width2_SOURCES): New variable.
53423
53424         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
53425         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
53426         not 0x00AB.
53427         Reported by Alexander V. Lukyanov <lav@netis.ru>.
53428
53429 2008-08-22  Eric Blake  <ebb9@byu.net>
53430
53431         test-lock, test-tls: mention why a test is skipped
53432         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
53433         skipped.
53434         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
53435
53436         count-one-bits: relax license
53437         * modules/count-one-bits (License): Relicense to LGPLv2+.
53438         Suggested by Ludovic Courtès, approved by Ben Pfaff.
53439
53440 2008-08-22  Andreas Schwab  <schwab@suse.de>
53441
53442         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
53443         Remove spurious space in assignment.
53444
53445 2008-08-21  Simon Josefsson  <simon@josefsson.org>
53446
53447         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
53448         Paul Eggert <eggert@CS.UCLA.EDU>.
53449
53450 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
53451
53452         * modules/gettext: Add m4/threadlib.m4.
53453
53454 2008-08-19  Eric Blake  <ebb9@byu.net>
53455
53456         test-c-stack: fix compilation failure on FreeBSD 5.0
53457         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
53458         headers before <sys/resource.h>.
53459         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
53460         the bug.
53461         Reported by Nelson H. F. Beebe.
53462
53463         strverscmp: migrate from "strverscmp.h" to <string.h>
53464         * modules/string (Makefile.am): Add new hooks.
53465         * modules/strverscmp (Files): Remove strverscmp.h.
53466         (Depends-on): Add string.
53467         (configure.ac): Add indicator.
53468         (Include): Mention new header.
53469         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
53470         defaults.
53471         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
53472         results.
53473         * lib/strverscmp.h: Delete.
53474         * lib/string.in.h (strverscmp): Provide declaration, when needed.
53475         * tests/test-strverscmp.c (includes): Adjust client.
53476         * lib/check-version.c (includes): Likewise.
53477         * NEWS: Document the change.
53478
53479         strverscmp: add unit test
53480         * modules/strverscmp-tests: New file.
53481         * tests/test-strverscmp.c: Likewise.
53482
53483 2008-08-19  Simon Josefsson  <simon@josefsson.org>
53484
53485         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
53486         regarding Windows crypto stuff, from Mono.
53487
53488 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
53489
53490         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
53491         if present, for intel RND.  Return error on failures.
53492
53493 2008-08-18  Ben Pfaff  <blp@gnu.org>
53494
53495         gitlog-to-changelog: give better diagnostic for failed pipe-open
53496         * build-aux/gitlog-to-changelog: Improve error message: suggest
53497         that the version of Git may be too old.
53498
53499 2008-08-18  Simon Josefsson  <simon@josefsson.org>
53500
53501         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
53502         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
53503
53504 2008-08-18  Bruno Haible  <bruno@clisp.org>
53505
53506         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
53507         pthread_in_use().
53508
53509 2008-08-18  Bruno Haible  <bruno@clisp.org>
53510
53511         * lib/glthread/threadlib.c: Include <pthread.h>.
53512
53513 2008-08-18  Bruno Haible  <bruno@clisp.org>
53514
53515         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
53516         glthread_recursive_lock_* macros.
53517         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
53518         Fix syntax error.
53519
53520 2008-08-18  Bruno Haible  <bruno@clisp.org>
53521
53522         * lib/glthread/thread.c: Avoid forcing a context switch right after
53523         thread creation.
53524
53525 2008-08-17  Bruno Haible  <bruno@clisp.org>
53526
53527         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
53528         * lib/glthread/thread.h: Provide Win32 specific implementation.
53529         * modules/thread (Files): Add lib/glthread/thread.c.
53530         (Depends-on): Add lock.
53531         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
53532
53533 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53534
53535         New module 'yield'.
53536         * modules/yield: New file.
53537         * lib/glthread/yield.h: New file.
53538         * m4/yield.m4: New file.
53539         * MODULES.html.sh (Multithreading): Add yield.
53540
53541 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53542
53543         New module 'thread'.
53544         * modules/thread: New file.
53545         * lib/glthread/thread.h: New file.
53546         * m4/thread.m4: New file.
53547         * MODULES.html.sh (Multithreading): Add thread.
53548
53549 2008-08-17  Bruno Haible  <bruno@clisp.org>
53550
53551         * lib/glthread/lock.h: Include <stdlib.h> always.
53552         * lib/glthread/tls.h: Likewise.
53553         * lib/glthread/cond.h: Likewise.
53554
53555 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53556
53557         New module 'cond'.
53558         * modules/cond: New file.
53559         * lib/glthread/cond.h: New file.
53560         * lib/glthread/cond.c: New file.
53561         * m4/cond.m4: New file.
53562         * MODULES.html.sh (Multithreading): Add cond.
53563
53564 2008-08-16  Eric Blake  <ebb9@byu.net>
53565
53566         c-stack: fix regression on Irix 5.3 from 2008-06-21
53567         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
53568         sa_sigaction...
53569         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
53570         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
53571         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
53572         * modules/signal (Makefile.am): Use the value.
53573         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
53574         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
53575         * doc/posix-headers/signal.texi (signal.h): Document this
53576         portability issue.
53577         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
53578         Reported by Tom G. Christensen.
53579
53580 2008-08-17  Bruno Haible  <bruno@clisp.org>
53581
53582         New module 'threadlib'.
53583         * modules/threadlib: New file.
53584         * lib/glthread/threadlib.c: New file, extracted from
53585         lib/glthread/lock.c.
53586         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
53587         functions.
53588         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
53589         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
53590         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
53591         macros.
53592         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
53593         (gl_DISABLE_THREADS): Remove macro.
53594         * modules/lock (Files): Remove build-aux/config.rpath.
53595         (Depends-on): Remove havelib. Add threadlib.
53596         (configure.ac-early): Remove section.
53597         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
53598         * modules/tls (Depends-on): Remove lock. Add threadlib.
53599         (Link): New section, copied from threadlib.
53600         * MODULES.html.sh (Multithreading): Add threadlib.
53601
53602 2008-08-14  Bruno Haible  <bruno@clisp.org>
53603
53604         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
53605         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
53606         glthread_rwlock_unlock, glthread_rwlock_destroy,
53607         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
53608         glthread_recursive_lock_destroy): Define as macros always.
53609         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
53610         glthread_lock_lock.
53611         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
53612         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
53613         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
53614         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
53615         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
53616         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
53617         (glthread_recursive_lock_lock_func): Renamed from
53618         glthread_recursive_lock_lock.
53619         (glthread_recursive_lock_unlock_func): Renamed from
53620         glthread_recursive_lock_unlock.
53621         (glthread_recursive_lock_destroy_func): Renamed from
53622         glthread_recursive_lock_destroy.
53623
53624 2008-08-14  Bruno Haible  <bruno@clisp.org>
53625
53626         * lib/glthread/lock.h: Renamed from lib/lock.h.
53627         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
53628         * lib/glthread/tls.h: Renamed from lib/tls.h.
53629         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
53630         * lib/fstrcmp.c: Update includes.
53631         * lib/strsignal.c: Update includes.
53632         * modules/lock (Files, Makefile.am): Update.
53633         (Include): Change to "glthread/lock.h".
53634         * modules/tls (Files, Makefile.am): Update.
53635         (Include): Change to "glthread/tls.h".
53636         * tests/test-lock.c: Update includes.
53637         * tests/test-tls.c: Update includes.
53638         * NEWS: Mention the renamed header files.
53639
53640 2008-08-11  Jim Meyering  <meyering@redhat.com>
53641
53642         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
53643
53644 2008-08-11  Eric Blake  <ebb9@byu.net>
53645
53646         test-c-stack: avoid C99-ism
53647         * tests/test-c-stack.c (main): Fix whitespace, move declaration
53648         before statement.
53649         Reported by Alain Guibert.
53650
53651 2008-08-10  Jim Meyering  <meyering@redhat.com>
53652
53653         ensure that return value of uinttostr et al are not ignored
53654         * lib/inttostr.h (__GNUC_PREREQ): Define.
53655         (__attribute_warn_unused_result__): Define.
53656         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
53657
53658 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
53659
53660         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
53661         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
53662
53663 2008-08-07  Jim Meyering  <meyering@redhat.com>
53664
53665         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
53666
53667         * modules/mkstemp (License): Relicense under LGPLv2+.
53668         * modules/tempname (License): Likewise.
53669
53670 2008-08-06  Bruno Haible  <bruno@clisp.org>
53671
53672         * lib/poll.c (poll): Further micro-optimization.
53673
53674 2008-08-06  Jim Meyering  <meyering@redhat.com>
53675
53676         inet_pton.c: use locale-independent tolower
53677         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
53678         (inet_pton6): Use c_tolower rather than tolower.
53679         * modules/inet_pton (Depends-on): Add c-ctype.
53680
53681 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
53682
53683         * lib/poll.c (poll): Avoid division when timeout is 0, cache
53684         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
53685
53686 2008-08-06  Jim Meyering  <meyering@redhat.com>
53687
53688         * modules/inet_pton (License): Relicense under LGPLv2+.
53689
53690 2008-08-03  Bruno Haible  <bruno@clisp.org>
53691
53692         Additional non-aborting API for lock and tls.
53693         * lib/lock.h: Include <errno.h>.
53694         (glthread_lock_init): New macro/function.
53695         (gl_lock_init): Define as wrapper around glthread_lock_init.
53696         (glthread_lock_lock): New macro/function.
53697         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
53698         (glthread_lock_unlock): New macro/function.
53699         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
53700         (glthread_lock_destroy): New macro/function.
53701         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
53702         (glthread_rwlock_init): New macro/function.
53703         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
53704         (glthread_rwlock_rdlock): New macro/function.
53705         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
53706         (glthread_rwlock_wrlock): New macro/function.
53707         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
53708         (glthread_rwlock_unlock): New macro/function.
53709         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
53710         (glthread_rwlock_destroy): New macro/function.
53711         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
53712         (glthread_recursive_lock_init): New macro/function.
53713         (gl_recursive_lock_init): Define as wrapper around
53714         glthread_recursive_lock_init.
53715         (glthread_recursive_lock_lock): New macro/function.
53716         (gl_recursive_lock_lock): Define as wrapper around
53717         glthread_recursive_lock_lock.
53718         (glthread_recursive_lock_unlock): New macro/function.
53719         (gl_recursive_lock_unlock): Define as wrapper around
53720         glthread_recursive_lock_unlock.
53721         (glthread_recursive_lock_destroy): New macro/function.
53722         (gl_recursive_lock_destroy): Define as wrapper around
53723         glthread_recursive_lock_destroy.
53724         (glthread_once): New macro/function.
53725         (gl_once): Define as wrapper around glthread_once.
53726         Update function declarations.
53727         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
53728         glthread_rwlock_init. Return error code.
53729         (glthread_rwlock_rdlock_multithreaded): Renamed from
53730         glthread_rwlock_rdlock. Return error code.
53731         (glthread_rwlock_wrlock_multithreaded): Renamed from
53732         glthread_rwlock_wrlock. Return error code.
53733         (glthread_rwlock_unlock_multithreaded): Renamed from
53734         glthread_rwlock_unlock. Return error code.
53735         (glthread_rwlock_destroy_multithreaded): Renamed from
53736         glthread_rwlock_destroy. Return error code.
53737         (glthread_recursive_lock_init_multithreaded): Renamed from
53738         glthread_recursive_lock_init. Return error code.
53739         (glthread_recursive_lock_lock_multithreaded): Renamed from
53740         glthread_recursive_lock_lock. Return error code.
53741         (glthread_recursive_lock_unlock_multithreaded): Renamed from
53742         glthread_recursive_lock_unlock. Return error code.
53743         (glthread_recursive_lock_destroy_multithreaded): Renamed from
53744         glthread_recursive_lock_destroy. Return error code.
53745         (glthread_once_call): Make static.
53746         (glthread_once_multithreaded): Renamed from glthread_once.
53747         * lib/tls.h: Include <errno.h>.
53748         (glthread_tls_key_init): New macro/function.
53749         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
53750         (glthread_tls_set): New macro/function.
53751         (gl_tls_set): Define as wrapper around glthread_tls_set.
53752         (glthread_tls_key_destroy): New macro/function.
53753         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
53754         Update function declarations.
53755         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
53756         glthread_tls_get.
53757         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53758
53759 2008-08-04  Eric Blake  <ebb9@byu.net>
53760
53761         gnumakefile: use space, not TAB, outside of targets
53762         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
53763
53764 2008-08-02  Jim Meyering  <meyering@redhat.com>
53765
53766         getdate.y: avoid locale-dependent date parsing failure
53767         In Turkish locales, getdate would fail to recognize keywords
53768         containing a lowercase "i".  The solution is not to rely on
53769         locale-sensitive case-conversion.
53770         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
53771         (lookup_word): Use c_toupper in place of toupper.
53772         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
53773         Reported by Vefa Bicakci <bicave@superonline.com> in
53774         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
53775         * modules/getdate (Depends-on): Add c-ctype.
53776
53777 2008-08-02  Bruno Haible  <bruno@clisp.org>
53778
53779         * gnulib-tool (func_import): When updating or creating a .gitignore
53780         file, prepend each added line with a slash, and ignore leading slashes
53781         from the existing lines.
53782         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53783
53784 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53785
53786         Portability fix for GNU make 3.79.1.
53787         * top/GNUmakefile: Avoid 'else COND', which older GNU make
53788         versions do not understand.
53789
53790 2008-08-01  Bruno Haible  <bruno@clisp.org>
53791
53792         Work around bug of HP-UX 10.20 cc with -0.0 literal.
53793         * tests/test-isnanf.h (zero): New variable.
53794         (main): Avoid literal -0.0f.
53795         * tests/test-isnand.h (zero): New variable.
53796         (main): Avoid literal -0.0.
53797         * tests/test-isnanl.h (zero): New variable.
53798         (main): Avoid literal -0.0L.
53799         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
53800         (test_float, test_double, test_long_double): Avoid literals -0.0f,
53801         -0.0, -0.0L.
53802         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
53803         (test_signbitd): Avoid literal -0.0.
53804         (test_signbitl): Avoid literal -0.0L.
53805         * tests/test-ceilf1.c (zero): New variable.
53806         (main): Avoid literal -0.0f.
53807         * tests/test-ceill.c (zero): New variable.
53808         (main): Avoid literal -0.0L.
53809         * tests/test-floorf1.c (zero): New variable.
53810         (main): Avoid literal -0.0f.
53811         * tests/test-floorl.c (zero): New variable.
53812         (main): Avoid literal -0.0L.
53813         * tests/test-roundf1.c (zero): New variable.
53814         (main): Avoid literal -0.0f.
53815         * tests/test-round1.c (zero): New variable.
53816         (main): Avoid literal -0.0.
53817         * tests/test-roundl.c (zero): New variable.
53818         (main): Avoid literal -0.0L.
53819         * tests/test-truncf1.c (zero): New variable.
53820         (main): Avoid literal -0.0f.
53821         * tests/test-trunc1.c (zero): New variable.
53822         (main): Avoid literal -0.0.
53823         * tests/test-truncl.c (zero): New variable.
53824         (main): Avoid literal -0.0L.
53825         * tests/test-frexp.c (zero): New variable.
53826         (main): Avoid literal -0.0.
53827         * tests/test-frexpl.c (zero): New variable.
53828         (main): Avoid literal -0.0L.
53829         * tests/test-ldexpl.c (zero): New variable.
53830         (main): Avoid literal -0.0L.
53831         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53832         (zerod, zerol): New variables.
53833         (test_function): Avoid literals -0.0, -0.0L.
53834         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53835         (zerod, zerol): New variables.
53836         (test_function): Avoid literals -0.0, -0.0L.
53837         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53838         (zerod, zerol): New variables.
53839         (test_function): Avoid literals -0.0, -0.0L.
53840         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53841         (zerod, zerol): New variables.
53842         (test_function): Avoid literals -0.0, -0.0L.
53843         * tests/test-strtod.c (zero): New variable.
53844         (main): Avoid literal -0.0.
53845         Reported by Jonathan C. Patschke <jp@centtech.com>.
53846
53847 2008-07-31  Jim Meyering  <meyering@redhat.com>
53848
53849         sha256.h: correct definition of SHA224_DIGEST_SIZE
53850         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
53851         Reported by Paulie Pena IV <paulie4@gmail.com>.
53852         Define as 224 / 8, rather than as a literal.
53853         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
53854         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
53855         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
53856
53857 2008-07-31  Bruno Haible  <bruno@clisp.org>
53858
53859         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
53860         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
53861         Reported by Jonathan Patschke <jp@centtech.com>.
53862
53863 2008-07-31  Bruno Haible  <bruno@clisp.org>
53864
53865         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
53866         Reported by Paolo Bonzini <bonzini@gnu.org>.
53867
53868 2008-07-30  Eric Blake  <ebb9@byu.net>
53869
53870         test-strtod: allow compilation without -lm
53871         * tests/test-strtod.c (main): Avoid link dependence on fabs.
53872         Reported by Dennis Clarke <blastwave@gmail.com>.
53873
53874 2008-07-28  Jim Meyering  <meyering@redhat.com>
53875
53876         bootstrap: work also when there are no .po files in po/
53877         * build-aux/bootstrap (update_po_files): Complete the change
53878         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
53879
53880 2008-07-27  Jim Meyering  <meyering@redhat.com>
53881
53882         * users.txt: Add zile.
53883
53884 2008-07-26  Ben Pfaff  <blp@gnu.org>
53885
53886         Add missing dependencies on new m4/exponent[fdl].m4 files.
53887         * modules/isnanf-nolibm: Add m4/exponentf.m4.
53888         * modules/isnand-nolibm: Add m4/exponentd.m4.
53889         * modules/isnanl-nolibm: Add m4/exponentl.m4.
53890         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
53891         m4/isnan[fdl].m4, because the macros actually used moved.
53892         Reported by Jim Meyering.
53893
53894 2008-07-14  Ben Pfaff  <blp@gnu.org>
53895
53896         Add isinf module.
53897         * lib/isinf.c: New file.
53898         * lib/math.in.h: Define isinf macro if we have decided to replace
53899         it.
53900         * m4/isinf.m4: New file.
53901         * m4/math_h.m4: Initialize and substitute variables for isinf
53902         module.
53903         * modules/isinf: New file.
53904         * modules/isinf-tests: New file.
53905         * modules/math: Add substitutions for new module.
53906         * tests/test-isinf.c: New file.
53907         * doc/posix-functions/isinf.texi: Mention new module.
53908         * MODULES.html.sh: Mention new module.
53909
53910 2008-07-14  Ben Pfaff  <blp@gnu.org>
53911
53912         Factor out some macros for use by additional modules.
53913         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
53914         exponentf.m4.
53915         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
53916         exponentd.m4.
53917         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
53918         file exponentl.m4.
53919         * m4/exponentf.m4: New file.
53920         * m4/exponentd.m4: New file.
53921         * m4/exponentl.m4: New file.
53922         * modules/isnanf: Use new file m4/exponentf.m4.
53923         * modules/isnand: Use new file m4/exponentd.m4.
53924         * modules/isnanl: Use new file m4/exponentl.m4.
53925
53926 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
53927
53928         mktime.c: normalize tp->tm_isdst value to -1/0/1.
53929         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
53930         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
53931         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
53932
53933         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
53934         readlink on platforms without PATH_MAX.
53935
53936 2008-07-21  Eric Blake  <ebb9@byu.net>
53937
53938         Warn, not fail, on stale version.
53939         * top/GNUmakefile (_curr-ver): Tone down previous patch.
53940
53941         Don't allow installation with stale devel version number.
53942         * top/GNUmakefile (_is-install-target): New macro.
53943         (_curr-ver): Forbid installation with stale version number.
53944
53945 2008-07-20  Bruno Haible  <bruno@clisp.org>
53946
53947         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
53948         TESTS_ENVIRONMENT.
53949         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
53950
53951 2008-07-20  Bruno Haible  <bruno@clisp.org>
53952
53953         * lib/c-stack.h (c_stack_action): Add documentation.
53954         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
53955
53956 2008-07-20  Bruno Haible  <bruno@clisp.org>
53957
53958         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
53959         * modules/readlink (License): Likewise.
53960
53961 2008-07-17  Eric Blake  <ebb9@byu.net>
53962
53963         * modules/c-stack (Link): Fix typo.
53964
53965         Make c-stack use libsigsegv, when available.
53966         * modules/c-stack (Depends-on): Add libsigsegv.
53967         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
53968         needed.
53969         * lib/c-stack.c (SIGSTKSZ): Define fallback.
53970         (segv_handler, overflow_handler, c_stack_action)
53971         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
53972         implementation when libsigsegv is available, but only when using
53973         the library is necessary.
53974         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
53975         comment, explaining why XSI check fails on Linux.
53976         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
53977         * tests/test-c-stack2.sh: Tweak skip message.
53978         * NEWS: Document new link-time requirements.
53979
53980 2008-07-16  Eric Blake  <ebb9@byu.net>
53981
53982         c-stack: Expose false positives when not using libsigsegv.
53983         * modules/c-stack-tests (Files): Expand test.
53984         * tests/test-c-stack.c (main): Add means to conditionally trigger
53985         non-overflow SIGSEGV.
53986         * tests/test-c-stack2.sh: New file.
53987
53988 2008-07-14  Bruno Haible  <bruno@clisp.org>
53989
53990         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
53991         Reported by Eric Blake.
53992
53993 2008-07-14  Sam Steingold  <sds@gnu.org>
53994             Bruno Haible  <bruno@clisp.org>
53995
53996         New module libsigsegv.
53997         * modules/libsigsegv: New file.
53998         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
53999         modifications.
54000         * MODULES.html.sh (Signal handling): New section.
54001
54002 2008-07-14  Bruno Haible  <bruno@clisp.org>
54003
54004         * modules/unictype/ctype-* (Description): Add the word "function".
54005         Improves the resulting doc in MODULES.html.
54006
54007 2008-07-12  Ben Pfaff  <blp@gnu.org>
54008
54009         Add longlong module.
54010         * modules/longlong: New file.
54011
54012 2008-07-12  Bruno Haible  <bruno@clisp.org>
54013
54014         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
54015         to empty.
54016
54017 2008-07-10  Ben Pfaff  <blp@gnu.org>
54018
54019         Add isnan module.
54020         * doc/posix-functions/isnan.texi: Mention new module.
54021         * lib/math.in.h: Define isnan macro if we have decided to replace
54022         it.
54023         * m4/isnan.m4: New file.
54024         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
54025         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
54026         also.
54027         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
54028         redundancy.
54029         * m4/math_h.m4: Initialize and substitute variables for isnan
54030         module.
54031         * modules/isnan: New file.
54032         * modules/isnan-tests: New file.
54033         * modules/math: Add substitutions for new module.
54034         * tests/test-isnan.c: New file.
54035         * MODULES.html.sh: Mention new module.
54036
54037 2008-07-10  Ben Pfaff  <blp@gnu.org>
54038
54039         Add isnanf module.
54040         * lib/isnanf.m4: New file.
54041         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
54042         (gl_HAVE_ISNANF_IN_LIBM): New macro.
54043         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
54044         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
54045         * modules/isnanf: New file.
54046         * modules/isnanf-tests: New file.
54047         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
54048         files.
54049         * tests/test-isnanf-nolibm.c: factored most of its contents into
54050         new file tests/test-isnanf.h.
54051         * tests/test-isnanf.h: New file.
54052         * tests/test-isnanf.c: New file.
54053         * MODULES.html.sh: Mention new module.
54054         * doc/glibc-functions/isnanf.texi: Mention new module.
54055
54056 2008-07-10  Ben Pfaff  <blp@gnu.org>
54057
54058         Add isnand module.
54059         * lib/isnand.h: New file.
54060         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
54061         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
54062         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
54063         functionality also.
54064         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
54065         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
54066         (gl_HAVE_ISNAND_IN_LIBM): New macro.
54067         * modules/isnand: New file.
54068         * modules/isnand-tests: New file.
54069         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
54070         files.
54071         * tests/test-isnand-nolibm.c: factored most of its contents into
54072         new file tests/test-isnand.h.
54073         * tests/test-isnand.h: New file.
54074         * tests/test-isnand.c: New file.
54075         * MODULES.html.sh: Mention new module.
54076
54077 2008-07-10  Ben Pfaff  <blp@gnu.org>
54078
54079         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
54080         * lib/isnand.h: Rename lib/isnand-nolibm.h.
54081         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
54082         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
54083         * modules/isnanf-nolibm: Update references to renamed files.
54084         * modules/isnand-nolibm: Likewise.
54085         * modules/isnanf-nolibm-tests: Likewise.
54086         * modules/isnand-nolibm-tests: Likewise.
54087         * lib/frexp.c: Likewise.
54088         * lib/isfinite.c: Likewise.
54089         * lib/signbitd.c: Likewise.
54090         * lib/signbitf.c: Likewise.
54091         * lib/vasnprintf.c: Likewise.
54092         * tests/test-ceilf1.c: Likewise.
54093         * tests/test-ceilf2.c: Likewise.
54094         * tests/test-floorf1.c: Likewise.
54095         * tests/test-floorf2.c: Likewise.
54096         * tests/test-frexp.c: Likewise.
54097         * tests/test-round1.c: Likewise.
54098         * tests/test-round2.c: Likewise.
54099         * tests/test-roundf1.c: Likewise.
54100         * tests/test-strtod.c: Likewise.
54101         * tests/test-trunc1.c: Likewise.
54102         * tests/test-trunc2.c: Likewise.
54103         * tests/test-truncf1.c: Likewise.
54104         * tests/test-truncf2.c: Likewise.
54105         * NEWS: Mention the renamed header files.
54106
54107 2008-07-11  Jim Meyering  <meyering@redhat.com>
54108
54109         vc-list-files: make the last-resort awk code more portable
54110         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
54111         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
54112         does not support it.
54113
54114 2008-07-10  Eric Blake  <ebb9@byu.net>
54115
54116         Work with tar's bootstrap.
54117         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
54118         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
54119         an m4 comment.
54120
54121 2008-07-09  Jim Meyering  <meyering@redhat.com>
54122
54123         posix-shell.m4: fix typo that made this test malfunction
54124         * m4/posix-shell.m4: Remove capitalization in variable name.
54125
54126 2008-07-08  Bruno Haible  <bruno@clisp.org>
54127
54128         * m4/onceonly.m4: Update comments.
54129         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54130
54131 2008-07-04  Jim Meyering  <meyering@redhat.com>
54132
54133         * users.txt: Add vc-dwim.
54134         (bison, coreutils): Use the gitweb URL.
54135
54136 2008-07-03  Jim Meyering  <meyering@redhat.com>
54137
54138         * users.txt: Add libffcall.  From Sam Steingold.
54139
54140 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
54141
54142         getdate.y: do not ignore TZ with relative day, month or year offset
54143         * lib/getdate.y (get_date): Move the tz-handling block to follow the
54144         relative-date-handling, since otherwise, the latter would clobber the
54145         sole output (an updated Start value) of the tz-handling block.
54146         * tests/test-getdate.c: Tests for the fix
54147
54148 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54149
54150         Recognize 'foo_LIBRARIES += libgnu.a'.
54151         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
54152         makefile snippet has already specified an installation location,
54153         also using '+='.
54154
54155 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
54156
54157         getdate.y: factor out common actions
54158         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
54159         Use them in place of open-coded actions.
54160
54161 2008-07-01  Simon Josefsson  <simon@josefsson.org>
54162
54163         Add self-test for getdate module.
54164         * modules/getdate-tests: New file.
54165         * tests/test-getdate.c: New file.
54166
54167 2008-06-29  Bruno Haible  <bruno@clisp.org>
54168
54169         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
54170         .gitignore.
54171         Reported by Sylvain Beucler <beuc@beuc.net>.
54172
54173 2008-06-29  Bruno Haible  <bruno@clisp.org>
54174
54175         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
54176         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
54177
54178 2008-06-29  Bruno Haible  <bruno@clisp.org>
54179
54180         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
54181         EXTRA_DIST.
54182         Reported by Sylvain Beucler <beuc@beuc.net>.
54183
54184 2008-06-26  Jim Meyering  <meyering@redhat.com>
54185
54186         make several modules depend on the "open" module
54187         This provides slightly increased consistency when opening-for-write
54188         the name of a non-directory spelled with a trailing slash.
54189         * modules/chdir-safer: Likewise.
54190         * modules/chown: Likewise.
54191         * modules/clean-temp: Likewise.
54192         * modules/copy-file: Likewise.
54193         * modules/fchdir: Likewise.
54194         * modules/fcntl-safer: Likewise.
54195         * modules/pipe: Likewise.
54196         * modules/utime: Likewise.
54197         Prompted by Eric Blake and Bruno Haible.
54198
54199 2008-06-24  Andreas Schwab  <schwab@suse.de>
54200
54201         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
54202         literals can be used as initializers for global variables.
54203
54204 2008-06-23  Eric Blake  <ebb9@byu.net>
54205
54206         Make gnulib-cache.m4 easier to diff.
54207         * gnulib-tool (func_import): Allow newlines when reading cached
54208         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
54209
54210 2008-06-23  Bruno Haible  <bruno@clisp.org>
54211
54212         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
54213         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
54214         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
54215         m4/signalblocking.m4.
54216         (gl_PREREQ_SIGACTION): Don't invoke it.
54217         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
54218         gl_PREREQ_SIG_HANDLER_H.
54219         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54220         Don't check for sigaction here.
54221
54222 2008-06-23  Bruno Haible  <bruno@clisp.org>
54223
54224         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
54225         (install_handlers): Don't set the SA_RESETHAND flag.
54226
54227 2008-06-23  Bruno Haible  <bruno@clisp.org>
54228
54229         * m4/sigaction.m4: Comment fixes.
54230         * lib/signal.in.h: Likewise.
54231
54232 2008-06-23  Eric Blake  <ebb9@byu.net>
54233
54234         Fix typo.
54235         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
54236
54237         Avoid SA_ namespace.
54238         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
54239         Reported by Ralf Wildenhues.
54240
54241         Avoid test failure due to SA_RESTORER.
54242         * tests/test-sigaction.c (SA_MASK): New macro.
54243         (main): Avoid failing due to extension flags being set.
54244         Reported by Jim Meyering.
54245
54246         Revert use of sig-handler.h in sigprocmask.c.
54247         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
54248         it requires the existence of struct sigaction.
54249         * lib/sigprocmask.c (handler_t): Restore typedef.
54250         (rpl_signal, old_handlers): Use local type.
54251
54252 2008-06-22  Bruno Haible  <bruno@clisp.org>
54253
54254         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
54255         conditionally.
54256         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54257
54258 2008-06-22  Bruno Haible  <bruno@clisp.org>
54259
54260         * doc/posix-functions/siginterrupt.texi: Move note.
54261
54262         * lib/signal.in.h (SA_RESTART): New macro.
54263         * lib/sigaction.c: Update comment.
54264
54265         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
54266
54267         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
54268         (gl_PREREQ_SIGPROCMASK): Invoke it.
54269         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
54270
54271         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
54272
54273         * lib/sigprocmask.c: Update a comment.
54274
54275 2008-06-21  Eric Blake  <ebb9@byu.net>
54276
54277         Use sigaction module rather than signal().
54278         * modules/c-stack (Depends-on): Add sigaction.
54279         * modules/fatal-signal (Depends-on): Likewise.
54280         * modules/nanosleep (Depends-on): Likewise.
54281         * modules/sigprocmask (Files): Add sig-handler.h.
54282         * modules/sigaction (Files): Likewise.
54283         * lib/sig-handler.h (get_handler): New file, suggested by Paul
54284         Eggert.
54285         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
54286         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
54287         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
54288         (init_fatal_signals): Likewise.
54289         * lib/nanosleep.c (rpl_nanosleep): Likewise.
54290         (siginterrupt): Delete fallback.
54291         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
54292         instead.
54293         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
54294         siginterrupt.
54295
54296         New module sigaction, for mingw.
54297         * modules/sigaction: New module...
54298         * modules/sigaction-tests: ...and its test.
54299         * m4/sigaction.m4: New file.
54300         * lib/sigaction.c: Likewise.
54301         * tests/test-sigaction.c: Likewise.
54302         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
54303         * modules/signal (Makefile.am): Likewise.
54304         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
54305         needed.
54306         * doc/posix-headers/signal.texi (signal.h): Mention provided
54307         types.
54308         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
54309         that sigaction is preferable.
54310         * doc/posix-functions/sigaction.texi (sigaction): Mention new
54311         module.
54312         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54313         sigaction.
54314
54315         Improve robustness of sigprocmask by overriding signal.
54316         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
54317         is in use.
54318         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
54319         (SIGKILL, SIGSTOP): Provide fallbacks.
54320         (rpl_signal): Implement.
54321         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
54322         signal can be called inside handlers.
54323
54324         Fix nanosleep module on mingw.
54325         * modules/nanosleep (Depends-on): Add sys_select.
54326         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
54327
54328         Fix licensing of sigprocmask.
54329         * modules/raise (License): Relicense as LGPL.
54330
54331 2008-06-21  Bruno Haible  <bruno@clisp.org>
54332
54333         * lib/propername.c (proper_name_utf8): Don't use the transliterated
54334         result if it contains question marks.
54335         Reported by Michael Geng <linux@michaelgeng.de>.
54336
54337 2008-06-19  Bruno Haible  <bruno@clisp.org>
54338
54339         Fix CVS-ism.
54340         * doc/gnulib.texi: Include updated-stamp.texi.
54341         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
54342         (updated-stamp.texi): New rule.
54343         (gnulib.info): Depend on it.
54344         * doc/.gitignore: Add updated-stamp.texi.
54345         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
54346
54347 2008-06-19  Bruno Haible  <bruno@clisp.org>
54348
54349         * doc/Makefile (gnulib.info): Update and simplify dependencies.
54350         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54351
54352 2008-06-19  Eric Blake  <ebb9@byu.net>
54353
54354         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
54355         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
54356         Reported by Stepan Kasal.
54357
54358 2008-06-18  Bruno Haible  <bruno@clisp.org>
54359
54360         * lib/fatal-signal.c (init_fatal_signals): Add comment.
54361         Reported by Eric Blake.
54362
54363 2008-06-18  Eric Blake  <ebb9@byu.net>
54364
54365         Work around cygwin 1.5.25 strsignal bug.
54366         * tests/test-strsignal.c: Allow for const char *.
54367         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
54368
54369 2008-06-18  Simon Josefsson  <simon@josefsson.org>
54370
54371         * users.txt: Update URL to article and add author/date
54372         information.
54373
54374 2008-06-17  Bruno Haible  <bruno@clisp.org>
54375
54376         New macro gl_DISABLE_THREADS.
54377         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
54378         if the user did not pass --enable-threads or --disable-threads option.
54379         (gl_DISABLE_THREADS): New macro.
54380         Reported by Eric Blake <ebb9@byu.net>.
54381
54382 2008-06-17  Bruno Haible  <bruno@clisp.org>
54383
54384         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
54385         when the macro ignores it.
54386         Based on a patch by Eric Blake <ebb9@byu.net>.
54387
54388 2008-06-17  Bruno Haible  <bruno@clisp.org>
54389
54390         * modules/tls (License): Change to LGPLv2+.
54391         Reported by Eric Blake.
54392
54393 2008-06-17  Eric Blake  <ebb9@byu.net>
54394
54395         Simplify c-stack prerequisites.
54396         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
54397         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
54398         no longer requires <ucontext.h> to exist.  Optimize setrlimit
54399         check.
54400         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
54401         <sys/resource.h>.
54402
54403         Move c-stack test into testsuite.
54404         * modules/c-stack-tests: New file.
54405         * lib/c-stack.c [DEBUG]: Move test program...
54406         * tests/test-c-stack.c: ...into this new file.  Skip rather than
54407         fail test if sigaltstack is lacking.
54408         * tests/test-c-stack.sh: New driver file.
54409
54410 2008-06-16  Eric Blake  <ebb9@byu.net>
54411
54412         Use raise module consistently.
54413         * modules/fatal-signal (Depends-on): Add raise.
54414         * modules/sigprocmask (Depends-on): Likewise.
54415         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
54416         * lib/sigprocmask.c (sigprocmask): Likewise.
54417         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54418         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
54419
54420         Fix compliance bug in sigpending.
54421         * lib/sigprocmask.c (sigpending): Return pending array via
54422         parameter, not return value.
54423
54424 2008-06-14  Eric Blake  <ebb9@byu.net>
54425
54426         Improve obstack-printf test code.
54427         * tests/test-obstack-printf.c (test_function): Fix comment, and
54428         simplify usage of obstack_* in macros.  Add a test for coverage.
54429         Reported by Bruno Haible.
54430
54431 2008-06-14  Bruno Haible  <bruno@clisp.org>
54432
54433         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
54434         array size as a constant, not as a const variable.
54435         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
54436         AC_USE_SYSTEM_EXTENSIONS.
54437         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
54438         Test whether the obstack_printf function actually exists.
54439         * modules/obstack-printf (Depends-on): Add extensions.
54440         (Include): Remove obstack.h.
54441         * modules/obstack-printf-posix (Depends-on): Add extensions.
54442         (Include): Remove obstack.h.
54443
54444 2008-06-13  Eric Blake  <ebb9@byu.net>
54445
54446         Add obstack-printf and obstack-printf-posix modules.
54447         * modules/obstack-printf: New file.
54448         * modules/obstack-printf-posix: Likewise.
54449         * MODULES.html.sh (Misc): Mention them.
54450         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
54451         Likewise.
54452         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
54453         Likewise.
54454         * modules/stdio (Makefile.am): Accomodate new modules.
54455         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54456         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
54457         Declare.
54458         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
54459         functions.
54460         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
54461         (gl_REPLACE_OBSTACK_PRINTF): New macros
54462         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
54463         * tests/test-obstack-printf.c: New file.
54464         * modules/obstack-printf-tests: Likewise.
54465         * modules/obstack-printf-posix-tests: Likewise.
54466
54467 2008-06-11  Bruno Haible  <bruno@clisp.org>
54468
54469         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
54470         * lib/open.c: Include errno.h.
54471         (open): Fail when attempting to write to a file that has a trailing
54472         slash.
54473         * tests/test-open.c (main): Test against trailing slash bug.
54474         * doc/posix-functions/open.texi: Mention the trailing slash bug.
54475
54476 2008-06-10  Bruno Haible  <bruno@clisp.org>
54477
54478         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
54479         for $? to work inside the trap command, with various /bin/sh-s.
54480         * tests/test-vc-list-files-cvs.sh: Likewise.
54481
54482 2008-06-10  Bruno Haible  <bruno@clisp.org>
54483
54484         * lib/acl-internal.h: Don't include gettext.h here.
54485         * lib/set-mode-acl.c: Include gettext.h here.
54486         * lib/copy-acl.c: Likewise.
54487
54488 2008-06-10  Bruno Haible  <bruno@clisp.org>
54489
54490         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
54491         * lib/wait-process.c (wait_subprocess): Likewise.
54492         * lib/execute.h (execute): Add termsigp argument.
54493         * lib/execute.c (execute): Likewise.
54494         * lib/csharpcomp.c (compile_csharp_using_pnet,
54495         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
54496         * lib/csharpexec.c (execute_csharp_using_pnet,
54497         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
54498         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
54499         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
54500         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
54501         is_jikes_present): Update.
54502         * lib/javaexec.c (execute_java_class): Update.
54503         * lib/javaversion.c (execute_and_read_line): Update.
54504         * NEWS: Document the changes.
54505         Reported by Eric Blake.
54506
54507 2008-06-10  Eric Blake  <ebb9@byu.net>
54508
54509         Add missing include.
54510         * tests/test-strstr.c (includes): Add <signal.h>.
54511         * tests/test-strcasestr.c (includes): Likewise.
54512         * tests/test-memmem.c (includes): Likewise.
54513
54514 2008-06-10  Bruno Haible  <bruno@clisp.org>
54515
54516         * lib/wait-process.c (wait_subprocess): Add an assertion.
54517
54518 2008-06-10  Bruno Haible  <bruno@clisp.org>
54519
54520         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
54521
54522 2008-06-10  Bruno Haible  <bruno@clisp.org>
54523
54524         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
54525         using alarm().
54526         * tests/test-strcasestr.c (main): Likewise.
54527         * tests/test-strstr.c (main): Likewise.
54528
54529 2008-06-09  Bruno Haible  <bruno@clisp.org>
54530
54531         Work around the Solaris 10 ACE ACLs ABI change.
54532         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
54533         declare if ACL_NO_TRIVIAL is present.
54534         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
54535         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
54536         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
54537         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
54538         define if ACL_NO_TRIVIAL is present.
54539         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
54540         and use the current ABI.
54541         (file_has_acl): Use same #if condition as elsewhere.
54542         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
54543         in use, and use the current ABI.
54544         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
54545         Reported by Jim Meyering.
54546
54547 2008-06-09  Eric Blake  <ebb9@byu.net>
54548
54549         Work around environments that (stupidly) ignore SIGALRM.
54550         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
54551         before using alarm().
54552         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54553         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54554         Reported by Ian Beckwith <ianb@erislabs.net>.
54555
54556         Produce autobuild blurb earlier in log.
54557         * modules/autobuild (configure.ac-early): Move AB_INIT here.
54558
54559 2008-06-09  Jim Meyering  <meyering@redhat.com>
54560         and OndÅ™ej Vašík  <ovasik@redhat.com>
54561
54562         utimens.c: correct kernel bug work-around
54563         OndÅ™ej Vašík found that the invalid return value of 280 indicates
54564         failure, not success, and the kernel bug we're trying to work
54565         around affects not just the utimensat call, but also the fallback
54566         futimens call.
54567         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
54568         not success.
54569         [HAVE_FUTIMENS]: Use the same work-around, here.
54570
54571 2008-06-09  Jim Meyering  <meyering@redhat.com>
54572
54573         add more guards around definition of ACE_-related code
54574         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
54575         ALLOW and ACE_OWNER are also defined.
54576
54577 2008-06-08  Bruno Haible  <bruno@clisp.org>
54578
54579         * lib/acl-internal.h: Add me as co-author.
54580         * lib/file-has-acl.c: Likewise.
54581         * lib/set-mode-acl.c: Likewise.
54582         * lib/copy-acl.c: Likewise.
54583
54584 2008-06-08  Bruno Haible  <bruno@clisp.org>
54585
54586         Add support for AIX ACLs.
54587         * lib/acl-internal.h (acl_nontrivial): New declaration.
54588         * lib/file-has-acl.c (acl_nontrivial): New function.
54589         (file_has_acl): Add implementation using AIX 4 ACL API.
54590         * lib/set-mode-acl.c (qset_acl): Likewise.
54591         * lib/copy-acl.c (qcopy_acl): Likewise.
54592
54593 2008-06-08  Bruno Haible  <bruno@clisp.org>
54594
54595         Add support for HP-UX ACLs.
54596         * lib/acl-internal.h (acl_nontrivial): New declaration.
54597         * lib/file-has-acl.c (acl_nontrivial): New function.
54598         (file_has_acl): Add implementation using HP-UX 11 ACL API.
54599         * lib/set-mode-acl.c (qset_acl): Likewise.
54600         * lib/copy-acl.c (qcopy_acl): Likewise.
54601
54602 2008-06-08  Bruno Haible  <bruno@clisp.org>
54603
54604         Add support for Cygwin ACLs.
54605         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
54606         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
54607         the chmod_or_fchmod call.
54608         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
54609
54610 2008-06-08  Bruno Haible  <bruno@clisp.org>
54611
54612         Fix bug with setuid modes in Solaris 10+ code.
54613         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
54614         succeeded, when the mode contains some special bits.
54615
54616 2008-06-08  Bruno Haible  <bruno@clisp.org>
54617
54618         Add support for Solaris 7..10 ACLs.
54619         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
54620         declarations.
54621         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
54622         functions.
54623         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
54624         * lib/set-mode-acl.c (qset_acl): Likewise.
54625         * lib/copy-acl.c (qcopy_acl): Likewise.
54626
54627 2008-06-08  Bruno Haible  <bruno@clisp.org>
54628
54629         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
54630         declaration.
54631         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
54632         (acl_access_nontrivial): Remove MacOS X case.
54633         (file_has_acl): Use acl_extended_nontrivial.
54634         * lib/copy-acl.c (qcopy_acl): Likewise.
54635
54636 2008-06-08  Bruno Haible  <bruno@clisp.org>
54637
54638         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
54639
54640 2008-06-08  Jim Meyering  <meyering@redhat.com>
54641
54642         * modules/acl (Maintainer): Add Bruno Haible.
54643
54644 2008-06-07  Bruno Haible  <bruno@clisp.org>
54645
54646         Improve support for Tru64 ACLs.
54647         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
54648         ACL on OSF/1.
54649
54650 2008-06-07  Bruno Haible  <bruno@clisp.org>
54651
54652         Add support for MacOS X ACLs.
54653         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
54654         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
54655         * lib/set-mode-acl.c (qset_acl): Likewise.
54656         * lib/copy-acl.c (qcopy_acl): Likewise.
54657
54658 2008-06-07  Bruno Haible  <bruno@clisp.org>
54659
54660         Fix memory leak introduced on 2008-05-22.
54661         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
54662         use.
54663
54664 2008-06-07  Bruno Haible  <bruno@clisp.org>
54665
54666         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
54667         to construct an empty ACL.
54668
54669 2008-06-07  Bruno Haible  <bruno@clisp.org>
54670
54671         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
54672         precisely.
54673         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
54674
54675 2008-06-07  Bruno Haible  <bruno@clisp.org>
54676
54677         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
54678         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
54679
54680 2008-06-07  Bruno Haible  <bruno@clisp.org>
54681
54682         * doc/posix-functions/_setjmp.texi: Explain the use of this function
54683         regardless of POSIX.
54684         * doc/posix-functions/_longjmp.texi: Likewise.
54685         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
54686         SystemV platform in this case.
54687
54688 2008-06-06  Eric Blake  <ebb9@byu.net>
54689
54690         Document abort() bugs.
54691         * doc/posix-functions/abort.texi (abort): Mention anomalies.
54692
54693         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
54694         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
54695         sigsetjmp.
54696         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
54697         siglongjmp, but only as a macro.
54698         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
54699         is obsolete.
54700         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
54701
54702         Tweak documentation to cover cygwin argz bugs.
54703         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
54704         argz bug fix; no code change needed since no cygwin releases
54705         occurred between the last fix and the bug being tested.
54706         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
54707         module and recently fixed cygwin bugs.
54708         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
54709         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
54710         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
54711         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
54712         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
54713         Likewise.
54714         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
54715         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
54716         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
54717         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
54718         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
54719         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
54720         Likewise.
54721
54722         Avoid gcc warning on cygwin.
54723         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
54724         !ACL_NO_TRIVIAL]: Avoid unused variable.
54725
54726 2008-06-05  Eric Blake  <ebb9@byu.net>
54727
54728         Be tolerant of UNKNOWN version in gnulib-tool test dir.
54729         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
54730         git-version-gen fails to come up with a version.
54731         Reported by Simon Josefsson.
54732
54733 2008-06-05  Jim Meyering  <meyering@redhat.com>
54734             Paul Eggert  <eggert@cs.ucla.edu>
54735
54736         utimens.c: work around a probable Linux kernel bug
54737         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
54738         appears to be a kernel bug that causes utimensat to return 280
54739         instead of 0, indicating success.
54740
54741 2008-06-04  Bruno Haible  <bruno@clisp.org>
54742
54743         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
54744         2008-06-01 commit.
54745
54746 2008-06-04  Bruno Haible  <bruno@clisp.org>
54747
54748         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
54749         * lib/file-has-acl.c (acl_access_nontrivial): New function.
54750         (file_has_acl): Use it. Save errno afterwards.
54751         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
54752
54753 2008-06-03  Bruno Haible  <bruno@clisp.org>
54754
54755         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
54756         draft code. Simplify #ifs.
54757         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
54758         Put Solaris code after POSIX-draft code. Fix comments regarding
54759         Solaris 10, HP-UX. Mention Cygwin.
54760         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
54761
54762 2008-06-03  Eric Blake  <ebb9@byu.net>
54763
54764         Provide fallback for older kernels.
54765         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
54766         Provide runtime fallback if kernel lacks support.
54767         Reported by Mike Frysinger.
54768
54769 2008-06-02  Bruno Haible  <bruno@clisp.org>
54770
54771         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
54772         it exists.
54773
54774 2008-06-02  Bruno Haible  <bruno@clisp.org>
54775
54776         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
54777         * lib/copy-acl.c (qcopy_acl): Update comment.
54778
54779 2008-06-02  Bruno Haible  <bruno@clisp.org>
54780
54781         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
54782         like ACL APIs.
54783
54784 2008-06-02  Bruno Haible  <bruno@clisp.org>
54785
54786         * tests/test-file-has-acl.sh: Use different code for Cygwin.
54787         * tests/test-set-mode-acl.sh: Likewise.
54788         * tests/test-copy-acl.sh: Likewise.
54789         * tests/test-copy-file.sh: Likewise.
54790
54791 2008-06-02  Bruno Haible  <bruno@clisp.org>
54792
54793         * tests/test-file-has-acl.sh: Remove unused code.
54794
54795 2008-06-01  Bruno Haible  <bruno@clisp.org>
54796
54797         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
54798         (copy_acl): Just a wrapper around qcopy_acl that emits the error
54799         messages.
54800         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
54801
54802 2008-06-01  Bruno Haible  <bruno@clisp.org>
54803
54804         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
54805         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
54806         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
54807         APIs.
54808         * modules/acl-tests (configure.ac): Remove tests now contained in
54809         m4/acl.m4.
54810
54811 2008-06-02  Jim Meyering  <meyering@redhat.com>
54812
54813         announce-gen: use a better key-server host name
54814         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
54815         it may be more consistently reliable.  Suggested by Werner Koch
54816         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
54817
54818 2008-06-01  Bruno Haible  <bruno@clisp.org>
54819
54820         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
54821         Reported by Voroskoi Andras <voroskoi@gmail.com>.
54822
54823 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
54824
54825         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
54826
54827 2008-06-01  Bruno Haible  <bruno@clisp.org>
54828
54829         New ACL tests.
54830         * tests/test-file-has-acl.sh: New file.
54831         * tests/test-file-has-acl.c: New file.
54832         * tests/test-set-mode-acl.sh: New file.
54833         * tests/test-set-mode-acl.c: New file.
54834         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
54835         * tests/test-copy-acl.c: New file.
54836         * modules/acl-tests: New file, based on modules/copy-file-tests.
54837         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
54838         (Depends-on): Add acl-tests.
54839         (configure.ac): Remove checks.
54840         (Makefile.am): Don't create test-sameacls program here any more.
54841
54842 2008-06-01  Bruno Haible  <bruno@clisp.org>
54843
54844         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
54845         * tests/test-sameacls.c: Include progname.h.
54846         (main): Invoke set_program_name. Portability fixes for MacOS X,
54847         Solaris, HP-UX.
54848
54849 2008-06-01  Bruno Haible  <bruno@clisp.org>
54850
54851         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
54852         function.
54853         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
54854
54855 2008-06-01  Bruno Haible  <bruno@clisp.org>
54856
54857         * modules/rpmatch (Depends-on): Add strdup.
54858
54859 2008-06-01  Bruno Haible  <bruno@clisp.org>
54860
54861         * lib/pipe.c: Include unistd-safer.h.
54862         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
54863         * modules/pipe (Depends-on): Add unistd-safer.
54864
54865 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54866
54867         * modules/autobuild (configure.ac): Call AB_INIT.
54868
54869 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54870
54871         * tests/test-getaddrinfo.c: Don't print debug messages by default.
54872         Suggested by Bruno Haible <bruno@clisp.org>.
54873
54874 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54875
54876         * tests/test-base64.c: Cast size_t to unsigned long when invoking
54877         printf.  Use %lu instead of %d.  Reported by Bruno Haible
54878         <bruno@clisp.org>.
54879
54880 2008-05-29  Eric Blake  <ebb9@byu.net>
54881
54882         Prefer new POSIX 200x interfaces over futimesat.
54883         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
54884         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
54885         when available.
54886         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
54887
54888 2008-05-28  Bruno Haible  <bruno@clisp.org>
54889
54890         * modules/stpcpy (License): Change to LGPLv2+.
54891         Requested by David Lutterkort <dlutter@redhat.com>.
54892
54893 2008-05-27  Bruno Haible  <bruno@clisp.org>
54894
54895         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
54896         current mingw.
54897         Reported by Jose E. Marchesi <jemarch@gnu.org>.
54898
54899 2008-05-27  Bruno Haible  <bruno@clisp.org>
54900
54901         * modules/iconv_open (Link): New section, from module 'iconv'.
54902         * modules/striconv (Link): Likewise.
54903         * modules/striconveh (Link): Likewise.
54904         * modules/xstriconv (Link): Likewise.
54905         * modules/unicodeio (Link): Likewise.
54906         * modules/propername (Link): Likewise.
54907         Reported by Jim Meyering.
54908
54909 2008-05-26  Jim Meyering  <meyering@redhat.com>
54910
54911         sha256: do not artificially restrict buffer length to be < 2^32
54912         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
54913         uint32_t to size_t.
54914         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
54915         to match.
54916
54917         avoid unaligned access errors, e.g., on sparc
54918         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
54919         direct access through a possibly-unaligned uint64* pointer.
54920         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
54921         direct access through a possibly-unaligned uint32* pointer.
54922         Prompted by this patch from Tom "spot" Callaway:
54923         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
54924
54925         sha512.c: fix typo in comment
54926         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
54927
54928 2008-05-25  Bruno Haible  <bruno@clisp.org>
54929
54930         * lib/set-mode-acl.c: Renamed from lib/acl.c.
54931         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
54932         (Makefile.am): Update lib_SOURCES.
54933
54934 2008-05-25  Bruno Haible  <bruno@clisp.org>
54935
54936         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
54937
54938 2008-05-25  Jim Meyering  <meyering@redhat.com>
54939
54940         useless-if-before-free: freed expr may have white-space differences
54941         * build-aux/useless-if-before-free: Recognize cases in which the
54942         freed expression differs from the tested one in embedded white
54943         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
54944         $1 was used, so we can't make any regexp shy.  Improved tests now
54945         detect this.
54946
54947         useless-if-before-free: accept white space in the expression.
54948         * build-aux/useless-if-before-free: For now, any white space
54949         in the expression must be identical in the free argument.
54950
54951         useless-if-before-free: efficiency tweak
54952         * build-aux/useless-if-before-free: Make the expression-matching
54953         regexp "shy".
54954         Make the *outer* regexp shy, not the expr-matching one.
54955
54956         update code-in-comment to accept cast of free arg
54957         * build-aux/useless-if-before-free: Update regexp.
54958
54959 2008-05-25  Bruno Haible  <bruno@clisp.org>
54960
54961         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
54962         * modules/copy-file-tests (Files, Makefile.am): Update.
54963         * tests/test-copy-file.c (func_test_copy): Update.
54964
54965 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
54966
54967         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
54968
54969 2008-05-23  Bruno Haible  <bruno@clisp.org>
54970
54971         Improve support for ACLs on OSF/1.
54972         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
54973         Remove fallback for unknown flavors of ACLs.
54974
54975 2008-05-22  Bruno Haible  <bruno@clisp.org>
54976
54977         Add support for ACLs on OSF/1.
54978         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
54979         replacements.
54980         (acl_free_text): New macro fallback.
54981         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
54982         acl_free.
54983         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
54984         acl_free_text function. Require AC_C_INLINE.
54985
54986 2008-05-22  Bruno Haible  <bruno@clisp.org>
54987
54988         Make copy_acl work on MacOS X 10.5.
54989         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
54990         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
54991         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
54992         If MODE_INSIDE_ACL, don't assume that every system has the same text
54993         representation for ACLs as FreeBSD.
54994         * lib/copy-acl.c (copy_acl): Add support for platforms with
54995         !MODE_INSIDE_ACL.
54996         * lib/file-has-acl.c (file_has_acl): Likewise.
54997         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
54998         FreeBSD, MacOS X, or IRIX, respectively.
54999
55000 2008-05-22  Bruno Haible  <bruno@clisp.org>
55001
55002         * lib/acl.h: Don't include <sys/acl.h>.
55003         (GETACLCNT): Move fallback to lib/acl-internal.h.
55004         * lib/acl-internal.h: Include <sys/acl.h> here.
55005         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
55006
55007 2008-05-22  Bruno Haible  <bruno@clisp.org>
55008
55009         Split off copy_acl function to separate file.
55010         * lib/copy-acl.c: New file, extracted from lib/acl.c.
55011         * lib/acl.c (copy_acl): Moved function to separate file.
55012         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
55013         * modules/acl (Files): Add lib/copy-acl.c.
55014         (Makefiles.am): Augment lib_SOURCES.
55015
55016 2008-05-22  Bruno Haible  <bruno@clisp.org>
55017
55018         * modules/copy-file-tests: New file.
55019         * tests/test-copy-file.sh: New file.
55020         * tests/test-copy-file.c: New file.
55021         * tests/test-copy-file-sameacls.c: New file.
55022
55023 2008-05-22  Eric Blake  <ebb9@byu.net>
55024
55025         Avoid gcc warning.
55026         * tests/test-memcmp.c (main): Pass NULL indirectly.
55027
55028 2008-05-21  Bruno Haible  <bruno@clisp.org>
55029
55030         Add reference doc about ACLs.
55031         * doc/acl-resources.txt: New file.
55032         * doc/acl-cygwin.txt: New file.
55033
55034 2008-05-21  Bruno Haible  <bruno@clisp.org>
55035
55036         Avoid one more warning from gcc.
55037         * lib/vasnprintf.c (IF_LINT): Update comments.
55038         (VASNPRINTF): Use it also for the 'prefix' array initializer.
55039
55040 2008-05-21  Jim Meyering  <meyering@redhat.com>
55041
55042         avoid a warning from gcc
55043         * lib/vasnprintf.c (IF_LINT): Define.
55044         (scale10_round_decimal_long_double):
55045         Use it to avoid a "may be used uninitialized" warning.
55046         (scale10_round_decimal_double): Likewise.
55047
55048 2008-05-21  Simon Josefsson  <simon@josefsson.org>
55049
55050         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
55051         declared.
55052
55053 2008-05-20  Bruno Haible  <bruno@clisp.org>
55054
55055         * tests/test-memcmp.c (main): Test also the sign of the result. Test
55056         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
55057
55058 2008-05-20  Simon Josefsson  <simon@josefsson.org>
55059
55060         * modules/memcmp-tests: New file.
55061         * tests/test-memcmp.c: New file.
55062
55063 2008-05-19  Bruno Haible  <bruno@clisp.org>
55064
55065         * modules/propername (Notice, configure.ac): Put quoted "..." into
55066         --keyword option.
55067         * lib/propername.h: Update comments accordingly.
55068         Reported by Eric Blake.
55069
55070 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
55071
55072         * modules/getpass-gnu (Depends-on): Add fseeko.
55073
55074 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55075
55076         * modules/base64-tests: New file.
55077
55078 2008-05-19  Bo Borgerson <gigabo@gmail.com>
55079
55080         * lib/base64.c (base64_decode_ctx): If a decode context structure
55081         was passed in use it to ignore newlines.  If a context structure
55082         was _not_ passed in, continue to treat newlines as garbage (this
55083         is the historical behavior).  Formerly base64_decode.
55084         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55085         takes a decode context structure.
55086         * lib/base64.h (base64_decode): Macro for four-argument calls.
55087         (base64_decode_alloc): Likewise.
55088         * lib/base64.c (base64_decode_ctx): If a decode context structure
55089         was passed in use it to ignore newlines.  If a context structure
55090         was _not_ passed in, continue to treat newlines as garbage (this
55091         is the historical behavior).  Formerly base64_decode.
55092         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55093         takes a decode context structure.
55094         * lib/base64.h (base64_decode): Macro for four-argument calls.
55095         (base64_decode_alloc): Likewise.
55096
55097 2008-05-19  Jim Meyering  <meyering@redhat.com>
55098
55099         avoid a warning from gcc
55100         * lib/trim.c (IF_LINT): Define.
55101         (trim2): Use it to avoid a "may be used uninitialized" warning.
55102
55103         Fix doc typo.
55104         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
55105
55106 2008-05-19  Bruno Haible  <bruno@clisp.org>
55107
55108         * doc/glibc-functions/getpass.texi: Document limits of other
55109         implementations.
55110
55111 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55112             Bruno Haible <bruno@clisp.org>
55113
55114         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
55115
55116 2008-05-18  Bruno Haible  <bruno@clisp.org>
55117
55118         * modules/propername: New file, from GNU gettext.
55119         * lib/propername.h: New file, from GNU gettext.
55120         * lib/propername.c: New file, from GNU gettext.
55121         * MODULES.html.sh (Internationalization functions): Add propername.
55122
55123 2008-05-16  Jim Meyering  <meyering@redhat.com>
55124             Bruno Haible  <bruno@clisp.org>
55125
55126         Avoid some warnings from "gcc -Wshadow".
55127         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
55128
55129 2008-05-15  Eric Blake  <ebb9@byu.net>
55130
55131         Extend previous patch to cygwin 1.7.0.
55132         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
55133         fast implementation in cygwin >= 1.7.0.
55134         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55135         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55136
55137 2008-05-15  Bruno Haible  <bruno@clisp.org>
55138
55139         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
55140         implementation in glibc >= 2.9.
55141         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55142         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55143
55144 2008-05-15  Bruno Haible  <bruno@clisp.org>
55145
55146         * MODULES.html.sh (Internationalization functions): Remove linebreak.
55147         (Unicode string functions): Add unilbrk/*.
55148         Reported by Karl Berry.
55149
55150 2008-05-15  Eric Blake  <ebb9@byu.net>
55151
55152         Fix violation of <stdbool.h> replacement in regex.
55153         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
55154         * lib/regexec.c (re_search_internal): Likewise.
55155         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
55156
55157 2008-05-15  Jim Meyering  <meyering@redhat.com>
55158
55159         avoid distracting test output when git or cvs is not found
55160         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
55161         * tests/test-vc-list-files-git.sh: Likewise.
55162
55163 2008-05-15  Eric Blake  <ebb9@byu.net>
55164
55165         Glibc finally accepted the memmem speedup code, bugzilla #5514.
55166         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
55167         glibc version.
55168         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
55169         * doc/posix-functions/strstr.texi (strstr): Likewise.
55170         * lib/str-two-way.h (MAX): Sychronize with glibc.
55171
55172 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
55173
55174         * lib/regcomp.c (optimize_utf8): Add a note on why we test
55175         opr.ctx_type.
55176         (calc_first): Initialize constraint field.
55177         (duplicate_node_closure): Use it instead of special casing ANCHORS.
55178         Fix grammar.
55179         (duplicate_node): Merge constraint field for all node types.
55180         (calc_eclosure_iter): Look at constraint field for all node types.
55181         * lib/regex_internal.c (create_cd_newstate): Don't look at
55182         opr.ctx_type.
55183
55184 2008-05-14  Bruno Haible  <bruno@clisp.org>
55185
55186         Help GCC to do better code generation.
55187         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
55188         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
55189         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
55190         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
55191         Declare with attribute 'malloc' if supported.
55192
55193 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
55194
55195         use "echo STR|wc -c" rather than unportable "expr length STR"
55196         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
55197         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
55198
55199 2008-05-14  Jim Meyering  <meyering@redhat.com>
55200
55201         use dd ibs=$n count=1 ... rather than less-portable head -c$n
55202         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
55203         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
55204         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
55205         via Collin Lasse.
55206
55207 2008-05-14  Eric Blake  <ebb9@byu.net>
55208
55209         Avoid quadratic growth in gl_LIBSOURCES.
55210         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
55211         Suggested by Bruno Haible.
55212
55213         Test xmemdup0.
55214         * modules/xmemdup0-tests: New file.
55215         * tests/test-xmemdup0.c: Likewise.
55216
55217 2008-05-13  Eric Blake  <ebb9@byu.net>
55218
55219         Split xmemdup0 into its own module.
55220         * modules/xmemdup0: New file.
55221         * lib/xmemdup0.h: Likewise.
55222         * lib/xmemdup0.c: Likewise.
55223         * MODULES.html.sh (Memory management functions): Add xmemdup0.
55224         * lib/xalloc.h (xmemdup0): Remove.
55225         * lib/xmalloc.c (xmemdup0): Likewise.
55226
55227 2008-05-13  Eric Blake  <ebb9@byu.net>
55228             Bruno Haible  <bruno@clisp.org>
55229
55230         Reduce number of forks required during autoconf.
55231         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
55232         and gl_LIBSOURCES_DIR.
55233         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
55234         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
55235         m4_syscmd per file.
55236         <m4_foreach_w>: Move...
55237         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
55238
55239 2008-05-13  Eric Blake  <ebb9@byu.net>
55240
55241         * gnulib-tool: Fix various comment typos.
55242
55243 2008-05-12  Bruno Haible  <bruno@clisp.org>
55244
55245         Tailor the linebreaking algorithm.
55246         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
55247
55248 2008-05-12  Bruno Haible  <bruno@clisp.org>
55249
55250         Update to Unicode 5.0.0.
55251         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55252         LBP_JV, LBP_JT. Redistribute values.
55253         (unilbrk_table): Change size.
55254         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
55255         Unicode TR#14 rev. 22.
55256         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55257         LBP_JV, LBP_JT. Redistribute values.
55258         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
55259         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
55260         Update.
55261         * lib/unilbrk/lbrkprop1.h: Regenerated.
55262         * lib/unilbrk/lbrkprop2.h: Regenerated.
55263         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
55264         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
55265         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
55266         Likewise.
55267         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
55268         Likewise.
55269         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
55270         result.
55271         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
55272         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
55273         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
55274         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
55275         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
55276         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
55277
55278 2008-05-11  Bruno Haible  <bruno@clisp.org>
55279
55280         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
55281
55282 2008-05-11  Bruno Haible  <bruno@clisp.org>
55283
55284         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
55285         * modules/unilbrk/gen-lbrk: New file.
55286
55287 2008-05-11  Bruno Haible  <bruno@clisp.org>
55288
55289         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
55290         * m4/sha512.m4 (gl_SHA512): Likewise.
55291
55292 2008-05-11  Jim Meyering  <meyering@redhat.com>
55293
55294         New modules: crypto/sha256, crypto/sha512 (from coreutils)
55295         * modules/crypto/sha256: New file.
55296         * modules/crypto/sha512: Likewise.
55297         * lib/sha256.c: Likewise.
55298         * lib/sha256.h: Likewise.
55299         * lib/sha512.c: Likewise.
55300         * lib/sha512.h: Likewise.
55301         * lib/u64.h: Likewise.
55302         * m4/sha256.m4: Likewise.
55303         * m4/sha512.m4: Likewise.
55304         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
55305
55306 2008-05-10  Bruno Haible  <bruno@clisp.org>
55307
55308         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
55309         (Input/Output <stdio.h>): Add xprintf.
55310         (Signal handling <signal.h>): Add strsignal.
55311         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
55312         (Core language properties): Add func.
55313         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
55314         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
55315         strings.
55316         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
55317         (Input/output): New section.
55318         (File system functions): Add openat-die, stat-macros.
55319         (Networking functions): Add sockets.
55320         (Unicode string functions): Add unictype/*.
55321         (Support for building libraries and executables): Add gperf.
55322         (Support for building documentation): Add agpl-3.0.
55323         (Misc): Add nocrash.
55324
55325 2008-05-10  Bruno Haible  <bruno@clisp.org>
55326
55327         * modules/unictype/gen-ctype: New file.
55328
55329 2008-05-10  Jim Meyering  <meyering@redhat.com>
55330
55331         Make chdir-safer.c more efficient on a system with no symlinks.
55332         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
55333         also if ELOOP is zero.  Suggested by Bruno Haible.
55334
55335         Make chdir-safer.c slightly safer.
55336         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
55337         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
55338
55339         Avoid compile failure on systems without ELOOP (like mingw).
55340         * lib/chdir-safer.c (ELOOP): Define if not already defined.
55341         Reported by Bruno Haible.
55342
55343 2008-05-10  Bruno Haible  <bruno@clisp.org>
55344
55345         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
55346         (is_utf8_encoding): Use a case-insensitive comparison.
55347         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
55348         streq.
55349
55350 2008-05-10  Bruno Haible  <bruno@clisp.org>
55351
55352         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
55353         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
55354         * lib/unilbrk/ulc-common.h (iconv_string_length,
55355         iconv_string_keeping_offsets): Remove declarations.
55356         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
55357         Don't include <iconv.h>, streq.h, xsize.h.
55358         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
55359         conversion.
55360         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
55361         <iconv.h>, streq.h, xsize.h.
55362         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
55363         conversion.
55364         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
55365         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
55366         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
55367         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
55368
55369 2008-05-10  Bruno Haible  <bruno@clisp.org>
55370
55371         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
55372         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
55373
55374         * modules/unilbrk/u32-width-linebreaks-tests: New file.
55375         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
55376
55377         * modules/unilbrk/u16-width-linebreaks-tests: New file.
55378         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
55379
55380         * modules/unilbrk/u8-width-linebreaks-tests: New file.
55381         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
55382
55383         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
55384         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
55385
55386         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
55387         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
55388
55389         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
55390         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
55391
55392         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
55393         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
55394
55395 2008-05-10  Bruno Haible  <bruno@clisp.org>
55396
55397         Split up 'linebreak' module.
55398         * lib/unilbrk.h: New file, based on lib/linebreak.h.
55399         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
55400         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
55401         modifications.
55402         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
55403         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
55404         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
55405         lib/linebreak.c.
55406         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
55407         lib/linebreak.c.
55408         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
55409         lib/linebreak.c.
55410         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
55411         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
55412         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
55413         lib/linebreak.c.
55414         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
55415         lib/linebreak.c.
55416         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
55417         lib/linebreak.c.
55418         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
55419         lib/linebreak.c.
55420         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
55421         lib/linebreak.c.
55422         * modules/unilbrk/base: New file.
55423         * modules/unilbrk/tables: New file.
55424         * modules/unilbrk/u8-possible-linebreaks: New file.
55425         * modules/unilbrk/u16-possible-linebreaks: New file.
55426         * modules/unilbrk/u32-possible-linebreaks: New file.
55427         * modules/unilbrk/ulc-common: New file.
55428         * modules/unilbrk/ulc-possible-linebreaks: New file.
55429         * modules/unilbrk/u8-width-linebreaks: New file.
55430         * modules/unilbrk/u16-width-linebreaks: New file.
55431         * modules/unilbrk/u32-width-linebreaks: New file.
55432         * modules/unilbrk/ulc-width-linebreaks: New file.
55433         * lib/linebreak.h: Remove file.
55434         * lib/linebreak.c: Remove file.
55435         * m4/linebreak.m4: Remove file.
55436         * modules/linebreak: Remove file.
55437         * NEWS: Mention the changes.
55438
55439 2008-05-09  Eric Blake  <ebb9@byu.net>
55440
55441         Add xmemdup0.
55442         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
55443         implementation.
55444         * lib/xmalloc.c (xmemdup0): New C implementation.
55445
55446 2008-05-08  Bruno Haible  <bruno@clisp.org>
55447
55448         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
55449
55450 2008-05-07  Eric Blake  <ebb9@byu.net>
55451
55452         Support cross-compilation of <wctype.h>.
55453         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
55454         AC_CACHE_CHECK.
55455
55456 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
55457
55458         * build-aux/vc-list-files: Add support for bzr.
55459
55460 2008-05-03  Jim Meyering  <meyering@redhat.com>
55461
55462         avoid failed assertion with tight malloc
55463         * tests/test-getndelim2.c: Correct an off-by-one assertion.
55464
55465 2008-05-03  Simon Josefsson  <simon@josefsson.org>
55466
55467         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
55468         are needed from arpa/inet.h.
55469         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
55470         Reported by Bruno Haible.
55471
55472 2008-05-02  Jim Meyering  <meyering@redhat.com>
55473
55474         avoid compilation error on FreeBSD 6
55475         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
55476
55477 2008-05-01  Jim Meyering  <meyering@redhat.com>
55478
55479         useless-if-before-free: correct --help's exit status description
55480         * build-aux/useless-if-before-free (usage): Like grep, exit 0
55481         for one or more matches, etc.  Reported by Bruno Haible.
55482
55483         vc-list-files: make the stand-alone gnulib test work
55484         * modules/vc-list-files-tests (configure.ac):
55485         Define and AC_SUBST abs_aux_dir.
55486         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
55487         $(abs_top_srcdir) to each script and having each of them
55488         duplicate the work of setting PATH, set PATH here, using
55489         the new variable, abs_aux_dir instead.
55490         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
55491         * tests/test-vc-list-files-git.sh: Likewise.
55492         Reported by Bruno Haible.
55493
55494 2008-05-01  Bruno Haible  <bruno@clisp.org>
55495
55496         * lib/getndelim2.c (getndelim2): Fix newsize computation during
55497         reallocation. Rename 'done' to 'found_delimiter'.
55498
55499 2008-05-01  Jim Meyering  <meyering@redhat.com>
55500
55501         vc-list-files: accommodate /bin/sh like the one from Solaris 10
55502         * build-aux/vc-list-files: Use `...`, not $(...).
55503
55504 2008-04-30  Jim Meyering  <meyering@redhat.com>
55505
55506         add tests for vc-list-files
55507         * modules/vc-list-files-tests: New module.
55508         * tests/test-vc-list-files-cvs.sh: New file.
55509         * tests/test-vc-list-files-git.sh: New file.
55510
55511         avoid a warning from gcc
55512         * lib/getndelim2.c (IF_LINT): Define.
55513         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
55514
55515         vc-list-files: work properly with build-aux/cvsu, too
55516         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
55517         to all cvs-based clauses.
55518
55519         vc-list-files: work properly in the CVS+awk case, too
55520         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
55521
55522         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
55523         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
55524         take more than one file argument, so .  Add quotes, just in case $dir
55525         ever contains a shell meta-character.  Prompted by Soren Hansen in
55526         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
55527
55528 2008-04-29  Eric Blake  <ebb9@byu.net>
55529
55530         Optimize getndelim2 to use block operations when possible.
55531         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
55532         freadseek, and memchr2.
55533         * lib/getndelim2.c (getndelim2): Use them for block reads.
55534
55535 2008-04-29  Bruno Haible  <bruno@clisp.org>
55536
55537         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
55538         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55539         * modules/inet_ntop (Depends-on): Add extensions.
55540         * modules/inet_pton (Depends-on): Likewise.
55541         Reported by Simon Josefsson.
55542
55543 2008-04-29  Jim Meyering  <meyering@redhat.com>
55544
55545         When the is more than one match in a block, match all of them.
55546         * build-aux/useless-if-before-free: Iterate through each block
55547         until there are no more matches.
55548
55549         Fix broken useless-if-before-free script.
55550         * build-aux/useless-if-before-free: Fix typo: missing "?" after
55551         the expression to match cast of argument to free-like function.
55552
55553 2008-04-29  Eric Blake  <ebb9@byu.net>
55554
55555         Use new header.
55556         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
55557
55558 2008-04-29  Jim Meyering  <meyering@redhat.com>
55559
55560         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
55561         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
55562         by gnulib to exist and to declare e.g., inet_ntop.
55563         Don't include "inet_ntop.h", now removed.
55564
55565         * m4/arpa_inet_h.m4: Remove trailing blanks.
55566
55567 2008-04-29  Eric Blake  <ebb9@byu.net>
55568
55569         Silence valgrind on safe reads beyond potential array bounds.
55570         * lib/rawmemchr.valgrind: New file.
55571         * lib/strchrnul.valgrind: Likewise.
55572         * modules/rawmemchr (Files): Distribute new file.
55573         * modules/strchrnul (Files): Likewise.
55574         Suggested by Bruno Haible.
55575
55576 2008-04-29  Bruno Haible  <bruno@clisp.org>
55577
55578         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
55579         (inet_ntop, inet_pton): Change portability warning's wording.
55580         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
55581         Invoke gl_CHECK_NEXT_HEADERS.
55582         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
55583         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
55584         set ARPA_INET_H.
55585         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55586         * modules/arpa_inet (Description): No longer only for systems that
55587         lack it.
55588         (Depends-on): Add include_next.
55589         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
55590         HAVE_ARPA_INET_H.
55591
55592 2008-04-29  Jim Meyering  <meyering@redhat.com>
55593
55594         * modules/mkdir (License): Re-license as LGPLv2+.
55595
55596 2008-04-29  Bruno Haible  <bruno@clisp.org>
55597
55598         * modules/rawmemchr (Maintainer): Set to Eric.
55599         * modules/strchrnul (Maintainer): Likewise.
55600
55601 2008-04-29  Simon Josefsson  <simon@josefsson.org>
55602
55603         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
55604         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
55605
55606         * modules/arpa_inet (arpa/inet.h): Use them.
55607
55608 2008-04-28  Eric Blake  <ebb9@byu.net>
55609
55610         Test getndelim2.
55611         * modules/getndelim2-tests: New file.
55612         * tests/test-getndelim2.c: Likewise.
55613         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
55614         stream.
55615         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
55616
55617         * MODULES.html.sh: Document new module.
55618
55619 2008-04-20  Bruno Haible  <bruno@clisp.org>
55620
55621         * lib/c-stack.c (die): Use raise.
55622         * modules/c-stack (Depends-on): Add raise.
55623
55624 2008-04-28  Bruno Haible  <bruno@clisp.org>
55625
55626         Expect rpmatch to be declared.
55627         * lib/yesno.c (rpmatch): Remove declaration.
55628
55629         Declare rpmatch.
55630         * lib/stdlib.in.h (rpmatch): New declaration.
55631         * lib/rpmatch.c: Include <stdlib.h> first.
55632         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
55633         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
55634         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
55635         HAVE_RPMATCH.
55636         * modules/rpmatch (Depends-on): Add stdlib, extensions.
55637         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55638         (Include): Set to <stdlib.h>.
55639         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
55640         HAVE_RPMATCH.
55641         * NEWS: Document the change.
55642
55643 2008-04-28  Bruno Haible  <bruno@clisp.org>
55644
55645         Change rpmatch to use nl_langinfo when appropriate.
55646         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
55647         (N_): New macro.
55648         (localized_pattern): New function/macro.
55649         (try): Remove match, nomatch arguments. Copy the pattern into safe
55650         memory before caching it.
55651         (rpmatch): Use localized_pattern. Add translator comments.
55652         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
55653         Suggested by Eric Blake.
55654         * modules/rpmatch (Depends-on): Add stdbool.
55655
55656 2008-04-28  Eric Blake  <ebb9@byu.net>
55657
55658         Add rawmemchr module, matching glibc.
55659         * modules/string (Makefile.am): New indicator.
55660         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
55661         * lib/string.in.h (rawmemchr): Declare when appropriate.
55662         * modules/rawmemchr: New file.
55663         * m4/rawmemchr.m4: Likewise.
55664         * lib/rawmemchr.c: Likewise.
55665         * modules/rawmemchr-tests: Likewise.
55666         * tests/test-rawmemchr.c: Likewise.
55667         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
55668         module.
55669         * modules/strchrnul (Depends-on): Add rawmemchr.
55670         * lib/strchrnul.c (strchrnul): Optimize a corner case.
55671
55672         Whitespace cleanup.
55673         * tests/test-strchrnul.c: Reindent.
55674         * lib/strchrnul.c: Likewise.
55675
55676         Optimize and test strchrnul.
55677         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
55678         * modules/strchrnul-tests: New file.
55679         * tests/test-strchrnul.c: Likewise.
55680
55681         Remove intprops dependency.
55682         * modules/memchr (Depends-on): Remove intprops.
55683         * modules/memrchr (Depends-on): Likewise.
55684         * modules/memchr2 (Depends-on): Likewise.
55685         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
55686         * lib/memrchr.c (__memrchr): Likewise.
55687         * lib/memrchr2.c (memchr2): Likewise.
55688         Reported by Simon Josefsson.
55689
55690 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55691
55692         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
55693         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55694
55695 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55696
55697         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
55698
55699         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
55700
55701         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
55702
55703         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
55704         declarations.
55705         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
55706
55707         * m4/inet_pton.m4: Don't check for header files.
55708
55709         * m4/inet_ntop.m4: Don't check for header files.
55710
55711 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55712
55713         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
55714         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
55715         trigger for cygwin).
55716         Reported by Bruno Haible  <bruno@clisp.org>.
55717
55718 2008-04-28  Bruno Haible  <bruno@clisp.org>
55719
55720         * doc/posix-functions/strdup.texi: Mention mingw problem.
55721
55722 2008-04-27  Bruno Haible  <bruno@clisp.org>
55723
55724         * modules/stat-time-tests (Depends-on): Add sleep.
55725         * tests/test-stat-time.c (force_unlink): New function.
55726         (cleanup): Use it.
55727         (test_mtime): Remove the ctime related tests.
55728         (test_ctime): New function, containing the ctime related tests.
55729         (main): Call test_ctime, except on native Windows platforms.
55730
55731 2008-04-27  Bruno Haible  <bruno@clisp.org>
55732
55733         * lib/rpmatch.c (rpmatch): Add some comments.
55734         Reported by James Youngman <jay@gnu.org>.
55735
55736 2008-04-27  Bruno Haible  <bruno@clisp.org>
55737
55738         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
55739         quiet NaNs.
55740
55741 2008-04-27  Bruno Haible  <bruno@clisp.org>
55742
55743         Make test-yesno.sh work on mingw.
55744         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
55745         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
55746         (main): Set stdin to binary mode.
55747         * modules/yesno-tests (Depends-on): Add binary-io.
55748
55749 2008-04-27  Bruno Haible  <bruno@clisp.org>
55750
55751         Fix 'isfinite' on x86, x86_64, ia64 platforms.
55752         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
55753         argument that lie outside the IEEE 854 domain.
55754         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
55755         (gl_ISFINITE): Use it.
55756         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
55757
55758 2008-04-27  Bruno Haible  <bruno@clisp.org>
55759
55760         Allow local renaming in config.h.
55761         * lib/memrchr.c (memrchr): Don't undefine outside libc.
55762
55763 2008-04-27  Bruno Haible  <bruno@clisp.org>
55764
55765         * lib/memchr.c (__memchr): Change type of 'i'.
55766         * lib/memchr2.c (memchr2): Likewise.
55767
55768 2008-04-26  Eric Blake  <ebb9@byu.net>
55769         and Bruno Haible  <bruno@clisp.org>
55770
55771         Optimize and test memrchr.
55772         * modules/memrchr (Depends-on): Add intprops.
55773         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
55774         * modules/memrchr-tests: New file.
55775         * tests/test-memrchr.c: New file.
55776
55777 2008-04-26  Bruno Haible  <bruno@clisp.org>
55778
55779         Add tentative support for DragonFly BSD.
55780         * lib/stdio-impl.h: Add macros for DragonFly BSD.
55781         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
55782         fp.
55783         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55784         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
55785         * lib/fpurge.c (fpurge): Likewise.
55786         * lib/freadable.c (freaadable): Likewise.
55787         * lib/freadahead.c (freadahead): Likewise.
55788         * lib/freading.c (freading): Likewise.
55789         * lib/freadptr.c (freadptr): Likewise.
55790         * lib/freadseek.c (freadptrinc): Likewise.
55791         * lib/fseeko.c (fseeko): Likewise.
55792         * lib/fseterr.c (fseterr): Likewise.
55793         * lib/fwritable.c (fwritable): Likewise.
55794         * lib/fwriting.c (fwriting): Likewise.
55795
55796 2008-04-26  Bruno Haible  <bruno@clisp.org>
55797
55798         * lib/stdio-impl.h: New file.
55799         * lib/fbufmode.c: Include stdio-impl.h.
55800         (fbufmode): Use fp_, remove redundant #defines.
55801         * lib/fflush.c: Include stdio-impl.h.
55802         (clear_ungetc_buffer): Remove redundant #defines.
55803         * lib/fpurge.c: Include stdio-impl.h.
55804         (fpurge): Remove redundant #defines.
55805         * lib/freadable.c: Include stdio-impl.h.
55806         (freadable): Remove redundant #defines.
55807         * lib/freadahead.c: Include stdio-impl.h.
55808         (freadahead): Remove redundant #defines.
55809         * lib/freading.c: Include stdio-impl.h.
55810         (freading): Remove redundant #defines.
55811         * lib/freadptr.c: Include stdio-impl.h.
55812         (freadptr): Remove redundant #defines.
55813         * lib/freadseek.c: Include stdio-impl.h.
55814         (freadptrinc): Remove redundant #defines.
55815         * lib/fseeko.c: Include stdio-impl.h.
55816         (rpl_fseeko): Remove redundant #defines.
55817         * lib/fseterr.c: Include stdio-impl.h.
55818         (fseterr): Remove redundant #defines.
55819         * lib/fwritable.c: Include stdio-impl.h.
55820         (fwritable: Remove redundant #defines.
55821         * lib/fwriting.c: Include stdio-impl.h.
55822         (fwriting): Remove redundant #defines.
55823         * modules/fbufmode (Files): Add lib/stdio-impl.h.
55824         * modules/fflush (Files): Likewise.
55825         * modules/fpurge (Files): Likewise.
55826         * modules/freadable (Files): Likewise.
55827         * modules/freadahead (Files): Likewise.
55828         * modules/freading (Files): Likewise.
55829         * modules/freadptr (Files): Likewise.
55830         * modules/freadseek (Files): Likewise.
55831         * modules/fseeko (Files): Likewise.
55832         * modules/fseterr (Files): Likewise.
55833         * modules/fwritable (Files): Likewise.
55834         * modules/fwriting (Files): Likewise.
55835
55836 2008-04-26  Bruno Haible  <bruno@clisp.org>
55837
55838         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55839         restore_seek_optimization, update_fpos_cache): New functions, extracted
55840         from rpl_fflush.
55841         (rpl_fflush): Use them.
55842         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
55843         (gl_REPLACE_FFLUSH): Use it.
55844
55845 2008-04-26  Bruno Haible  <bruno@clisp.org>
55846
55847         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
55848         on Solaris.
55849         * tests/test-xstrtoimax.sh: Likewise.
55850         * tests/test-xstrtoumax.sh: Likewise.
55851         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55852
55853 2008-04-26  Bruno Haible  <bruno@clisp.org>
55854
55855         * modules/memchr-tests: New file.
55856         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
55857
55858 2008-04-26  Eric Blake  <ebb9@byu.net>
55859             Bruno Haible  <bruno@clisp.org>
55860
55861         * lib/memchr.c: Include intprops.h.
55862         (__memchr): Optimize parallel detection of matching bytes. Rename local
55863         variables. Add explanatory comments.
55864
55865 2008-04-26  Bruno Haible  <bruno@clisp.org>
55866
55867         Fix module 'memchr', broken since 2000-10-28.
55868         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
55869
55870 2008-04-26  Bruno Haible  <bruno@clisp.org>
55871
55872         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
55873         comments.
55874
55875 2008-04-25  Eric Blake  <ebb9@byu.net>
55876
55877         Use native fstatat on cygwin 1.7.0.
55878         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
55879         first.
55880
55881 2008-04-23  Eric Blake  <ebb9@byu.net>
55882
55883         Improve memchr2 performance.
55884         * lib/memchr2.c (memchr2): Further optimize parallel detection of
55885         NUL bytes.
55886         * modules/memchr2 (Depends-on): Use intprops.h.
55887
55888 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55889
55890         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
55891         an inline function instead of a CPP macro.  Patch by Ben Pfaff
55892         <blp@cs.stanford.edu>.
55893
55894 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55895
55896         * lib/arpa_inet.in.h: New file.
55897
55898         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
55899         (Makefile.am): Sed in substitute header file.
55900
55901         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
55902         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
55903
55904         * modules/inet_ntop (configure.ac): Use
55905         gl_ARPA_INET_MODULE_INDICATOR.
55906
55907         * modules/inet_pton (configure.ac): Use
55908         gl_ARPA_INET_MODULE_INDICATOR.
55909
55910 2008-04-22  Jim Meyering  <meyering@redhat.com>
55911
55912         * modules/verify (License): Re-license as LGPLv2+.
55913
55914 2008-04-22  Simon Josefsson  <simon@josefsson.org>
55915
55916         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
55917         parameter to void* as per POSIX standard (MinGW uses char*).
55918
55919 2008-04-21  Bruno Haible  <bruno@clisp.org>
55920
55921         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55922         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
55923         Define to replacements if REPLACE_ISWCNTRL is 1.
55924         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
55925         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
55926         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
55927         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
55928         what it fixes.
55929         * doc/posix-functions/iswalpha.texi: Likewise.
55930         * doc/posix-functions/iswblank.texi: Likewise.
55931         * doc/posix-functions/iswcntrl.texi: Likewise.
55932         * doc/posix-functions/iswdigit.texi: Likewise.
55933         * doc/posix-functions/iswgraph.texi: Likewise.
55934         * doc/posix-functions/iswlower.texi: Likewise.
55935         * doc/posix-functions/iswprint.texi: Likewise.
55936         * doc/posix-functions/iswpunct.texi: Likewise.
55937         * doc/posix-functions/iswspace.texi: Likewise.
55938         * doc/posix-functions/iswupper.texi: Likewise.
55939         * doc/posix-functions/iswxdigit.texi: Likewise.
55940         Reported by Alain Guibert.
55941
55942 2008-04-21  Bruno Haible  <bruno@clisp.org>
55943
55944         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
55945         Patch by Alain Guibert.
55946
55947 2008-04-21  Bruno Haible  <bruno@clisp.org>
55948
55949         Fix test failures on mingw.
55950         * tests/test-xstrtol.c (print_no_progname): New function.
55951         (main): Install it in error_print_progname hook.
55952         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
55953         * tests/test-xstrtoimax.sh: Likewise.
55954         * tests/test-xstrtoumax.sh: Likewise.
55955
55956 2008-04-21  Bruno Haible  <bruno@clisp.org>
55957
55958         Fix test failure on mingw.
55959         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
55960
55961 2008-04-21  Bruno Haible  <bruno@clisp.org>
55962
55963         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
55964         Actually assign a value.
55965
55966 2008-04-20  Bruno Haible  <bruno@clisp.org>
55967
55968         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
55969         take 2.
55970         * lib/canonicalize.c (canonicalize_file_name): Elide if the
55971         'canonicalize-lgpl' module is also used.
55972         * lib/canonicalize-lgpl.c: Undo last change.
55973         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
55974
55975 2008-04-20  Bruno Haible  <bruno@clisp.org>
55976
55977         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
55978         config.h. Provide _mkdir based fallback for mingw.
55979         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
55980         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
55981         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
55982         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
55983         rather than defining mkdir in config.h.
55984         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
55985         (gl_SYS_STAT_H_DEFAULTS): New macro.
55986         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
55987         HAVE_IO_H any more.
55988         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
55989         HAVE_DECL_MKDIR and HAVE_IO_H.
55990
55991 2008-04-20  Bruno Haible  <bruno@clisp.org>
55992
55993         * lib/isapipe.c: Port to native Windows platforms.
55994
55995 2008-04-20  Bruno Haible  <bruno@clisp.org>
55996
55997         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
55998
55999 2008-04-21  Eric Blake  <ebb9@byu.net>
56000
56001         Work around preprocessors that don't handle UINTMAX_MAX.
56002         * lib/memchr2.c (memchr2): Avoid embedded #if.
56003         Reported by Alain Guibert, fix suggested by Bruno Haible.
56004
56005 2008-04-21  Simon Josefsson  <simon@josefsson.org>
56006
56007         * doc/posix-functions/strftime.texi (strftime): Explain better
56008         Windows incompatibility.  Suggested by Micah Cowan
56009         <micah@cowan.name>.
56010
56011 2008-04-20  Bruno Haible  <bruno@clisp.org>
56012
56013         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
56014         unistr/u8-mblen.
56015
56016 2008-04-20  Bruno Haible  <bruno@clisp.org>
56017
56018         Fix test failure on platforms with non-GNU iconv.
56019         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
56020         (U_TO_U8): Use it, rather than u16_to_u8.
56021         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
56022         units at the end of the input string.
56023         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
56024
56025 2008-04-20  Bruno Haible  <bruno@clisp.org>
56026
56027         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
56028         when the resulting length is 0.
56029         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
56030
56031 2008-04-20  Bruno Haible  <bruno@clisp.org>
56032
56033         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
56034         works.
56035         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
56036
56037 2008-04-20  Bruno Haible  <bruno@clisp.org>
56038
56039         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
56040         * modules/tsearch-tests (configure.ac): Test for initstate function.
56041
56042 2008-04-20  Bruno Haible  <bruno@clisp.org>
56043
56044         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
56045         for nlink_t if missing.
56046         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
56047
56048 2008-04-19  Bruno Haible  <bruno@clisp.org>
56049
56050         Work around snprintf bug on Linux libc5.
56051         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
56052         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56053         gl_SNPRINTF_SIZE1.
56054         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56055         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
56056         that test failed.
56057         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
56058         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
56059         * modules/snprintf (Files): Add m4/printf.m4.
56060         * modules/vsnprintf (Files): Likewise.
56061         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
56062         * doc/posix-functions/vsnprintf.texi: Likewise.
56063
56064 2008-04-19  Bruno Haible  <bruno@clisp.org>
56065
56066         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
56067         from 0.0058 to less than 10^-7.
56068
56069 2008-04-19  Bruno Haible  <bruno@clisp.org>
56070
56071         Fix rounding when a precision is given.
56072         * lib/vasnprintf.c (is_borderline): New function.
56073         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
56074         9...9x.
56075         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
56076         %e, %g.
56077         * tests/test-vasprintf-posix.c (test_function): Likewise.
56078         * tests/test-snprintf-posix.h (test_function): Likewise.
56079         * tests/test-sprintf-posix.h (test_function): Likewise.
56080         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
56081         * tests/test-printf-posix.h (test_function): Likewise.
56082         * tests/test-printf-posix.output: Update.
56083         Reported by John Darrington <john@darrington.wattle.id.au> via
56084         Ben Pfaff <blp@cs.stanford.edu>.
56085
56086 2008-04-18  Simon Josefsson  <simon@josefsson.org>
56087
56088         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
56089         Suggested by Bruno Haible <bruno@clisp.org>.
56090
56091 2008-04-17  Bruno Haible  <bruno@clisp.org>
56092
56093         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
56094         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
56095         implementation.
56096         Patch by Bruce Merry <bmerry@gmail.com>.
56097
56098 2008-04-17  Simon Josefsson  <simon@josefsson.org>
56099
56100         * doc/posix-functions/strftime.texi (strftime): Mention that %e
56101         doesn't work under Windows.
56102
56103 2008-04-16  Bruno Haible  <bruno@clisp.org>
56104
56105         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
56106         New macros.
56107         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
56108         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
56109         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
56110         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
56111         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
56112         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
56113         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
56114         macros.
56115         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
56116         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
56117         Northern Sotho, Uighur.
56118
56119 2008-04-16  Bruno Haible  <bruno@clisp.org>
56120
56121         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
56122         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
56123         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
56124         Reported by Daniel Bergström <daniel@octocode.com>.
56125
56126 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
56127             Bruno Haible  <bruno@clisp.org>
56128
56129         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
56130         function.
56131         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
56132         New functions, mostly extracted from gl_locale_name_default.
56133         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
56134
56135 2008-04-16  Eric Blake  <ebb9@byu.net>
56136
56137         Adjust strtod detection to catch glibc 2.7 bug.
56138         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
56139         Reported by John Gatewood Ham.
56140
56141 2008-04-16  Bruno Haible  <bruno@clisp.org>
56142
56143         Add tentative support for Linux libc5.
56144         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
56145         * lib/fpurge.c (fpurge): Likewise.
56146         * lib/freadable.c (freadable): Likewise.
56147         * lib/freadahead.c (freadahead): Likewise.
56148         * lib/freading.c (freading): Likewise.
56149         * lib/freadptr.c (freadptr): Likewise.
56150         * lib/freadseek.c (freadptrinc): Likewise.
56151         * lib/fseeko.c (rpl_fseeko): Likewise.
56152         * lib/fseterr.c (fseterr): Likewise.
56153         * lib/fwritable.c (fwritable): Likewise.
56154         * lib/fwriting.c (fwriting): Likewise.
56155         Reported by Alain Guibert <alguibert+bts@free.fr>.
56156
56157 2008-04-15  Bruno Haible  <bruno@clisp.org>
56158
56159         * modules/mathl (configure.ac): Define module indicator.
56160
56161 2008-04-15  Bruno Haible  <bruno@clisp.org>
56162
56163         * lib/logl.c (logl): Remove unused variables.
56164
56165 2008-04-15  Bruno Haible  <bruno@clisp.org>
56166
56167         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
56168         fails.
56169
56170 2008-04-15  Bruno Haible  <bruno@clisp.org>
56171
56172         * lib/trim.c (trim2): Fix argument of isspace() macro.
56173
56174 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
56175
56176         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
56177         to 0.
56178         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
56179
56180 2008-04-14  Bruno Haible  <bruno@clisp.org>
56181
56182         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
56183         AC_LANG_PROGRAM argument.
56184         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
56185         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
56186         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
56187         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56188         * m4/math_h.m4 (gl_MATH_H): Likewise.
56189         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
56190         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56191         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
56192         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
56193         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
56194         * m4/regex.m4 (gl_REGEX): Likewise.
56195         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
56196         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
56197         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56198         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
56199         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56200         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56201         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56202         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
56203
56204 2008-04-14  Jim Meyering  <meyering@redhat.com>
56205
56206         test-strtod: fix typos: s/abs/fabs/
56207         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
56208
56209 2008-04-13  Bruno Haible  <bruno@clisp.org>
56210
56211         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
56212         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
56213         module is also used and while not building the reloc-wrapper.
56214
56215 2008-04-13  Bruno Haible  <bruno@clisp.org>
56216
56217         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
56218
56219 2008-04-13  Bruno Haible  <bruno@clisp.org>
56220
56221         Fix AIX compilation failure introduced on 2008-04-02.
56222         * tests/test-frexp.c (exp): Undefine before redefining.
56223         * tests/test-frexpl.c (exp): Likewise.
56224
56225 2008-04-13  Bruno Haible  <bruno@clisp.org>
56226
56227         Work around a HP-UX stdio bug.
56228         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
56229         * tests/test-ftello.c (main): Likewise.
56230         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
56231         * doc/posix-functions/ftello.texi: Likewise.
56232
56233 2008-04-13  Bruno Haible  <bruno@clisp.org>
56234
56235         Make test-signbit pass on HP-UX/hppa.
56236         * tests/test-signbit.c (minus_zerol): New variable.
56237         (test_signbitl): Use it.
56238
56239 2008-04-13  Bruno Haible  <bruno@clisp.org>
56240
56241         Make truncl work on OSF/1 4.0.
56242         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
56243         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56244         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56245         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
56246         HAVE_DECL_TRUNCL.
56247         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
56248         HAVE_DECL_TRUNCL.
56249         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
56250
56251 2008-04-13  Bruno Haible  <bruno@clisp.org>
56252
56253         * lib/unictype.h: Remove trailing comma from enumeration definitions.
56254
56255 2008-04-13  Bruno Haible  <bruno@clisp.org>
56256
56257         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
56258         expression, so as to avoid HP-UX 11 cc compiler bug.
56259
56260 2008-04-13  Bruno Haible  <bruno@clisp.org>
56261
56262         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
56263
56264 2008-04-13  Bruno Haible  <bruno@clisp.org>
56265
56266         * lib/git-merge-changelog.c: Remove empty declaration outside of
56267         functions.
56268
56269 2008-04-13  Bruno Haible  <bruno@clisp.org>
56270
56271         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
56272
56273 2008-04-13  Bruno Haible  <bruno@clisp.org>
56274
56275         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
56276         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
56277         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
56278         also if it exists but lacks definitions of the SHUT_* macros.
56279         * modules/sys_socket (Description): Update.
56280         Reported by Elbert Pol <e.pol@chello.nl>.
56281
56282 2008-04-13  Bruno Haible  <bruno@clisp.org>
56283
56284         * lib/localcharset.c (OS2): Don't redefine if already defined.
56285         Reported by Elbert Pol <e.pol@chello.nl>.
56286
56287 2008-04-13  Bruno Haible  <bruno@clisp.org>
56288
56289         * lib/binary-io.h [__EMX__]: Include <io.h>.
56290         Reported by Elbert Pol <e.pol@chello.nl>.
56291
56292 2008-04-12  Bruno Haible  <bruno@clisp.org>
56293
56294         * lib/fpucw.h: Enable the definitions also for x86_64.
56295         Needed for NetBSD/x86_64.
56296         Reported by Thomas Klausner <tk@giga.or.at>.
56297
56298 2008-04-12  Bruno Haible  <bruno@clisp.org>
56299
56300         * tests/test-strtod.c: Include isnand.h.
56301         (main): Use isnand instead of isnan.
56302         Reported by Jim Meyering.
56303
56304 2008-04-12  Bruno Haible  <bruno@clisp.org>
56305
56306         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
56307         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56308
56309 2008-04-12  Jim Meyering  <meyering@redhat.com>
56310
56311         * m4/math_h.m4 (gl_MATH_H): Fix typos.
56312
56313 2008-04-12  Bruno Haible  <bruno@clisp.org>
56314
56315         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
56316         Reported by Elbert Pol <e.pol@chello.nl>.
56317
56318 2008-04-12  Eric Blake  <ebb9@byu.net>
56319
56320         Work around Solaris 10 math.h bug.
56321         * m4/math_h.m4 (gl_MATH_H): Check for bug.
56322         (gl_MATH_H_DEFAULTS): Set up default.
56323         * modules/math (Makefile.am): Replace new indicators.
56324         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
56325         * tests/test-math.c (main): Test this.
56326         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
56327         * doc/posix-headers/math.texi (math.h): Mention bug.
56328         Reported by Nelson H. F. Beebe and Jim Meyering.
56329
56330 2008-04-11  Bruno Haible  <bruno@clisp.org>
56331
56332         Adapt to future versions of Apple GCC.
56333         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
56334         Reported by Peter O'Gorman <peter@pogma.com>.
56335
56336 2008-04-11  Bruno Haible  <bruno@clisp.org>
56337
56338         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
56339
56340 2008-04-11  Bruno Haible  <bruno@clisp.org>
56341
56342         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
56343
56344         * modules/getaddrinfo-tests (Makefile.am): Define
56345         test_getaddrinfo_LDADD.
56346
56347 2008-04-11  Bruno Haible  <bruno@clisp.org>
56348
56349         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
56350         (init): Fix syntax error.
56351         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
56352         is declared.
56353
56354 2008-04-11  Bruno Haible  <bruno@clisp.org>
56355
56356         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
56357         * modules/glob (Depends-on): Add stdbool.
56358
56359 2008-04-11  Bruno Haible  <bruno@clisp.org>
56360
56361         * lib/trim.c: Include <string.h>.
56362
56363 2008-04-11  Eric Blake  <ebb9@byu.net>
56364
56365         Avoid compile failure on OS/2.
56366         * lib/regex_internal.h (internal_function): Disable optimization
56367         on OS/2 (__EMX__), where it caused compiler error.
56368         Reported by Elbert Pol.
56369
56370 2008-04-11  Bruno Haible  <bruno@clisp.org>
56371
56372         Flush the standard error stream before aborting. Needed on mingw.
56373         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
56374         * tests/test-array_list.c (ASSERT): Likewise.
56375         * tests/test-array_oset.c (ASSERT): Likewise.
56376         * tests/test-avltree_list.c (ASSERT): Likewise.
56377         * tests/test-avltree_oset.c (ASSERT): Likewise.
56378         * tests/test-avltreehash_list.c (ASSERT): Likewise.
56379         * tests/test-binary-io.c (ASSERT): Likewise.
56380         * tests/test-byteswap.c (ASSERT): Likewise.
56381         * tests/test-c-ctype.c (ASSERT): Likewise.
56382         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
56383         * tests/test-c-strcasestr.c (ASSERT): Likewise.
56384         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
56385         * tests/test-c-strstr.c (ASSERT): Likewise.
56386         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
56387         * tests/test-canonicalize.c (ASSERT): Likewise.
56388         * tests/test-carray_list.c (ASSERT): Likewise.
56389         * tests/test-ceilf1.c (ASSERT): Likewise.
56390         * tests/test-ceilf2.c (ASSERT): Likewise.
56391         * tests/test-ceill.c (ASSERT): Likewise.
56392         * tests/test-count-one-bits.c (ASSERT): Likewise.
56393         * tests/test-fbufmode.c (ASSERT): Likewise.
56394         * tests/test-fflush2.c (ASSERT): Likewise.
56395         * tests/test-floorf1.c (ASSERT): Likewise.
56396         * tests/test-floorf2.c (ASSERT): Likewise.
56397         * tests/test-floorl.c (ASSERT): Likewise.
56398         * tests/test-fopen.c (ASSERT): Likewise.
56399         * tests/test-fpending.c (ASSERT): Likewise.
56400         * tests/test-fprintf-posix.c (ASSERT): Likewise.
56401         * tests/test-fpurge.c (ASSERT): Likewise.
56402         * tests/test-freadable.c (ASSERT): Likewise.
56403         * tests/test-freadahead.c (ASSERT): Likewise.
56404         * tests/test-freading.c (ASSERT): Likewise.
56405         * tests/test-freadptr.c (ASSERT): Likewise.
56406         * tests/test-freadptr2.c (ASSERT): Likewise.
56407         * tests/test-freadseek.c (ASSERT): Likewise.
56408         * tests/test-freopen.c (ASSERT): Likewise.
56409         * tests/test-frexp.c (ASSERT): Likewise.
56410         * tests/test-frexpl.c (ASSERT): Likewise.
56411         * tests/test-fseek.c (ASSERT): Likewise.
56412         * tests/test-fseeko.c (ASSERT): Likewise.
56413         * tests/test-fstrcmp.c (ASSERT): Likewise.
56414         * tests/test-ftell.c (ASSERT): Likewise.
56415         * tests/test-ftello.c (ASSERT): Likewise.
56416         * tests/test-func.c (ASSERT): Likewise.
56417         * tests/test-fwritable.c (ASSERT): Likewise.
56418         * tests/test-fwriting.c (ASSERT): Likewise.
56419         * tests/test-getdelim.c (ASSERT): Likewise.
56420         * tests/test-getline.c (ASSERT): Likewise.
56421         * tests/test-i-ring.c (ASSERT): Likewise.
56422         * tests/test-iconv-utf.c (ASSERT): Likewise.
56423         * tests/test-iconv.c (ASSERT): Likewise.
56424         * tests/test-isfinite.c (ASSERT): Likewise.
56425         * tests/test-isnand.c (ASSERT): Likewise.
56426         * tests/test-isnanf.c (ASSERT): Likewise.
56427         * tests/test-isnanl.h (ASSERT): Likewise.
56428         * tests/test-ldexpl.c (ASSERT): Likewise.
56429         * tests/test-linked_list.c (ASSERT): Likewise.
56430         * tests/test-linkedhash_list.c (ASSERT): Likewise.
56431         * tests/test-localename.c (ASSERT): Likewise.
56432         * tests/test-lseek.c (ASSERT): Likewise.
56433         * tests/test-mbscasecmp.c (ASSERT): Likewise.
56434         * tests/test-mbscasestr1.c (ASSERT): Likewise.
56435         * tests/test-mbscasestr2.c (ASSERT): Likewise.
56436         * tests/test-mbscasestr3.c (ASSERT): Likewise.
56437         * tests/test-mbscasestr4.c (ASSERT): Likewise.
56438         * tests/test-mbschr.c (ASSERT): Likewise.
56439         * tests/test-mbscspn.c (ASSERT): Likewise.
56440         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
56441         * tests/test-mbspbrk.c (ASSERT): Likewise.
56442         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
56443         * tests/test-mbsrchr.c (ASSERT): Likewise.
56444         * tests/test-mbsspn.c (ASSERT): Likewise.
56445         * tests/test-mbsstr1.c (ASSERT): Likewise.
56446         * tests/test-mbsstr2.c (ASSERT): Likewise.
56447         * tests/test-mbsstr3.c (ASSERT): Likewise.
56448         * tests/test-memchr2.c (ASSERT): Likewise.
56449         * tests/test-memmem.c (ASSERT): Likewise.
56450         * tests/test-open.c (ASSERT): Likewise.
56451         * tests/test-printf-frexp.c (ASSERT): Likewise.
56452         * tests/test-printf-frexpl.c (ASSERT): Likewise.
56453         * tests/test-printf-posix.c (ASSERT): Likewise.
56454         * tests/test-quotearg.c (ASSERT): Likewise.
56455         * tests/test-rbtree_list.c (ASSERT): Likewise.
56456         * tests/test-rbtree_oset.c (ASSERT): Likewise.
56457         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
56458         * tests/test-round1.c (ASSERT): Likewise.
56459         * tests/test-roundf1.c (ASSERT): Likewise.
56460         * tests/test-roundl.c (ASSERT): Likewise.
56461         * tests/test-signbit.c (ASSERT): Likewise.
56462         * tests/test-sleep.c (ASSERT): Likewise.
56463         * tests/test-snprintf-posix.c (ASSERT): Likewise.
56464         * tests/test-snprintf.c (ASSERT): Likewise.
56465         * tests/test-sprintf-posix.c (ASSERT): Likewise.
56466         * tests/test-stat-time.c (ASSERT): Likewise.
56467         * tests/test-strcasestr.c (ASSERT): Likewise.
56468         * tests/test-strerror.c (ASSERT): Likewise.
56469         * tests/test-striconv.c (ASSERT): Likewise.
56470         * tests/test-striconveh.c (ASSERT): Likewise.
56471         * tests/test-striconveha.c (ASSERT): Likewise.
56472         * tests/test-strsignal.c (ASSERT): Likewise.
56473         * tests/test-strstr.c (ASSERT): Likewise.
56474         * tests/test-strtod.c (ASSERT): Likewise.
56475         * tests/test-trunc1.c (ASSERT): Likewise.
56476         * tests/test-trunc2.c (ASSERT): Likewise.
56477         * tests/test-truncf1.c (ASSERT): Likewise.
56478         * tests/test-truncf2.c (ASSERT): Likewise.
56479         * tests/test-truncl.c (ASSERT): Likewise.
56480         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
56481         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
56482         * tests/test-vasnprintf.c (ASSERT): Likewise.
56483         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
56484         * tests/test-vasprintf.c (ASSERT): Likewise.
56485         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
56486         * tests/test-vprintf-posix.c (ASSERT): Likewise.
56487         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
56488         * tests/test-vsnprintf.c (ASSERT): Likewise.
56489         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
56490         * tests/test-wcwidth.c (ASSERT): Likewise.
56491         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
56492         * tests/test-xprintf-posix.c (ASSERT): Likewise.
56493         * tests/test-xvasprintf.c (ASSERT): Likewise.
56494         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
56495         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
56496         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
56497         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
56498         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
56499         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
56500         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
56501         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
56502         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
56503         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
56504         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
56505         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
56506         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
56507         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
56508         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
56509         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
56510         * tests/unictype/test-block_list.c (ASSERT): Likewise.
56511         * tests/unictype/test-block_of.c (ASSERT): Likewise.
56512         * tests/unictype/test-block_test.c (ASSERT): Likewise.
56513         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
56514         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
56515         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
56516         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
56517         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
56518         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
56519         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
56520         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
56521         * tests/unictype/test-combining.c (ASSERT): Likewise.
56522         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
56523         * tests/unictype/test-digit.c (ASSERT): Likewise.
56524         * tests/unictype/test-mirror.c (ASSERT): Likewise.
56525         * tests/unictype/test-numeric.c (ASSERT): Likewise.
56526         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
56527         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
56528         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
56529         * tests/unictype/test-scripts.c (ASSERT): Likewise.
56530         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
56531         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
56532         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
56533         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
56534         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
56535         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
56536         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
56537         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
56538         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
56539         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
56540         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
56541         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
56542         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
56543         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
56544         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
56545         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
56546         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
56547         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
56548         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
56549         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
56550         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
56551         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
56552         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
56553         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
56554         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
56555         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
56556         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
56557         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
56558         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
56559         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
56560         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
56561         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
56562         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
56563         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
56564         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
56565         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
56566         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
56567         Reported by Eric Blake.
56568
56569 2008-04-11  Bruno Haible  <bruno@clisp.org>
56570
56571         * lib/wchar.in.h: Tweak comment.
56572
56573 2008-04-11  Bruno Haible  <bruno@clisp.org>
56574
56575         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
56576         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
56577         gl_COMMON.
56578         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
56579
56580 2008-04-11  Bruno Haible  <bruno@clisp.org>
56581
56582         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
56583
56584 2008-04-11  Simon Josefsson  <simon@josefsson.org>
56585
56586         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
56587         of attempting to use non-existing /dev/*random.  Based on patch
56588         from Adam Strzelecki <ono@java.pl> in
56589         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
56590
56591 2008-04-08  Bruno Haible  <bruno@clisp.org>
56592
56593         Add tentative support for emx+gcc.
56594         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
56595         * lib/fpurge.c (fpurge): Likewise.
56596         * lib/freadable.c (freadable): Likewise.
56597         * lib/freadahead.c (freadahead): Likewise.
56598         * lib/freading.c (freading): Likewise.
56599         * lib/freadptr.c (freadptr): Likewise.
56600         * lib/freadseek.c (freadptrinc): Likewise.
56601         * lib/fseeko.c (rpl_fseeko): Likewise.
56602         * lib/fseterr.c (fseterr): Likewise.
56603         * lib/fwritable.c (fwritable): Likewise.
56604         * lib/fwriting.c (fwriting): Likewise.
56605         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
56606
56607 2008-04-09  Eric Blake  <ebb9@byu.net>
56608
56609         Avoid some autoconf warnings.
56610         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
56611         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
56612         * m4/afs.m4 (gl_AFS): Likewise.
56613         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
56614         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
56615         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56616         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
56617         (gl_INTEGER_TYPE_SUFFIX): Likewise.
56618         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
56619         (AC_CHECK_DECLS_ONCE): Likewise.
56620         Rename file...
56621         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
56622         gnulib-tool requires autoconf 2.59 or better.
56623         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
56624
56625 2008-04-08  Eric Blake  <ebb9@byu.net>
56626
56627         Use 'git describe --match' if present (added in git 1.5.5).
56628         * build-aux/git-version-gen: Limit result to tags that match 'v*'
56629         if possible.
56630
56631 2008-04-08  Bruno Haible  <bruno@clisp.org>
56632
56633         Add tentative support for OpenServer.
56634         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
56635         _ptr, _cnt.
56636         * lib/fpurge.c (fpurge): Likewise.
56637         * lib/freadable.c (freadable): Likewise.
56638         * lib/freadahead.c (freadahead): Likewise.
56639         * lib/freading.c (freading): Likewise.
56640         * lib/freadptr.c (freadptr): Likewise.
56641         * lib/freadseek.c (freadptrinc): Likewise.
56642         * lib/fseeko.c (rpl_fseeko): Likewise.
56643         * lib/fseterr.c (fseterr): Likewise.
56644         * lib/fwritable.c (fwritable): Likewise.
56645         * lib/fwriting.c (fwriting): Likewise.
56646         Reported by Roger Cornelius <rac@tenzing.org> and
56647         Brian K. White <brian@aljex.com>.
56648
56649 2008-04-06  Jim Meyering  <meyering@redhat.com>
56650
56651         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
56652
56653 2008-04-06  Bruno Haible  <bruno@clisp.org>
56654
56655         Avoid possible error with non-ASCII bytes in UTF-8 locales.
56656         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
56657         * tests/test-printf-posix.sh: Likewise.
56658         * tests/test-vfprintf-posix.sh: Likewise.
56659         * tests/test-vprintf-posix.sh: Likewise.
56660         * tests/test-xprintf-posix.sh: Likewise.
56661
56662 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56663
56664         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
56665         hide error from 'ls', needed on OS/2.
56666         Report by Elbert Pol <elbert.pol@gmail.com>.
56667
56668 2008-04-04  Eric Blake  <ebb9@byu.net>
56669
56670         Make test-fseeko.c failures meaningful.
56671         * tests/test-fseeko.c: Print line number on failure.
56672         * tests/test-fseek.c: Likewise.
56673         Reported by Nelson H. F. Beebe.
56674
56675         Improve strtod bug detection check.
56676         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
56677         required for Solaris 10.
56678         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
56679
56680 2008-04-04  Bruno Haible  <bruno@clisp.org>
56681
56682         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
56683         by m4/setenv.m4.
56684
56685 2008-04-03  Eric Blake  <ebb9@byu.net>
56686
56687         Ensure sane .version contents.
56688         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
56689         version string.
56690         * build-aux/git-version-gen: Improve documentation.
56691
56692         Make GNU make output nicer.
56693         * top/GNUmakefile [!_have-Makefile]: Add dependency on
56694         MAKECMDGOALS to enforce message for all command line targets.  Set
56695         srcdir for use in maint.mk.
56696
56697         Another maintainer tweak.
56698         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
56699         a target that regenerates version.
56700
56701 2008-04-03  Jim Meyering  <meyering@redhat.com>
56702
56703         vc-list-files: don't cause coreutils "make po-check" failure
56704         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
56705
56706 2008-04-03  Eric Blake  <ebb9@byu.net>
56707
56708         Allow VPATH usage of vc-list-files.
56709         * build-aux/vc-list-files (scriptversion): Add timestamp.
56710         (options): Add --help, --version, -C.
56711         (CVS): Support installed cvsu.
56712
56713 2008-04-02  Bruno Haible  <bruno@clisp.org>
56714
56715         Avoid some "statement with no effect" warnings from gcc.
56716         * tests/test-wctype.c (main): Explicitly ignore unused values.
56717         Reported by Jim Meyering.
56718
56719 2008-04-02  Jim Meyering  <meyering@redhat.com>
56720
56721         Avoid some warnings from "gcc -Wshadow".
56722         * tests/test-frexp.c (exp): Define to a different identifier.
56723         * tests/test-frexpl.c (exp): Likewise.
56724
56725 2008-04-03  Jim Meyering  <meyering@redhat.com>
56726
56727         bootstrap: remove dangling *.[ch] symlinks from lib
56728         * build-aux/bootstrap [dangling symlink removal]: Move find's
56729         -depth option to precede all others, to avoid a warning.
56730         Remove *.[ch] files too, and from "$source_base" (usually lib/).
56731
56732 2008-04-02  Bruno Haible  <bruno@clisp.org>
56733
56734         Avoid some warnings from "gcc -Wshadow".
56735         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
56736         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
56737         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
56738         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
56739         Reported by Jim Meyering.
56740
56741 2008-04-01  Bruno Haible  <bruno@clisp.org>
56742
56743         Fix test to work on IRIX 6.5 with cc.
56744         * tests/test-math.c (numeric_equal): New function.
56745         (main): Use it.
56746
56747 2008-04-01  Bruno Haible  <bruno@clisp.org>
56748
56749         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
56750
56751 2008-04-01  Bruno Haible  <bruno@clisp.org>
56752
56753         * tests/test-vasnprintf-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/vasnprintf-posix-tests (Files): Add tests/nan.h.
56756         (Depends-on): Remove math.
56757
56758         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
56759         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56760         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
56761         (Depends-on): Remove math.
56762
56763         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
56764         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56765         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
56766         (Depends-on): Remove math.
56767         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
56768         (Depends-on): Remove math.
56769
56770         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
56771         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56772         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
56773         (Depends-on): Remove math.
56774         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
56775         (Depends-on): Remove math.
56776
56777         * tests/test-round1.c: Include nan.h.
56778         (main): Use NaNd instead of NAN.
56779         * modules/round-tests (Files): Add tests/nan.h.
56780
56781         * tests/test-trunc1.c: Include nan.h.
56782         (main): Use NaNd instead of NAN.
56783         * modules/trunc-tests (Files): Add tests/nan.h.
56784
56785         * tests/test-roundf1.c: Include nan.h.
56786         (main): Use NaNf instead of NAN.
56787         * modules/roundf-tests (Files): Add tests/nan.h.
56788
56789         * tests/test-truncf1.c: Include nan.h.
56790         (main): Use NaNf instead of NAN.
56791         * modules/truncf-tests (Files): Add tests/nan.h.
56792
56793         * tests/test-ceilf1.c: Include nan.h.
56794         (main): Use NaNf instead of NAN.
56795         * modules/ceilf-tests (Files): Add tests/nan.h.
56796
56797         * tests/test-floorf1.c: Include nan.h.
56798         (main): Use NaNf instead of NAN.
56799         * modules/floorf-tests (Files): Add tests/nan.h.
56800
56801         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
56802         (main): Use NaNf instead of NAN.
56803         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
56804
56805         * tests/test-isnand.c: Include nan.h instead of <math.h>.
56806         (main): Use NaNd instead of NAN.
56807         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
56808
56809         * tests/test-frexp.c: Include nan.h.
56810         (main): Use NaNd instead of NAN.
56811         * modules/frexp-tests (Files): Add tests/nan.h.
56812
56813         * lib/isnan.c: Don't include <math.h>.
56814         (FUNC): Don't use NAN macro.
56815         * modules/isnand-nolibm (Depends-on): Remove math.
56816         * modules/isnanf-nolibm (Depends-on): Remove math.
56817         * modules/isnanl (Depends-on): Remove math.
56818         * modules/isnanl-nolibm (Depends-on): Remove math.
56819
56820         * tests/nan.h: New file.
56821
56822 2008-04-01  Eric Blake  <ebb9@byu.net>
56823
56824         Fix typos.
56825         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
56826         values to be the right type.
56827
56828         For now, cater to gnulib strtod inaccuracies.
56829         * tests/test-strtod.c (main): Allow 1-ulp error on expected
56830         fractional results.  While not as nice from a QoI perspective, it
56831         is a quicker patch than correctly implementing decimal to binary
56832         rounding.
56833
56834 2008-03-31  Eric Blake  <ebb9@byu.net>
56835
56836         Guarantee a definition of NAN.
56837         * lib/math.in.h (NAN): Define if missing.
56838         * tests/test-math.c (main): Test it.
56839         * doc/posix-headers/math.texi (math.h): Document this.
56840         * lib/isnan.c (rpl_isnand): Use it.
56841         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
56842         * tests/test-floorf1.c (NaN): Likewise.
56843         * tests/test-frexp.c (NaN): Likewise.
56844         * tests/test-isnand.c (NaN): Likewise.
56845         * tests/test-isnanf.c (NaN): Likewise.
56846         * tests/test-round1.c (NaN): Likewise.
56847         * tests/test-roundf1.c (NaN): Likewise.
56848         * tests/test-snprintf-posix.h (NaN): Likewise.
56849         * tests/test-sprintf-posix.h (NaN): Likewise.
56850         * tests/test-trunc1.c (NaN): Likewise.
56851         * tests/test-truncf1.c (NaN): Likewise.
56852         * tests/test-vasnprintf-posix.c (NaN): Likewise.
56853         * tests/test-vasprintf-posix.c (NaN): Likewise.
56854         * modules/isnand-nolibm (Depends-on): Add math.
56855         * modules/isnanf-nolibm (Depends-on): Likewise.
56856         * modules/isnanl (Depends-on): Likewise.
56857         * modules/isnanl-nolibm (Depends-on): Likewise.
56858         * modules/snprintf-posix-tests (Depends-on): Likewise.
56859         * modules/sprintf-posix-tests (Depends-on): Likewise.
56860         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
56861         * modules/vsprintf-posix-tests (Depends-on): Likewise.
56862         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
56863         * modules/vasprintf-posix-tests (Depends-on): Likewise.
56864
56865 2008-03-31  Bruno Haible  <bruno@clisp.org>
56866
56867         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
56868         * doc/posix-functions/strtod.texi: Likewise.
56869
56870 2008-03-31  Bruno Haible  <bruno@clisp.org>
56871
56872         * tests/test-strtod.c (main): Don't use C99 syntax.
56873
56874 2008-03-31  Bruno Haible  <bruno@clisp.org>
56875
56876         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
56877         Reported by Eric Blake.
56878
56879 2008-03-31  Jim Meyering  <meyering@redhat.com>
56880
56881         Don't compare actual signbit return values.
56882         * tests/test-strtod.c (main): Rather, compare only their
56883         zero/non-zero nature.
56884
56885 2008-03-31  Eric Blake  <ebb9@byu.net>
56886
56887         More strtod documentation.
56888         * doc/posix-functions/strtod.texi (strtod): Interpret more test
56889         failures as distinct bugs.
56890
56891 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56892
56893         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
56894         Problem reported by Erik Benada in
56895         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
56896
56897 2008-03-30  Bruno Haible  <bruno@clisp.org>
56898
56899         * tests/test-strtod.c: Add comments about which assertion fails on which
56900         platform.
56901         * doc/posix-functions/strtod.texi: Add info about many more platforms.
56902
56903 2008-03-30  Eric Blake  <ebb9@byu.net>
56904
56905         Test signbit behavior on zeros.
56906         * tests/test-signbit.c (test_signbitf): Add tests for zero.
56907         (test_signbitd, test_signbitl): Likewise.
56908
56909         More strtod touchups.
56910         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
56911         sign of negative underflow, for now.  Use .5, not .1.
56912         * doc/posix-functions/strtod.texi (strtod): Mention these
56913         limitations.
56914         Reported by Jim Meyering.
56915
56916 2008-03-30  Bruno Haible  <bruno@clisp.org>
56917
56918         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
56919         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
56920
56921 2008-03-30  Bruno Haible  <bruno@clisp.org>
56922
56923         Avoid failure when attempting to return empty iconv results on some
56924         platforms.
56925         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
56926         allocation, don't report ENOMEM when the resulting string is empty.
56927
56928 2008-03-30  Bruno Haible  <bruno@clisp.org>
56929
56930         Fix buffer overrun.
56931         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
56932         Don't consider the width for tmp_length. Check count against tmp_length
56933         before doing the padding. Ensure enough allocation during padding.
56934
56935 2008-03-30  Eric Blake  <ebb9@byu.net>
56936
56937         strtod touchups.
56938         * lib/strtod.c (strtod): Avoid compiler warnings.
56939         Reported by Jim Meyering.
56940
56941 2008-03-30  Bruno Haible  <bruno@clisp.org>
56942
56943         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
56944         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
56945         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
56946         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
56947         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
56948         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
56949         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
56950         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
56951
56952         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
56953         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
56954         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
56955         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
56956         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
56957         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
56958         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
56959         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
56960
56961         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
56962         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
56963         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
56964         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
56965         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
56966         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
56967         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
56968         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
56969
56970         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
56971         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
56972
56973         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
56974         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
56975
56976         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
56977         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
56978
56979         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
56980         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
56981         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
56982
56983         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
56984         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
56985         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
56986
56987         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
56988         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
56989         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
56990
56991         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
56992         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
56993         * modules/vasprintf (Depends-on): Add EOVERFLOW.
56994
56995         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
56996         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
56997         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
56998         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
56999         (Depends-on): Add EOVERFLOW.
57000         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
57001         (Depends-on): Add EOVERFLOW.
57002         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57003         (Depends-on): Add EOVERFLOW.
57004         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57005         (Depends-on): Add EOVERFLOW.
57006         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57007         (Depends-on): Add EOVERFLOW.
57008         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57009         (Depends-on): Add EOVERFLOW.
57010         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57011         (Depends-on): Add EOVERFLOW.
57012         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57013         (Depends-on): Add EOVERFLOW.
57014
57015         * lib/sprintf.c (EOVERFLOW): Remove fallback.
57016         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
57017         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
57018
57019         * lib/snprintf.c (EOVERFLOW): Remove fallback.
57020         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
57021         * modules/snprintf (Depends-on): Add EOVERFLOW.
57022
57023         * lib/poll.c (EOVERFLOW): Remove fallback.
57024         * modules/poll (Depends-on): Add EOVERFLOW.
57025
57026         * lib/getugroups.c (EOVERFLOW): Remove fallback.
57027         * modules/getugroups (Depends-on): Add EOVERFLOW.
57028
57029         * lib/getdelim.c (EOVERFLOW): Remove fallback.
57030         * modules/getdelim (Depends-on): Add EOVERFLOW.
57031
57032         * lib/ftell.c (EOVERFLOW): Remove fallback.
57033         * modules/ftell (Depends-on): Add EOVERFLOW.
57034
57035         * lib/fprintf.c (EOVERFLOW): Remove fallback.
57036         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
57037         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
57038
57039         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
57040
57041         * modules/EOVERFLOW-tests: New file.
57042         * tests/test-EOVERFLOW.c: New file.
57043
57044         * modules/EOVERFLOW: New file.
57045         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
57046
57047 2008-03-30  Bruno Haible  <bruno@clisp.org>
57048
57049         Fix bug introduced on 2007-06-10.
57050         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
57051         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
57052
57053 2008-03-30  Bruno Haible  <bruno@clisp.org>
57054
57055         Improve freadseek's efficiency after ungetc.
57056         * lib/freadseek.c: Include freadahead.h.
57057         (freadptrinc): New function, extracted from freadseek.
57058         (freadseek): Use it in a loop. Use freadahead to determine the number
57059         of loop iterations.
57060         * modules/freadseek (Depends-on): Add freadahead.
57061         (configure.ac): Require AC_C_INLINE.
57062
57063 2008-03-30  Bruno Haible  <bruno@clisp.org>
57064
57065         * lib/freadseek.c (freadseek): Don't ignore the return value of
57066         freadptr.
57067
57068 2008-03-29  Eric Blake  <ebb9@byu.net>
57069
57070         Add hex float support.
57071         * modules/strtod (Depends-on): Add c-ctype.
57072         (Link): Mention POW_LIB.
57073         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
57074         whitespace between 'e' and exponent.
57075         * tests/test-strtod.c (main): Enable hex float tests.
57076         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
57077         now provides.
57078
57079         Document various strtod bugs, with some fixes.
57080         * doc/posix-functions/strtod.texi (strtod): Document bugs with
57081         "-0x", "inf", "nan", and hex constants.
57082         * doc/posix-functions/atof.texi (atof): Likewise.
57083         * modules/stdlib (Makefile.am): Support strtod.
57084         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
57085         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
57086         detect additional strtod bugs.
57087         * lib/stdlib.in.h (rpl_strtod): Add declarations.
57088         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
57089         bool where appropriate.  Parse 'inf' and 'nan'.
57090         * tests/test-strtod.c: New file.
57091         * modules/strtod (Depends-on): Add stdbool, stdlib.
57092         (configure.ac): Turn on module indicator.
57093         * modules/strtod-tests: New module.
57094
57095 2008-03-29  Eric Blake  <ebb9@byu.net>
57096
57097         Fix ftell on mingw.
57098         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
57099         * modules/ftell-tests (Depends-on): Add binary-io.
57100         * modules/ftello-tests (Depends-on): Likewise.
57101         * tests/test-ftell.c (main): Enhance test to cover behavior after
57102         ungetc.  Enforce binary mode.
57103         * tests/test-ftello.c (main): Likewise.
57104
57105         Pass test-freadseek on cygwin.
57106         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
57107         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
57108         ungetc buffer.
57109
57110         * tests/test-fflush2.c (main): Fix typo.
57111
57112 2008-03-29  Bruno Haible  <bruno@clisp.org>
57113
57114         * tests/test-fflush2.c (main): Temporarily disable the contents of
57115         this test.
57116         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
57117         Reported by Eric Blake.
57118
57119 2008-03-28  Simon Josefsson  <simon@josefsson.org>
57120
57121         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
57122         (GC_SHA224_DIGEST_SIZE): Add.
57123
57124         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
57125         (gc_hash_digest_length): Likewise.
57126         (gc_hash_buffer): Likewise.
57127
57128 2008-03-25  Bruno Haible  <bruno@clisp.org>
57129
57130         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
57131         detail which gettext release to use.
57132         Reported by Simon Josefsson.
57133
57134 2008-03-26  Jim Meyering  <meyering@redhat.com>
57135
57136         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
57137         * modules/gnumakefile (clean-GNUmakefile): Also, use
57138         test ... && ... || : syntax rather than if-then ... fi.
57139
57140         gnumakefile: Don't double-quote-expand $(VPATH) value.
57141         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
57142
57143 2008-03-24  Eric Blake  <ebb9@byu.net>
57144
57145         Alter GNUmakefile to install into top directory.
57146         * modules/maintainer-makefile: Split, and add dependency...
57147         * modules/gnumakefile: to this new module.
57148         * build-aux/GNUmakefile: Move...
57149         * top/GNUmakefile: ...here.
57150         * build-aux/maint.mk: Move...
57151         * top/maint.mk: ...here.
57152         * MODULES.html.sh (Support for maintaining...): Document new
57153         module.
57154
57155 2008-03-23  Bruno Haible  <bruno@clisp.org>
57156
57157         * gnulib-tool: New options --vc-files, --no-vc-files.
57158         (func_usage): Document them.
57159         (vc_files): New variable.
57160         (func_import): Consider vc_files.
57161         (func_create_testdir): Set vc_files to empty.
57162         Suggested by Jim Meyering and Karl Berry.
57163
57164 2008-03-23  Bruno Haible  <bruno@clisp.org>
57165
57166         Fix regex compilation error on HP-UX 11.
57167         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
57168         * modules/regex (Files): Add m4/mbstate_t.m4.
57169         Reported by Ton Voon <ton.voon@altinity.com>.
57170
57171 2008-03-23  Bruno Haible  <bruno@clisp.org>
57172
57173         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
57174
57175 2008-03-23  Eric Blake  <ebb9@byu.net>
57176             Bruno Haible  <bruno@clisp.org>
57177
57178         Install files from top/ in the destination directory.
57179         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57180         augmentation also for the files from top/.
57181         (func_import, func_create_testdir): Rewrite file names:
57182         top/filename -> filename.
57183
57184 2008-03-23  Bruno Haible  <bruno@clisp.org>
57185
57186         Tweak "gnulib --version" output.
57187         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
57188
57189 2008-03-23  Bruno Haible  <bruno@clisp.org>
57190
57191         Tweak "gnulib --version" output.
57192         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
57193         rather than contents of ChangeLog, when possible.
57194
57195 2008-03-21  Eric Blake  <ebb9@byu.net>
57196
57197         More --version tweaks.
57198         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
57199         date of last ChangeLog entry.
57200
57201 2008-03-21  Jim Meyering  <meyering@redhat.com>
57202
57203         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
57204
57205 2008-03-20  Eric Blake  <ebb9@byu.net>
57206
57207         VPATH fix.
57208         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
57209
57210 2008-03-20  Simon Josefsson  <simon@josefsson.org>
57211
57212         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
57213         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
57214
57215 2008-03-20  Eric Blake  <ebb9@byu.net>
57216
57217         Sync GNUmakefile with coreutils.
57218         * build-aux/GNUmakefile (have-Makefile): Rename...
57219         (_have-Makefile): ...to this, for namespace consideration.
57220         (GNUmakefile.cfg): Include, if present.
57221         (_autoreconf): Define a default.
57222         (_is-dist-target): New rule for rebuilds to pick up intra-release
57223         version.
57224         (maint-cfg.mk): Rename...
57225         (cfg.mk): ...to this.
57226
57227 2008-03-18  Jim Meyering  <meyering@redhat.com>
57228
57229         New script and module: mktempd
57230         * MODULES.html.sh (maint+release support): Add mktempd.
57231         * build-aux/mktempd: New file.
57232         * modules/mktempd: New file.
57233
57234 2008-03-15  Jim Meyering  <meyering@redhat.com>
57235
57236         Undo last change.
57237         * lib/sha1.c, lib/md5.c: 63 != ~63.
57238         Reported by Andreas Schwab.
57239
57240         sha1.c, md5.c: Hoist a redundant expression.
57241         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
57242         "ctx->buflen" only once, before calling *_process_block.
57243         * lib/md5.c (md5_process_bytes): Likewise.
57244
57245 2008-03-14  Eric Blake  <ebb9@byu.net>
57246
57247         Bump copyright year in files generated by gnulib-tool.
57248         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
57249         gnulib-tool, rather than hard-coding it.
57250
57251         Fix 'gnulib-tool --version' output to work with git.
57252         * gnulib-tool (func_gnulib_dir): New function, extracted from...
57253         (startup): ...here.
57254         (func_version): Use it to invoke git-version-gen, rather than
57255         relying on CVS keyword expansion.  Modernize wording.
57256         (cvsdatestamp, last_checkin_date, version): Kill unused
57257         variables.
57258
57259 2008-03-12  Jim Meyering  <meyering@redhat.com>
57260
57261         Recognize optional cast of the argument to free.
57262         * build-aux/useless-if-before-free: Update regexps.
57263
57264         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
57265
57266 2008-03-11  Bruno Haible  <bruno@clisp.org>
57267
57268         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
57269         by a single package.
57270         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
57271         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
57272         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
57273         Reported by Sam Steingold <sds@gnu.org>.
57274
57275 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57276
57277         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
57278         repositories.
57279
57280 2008-03-11  Bruno Haible  <bruno@clisp.org>
57281
57282         Avoid conflicts between local macro definitions.
57283         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
57284         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
57285
57286 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
57287             Bruno Haible  <bruno@clisp.org>
57288
57289         Make va_copy work with some version of xlc on AIX 5.1.
57290         * lib/stdarg.in.h: New file.
57291         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
57292         On AIX, use a <stdarg.h> file substitute.
57293         * modules/stdarg (Files): Add lib/stdarg.in.h.
57294         (Depends-on): Add include_next.
57295         (Makefile.am): Build a stdarg.h substitute if requested.
57296         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
57297
57298 2008-03-10  Bruno Haible  <bruno@clisp.org>
57299
57300         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
57301         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57302         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57303
57304 2008-03-10  Bruno Haible  <bruno@clisp.org>
57305
57306         * modules/stdlib (Depends-on): Add include_next, remove
57307         absolute-header.
57308
57309 2008-03-09  Bruno Haible  <bruno@clisp.org>
57310
57311         * lib/freadahead.h (freadahead): Document more precisely.
57312         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
57313         the sum of both buffer sizes.
57314         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
57315         * NEWS: Document the change.
57316
57317 2008-03-09  Bruno Haible  <bruno@clisp.org>
57318
57319         Extend freadptr to return also the buffer size.
57320         * lib/freadptr.h (freadptr): Add sizep argument.
57321         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
57322         (freadptr): Add sizep argument. Determine buffer size like freadahead
57323         does.
57324         * tests/test-freadptr.c: Don't include freadahead.h.
57325         (main): Adapt for new calling convention of freadptr.
57326         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
57327         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
57328         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
57329         tests/test-freadptr2.sh.
57330         (Depends): Remove freadahead.
57331         (TESTS): Add test-freadptr2.sh.
57332         (check_PROGRAMS): Add test-freadptr2.
57333
57334 2008-03-09  Bruno Haible  <bruno@clisp.org>
57335
57336         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
57337         Report and solution by Simon Josefsson.
57338
57339 2008-03-06  Bruno Haible  <bruno@clisp.org>
57340
57341         Make fflush after ungetc work on BSD platforms.
57342         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
57343         * tests/test-fflush2.c: New file.
57344         * tests/test-fflush2.sh: New file.
57345         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
57346         tests/test-fflush2.c.
57347         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
57348         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
57349
57350 2008-03-06  Eric Blake  <ebb9@byu.net>
57351
57352         Likewise for ftello.
57353         * modules/ftello (Dependencies): Add extensions.
57354         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
57355
57356 2008-03-06  Bruno Haible  <bruno@clisp.org>
57357
57358         * modules/fseeko (Dependencies): Add extensions.
57359         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
57360         Needed on glibc systems.
57361
57362 2008-03-06  Bruno Haible  <bruno@clisp.org>
57363
57364         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
57365         email address.
57366         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57367
57368 2008-03-06  Bruno Haible  <bruno@clisp.org>
57369
57370         * users.txt: Add libgnupdf.
57371
57372 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
57373
57374         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
57375         (Header File Substitutes, Function Substitutes,
57376         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
57377         (Build robot for gnulib): Fix typo.
57378
57379 2008-03-06  Bruno Haible  <bruno@clisp.org>
57380
57381         * doc/gnulib-tool.texi (VCS Issues): Small updates.
57382         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57383
57384 2008-03-06  Bruno Haible  <bruno@clisp.org>
57385
57386         * doc/func.texi: New file, extracted from doc/gnulib.texi.
57387         * doc/gnulib.texi: Include it.
57388
57389 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57390
57391         * modules/func (License): Change license to unlimited; there was
57392         no LGPL parts in the module anyway.
57393
57394 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57395
57396         * modules/__func__: Renamed to modules/func.
57397         * modules/__func__-tests: Renamed to modules/func-tests.
57398         * tests/test-__func__.c: Renamed to tests/test-func.c.
57399         * m4/__func__.m4: Renamed to m4/func.m4.
57400         * doc/gnulib.texi (__func__): Section renamed to func.
57401         Suggested by Eric Blake <ebb9@byu.net>.
57402
57403 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57404
57405         * doc/gnulib.texi (__func__): Use C99 terminology when talking
57406         about __func__.  Make example self-contained.  Suggested by Eric
57407         Blake <ebb9@byu.net>.
57408
57409         * tests/test-__func__.c (main): Avoid extraneous () around __func.
57410         Suggested by Eric Blake <ebb9@byu.net>.
57411
57412 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57413
57414         * modules/__func__: New file.
57415         * modules/__func__-tests: New file.
57416         * tests/test-__func__.c: New file.
57417         * m4/__func__.m4: New file.
57418         * doc/gnulib.texi (__func__): Document __func__ module.
57419
57420 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57421
57422         * modules/byteswap (License): Re-license as LGPLv2+.
57423
57424 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57425
57426         * doc/Makefile: Add pdf target.
57427
57428 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57429
57430         * modules/inline (License): Use 'unlimited', since there are only
57431         *.m4 files in this module.
57432
57433 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57434             Bruno Haible  <bruno@clisp.org>
57435
57436         Add support for HP C 7.1 on OpenVMS 8.3.
57437         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
57438
57439 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57440
57441         Update VMS specifics.
57442         * lib/getopt.c [VMS]: Remove include of unixlib.h.
57443
57444 2008-03-02  Jim Meyering  <meyering@redhat.com>
57445
57446         Remove the last dependency on the "free" module.
57447         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
57448         Reported by Bob Proulx.
57449
57450         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
57451
57452         Remove useless "if" tests before free.  Deprecate "free" module.
57453         * doc/posix-functions/free.texi: Mention that this
57454         module is no longer useful.
57455         * modules/free (Notice): Say this module is obsolete.
57456         * modules/readutmp (Depends-on): Remove free.
57457         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
57458         * lib/putenv.c (putenv): Likewise.
57459         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
57460         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
57461         * tests/test-c-strcasestr.c (main): Likewise.
57462         * tests/test-c-strstr.c (main): Likewise.
57463         * tests/test-mbscasestr1.c (main): Likewise.
57464         * tests/test-mbscasestr2.c (main): Likewise.
57465         * tests/test-mbsstr1.c (main): Likewise.
57466         * tests/test-mbsstr2.c (main): Likewise.
57467         * tests/test-memmem.c (main): Likewise.
57468         * tests/test-strcasestr.c (main): Likewise.
57469         * tests/test-striconv.c (main): Likewise.
57470         * tests/test-striconveh.c (main): Likewise.
57471         * tests/test-striconveha.c (main): Likewise.
57472         * tests/test-strstr.c (main): Likewise.
57473
57474         * build-aux/git-version-gen: Adjust a comment and the Usage string.
57475
57476         bootstrap: sync from coreutils again
57477         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
57478
57479 2008-03-01  Jim Meyering  <meyering@redhat.com>
57480
57481         bootstrap: sync from coreutils
57482         * build-aux/bootstrap (update_po_files): Copy a .po file into place
57483         also when the target doesn't exist.
57484
57485 2008-03-01  Eric Blake  <ebb9@byu.net>
57486
57487         Fix bugs in last patch.
57488         * lib/memchr2.c (memchr2): Fix typo.
57489         * tests/test-memchr2.c: Test previous bug, and don't use GNU
57490         extension.
57491         Reported by Bruce Korb.
57492
57493         New module 'memchr2'.
57494         * modules/memchr2: New file.
57495         * modules/memchr2-tests: Likewise.
57496         * lib/memchr2.h: Likewise.
57497         * lib/memchr2.c: Likewise, based on memchr.c.
57498         * tests/test-memchr2.c: New test.
57499         * MODULES.html.sh (String handling): Add memchr2.
57500
57501 2008-02-29  Bruno Haible  <bruno@clisp.org>
57502
57503         * modules/freadseek-tests: New file.
57504         * tests/test-freadseek.sh: New file.
57505         * tests/test-freadseek.c: New file.
57506
57507         New module 'freadseek'.
57508         * modules/freadseek: New file.
57509         * lib/freadseek.h: New file.
57510         * lib/freadseek.c: New file.
57511         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
57512
57513 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
57514
57515         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
57516         wydawca.
57517
57518         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
57519         program_invocation_name and program_invocation_short_name are
57520         present.
57521
57522 2008-02-28  Bruno Haible  <bruno@clisp.org>
57523
57524         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
57525         * tests/test-freadptr.sh: Also test non-seekable stdin.
57526
57527 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
57528
57529         * build-aux/bootstrap (source_base, m4_base)
57530         (doc_base, tests_base): New variables.
57531         (gnulib_tool_options): Do not hardcode base directories, use
57532         the above variables instead.
57533
57534 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
57535
57536         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
57537
57538 2008-02-28  Bruno Haible  <bruno@clisp.org>
57539
57540         * modules/freadptr-tests: New file.
57541         * tests/test-freadptr.sh: New file.
57542         * tests/test-freadptr.c: New file.
57543
57544         New module 'freadptr'.
57545         * modules/freadptr: New file.
57546         * lib/freadptr.h: New file.
57547         * lib/freadptr.c: New file.
57548         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
57549
57550 2008-02-26  Karl Berry  <karl@freefriends.org>
57551
57552         Sync from Libtool:
57553         * libltdl/argz.c (argz_add, argz_count): New functions.
57554         * libltdl/argz.in.h: Declare them.
57555         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
57556
57557 2008-02-22  Bruno Haible  <bruno@clisp.org>
57558
57559         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
57560         is a pointer type.  Needed for HP-UX 10.
57561         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
57562         * doc/posix-functions/gmtime_r.texi: Likewise.
57563         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57564
57565 2008-02-24  Bruno Haible  <bruno@clisp.org>
57566
57567         * modules/environ-tests: New file.
57568         * tests/test-environ.c: New file.
57569
57570         New module 'environ'.
57571         * modules/environ: New file.
57572         * lib/unistd.in.h (environ): New declaration.
57573         * m4/environ.m4: New file.
57574         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
57575         after use.
57576         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
57577         HAVE_DECL_ENVIRON.
57578         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
57579         HAVE_DECL_ENVIRON.
57580         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
57581         wrong claim that 'environ' is missing on some systems.
57582         * modules/execute (Depends-on): Add environ.
57583         * lib/execute.c (environ): Remove fallback declaration.
57584         * modules/pipe (Depends-on): Add environ.
57585         * lib/pipe.c (environ): Remove fallback declaration.
57586         * modules/setenv (Depends-on): Add environ.
57587         * lib/setenv.c (environ): Remove fallback declaration.
57588         * modules/unsetenv (Depends-on): Add environ.
57589         * lib/unsetenv.c (environ): Remove fallback declaration.
57590         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
57591         m4/environ.m4.
57592         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
57593         (gl_PREREQ_UNSETENV): Likewise.
57594
57595 2008-02-24  Bruno Haible  <bruno@clisp.org>
57596
57597         * doc/posix-functions/environ.texi: Document the MacOS X problem.
57598
57599 2008-02-20  Bob Proulx  <bob@proulx.com>
57600
57601         Enable use of older two part flavor 'git describe'.
57602         * build-aux/git-version-gen: If using the older two part flavor of
57603         git version then recreate the third part now present in the
57604         newer three part flavor of git describe.
57605
57606 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
57607
57608         * lib/fts.c (fts_build): Typo correction to comment.
57609
57610 2008-02-17  Bruno Haible  <bruno@clisp.org>
57611
57612         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
57613         generating no-op conflicts.
57614
57615 2008-02-17  Bruno Haible  <bruno@clisp.org>
57616
57617         Speed up by 10%.
57618         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
57619         result_entries, rather than an index-based loop.
57620
57621 2008-02-17  Bruno Haible  <bruno@clisp.org>
57622
57623         Speed up by 25%.
57624         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
57625         'hashcode_cached'.
57626         (entry_create): New function.
57627         (entry_hashcode): Use the cached hashcode if possible.
57628         (read_changelog_file, try_split_merged_entry): Use entry_create.
57629
57630 2008-02-17  Bruno Haible  <bruno@clisp.org>
57631
57632         Speed up from O(n^2) to O(n) for long ChangeLog files.
57633         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
57634         (read_changelog_file): Change implementation of entries_reversed list
57635         to rbtreehash.
57636         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
57637
57638 2008-02-17  Bruno Haible  <bruno@clisp.org>
57639
57640         New option --split-merged-entry.
57641         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
57642         (find_paragraph_end, try_split_merged_entry): New functions.
57643         (long_options): Add option --split-merged-entry.
57644         (usage): Document option --split-merged-entry.
57645         (main): Implement option --split-merged-entry.
57646         Reported by Eric Blake.
57647
57648 2008-02-17  Bruno Haible  <bruno@clisp.org>
57649
57650         * lib/git-merge-changelog.c: Include c-strstr.h.
57651         (main): Support the "git pull --rebase" situation.
57652         * modules/git-merge-changelog (Depends-on): Add c-strstr.
57653         Reported by Eric Blake.
57654
57655 2008-02-16  Eric Blake  <ebb9@byu.net>
57656
57657         Avoid doubling \ in common case of "c-maybe" quoting style.
57658         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
57659         eliding outer quotes.
57660         * lib/quotearg.h: Document this.
57661         * tests/test-quotearg.c (result_strings, inputs, results_g)
57662         (flag_results, locale_results): Test it by adding a new string to
57663         each test group.
57664         (compare_strings): Test new string.
57665
57666 2008-02-13  Eric Blake  <ebb9@byu.net>
57667
57668         Avoid trigraph quoting in default output.
57669         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
57670         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
57671         unless explicitly requested.
57672         * tests/test-quotearg.c (flag_results, main): Add additional tests.
57673
57674 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
57675
57676         Don't rely on signed integer overflowing to negative value.
57677         * lib/getugroups.c (getugroups): Include <limits.h>.
57678         Instead, compare against INT_MAX, and increment only if the test passes.
57679
57680 2008-02-13  Jim Meyering  <meyering@redhat.com>
57681         and Eric Blake  <ebb9@byu.net>
57682
57683         Avoid shadowing warning and compile errors on Linux.
57684         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
57685         forwarding macros on Linux.
57686         (dcgettext): Define a stub, for Linux.
57687         (results_g, main): Avoid warnings.
57688
57689 2008-02-12  Eric Blake  <ebb9@byu.net>
57690
57691         Silence warning in last patch.
57692         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
57693
57694         Quotearg part 4: add tests, fix c-maybe colon quoting.
57695         * lib/quotearg.h: Improve documentation.
57696         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
57697         escapes when adding outer quotes.  When quoting trigraphs, use
57698         valid C notation.  When quoting NUL, omit extra characters if next
57699         character is not digit.  Alter prototype.
57700         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
57701         callers.
57702         * modules/quotearg-tests: New module.
57703         * tests/test-quotearg.c: New test.
57704
57705 2008-02-07  Eric Blake  <ebb9@byu.net>
57706
57707         Quotearg part 3: add flag to control outer quote elision.
57708         * lib/quotearg.h (c_maybe_quoting_style): New style.
57709         (enum quoting_flags): Better documentation of flags.
57710         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
57711         c-maybe style.
57712         (quotearg_buffer_restyled): Handle new flag to elide outer
57713         quotes.
57714
57715         Quotearg part 2: add flag that can control NUL elision.
57716         * lib/quotearg.h (set_quoting_flags): New prototype.
57717         * lib/quotearg.c (struct quoting_options): Add flag field.
57718         (set_quoting_flags): New function.
57719         (quotearg_buffer_restyled): Add flags parameter.
57720         (quotearg_alloc_mem): Set the flag if length cannot be returned.
57721         (quotearg_n_options): Set the flag, since length cannot be
57722         returned.
57723         (quoting_options_from_style): Default flags correctly.
57724
57725         Quotearg part 1: more wrappers, restore quotearg_char state.
57726         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
57727         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
57728         (quotearg_colon_mem): New wrappers.
57729         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
57730         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
57731         functions.
57732         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
57733         (quotearg_colon_mem): New functions.
57734
57735 2008-02-11  Bruno Haible  <bruno@clisp.org>
57736
57737         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
57738         library in the current directory: it does not work with parallel make.
57739         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57740
57741 2008-02-11  Bruno Haible  <bruno@clisp.org>
57742
57743         * .gitattributes: New file.
57744
57745 2008-02-11  Jim Meyering  <meyering@redhat.com>
57746
57747         useless-if-before-free: Fix reversed exit values.
57748         * build-aux/useless-if-before-free: Use correct values
57749         for EXIT_MATCH and EXIT_NO_MATCH.
57750
57751         * build-aux/useless-if-before-free: Close stdout carefully.
57752
57753 2008-02-10  Bruno Haible  <bruno@clisp.org>
57754
57755         New module 'git-merge-changelog'.
57756         * modules/git-merge-changelog: New file.
57757         * lib/git-merge-changelog.c: New file.
57758
57759 2008-02-10  Jim Meyering  <meyering@redhat.com>
57760
57761         useless-if-before-free: New option: --list (-l).
57762
57763         useless-if-before-free: Don't exit immediately upon open failure.
57764         * build-aux/useless-if-before-free: Exit 2 for errors.
57765         Upon failure to open a file, don't exit immediately.
57766         Rather, just warn and continue with any remaining files.
57767
57768 2008-02-10  Bruno Haible  <bruno@clisp.org>
57769
57770         New abstract list operation 'node_set_value'.
57771         * lib/gl_list.h (gl_list_node_set_value): New function.
57772         (struct gl_list_implementation): New field node_set_value.
57773         * lib/gl_list.c (gl_list_node_set_value): New function.
57774         * lib/gl_array_list.c (gl_array_node_set_value): New function.
57775         (gl_array_list_implementation): Update.
57776         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
57777         (gl_carray_list_implementation): Update.
57778         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
57779         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57780         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57781         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
57782         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57783         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57784         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57785         Update.
57786         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57787         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
57788         (gl_sublist_list_implementation): Update.
57789
57790 2008-02-10  Bruno Haible  <bruno@clisp.org>
57791
57792         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
57793         Needed when ELEMENT is #defined to 'some_type *'.
57794
57795 2008-02-10  Jim Meyering  <meyering@redhat.com>
57796
57797         New script and module: useless-if-before-free
57798         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
57799         * build-aux/useless-if-before-free: New file.
57800         * modules/useless-if-before-free: New file.
57801
57802         * build-aux/gitlog-to-changelog: Use committer date, not author date.
57803
57804         xstrtol_error: Fix typo.
57805         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
57806         s/exit_failure/exit_status/.
57807
57808 2008-02-09  Jim Meyering  <meyering@redhat.com>
57809
57810         New script and module: gitlog-to-changelog
57811         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
57812         * modules/gitlog-to-changelog: New file.
57813         * build-aux/gitlog-to-changelog: New file.
57814
57815 2008-02-08  Jim Meyering  <meyering@redhat.com>
57816
57817         Avoid two "parameter unused" warnings.
57818         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
57819         Mark "st" as used.
57820
57821         Use "git COMMAND", not "git-COMMAND".
57822         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
57823         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
57824         * build-aux/git-version-gen: Use "git status", not "git-status".
57825
57826 2008-02-07  Bruno Haible  <bruno@clisp.org>
57827
57828         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
57829         Avoids a crash on Windows Vista.
57830         Reported by Adam Strzelecki <ono@java.pl> via
57831         Simon Josefsson <simon@josefsson.org>.
57832
57833 2008-02-06  Bruno Haible  <bruno@clisp.org>
57834
57835         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
57836         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
57837         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
57838         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
57839         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57840         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57841         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
57842         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
57843         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57844         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57845         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57846         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57847         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57848         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57849         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57850         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
57851         left-adjust flag.
57852         * tests/test-snprintf-posix.h (test_function): Likewise.
57853         * tests/test-sprintf-posix.h (test_function): Likewise.
57854         * tests/test-vasprintf-posix.c (test_function): Likewise.
57855         * doc/posix-functions/fprintf.texi: Update.
57856         * doc/posix-functions/printf.texi: Update.
57857         * doc/posix-functions/snprintf.texi: Update.
57858         * doc/posix-functions/sprintf.texi: Update.
57859         * doc/posix-functions/vfprintf.texi: Update.
57860         * doc/posix-functions/vprintf.texi: Update.
57861         * doc/posix-functions/vsnprintf.texi: Update.
57862         * doc/posix-functions/vsprintf.texi: Update.
57863         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57864
57865 2008-02-06  Bruno Haible  <bruno@clisp.org>
57866
57867         Fix bug introduced on 2008-01-26.
57868         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
57869
57870 2008-02-06  Bruno Haible  <bruno@clisp.org>
57871
57872         Fix bug introduced on 2007-06-10.
57873         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
57874         !NEED_PRINTF_FLAG_ZERO.
57875
57876 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
57877
57878         getloadavg: use libperfstat on AIX5
57879         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
57880
57881 2008-02-03  Bruno Haible  <bruno@clisp.org>
57882
57883         * lib/diffseq.h: Add comments about required #includes.
57884         Reported by Michael Biggs <gnulib@doubleplum.net>.
57885
57886 2008-02-01  Bruno Haible  <bruno@clisp.org>
57887
57888         * users.txt: Add gnuit.
57889
57890 2008-01-31  Bruno Haible  <bruno@clisp.org>
57891
57892         * lib/md4.c (set_uint32): Mark as inline.
57893         * lib/md5.c (set_uint32): Likewise.
57894         * lib/sha1.c (set_uint32): Likewise.
57895         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
57896         * m4/md5.m4 (gl_MD5): Likewise.
57897         * m4/sha1.m4 (gl_SHA1): Likewise.
57898
57899 2008-01-31  Jim Meyering  <meyering@redhat.com>
57900
57901         Use "sizeof VAR", rather than a literal "4".
57902         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
57903         * lib/md4.c (md4_read_ctx): Likewise.
57904         * lib/sha1.c (sha1_read_ctx): Likewise.
57905
57906 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57907
57908         * tests/test-sha1.c: New file, based on test-md5.c.
57909
57910         * modules/crypto/sha1-tests: New file.
57911
57912 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57913
57914         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
57915
57916 2008-01-31  Jim Meyering  <meyering@redhat.com>
57917
57918         Prefer "sizeof v" over the equivalent "4".
57919         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
57920         * lib/md5.c (set_uint32): Likewise.
57921         * lib/sha1.c (set_uint32): Likewise.
57922
57923 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57924
57925         * lib/sha1.c (set_uint32): Mark function as static.
57926
57927 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57928
57929         md2: clarify comments to say that alignment is not required.
57930         * lib/md2.h: Remove warning about alignment in comment.
57931         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
57932         never been required.
57933
57934 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57935
57936         md4: adapt alignment constraint fix from sha1.
57937         * lib/md4.c (set_uint32): New function, from sha1.c
57938         (md4_read_ctx): Use it.
57939         (md4_finish_ctx): Doc fix.
57940         * lib/md4.h: Doc fix.
57941
57942 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57943
57944         md5: adapt alignment constraint fix from sha1.
57945         * lib/md5.c (set_uint32): New function, from sha1.c
57946         (md5_read_ctx): Use it.
57947         (md5_finish_ctx): Doc fix.
57948         * lib/md5.h: Doc fix.
57949
57950 2008-01-30  Peter Palfrader  <weasel@debian.org>
57951
57952         sha1: remove the result buffer alignment constraint
57953         * lib/sha1.c (set_uint32): New function.
57954         (sha1_read_ctx): Rewrite to remove the result buffer alignment
57955         constraint.
57956         (sha1_finish_ctx): Remove comment warning about alignment constraint.
57957         * lib/sha1.h: Likewise.
57958
57959 2008-01-30  Andreas Schwab  <schwab@suse.de>
57960             Bruno Haible  <bruno@clisp.org>
57961
57962         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
57963         correct definition of LDBL_MIN_EXP.
57964
57965 2008-01-30  Karl Berry  <karl@gnu.org>
57966
57967         * config/srclist-update: try to preserve x bit on updates.
57968         * config/srclistvars.sh: update for karl.
57969
57970 2008-01-29  Jim Meyering  <meyering@redhat.com>
57971
57972         vasnprintf.c: Avoid warning about unused label
57973         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
57974         "overflow" label definition and associated code with the
57975         same cpp condition that guards the sole use of that label.
57976
57977 2008-01-26  Bruno Haible  <bruno@clisp.org>
57978
57979         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
57980         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
57981         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
57982         * lib/isnanl-nolibm.h (isnanl): Likewise.
57983         Reported by Paul Eggert <eggert@cs.ucla.edu>.
57984
57985 2008-01-26  Bruno Haible  <bruno@clisp.org>
57986
57987         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
57988         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
57989
57990 2008-01-26  Bruno Haible  <bruno@clisp.org>
57991
57992         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
57993         GCC >= 4.0 built-in.
57994         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
57995
57996 2008-01-26  Bruno Haible  <bruno@clisp.org>
57997
57998         Rename isnan, applicable to 'double' only, to isnand.
57999         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
58000         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
58001         (configure.ac): Update.
58002         (Include): Replace "isnan.h" with "isnand.h".
58003         * m4/isnand.m4: Renamed from m4/isnan.m4.
58004         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
58005         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
58006         instead of isnan.c.
58007         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
58008         instead of HAVE_ISNAN_IN_LIBC.
58009         (isnand): Renamed from isnan.
58010         * lib/isnand.c: New file.
58011         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
58012         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
58013         (Makefile.am): Update.
58014         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
58015         Include isnand.h instead of isnan.h.
58016         (main): Test isnand instead of isnan.
58017         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
58018         isnan-nolibm.
58019         * modules/frexp (Depends-on): Likewise.
58020         * modules/frexp-tests (Depends-on): Likewise.
58021         * modules/frexp-nolibm (Depends-on): Likewise.
58022         * modules/frexp-nolibm-tests (Depends-on): Likewise.
58023         * modules/isfinite (Depends-on): Likewise.
58024         * modules/round-tests (Depends-on): Likewise.
58025         * modules/signbit (Depends-on): Likewise.
58026         * modules/signbit-tests (Depends-on): Likewise.
58027         * modules/snprintf-posix (Depends-on): Likewise.
58028         * modules/sprintf-posix (Depends-on): Likewise.
58029         * modules/trunc-tests (Depends-on): Likewise.
58030         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58031         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58032         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58033         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58034         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58035         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58036         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58037         * modules/vasnprintf-posix (Depends-on): Likewise.
58038         * modules/vasprintf-posix (Depends-on): Likewise.
58039         * modules/vfprintf-posix (Depends-on): Likewise.
58040         * modules/vsnprintf-posix (Depends-on): Likewise.
58041         * modules/vsprintf-posix (Depends-on): Likewise.
58042         * lib/frexp.c: Include isnand.h instead of isnan.h.
58043         (ISNAN): Set to isnand instead of isnan.
58044         * lib/isfinite.c: Include isnand.h instead of isnan.h.
58045         (gl_isfinited): Use isnand instead of isnan.
58046         * lib/signbitd.c: Include isnand.h instead of isnan.h.
58047         (gl_signbitd): Use isnand instead of isnan.
58048         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
58049         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
58050         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
58051         (main): Use isnand instead of isnan.
58052         * tests/test-round1.c: Include isnand.h.
58053         (main): Use isnand instead of isnan.
58054         * tests/test-round2.c: Include isnand.h instead of isnan.h.
58055         (ISNAN): Set to isnand instead of isnan.
58056         * tests/test-trunc1.c: Include isnand.h.
58057         (main): Use isnand instead of isnan.
58058         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
58059         (equal): Use isnand instead of isnan.
58060         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
58061         isnand-nolibm.
58062         * NEWS: Mention the change.
58063
58064 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
58065             Bruno Haible  <bruno@clisp.org>
58066
58067         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
58068         the GCC builtins for signbits are present and set
58069         REPLACE_SIGNBIT_USING_GCC if so.
58070         * lib/math.in.h (signbit): Define using GCC builtins if
58071         REPLACE_SIGNBIT_USING_GCC is set.
58072         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
58073         REPLACE_SIGNBIT_USING_GCC.
58074         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
58075
58076 2008-01-25  Jim Meyering  <meyering@redhat.com>
58077
58078         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
58079         * lib/poll.c: Include <config.h>, not "config.h".
58080         * tests/test-getaddrinfo.c: Likewise.
58081
58082 2008-01-25  Simon Josefsson  <simon@josefsson.org>
58083
58084         * modules/sockets-tests: New file.
58085
58086 2008-01-24  Simon Josefsson  <simon@josefsson.org>
58087
58088         * modules/sockets: New module, can be used to call WSA_Startup and
58089         WSA_Cleanup when needed.
58090
58091         * lib/sockets.h, lib/sockets.c: New files.
58092
58093         * m4/sockets.m4: New file.
58094
58095         * tests/test-sockets.c: New file.
58096
58097 2008-01-19  Bruno Haible  <bruno@clisp.org>
58098
58099         * doc/posix-headers: Renamed from doc/headers.
58100         * doc/posix-functions: Renamed from doc/functions.
58101         * doc/gnulib.texi: Update.
58102
58103 2008-01-19  Bruno Haible  <bruno@clisp.org>
58104
58105         * doc/glibc-functions/strcasestr.texi: Include contents of
58106         doc/functions/strcasestr.texi, fixing the list of platforms.
58107         * doc/functions/strcasestr.texi: Remove file.
58108
58109 2008-01-19  Bruno Haible  <bruno@clisp.org>
58110
58111         * doc/glibc-functions/memmem.texi: Include contents of
58112         doc/functions/memmem.texi.
58113         * doc/functions/memmem.texi: Remove file.
58114
58115 2008-01-18  Bruno Haible  <bruno@clisp.org>
58116
58117         * doc/glibc-functions/*.texi: New files.
58118         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
58119         to use the new files.
58120
58121 2008-01-17  Bruno Haible  <bruno@clisp.org>
58122
58123         * tests/test-gethostname.c (main): Fix printf statement.
58124
58125 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58126
58127         * modules/gethostname-tests: New file.
58128
58129         * tests/test-gethostname.c: New file.
58130
58131 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58132
58133         * lib/gethostname.c: Include string.h unconditionally, strncpy is
58134         used by the UNAME case.  Reported by Bruno Haible
58135         <bruno@clisp.org>.
58136
58137 2008-01-17  Eric Blake  <ebb9@byu.net>
58138
58139         Convert c-strcasestr to be more efficient.
58140         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
58141         (Depends-on): Add c-strcase, remove malloca, strnlen.
58142         * tests/test-c-strcasestr.c (main): Enhance test.
58143         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
58144
58145 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
58146
58147         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
58148         Use it in creating po/Makevars.
58149
58150 2008-01-15  Simon Josefsson  <simon@josefsson.org>
58151
58152         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
58153         Applications that requires it should initialize libgcrypt
58154         manually.
58155
58156 2008-01-16  Simon Josefsson  <simon@josefsson.org>
58157
58158         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
58159
58160 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
58161
58162         Fix problem with getdate on mingw32 reported by Simon Josefsson
58163         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
58164         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
58165         tzname", when deciding whether to declare tzname.
58166         * lib/strftime.c (tzname): Likewise.
58167
58168 2008-01-15  Bruno Haible  <bruno@clisp.org>
58169
58170         Work around a MacOS X 10.5 bug in frexpl().
58171         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
58172         * doc/functions/frexpl.texi: Document the bug.
58173         Reported by Elias Pipping <pipping@gentoo.org>.
58174
58175 2008-01-14  Eric Blake  <ebb9@byu.net>
58176
58177         Touch up previous patch.
58178         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
58179         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
58180
58181         Convert strcasestr module to use Two-Way algorithm.
58182         * modules/strcasestr-simple: New module, based on the old
58183         strcasestr, but with Two-Way rather than KMP.
58184         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
58185         * lib/string.in.h (rpl_strcasestr): Declare.
58186         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
58187         performance.
58188         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
58189         * modules/string (Makefile.am): Support strcasestr.
58190         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
58191         * modules/strcasestr-tests (Depends-on): Check for alarm.
58192         * tests/test-strcasestr.c: Augment test.
58193         * lib/str-two-way.h: Clean up stray macro.
58194         * NEWS: Document new module.
58195         * MODULES.html.sh (string handling): Likewise.
58196         * doc/functions/strcasestr.texi: New file.
58197         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
58198         here, since it is not a POSIX function.
58199
58200 2008-01-14  Colin Watson  <cjwatson@debian.org>
58201             Bruno Haible  <bruno@clisp.org>
58202
58203         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
58204         works fine; if not, set REPLACE_STRSIGNAL.
58205         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
58206         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58207         REPLACE_STRSIGNAL.
58208         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
58209         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
58210         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
58211
58212 2008-01-14  Bruno Haible  <bruno@clisp.org>
58213
58214         * modules/strsignal (Include): Change to <string.h>.
58215
58216 2008-01-14  Colin Watson  <cjwatson@debian.org>
58217
58218         * modules/argp (Notice): Add a notice recommending to change
58219         XGETTEXT_OPTIONS.
58220         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
58221
58222 2008-01-13  Colin Watson  <cjwatson@debian.org>
58223
58224         * modules/strsignal-tests: New file.
58225         * tests/test-strsignal.c: New file.
58226
58227         * lib/strsignal.c: New file, from glibc with modifications.
58228         * lib/siglist.h: New file, from glibc with modifications.
58229         * lib/string.in.h (strsignal): New declaration.
58230         * m4/strsignal.m4: New file.
58231         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58232         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
58233         * modules/strsignal: New file.
58234         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
58235         HAVE_DECL_STRSIGNAL.
58236
58237 2008-01-13  Bruno Haible  <bruno@clisp.org>
58238
58239         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
58240         locale encoding is not ASCII. Needed for OpenBSD 4.0.
58241         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
58242         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58243
58244 2008-01-13  Bruno Haible  <bruno@clisp.org>
58245
58246         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
58247         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
58248         * lib/argp.h (__attribute__): Likewise.
58249         * lib/c-stack.c (__attribute__): Likewise.
58250         * lib/error.h (__attribute__): Likewise.
58251         * lib/fts.c (__attribute__): Likewise.
58252         * lib/openat.h (__attribute__): Likewise.
58253         * lib/stdio.in.h (__attribute__): Likewise.
58254         * lib/string.in.h (__attribute__): Likewise.
58255         * lib/utimens.c (__attribute__): Likewise.
58256         * lib/vasnprintf.h (__attribute__): Likewise.
58257         * lib/xalloc.h (__attribute__): Likewise.
58258         * lib/xprintf.h (__attribute__): Likewise.
58259         * lib/xstrtol.h (__attribute__): Likewise.
58260         * lib/xvasprintf.h (__attribute__): Likewise.
58261
58262 2008-01-12  Bruno Haible  <bruno@clisp.org>
58263
58264         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
58265         * doc/glibc-headers/a.out.texi: New file.
58266         * doc/glibc-headers/aliases.texi: New file.
58267         * doc/glibc-headers/alloca.texi: New file.
58268         * doc/glibc-headers/ar.texi: New file.
58269         * doc/glibc-headers/argp.texi: New file.
58270         * doc/glibc-headers/argz.texi: New file.
58271         * doc/glibc-headers/byteswap.texi: New file.
58272         * doc/glibc-headers/crypt.texi: New file.
58273         * doc/glibc-headers/endian.texi: New file.
58274         * doc/glibc-headers/envz.texi: New file.
58275         * doc/glibc-headers/err.texi: New file.
58276         * doc/glibc-headers/error.texi: New file.
58277         * doc/glibc-headers/execinfo.texi: New file.
58278         * doc/glibc-headers/fpu_control.texi: New file.
58279         * doc/glibc-headers/fstab.texi: New file.
58280         * doc/glibc-headers/fts.texi: New file.
58281         * doc/glibc-headers/getopt.texi: New file.
58282         * doc/glibc-headers/ieee754.texi: New file.
58283         * doc/glibc-headers/ifaddrs.texi: New file.
58284         * doc/glibc-headers/libintl.texi: New file.
58285         * doc/glibc-headers/mcheck.texi: New file.
58286         * doc/glibc-headers/mntent.texi: New file.
58287         * doc/glibc-headers/obstack.texi: New file.
58288         * doc/glibc-headers/paths.texi: New file.
58289         * doc/glibc-headers/printf.texi: New file.
58290         * doc/glibc-headers/pty.texi: New file.
58291         * doc/glibc-headers/resolv.texi: New file.
58292         * doc/glibc-headers/shadow.texi: New file.
58293         * doc/glibc-headers/sysexits.texi: New file.
58294         * doc/glibc-headers/ttyent.texi: New file.
58295
58296 2008-01-12  Jim Meyering  <meyering@redhat.com>
58297
58298         announce-gen: emit Gnulib's git-based version string.
58299         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
58300         New option --gnulib-version=V, where V is expected to be
58301         the output of running git describe in the gnulib directory.
58302         (get_tool_versions): Request feedback on xdelta.  I suspect it's
58303         not useful, and plan to stop publishing an xdelta file with each
58304         coreutils release.
58305
58306         * build-aux/announce-gen: Also check for lzma-compressed files.
58307
58308 2008-01-11  Bruno Haible  <bruno@clisp.org>
58309
58310         * tests/test-memmem.c (main): Increase maximum allowed time.
58311         * tests/test-strstr.c (main): Likewise.
58312
58313 2008-01-11  Bruno Haible  <bruno@clisp.org>
58314
58315         * doc/functions/memmem.texi: Add more precisions about platforms.
58316         * doc/functions/strstr.texi: Likewise.
58317
58318 2008-01-10  Eric Blake  <ebb9@byu.net>
58319
58320         * m4/strstr.m4: Delete cruft from copy-n-paste.
58321         Reported by Bruno Haible.
58322
58323 2008-01-10  Bruno Haible  <bruno@clisp.org>
58324
58325         Make c-strstr rely on strstr.
58326         * lib/c-strstr.c: Don't include str-kmp.h.
58327         (c_strstr): Define in terms of strstr.
58328         * modules/c-strstr (Files): Remove lib/str-kmp.h.
58329         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
58330
58331 2008-01-10  Bruno Haible  <bruno@clisp.org>
58332
58333         * doc/gnulib.texi (String Functions in C Locale): New section.
58334         * doc/c-ctype.texi: New file.
58335         * doc/c-strcase.texi: New file.
58336         * doc/c-strcaseeq.texi: New file.
58337         * doc/c-strcasestr.texi: New file.
58338         * doc/c-strstr.texi: New file.
58339         * doc/c-strtod.texi: New file.
58340         * doc/c-strtold.texi: New file.
58341
58342 2008-01-10  Eric Blake  <ebb9@byu.net>
58343
58344         * lib/relocatable.h: Fix a comment.
58345
58346 2008-01-10  Eric Blake  <ebb9@byu.net>
58347
58348         Share two-way algorithm.
58349         * lib/str-two-way.h: New file, merged from...
58350         * lib/memmem.c: ...here...
58351         * lib/strstr.c: ...and here.
58352         * modules/memmem (Files): Use it.
58353         * modules/strstr (Files): Likewise.
58354
58355         Avoid quadratic strstr implementations.
58356         * lib/strstr.c: New file.
58357         * m4/strstr.m4: Likewise.
58358         * modules/strstr: Likewise.
58359         * modules/strstr-tests: Likewise.
58360         * tests/test-strstr.c: Likewise.
58361         * lib/string.in.h (rpl_strstr): Declare.
58362         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
58363         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
58364         * modules/string (Makefile.am): Likewise.
58365         * MODULES.html.sh (string handling): Mention new module.
58366         * doc/functions/strstr.texi (strstr): Document the bug.
58367
58368 2008-01-10  Bruno Haible  <bruno@clisp.org>
58369
58370         * lib/relocatable.h (relocate): State whether result is freshly
58371         allocated or not.
58372         * lib/relocatable.c (relocate): Return a freshly allocated string
58373         instead of a pointer to a privately held string.
58374         Reported by Sylvain Beucler <beuc@gnu.org>.
58375
58376 2008-01-10  Colin Watson  <cjwatson@debian.org>
58377
58378         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
58379         s/S_ISNLK/S_ISLNK/.
58380
58381 2008-01-09  Bruno Haible  <bruno@clisp.org>
58382
58383         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
58384         and other files.
58385         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
58386         if it's only a guess.
58387         * modules/memmem: Simplify by depending on memmem-simple.
58388
58389 2008-01-09  Bruno Haible  <bruno@clisp.org>
58390
58391         Work around OpenBSD 4.0 tdelete() bug.
58392         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
58393         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
58394         macros and don't redefine the enum values.
58395         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
58396         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
58397         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
58398
58399 2008-01-09  Bruno Haible  <bruno@clisp.org>
58400
58401         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
58402         (main): Don't perform the tests if setlocale did not install a UTF-8
58403         locale. Needed on OpenBSD 4.0.
58404         * modules/wcwidth-tests (Depends-on): Add localcharset.
58405
58406 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58407
58408         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
58409         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
58410         * NEWS: announce this.
58411         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
58412
58413 2008-01-09  Simon Josefsson  <simon@josefsson.org>
58414         and Eric Blake  <ebb9@byu.net>
58415
58416         Add memmem-simple module.
58417         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
58418         (gl_FUNC_MEMMEM): Separate performance from presence checks.
58419         * modules/memmem-simple: New file.
58420         * modules/memmem (Description): Tweak.
58421         * MODULES.html.sh (string handling): Mention new module.
58422         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
58423         addressed by memmem-simple.
58424         * NEWS: Document the difference.
58425
58426 2008-01-09  Eric Blake  <ebb9@byu.net>
58427
58428         Give gcc some memmem optimization hints.
58429         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
58430         (strcasestr): Declare as pure.
58431         * modules/memmem (Maintainer): Claim my implementation.
58432
58433 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58434
58435         Support AIX 6.1 and higher.
58436         * build-aux/config.libpath: Likewise.
58437         * build-aux/config.rpath: Likewise.
58438
58439 2008-01-08  Jim Meyering  <meyering@redhat.com>
58440             Bruno Haible  <bruno@clisp.org>
58441
58442         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
58443         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
58444         Reported by Peter Fales in
58445         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
58446
58447 2008-01-08  Bruno Haible  <bruno@clisp.org>
58448
58449         * modules/unictype/category-of (Depends-on): Add
58450         unictype/category-none.
58451         * modules/unictype/category-and-tests (Depends-on): Add
58452         unictype/category-{L,N,Lu,Nd}.
58453         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
58454         * modules/unictype/category-or-tests (Depends-on): Add
58455         unictype/category-{L,N}.
58456         * modules/unictype/category-name-tests (Depends-on): Add
58457         unictype/category-{Z,Nl}.
58458         Reported by Simon Josefsson.
58459
58460 2008-01-08  Bruno Haible  <bruno@clisp.org>
58461
58462         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
58463         convention better.
58464         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
58465         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
58466         Reported by Peter Miller <millerp@canb.auug.org.au>.
58467
58468 2008-01-08  Eric Blake  <ebb9@byu.net>
58469
58470         Rewrite memmem to guarantee linear complexity without malloc.
58471         * lib/memmem.c (memmem): Use Two-Way rather than
58472         Knuth-Morris-Pratt, to allow O(1) space usage.
58473         (critical_factorization, two_way_short_needle)
58474         (two_way_long_needle): New functions.
58475         (knuth_morris_pratt): Delete.
58476         * modules/memmem (Depends-on): No longer need malloca or stdbool.
58477         Add stdint.
58478         * tests/test-memmem.c (main): Add tests for periodic needle and
58479         sublinear performance.
58480         * doc/functions/memmem.texi (memmem): Document other deficiencies
58481         in cygwin and older glibc.
58482
58483 2008-01-08  Bruno Haible  <bruno@clisp.org>
58484
58485         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
58486         augmentation.
58487
58488 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
58489
58490         Add a configure time option: --disable-acl.
58491         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
58492         AC_ARG_ENABLE(acl).
58493
58494 2008-01-06  Simon Josefsson  <simon@josefsson.org>
58495
58496         * tests/test-localename.c: Don't include obsolete "setenv.h".
58497
58498         * modules/localename-tests (Depends-on): Need unsetenv.
58499
58500 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58501
58502         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
58503
58504 2008-01-06  Colin Watson  <cjwatson@debian.org>
58505
58506         * users.txt: Add man-db.
58507
58508 2008-01-07  Bruno Haible  <bruno@clisp.org>
58509
58510         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
58511         previous section name.
58512
58513 2008-01-07  Bruno Haible  <bruno@clisp.org>
58514
58515         * lib/progname.c (set_program_name): Don't strip off a leading
58516         "lt-" prefix outside a .libs directory.
58517         Suggested by Paul Eggert.
58518
58519 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
58520             Bruno Haible  <bruno@clisp.org>
58521
58522         Improve memory cleanup in 'relocatable' module.
58523         * lib/relocatable.h (compute_curr_prefix): Change return type to
58524         'char *'.
58525         * lib/relocatable.c (compute_curr_prefix): Change return type to
58526         'char *'. Free curr_installdir after use.
58527         (relocate): Free curr_prefix_better after use.
58528         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
58529
58530 2008-01-01  Bruno Haible  <bruno@clisp.org>
58531
58532         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
58533         failure on older glibc systems.
58534         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58535
58536 2008-01-05  Eric Blake  <ebb9@byu.net>
58537
58538         Avoid quadratic system memmem.
58539         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
58540         Reported by Ralf Wildenhues.
58541
58542         Fix memmem test for mingw.
58543         * modules/memmem-tests (configure.ac): Check for alarm.
58544         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
58545         it.
58546         * doc/functions/memmem.texi: New file.
58547         * doc/gnulib.texi (Function Substitutes): Add memmem.
58548         Reported by Bruno Haible.
58549
58550 2008-01-04  Bruno Haible  <bruno@clisp.org>
58551
58552         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
58553         Require gl_HEADER_STRINGS_H_DEFAULTS, not
58554         gl_HEADER_STRING_H_DEFAULTS.
58555
58556 2008-01-04  Eric Blake  <ebb9@byu.net>
58557
58558         Shorten duration of memmem test.
58559         * tests/test-memmem.c (main): Use alarm to declare failure if test
58560         is taking too long.
58561         Reported by Ralf Wildenhues.
58562
58563 2007-12-21  Simon Josefsson  <simon@josefsson.org>
58564
58565         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
58566         string, needed by strerror.
58567
58568 2008-01-03  Colin Watson  <cjwatson@debian.org>
58569             Bruno Haible  <bruno@clisp.org>
58570
58571         * doc/gnulib-tool.texi (Localization): New section.
58572
58573 2008-01-02  Bruno Haible  <bruno@clisp.org>
58574
58575         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
58576         variables to 'unsigned char *' type.
58577         Reported by Paul Eggert.
58578
58579 2008-01-02  Jim Meyering  <jim@meyering.net>
58580
58581         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
58582
58583 2007-12-31  Jim Meyering  <jim@meyering.net>
58584
58585         Avoid use of private FTS type name.
58586         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
58587
58588 2007-12-30  Karl Berry  <karl@gnu.org>
58589
58590         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
58591         work around defect in Texinfo and/or the standalone Info browser.
58592
58593 2007-12-30  Bruno Haible  <bruno@clisp.org>
58594
58595         Unify 5 copies of the KMP code.
58596         * lib/str-kmp.h: New file.
58597         * lib/c-strcasestr.c: Include str-kmp.h.
58598         (knuth_morris_pratt): Remove function.
58599         (c_strcasestr): Update.
58600         * lib/c-strstr.c: Include str-kmp.h.
58601         (knuth_morris_pratt): Remove function.
58602         (c_strcasestr): Update.
58603         * lib/mbscasestr.c: Include str-kmp.h.
58604         (knuth_morris_pratt_unibyte): Remove function.
58605         * lib/mbsstr.c: Include str-kmp.h.
58606         (knuth_morris_pratt_unibyte): Remove function.
58607         * lib/strcasestr.c: Include str-kmp.h.
58608         (knuth_morris_pratt): Remove function.
58609         (strcasestr): Update.
58610         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
58611         * modules/c-strstr (Files): Likewise.
58612         * modules/mbscasestr (Files): Likewise.
58613         * modules/mbsstr (Files): Likewise.
58614         * modules/strcasestr (Files): Likewise.
58615         Suggested by Paul Eggert.
58616
58617 2007-12-30  Bruno Haible  <bruno@clisp.org>
58618
58619         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
58620         defined.
58621
58622 2007-12-30  Bruno Haible  <bruno@clisp.org>
58623
58624         * lib/xmalloca.h: Include xalloc.h.
58625         (xnmalloca): New macro.
58626
58627 2007-12-30  Bruno Haible  <bruno@clisp.org>
58628
58629         * lib/malloca.h (nmalloca): New macro.
58630         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
58631         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
58632         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
58633         knuth_morris_pratt_multibyte): Likewise.
58634         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
58635         knuth_morris_pratt_multibyte): Likewise.
58636         * lib/memmem.c (knuth_morris_pratt): Likewise.
58637         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
58638
58639 2007-12-25  Bruno Haible  <bruno@clisp.org>
58640
58641         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
58642         * lib/glob.c: Don't include openat.h.
58643         (link_exists2_p): Add back the code that deals with the
58644         !GLOB_ALTDIRFUNC case.
58645         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
58646         let it do the filename concatenation.
58647         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
58648         * modules/glob (Depends-on): Remove openat.
58649
58650 2007-12-31  Bruno Haible  <bruno@clisp.org>
58651
58652         * modules/dirfd (License): Change to LGPLv2+.
58653         Approved by Jim Meyering.
58654
58655 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58656
58657         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
58658         when multiplying M by sizeof (size_t).
58659
58660 2007-12-10  Martin Lambers  <marlam@marlam.de>
58661
58662         Override getpagesize on mingw.
58663         * lib/getpagesize.c: New file.
58664         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
58665         * modules/getpagesize (Files): Add lib/getpagesize.c.
58666         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
58667         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58668         REPLACE_GETPAGESIZE.
58669         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
58670
58671 2007-12-25  Bruno Haible  <bruno@clisp.org>
58672
58673         * modules/localcharset (Notice): New field.
58674         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
58675         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
58676
58677 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58678             Bruno Haible  <bruno@clisp.org>
58679
58680         Avoid using the syntax symbol() in formatted documentation.
58681         * MODULES.html.sh (func_module): When replacing symbol() with a
58682         hyperlink, remove the parentheses. Show an error if some remain.
58683         Recognize and render the '...' syntax.
58684         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
58685         Rework. Add paragraph about GCC's inlining.
58686         * doc/alloca.texi: Likewise.
58687         * doc/error.texi: Remove parentheses from symbol reference.
58688         * doc/gnulib-intro.texi: Likewise.
58689         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
58690         * modules/fnmatch (Description): Reword to say "the ... function".
58691         * modules/full-read (Description): Likewise.
58692         * modules/full-write (Description): Likewise.
58693         * modules/safe-read (Description): Likewise.
58694         * modules/safe-write (Description): Likewise.
58695         * modules/strchrnul (Description): Likewise.
58696         * modules/trim (Description): Likewise.
58697         * modules/error (Description): Remove parentheses from symbol
58698         references.
58699         * modules/verror (Description): Likewise.
58700         Reported by Karl Berry.
58701
58702 2007-12-25  Bruno Haible  <bruno@clisp.org>
58703
58704         Fixup after 2007-10-16 commit.
58705         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
58706
58707 2007-12-24  Bruno Haible  <bruno@clisp.org>
58708
58709         Make --enable-relocatable work with DESTDIR.
58710         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
58711         to compute installdir from destprog.
58712         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
58713         also set the RELOC_DESTDIR variable.
58714         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58715
58716 2007-12-24  Bruno Haible  <bruno@clisp.org>
58717
58718         Fix link error due to xalloc_die().
58719         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
58720         of xreadlink.
58721         * lib/relocwrapper.c: Update comments.
58722         * build-aux/install-reloc: Remove xreadlink.c from file list.
58723         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
58724         xreadlink.c.
58725         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58726
58727 2007-12-24  Bruno Haible  <bruno@clisp.org>
58728
58729         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
58730         * lib/setenv.h: Remove file.
58731         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
58732         lib/setenv.h.
58733         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
58734         (Depends-on): Add stdlib.
58735         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
58736         gl_FUNC_UNSETENV.
58737         (Include): Replace setenv.h with <stdlib.h>.
58738         * modules/unsetenv: New file.
58739         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
58740         * lib/unsetenv.c: Include <stdlib.h> first.
58741         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
58742         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
58743         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
58744         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
58745         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
58746         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58747         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
58748         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58749         * doc/functions/unsetenv.texi: Update.
58750         * modules/xsetenv (Depends-on): Add unsetenv.
58751         * modules/getdate (Depends-on): Likewise.
58752         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
58753         * lib/xsetenv.c: Don't include setenv.h.
58754         * lib/getdate.y: Likewise.
58755         * lib/relocwrapper.c: Likewise.
58756         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
58757         (Depends-on): Add stdlib.
58758         * NEWS: Mention the changes.
58759         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58760
58761 2007-12-23  Bruno Haible  <bruno@clisp.org>
58762
58763         * lib/memmem.c (memmem): Use lowercase variable names. Tab
58764         indentation.
58765
58766 2007-12-23  Bruno Haible  <bruno@clisp.org>
58767
58768         * lib/c-strcasestr.c: Add more comments.
58769         * lib/c-strstr.c: Likewise.
58770         * lib/mbscasestr.c: Likewise.
58771         * lib/mbsstr.c: Likewise.
58772         * lib/strcasestr.c: Likewise.
58773         * lib/memmem.c: Likewise.
58774
58775 2007-12-23  Bruno Haible  <bruno@clisp.org>
58776
58777         * tests/test-memmem.c: Include <string.h> first.
58778
58779 2007-12-22  Bruno Haible  <bruno@clisp.org>
58780
58781         * gnulib-tool (func_create_testdir): Change $auxdir while generating
58782         the contents of $testsbase.
58783         Reported by Ralf Wildenhues.
58784
58785 2007-12-22  Bruno Haible  <bruno@clisp.org>
58786
58787         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
58788         two variables local_ldadd_before, local_ldadd_last.
58789
58790 2007-12-20  Eric Blake  <ebb9@byu.net>
58791
58792         Work around circular library issue when cross-compiling.
58793         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
58794         that progname.o does not need to pull in rpl_memcmp.
58795
58796 2007-12-19  Eric Blake  <ebb9@byu.net>
58797
58798         Fix memmem to avoid O(n^2) worst-case complexity.
58799         * lib/memmem.c (knuth_morris_pratt): New function.
58800         (memmem): Use it if first few naive iterations fail.
58801         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
58802         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
58803         * modules/memchr (License): Likewise.
58804         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
58805         malloca.
58806         * tests/test-memmem.c: Rewrite, borrowing ideas from
58807         test-mbsstr1.c; the old version wouldn't even compile!
58808         * modules/memmem-tests: New file.
58809         * lib/string.in.h (rpl_memmem): Add declaration.
58810         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
58811         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
58812         REPLACE_MEMMEM.
58813
58814 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58815
58816         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
58817         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
58818         before any system include files, and undef after them all.  This
58819         should fix a problem on VMS reported by John E. Malmberg in
58820         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
58821
58822 2007-12-17  Eric Blake  <ebb9@byu.net>
58823
58824         Revert addition of verify, for BSD/OS.
58825         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
58826         can't handle large files, for the sake of obsolete platforms.
58827         * modules/fseeko (Depends-on): Remove verify.
58828         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
58829         * doc/functions/ftello.texi (ftello): Likewise.
58830         * doc/functions/fgetpos.texi (fgetpos): Likewise.
58831         Reported by Larry Jones.
58832
58833 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
58834
58835         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
58836         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
58837
58838 2007-12-17  Jim Meyering  <meyering@redhat.com>
58839
58840         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
58841         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
58842         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
58843         * modules/getcwd (Depends-on): Add openat.
58844         Reported by Petr Salinger.
58845
58846 2007-12-17  Bruno Haible  <bruno@clisp.org>
58847
58848         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
58849         avoid a segmentation fault of the configure test on x86_64 systems.
58850
58851 2007-12-15  Jim Meyering  <meyering@redhat.com>
58852
58853         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
58854
58855 2007-12-13  Eric Blake  <ebb9@byu.net>
58856
58857         Another fseek test.
58858         * tests/test-fseek.c (main): Also test ungetc handling.
58859         * tests/test-fseeko.c (main): Likewise.
58860         * modules/fseeko (Depends-on): Add verify.
58861         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
58862         large.
58863         Reported by Larry Jones.
58864
58865         Fix fseeko on mingw.
58866         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
58867         seek.
58868
58869         Beef up fseek tests.
58870         * tests/test-fseek.c (main): Also test eof handling.
58871         * tests/test-fseeko.c (main): Likewise.
58872         Reported by Larry Jones.
58873
58874 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
58875
58876         Fix fseeko on BSD-based platforms.
58877         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
58878         successful seek.
58879
58880 2007-12-12  Eric Blake  <ebb9@byu.net>
58881
58882         Allow circular dependency of separate libtests.a
58883         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
58884         when use_libtests.
58885
58886 2007-12-11  Eric Blake  <ebb9@byu.net>
58887
58888         Fix bug with -0.0L in previous patch.
58889         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
58890         * tests/test-isnan.c (main): Also test on zeroes.
58891         * tests/test-isnanf.c (main): Likewise.
58892         * tests/test-isnanl.h (main): Likewise.
58893
58894         Detect pseudo-denormals on x86 even when cross-compiling.
58895         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
58896         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
58897         invalid bit patterns that happen to satisfy ==.
58898
58899         Avoid link failures with separate libtests.a.
58900         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
58901         last, to satisfy circular dependencies.
58902
58903 2007-12-11  Eric Blake  <ebb9@byu.net>
58904         and Bruno Haible  <bruno@clisp.org>
58905
58906         Fix OpenBSD 4.0 <float.h> handling of long double.
58907         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
58908         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
58909         * doc/headers/float.texi (float.h): Document OpenBSD bug.
58910
58911 2007-12-11  Jim Meyering  <meyering@redhat.com>
58912
58913         * users.txt: Add libvirt.
58914
58915         Support versions of autoconf prior to 2.59c.
58916         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
58917         if it is not already defined.
58918
58919 2007-12-09  Bruno Haible  <bruno@clisp.org>
58920
58921         Let 'gnulib-tool --import' collect sources needed for the tests in
58922         tests/ rather than in lib/.
58923         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
58924         argument. If true, add rules to generate libtests.a, and put libtests.a
58925         into $(LDADD). Consider source files in subdirectories and set
58926         uses_subdirs.
58927         (func_emit_initmacro_start, func_emit_initmacro_end,
58928         func_emit_initmacro_done): Pass all arguments explicitly.
58929         (func_import): Determine two module lists main_modules,
58930         testsrelated_modules. Determine use_libtests. Determine two variables
58931         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
58932         instead of just sed_transform_lib_file. Determine two variables
58933         main_files and testsrelated_files. Compute 'files' as the union of
58934         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
58935         func_add_or_update. In the generated gnulib-comp.m4, collect the
58936         object files for tests/ in different variables than those for lib/.
58937         Substitute LIBTESTS_LIBDEPS.
58938         (func_create_testdir): Combine the uses_subdirs results from
58939         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
58940
58941 2007-12-09  Bruno Haible  <bruno@clisp.org>
58942
58943         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
58944         the build-aux directory.
58945
58946 2007-12-09  Bruno Haible  <bruno@clisp.org>
58947
58948         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
58949         introduced on 2006-09-09.
58950
58951 2007-12-07  Jim Meyering  <meyering@redhat.com>
58952
58953         Let these macros work also with autoconf-2.59.
58954         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
58955         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
58956         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58957
58958 2007-12-06  Jim Meyering  <meyering@redhat.com>
58959
58960         Avoid a configure-time syntax error in gl_FUNC_ACL.
58961         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
58962         function in each branch, before testing the cache variable.
58963
58964 2007-12-04  Eric Blake  <ebb9@byu.net>
58965
58966         Make scripts executable.
58967         * build-aux/config.guess: Add execute permissions.
58968         * build-aux/config.sub: Likewise.
58969         * build-aux/gendocs.sh: Likewise.
58970
58971         Fix frexp on mingw.
58972         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
58973         cross-compiling.
58974         * doc/functions/frexp.texi (frexp): Document the bug.
58975
58976         Make cygwin fseeko check more reliable.
58977         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
58978         version numbers, rather than unrelated feature check.
58979         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
58980         * doc/functions/ftello.texi (ftello): Likewise.
58981         Reported by Bruno Haible.
58982
58983         * m4/strerror.m4: Bump version number.
58984
58985 2007-12-03  Bruno Haible  <bruno@clisp.org>
58986
58987         * doc/functions/mprotect.texi: Mention the mingw problem.
58988
58989 2007-12-03  Eric Blake  <ebb9@byu.net>
58990
58991         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
58992         REPLACE_STRERROR is initialized before this macro.
58993
58994 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58995
58996         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
58997         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
58998         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
58999         put -lsec in even for programs other than 'ls'.  This fixes a problem
59000         for gettext reported by Bruno Haible in
59001         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
59002         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
59003         Add support for Solaris 10.  This isn't efficient, but should get the
59004         job done for now.
59005
59006 2007-12-03  James Youngman  <jay@gnu.org>
59007
59008         * doc/regexprops-generic.texi: change "an close-group" to "a
59009         close-group" and "illegal" to "not allowed".
59010
59011 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59012
59013         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
59014         pr_byname.h. Needed for the rare case when the maintainer has done
59015         "make maintainer-clean" in the source directory and then attempts a
59016         build outside the source directory.
59017         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
59018         scripts_byname.h.
59019
59020 2007-12-02  Martin Lambers <marlam@marlam.de>
59021             Bruno Haible  <bruno@clisp.org>
59022
59023         * lib/getpagesize.h: Remove file.
59024         * lib/unistd.in.h: Include declaration of getpagesize here.
59025         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
59026         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
59027         HAVE_SYS_PARAM_H.
59028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
59029         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59030         * modules/getpagesize (Files): Remove lib/getpagesize.h.
59031         (Depends-on): Add unistd.
59032         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59033         (Include): Use <unistd.h> instead of getpagesize.h.
59034         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
59035         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59036         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
59037         gl_GETPAGESIZE invocation, already handled by module dependency.
59038         * lib/pagealign_alloc.c: Don't include getpagesize.h.
59039
59040 2007-12-02  Bruno Haible  <bruno@clisp.org>
59041
59042         * modules/strings-tests: New file.
59043         * tests/test-strings.c: New file.
59044
59045         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
59046         * lib/strings.in.h: New file.
59047         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
59048         * m4/strings_h.m4: New file.
59049         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
59050         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
59051         * modules/strings: New file.
59052         * modules/string (Makefile.am): Update.
59053         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
59054         Reported by Karl Berry.
59055
59056 2007-12-01  Eric Blake  <ebb9@byu.net>
59057
59058         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
59059         accomodate fix in cygwin 1.5.25.
59060
59061 2007-12-01  Jim Meyering  <meyering@redhat.com>
59062
59063         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
59064         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
59065         that would inhibit utf8-optimization of a regexp containing line-
59066         or buffer-anchors, e.g., `^', `$'.
59067
59068 2007-11-30  Bruno Haible  <bruno@clisp.org>
59069
59070         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
59071         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
59072         glthread_recursive_lock_init.
59073         * lib/lock.c (glthread_recursive_lock_init)
59074         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
59075         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59076
59077 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
59078
59079         New function qset_acl, like set_acl but with syscall semantics.
59080         * lib/acl.h (qset_acl): New decl.
59081         * lib/acl.c (qset_acl): New function.
59082         (set_acl): Use new function.  Use more-consistent diagnostics.
59083
59084 2007-11-28  Jim Meyering  <meyering@redhat.com>
59085
59086         * modules/physmem (License): Change from GPL to LGPLv2+.
59087
59088 2007-11-26  Bruno Haible  <bruno@clisp.org>
59089
59090         * lib/vasnprintf.c (decode_long_double): Don't abort if the
59091         'long double' type has excess precision.
59092         Reported by Jim Meyering in
59093         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
59094
59095 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59096
59097         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
59098         Sync from <http://gnu.org/licenses>.
59099         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
59100         with license text from same location.
59101         * doc/maintain.texi, doc/standards.texi:  Sync from
59102         <http://savannah.gnu.org/projects/gnustandards>.
59103
59104 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
59105         and Jim Meyering  <meyering@redhat.com>
59106
59107         Adjust getdate' grammar to accept a slightly more regular language.
59108         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
59109         Before, the former was rejected.
59110         * lib/getdate.y (digits_to_date_time): New function, factored
59111         out of ...
59112         (number): ...here.  Just call digits_to_date_time.
59113         (hybrid): New non-terminal to handle an <unsigned number,
59114         signed relative offset> sequence consistently.
59115
59116 2007-11-18  Jim Meyering  <meyering@redhat.com>
59117
59118         Pull my changes from coreutils:
59119         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
59120         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
59121         use of $gnulib_tool_option_extras, so that it's separated from the
59122         preceding argument.
59123
59124         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
59125         * build-aux/bootstrap (cp_mark_as_generated): Create any required
59126         parent destination directories before copying a file into place.
59127
59128 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59129
59130         bootstrap: work also with 4-argument variant of AC_INIT
59131         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
59132
59133 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59134
59135         Port test-getaddrinfo to Solaris.
59136         Problem reported by Bruno Haible in
59137         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
59138         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
59139         explanation of setting 'hints'.
59140         Don't reject an implementation merely because it returns EAI_SERVICE.
59141         (EAI_SERVICE): Define to 0 if not defined.
59142
59143 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59144
59145         The license of gnu-make and posix-shell is now "GPLed build tool".
59146         * modules/gnu-make (License): Likewise.
59147         * modules/posix-shell (License): Likewise.
59148
59149         New module posix-shell, for determining a POSIX shell
59150         or perhaps something that is close enough to a POSIX shell.
59151         * m4/posix-shell.m4: New file.
59152         * modules/posix-shell: New file.
59153
59154         * MODULES.html.sh: Mention new module.
59155
59156         New module gnu-make, for determining whether we're using GNU Make.
59157         * m4/gnu-make.m4: New file.
59158         * modules/gnu-make: New file.
59159         * MODULES.html.sh: Mention new module.
59160
59161 2007-11-14  Jim Meyering  <meyering@redhat.com>
59162
59163         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
59164         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
59165         use this macro to create a function _definition_.
59166         Remove useless "#undef ARGMATCH_DIE".
59167
59168 2007-11-14  Bruno Haible  <bruno@clisp.org>
59169
59170         * lib/config.charset: Update for OpenBSD 4.1.
59171         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
59172
59173 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
59174
59175         Document 64-bit #if problems in stdint.texi.
59176         * doc/headers/stdint.texi (stdint.h): Mention problems with
59177         64-bit-#if, and how to work around them.
59178
59179         Don't insist on 'long long int' support in the preprocessor.  It
59180         breaks too many things.  For example, PRIdMAX still uses a 'long
59181         long int' format with the latest Sun compiler, even though
59182         HAVE_LONG_LONG_INT isn't defined due to that compiler's
59183         preprocessor problem.  This causes the latest coreutils to dump
59184         core on Solaris 10 sparc with the Sun C compiler.
59185         Instead, fix the 2007-10-16 problem in a different way, by evaluating
59186         the troublesome expressions at configure-time, not at #if-time.
59187         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
59188         preprocessor.
59189         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
59190         compile-time C checks, done at 'configure'-time.
59191         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
59192         * modules/inttypes (Makefile): Substitute the new symbols that
59193         gl_INTTYPES_H now generates.
59194         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
59195
59196 2007-11-12  Bruno Haible  <bruno@clisp.org>
59197
59198         Tests for Unicode character classification functions.
59199
59200         * modules/unictype/bidicategory-byname-tests: New file.
59201         * modules/unictype/bidicategory-name-tests: New file.
59202         * modules/unictype/bidicategory-of-tests: New file.
59203         * modules/unictype/bidicategory-test-tests: New file.
59204         * modules/unictype/block-list-tests: New file.
59205         * modules/unictype/block-of-tests: New file.
59206         * modules/unictype/block-test-tests: New file.
59207         * modules/unictype/category-C-tests: New file.
59208         * modules/unictype/category-Cc-tests: New file.
59209         * modules/unictype/category-Cf-tests: New file.
59210         * modules/unictype/category-Cn-tests: New file.
59211         * modules/unictype/category-Co-tests: New file.
59212         * modules/unictype/category-Cs-tests: New file.
59213         * modules/unictype/category-L-tests: New file.
59214         * modules/unictype/category-Ll-tests: New file.
59215         * modules/unictype/category-Lm-tests: New file.
59216         * modules/unictype/category-Lo-tests: New file.
59217         * modules/unictype/category-Lt-tests: New file.
59218         * modules/unictype/category-Lu-tests: New file.
59219         * modules/unictype/category-M-tests: New file.
59220         * modules/unictype/category-Mc-tests: New file.
59221         * modules/unictype/category-Me-tests: New file.
59222         * modules/unictype/category-Mn-tests: New file.
59223         * modules/unictype/category-N-tests: New file.
59224         * modules/unictype/category-Nd-tests: New file.
59225         * modules/unictype/category-Nl-tests: New file.
59226         * modules/unictype/category-No-tests: New file.
59227         * modules/unictype/category-P-tests: New file.
59228         * modules/unictype/category-Pc-tests: New file.
59229         * modules/unictype/category-Pd-tests: New file.
59230         * modules/unictype/category-Pe-tests: New file.
59231         * modules/unictype/category-Pf-tests: New file.
59232         * modules/unictype/category-Pi-tests: New file.
59233         * modules/unictype/category-Po-tests: New file.
59234         * modules/unictype/category-Ps-tests: New file.
59235         * modules/unictype/category-S-tests: New file.
59236         * modules/unictype/category-Sc-tests: New file.
59237         * modules/unictype/category-Sk-tests: New file.
59238         * modules/unictype/category-Sm-tests: New file.
59239         * modules/unictype/category-So-tests: New file.
59240         * modules/unictype/category-Z-tests: New file.
59241         * modules/unictype/category-Zl-tests: New file.
59242         * modules/unictype/category-Zp-tests: New file.
59243         * modules/unictype/category-Zs-tests: New file.
59244         * modules/unictype/category-and-not-tests: New file.
59245         * modules/unictype/category-and-tests: New file.
59246         * modules/unictype/category-byname-tests: New file.
59247         * modules/unictype/category-name-tests: New file.
59248         * modules/unictype/category-none-tests: New file.
59249         * modules/unictype/category-of-tests: New file.
59250         * modules/unictype/category-or-tests: New file.
59251         * modules/unictype/category-test-withtable-tests: New file.
59252         * modules/unictype/combining-class-tests: New file.
59253         * modules/unictype/ctype-alnum-tests: New file.
59254         * modules/unictype/ctype-alpha-tests: New file.
59255         * modules/unictype/ctype-blank-tests: New file.
59256         * modules/unictype/ctype-cntrl-tests: New file.
59257         * modules/unictype/ctype-digit-tests: New file.
59258         * modules/unictype/ctype-graph-tests: New file.
59259         * modules/unictype/ctype-lower-tests: New file.
59260         * modules/unictype/ctype-print-tests: New file.
59261         * modules/unictype/ctype-punct-tests: New file.
59262         * modules/unictype/ctype-space-tests: New file.
59263         * modules/unictype/ctype-upper-tests: New file.
59264         * modules/unictype/ctype-xdigit-tests: New file.
59265         * modules/unictype/decimal-digit-tests: New file.
59266         * modules/unictype/digit-tests: New file.
59267         * modules/unictype/mirror-tests: New file.
59268         * modules/unictype/numeric-tests: New file.
59269         * modules/unictype/property-alphabetic-tests: New file.
59270         * modules/unictype/property-ascii-hex-digit-tests: New file.
59271         * modules/unictype/property-bidi-arabic-digit-tests: New file.
59272         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
59273         * modules/unictype/property-bidi-block-separator-tests: New file.
59274         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
59275         * modules/unictype/property-bidi-common-separator-tests: New file.
59276         * modules/unictype/property-bidi-control-tests: New file.
59277         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
59278         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
59279         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
59280         * modules/unictype/property-bidi-european-digit-tests: New file.
59281         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
59282         * modules/unictype/property-bidi-left-to-right-tests: New file.
59283         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
59284         * modules/unictype/property-bidi-other-neutral-tests: New file.
59285         * modules/unictype/property-bidi-pdf-tests: New file.
59286         * modules/unictype/property-bidi-segment-separator-tests: New file.
59287         * modules/unictype/property-bidi-whitespace-tests: New file.
59288         * modules/unictype/property-byname-tests: New file.
59289         * modules/unictype/property-combining-tests: New file.
59290         * modules/unictype/property-composite-tests: New file.
59291         * modules/unictype/property-currency-symbol-tests: New file.
59292         * modules/unictype/property-dash-tests: New file.
59293         * modules/unictype/property-decimal-digit-tests: New file.
59294         * modules/unictype/property-default-ignorable-code-point-tests: New file.
59295         * modules/unictype/property-deprecated-tests: New file.
59296         * modules/unictype/property-diacritic-tests: New file.
59297         * modules/unictype/property-extender-tests: New file.
59298         * modules/unictype/property-format-control-tests: New file.
59299         * modules/unictype/property-grapheme-base-tests: New file.
59300         * modules/unictype/property-grapheme-extend-tests: New file.
59301         * modules/unictype/property-grapheme-link-tests: New file.
59302         * modules/unictype/property-hex-digit-tests: New file.
59303         * modules/unictype/property-hyphen-tests: New file.
59304         * modules/unictype/property-id-continue-tests: New file.
59305         * modules/unictype/property-id-start-tests: New file.
59306         * modules/unictype/property-ideographic-tests: New file.
59307         * modules/unictype/property-ids-binary-operator-tests: New file.
59308         * modules/unictype/property-ids-trinary-operator-tests: New file.
59309         * modules/unictype/property-ignorable-control-tests: New file.
59310         * modules/unictype/property-iso-control-tests: New file.
59311         * modules/unictype/property-join-control-tests: New file.
59312         * modules/unictype/property-left-of-pair-tests: New file.
59313         * modules/unictype/property-line-separator-tests: New file.
59314         * modules/unictype/property-logical-order-exception-tests: New file.
59315         * modules/unictype/property-lowercase-tests: New file.
59316         * modules/unictype/property-math-tests: New file.
59317         * modules/unictype/property-non-break-tests: New file.
59318         * modules/unictype/property-not-a-character-tests: New file.
59319         * modules/unictype/property-numeric-tests: New file.
59320         * modules/unictype/property-other-alphabetic-tests: New file.
59321         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
59322         * modules/unictype/property-other-grapheme-extend-tests: New file.
59323         * modules/unictype/property-other-id-continue-tests: New file.
59324         * modules/unictype/property-other-id-start-tests: New file.
59325         * modules/unictype/property-other-lowercase-tests: New file.
59326         * modules/unictype/property-other-math-tests: New file.
59327         * modules/unictype/property-other-uppercase-tests: New file.
59328         * modules/unictype/property-paired-punctuation-tests: New file.
59329         * modules/unictype/property-paragraph-separator-tests: New file.
59330         * modules/unictype/property-pattern-syntax-tests: New file.
59331         * modules/unictype/property-pattern-white-space-tests: New file.
59332         * modules/unictype/property-private-use-tests: New file.
59333         * modules/unictype/property-punctuation-tests: New file.
59334         * modules/unictype/property-quotation-mark-tests: New file.
59335         * modules/unictype/property-radical-tests: New file.
59336         * modules/unictype/property-sentence-terminal-tests: New file.
59337         * modules/unictype/property-soft-dotted-tests: New file.
59338         * modules/unictype/property-space-tests: New file.
59339         * modules/unictype/property-terminal-punctuation-tests: New file.
59340         * modules/unictype/property-test-tests: New file.
59341         * modules/unictype/property-titlecase-tests: New file.
59342         * modules/unictype/property-unassigned-code-value-tests: New file.
59343         * modules/unictype/property-unified-ideograph-tests: New file.
59344         * modules/unictype/property-uppercase-tests: New file.
59345         * modules/unictype/property-variation-selector-tests: New file.
59346         * modules/unictype/property-white-space-tests: New file.
59347         * modules/unictype/property-xid-continue-tests: New file.
59348         * modules/unictype/property-xid-start-tests: New file.
59349         * modules/unictype/property-zero-width-tests: New file.
59350         * modules/unictype/scripts-tests: New file.
59351         * modules/unictype/syntax-c-ident-tests: New file.
59352         * modules/unictype/syntax-c-whitespace-tests: New file.
59353         * modules/unictype/syntax-java-ident-tests: New file.
59354         * modules/unictype/syntax-java-whitespace-tests: New file.
59355         * tests/unictype/test-bidi_byname.c: New file.
59356         * tests/unictype/test-bidi_name.c: New file.
59357         * tests/unictype/test-bidi_of.c: New file.
59358         * tests/unictype/test-bidi_test.c: New file.
59359         * tests/unictype/test-block_list.c: New file.
59360         * tests/unictype/test-block_of.c: New file.
59361         * tests/unictype/test-block_test.c: New file.
59362         * tests/unictype/test-categ_and.c: New file.
59363         * tests/unictype/test-categ_and_not.c: New file.
59364         * tests/unictype/test-categ_byname.c: New file.
59365         * tests/unictype/test-categ_name.c: New file.
59366         * tests/unictype/test-categ_none.c: New file.
59367         * tests/unictype/test-categ_of.c: New file.
59368         * tests/unictype/test-categ_or.c: New file.
59369         * tests/unictype/test-categ_test_withtable.c: New file.
59370         * tests/unictype/test-combining.c: New file.
59371         * tests/unictype/test-decdigit.c: New file.
59372         * tests/unictype/test-digit.c: New file.
59373         * tests/unictype/test-mirror.c: New file.
59374         * tests/unictype/test-numeric.c: New file.
59375         * tests/unictype/test-pr_byname.c: New file.
59376         * tests/unictype/test-pr_test.c: New file.
59377         * tests/unictype/test-predicate-part1.h: New file.
59378         * tests/unictype/test-predicate-part2.h: New file.
59379         * tests/unictype/test-scripts.c: New file.
59380         * tests/unictype/test-sy_c_ident.c: New file.
59381         * tests/unictype/test-sy_java_ident.c: New file.
59382
59383         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
59384         for Unicode 5.0.0.
59385         * tests/unictype/test-categ_Cc.c: Likewise.
59386         * tests/unictype/test-categ_Cf.c: Likewise.
59387         * tests/unictype/test-categ_Cn.c: Likewise.
59388         * tests/unictype/test-categ_Co.c: Likewise.
59389         * tests/unictype/test-categ_Cs.c: Likewise.
59390         * tests/unictype/test-categ_L.c: Likewise.
59391         * tests/unictype/test-categ_Ll.c: Likewise.
59392         * tests/unictype/test-categ_Lm.c: Likewise.
59393         * tests/unictype/test-categ_Lo.c: Likewise.
59394         * tests/unictype/test-categ_Lt.c: Likewise.
59395         * tests/unictype/test-categ_Lu.c: Likewise.
59396         * tests/unictype/test-categ_M.c: Likewise.
59397         * tests/unictype/test-categ_Mc.c: Likewise.
59398         * tests/unictype/test-categ_Me.c: Likewise.
59399         * tests/unictype/test-categ_Mn.c: Likewise.
59400         * tests/unictype/test-categ_N.c: Likewise.
59401         * tests/unictype/test-categ_Nd.c: Likewise.
59402         * tests/unictype/test-categ_Nl.c: Likewise.
59403         * tests/unictype/test-categ_No.c: Likewise.
59404         * tests/unictype/test-categ_P.c: Likewise.
59405         * tests/unictype/test-categ_Pc.c: Likewise.
59406         * tests/unictype/test-categ_Pd.c: Likewise.
59407         * tests/unictype/test-categ_Pe.c: Likewise.
59408         * tests/unictype/test-categ_Pf.c: Likewise.
59409         * tests/unictype/test-categ_Pi.c: Likewise.
59410         * tests/unictype/test-categ_Po.c: Likewise.
59411         * tests/unictype/test-categ_Ps.c: Likewise.
59412         * tests/unictype/test-categ_S.c: Likewise.
59413         * tests/unictype/test-categ_Sc.c: Likewise.
59414         * tests/unictype/test-categ_Sk.c: Likewise.
59415         * tests/unictype/test-categ_Sm.c: Likewise.
59416         * tests/unictype/test-categ_So.c: Likewise.
59417         * tests/unictype/test-categ_Z.c: Likewise.
59418         * tests/unictype/test-categ_Zl.c: Likewise.
59419         * tests/unictype/test-categ_Zp.c: Likewise.
59420         * tests/unictype/test-categ_Zs.c: Likewise.
59421         * tests/unictype/test-ctype_alnum.c: Likewise.
59422         * tests/unictype/test-ctype_alpha.c: Likewise.
59423         * tests/unictype/test-ctype_blank.c: Likewise.
59424         * tests/unictype/test-ctype_cntrl.c: Likewise.
59425         * tests/unictype/test-ctype_digit.c: Likewise.
59426         * tests/unictype/test-ctype_graph.c: Likewise.
59427         * tests/unictype/test-ctype_lower.c: Likewise.
59428         * tests/unictype/test-ctype_print.c: Likewise.
59429         * tests/unictype/test-ctype_punct.c: Likewise.
59430         * tests/unictype/test-ctype_space.c: Likewise.
59431         * tests/unictype/test-ctype_upper.c: Likewise.
59432         * tests/unictype/test-ctype_xdigit.c: Likewise.
59433         * tests/unictype/test-decdigit.h: Likewise.
59434         * tests/unictype/test-digit.h: Likewise.
59435         * tests/unictype/test-numeric.h: Likewise.
59436         * tests/unictype/test-pr_alphabetic.c: Likewise.
59437         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
59438         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
59439         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
59440         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
59441         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
59442         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
59443         * tests/unictype/test-pr_bidi_control.c: Likewise.
59444         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
59445         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
59446         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
59447         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
59448         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
59449         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
59450         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
59451         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
59452         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
59453         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
59454         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
59455         * tests/unictype/test-pr_combining.c: Likewise.
59456         * tests/unictype/test-pr_composite.c: Likewise.
59457         * tests/unictype/test-pr_currency_symbol.c: Likewise.
59458         * tests/unictype/test-pr_dash.c: Likewise.
59459         * tests/unictype/test-pr_decimal_digit.c: Likewise.
59460         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
59461         * tests/unictype/test-pr_deprecated.c: Likewise.
59462         * tests/unictype/test-pr_diacritic.c: Likewise.
59463         * tests/unictype/test-pr_extender.c: Likewise.
59464         * tests/unictype/test-pr_format_control.c: Likewise.
59465         * tests/unictype/test-pr_grapheme_base.c: Likewise.
59466         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
59467         * tests/unictype/test-pr_grapheme_link.c: Likewise.
59468         * tests/unictype/test-pr_hex_digit.c: Likewise.
59469         * tests/unictype/test-pr_hyphen.c: Likewise.
59470         * tests/unictype/test-pr_id_continue.c: Likewise.
59471         * tests/unictype/test-pr_id_start.c: Likewise.
59472         * tests/unictype/test-pr_ideographic.c: Likewise.
59473         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
59474         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
59475         * tests/unictype/test-pr_ignorable_control.c: Likewise.
59476         * tests/unictype/test-pr_iso_control.c: Likewise.
59477         * tests/unictype/test-pr_join_control.c: Likewise.
59478         * tests/unictype/test-pr_left_of_pair.c: Likewise.
59479         * tests/unictype/test-pr_line_separator.c: Likewise.
59480         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
59481         * tests/unictype/test-pr_lowercase.c: Likewise.
59482         * tests/unictype/test-pr_math.c: Likewise.
59483         * tests/unictype/test-pr_non_break.c: Likewise.
59484         * tests/unictype/test-pr_not_a_character.c: Likewise.
59485         * tests/unictype/test-pr_numeric.c: Likewise.
59486         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
59487         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
59488         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
59489         * tests/unictype/test-pr_other_id_continue.c: Likewise.
59490         * tests/unictype/test-pr_other_id_start.c: Likewise.
59491         * tests/unictype/test-pr_other_lowercase.c: Likewise.
59492         * tests/unictype/test-pr_other_math.c: Likewise.
59493         * tests/unictype/test-pr_other_uppercase.c: Likewise.
59494         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
59495         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
59496         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
59497         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
59498         * tests/unictype/test-pr_private_use.c: Likewise.
59499         * tests/unictype/test-pr_punctuation.c: Likewise.
59500         * tests/unictype/test-pr_quotation_mark.c: Likewise.
59501         * tests/unictype/test-pr_radical.c: Likewise.
59502         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
59503         * tests/unictype/test-pr_soft_dotted.c: Likewise.
59504         * tests/unictype/test-pr_space.c: Likewise.
59505         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
59506         * tests/unictype/test-pr_titlecase.c: Likewise.
59507         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
59508         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
59509         * tests/unictype/test-pr_uppercase.c: Likewise.
59510         * tests/unictype/test-pr_variation_selector.c: Likewise.
59511         * tests/unictype/test-pr_white_space.c: Likewise.
59512         * tests/unictype/test-pr_xid_continue.c: Likewise.
59513         * tests/unictype/test-pr_xid_start.c: Likewise.
59514         * tests/unictype/test-pr_zero_width.c: Likewise.
59515         * tests/unictype/test-sy_c_whitespace.c: Likewise.
59516         * tests/unictype/test-sy_java_whitespace.c: Likewise.
59517
59518 2007-11-12  Bruno Haible  <bruno@clisp.org>
59519
59520         Unicode character classification functions.
59521         * lib/unictype.h: New file.
59522         * modules/unictype/base: New file.
59523         * modules/unictype/category-L: New file.
59524         * modules/unictype/category-Lu: New file.
59525         * modules/unictype/category-Ll: New file.
59526         * modules/unictype/category-Lt: New file.
59527         * modules/unictype/category-Lm: New file.
59528         * modules/unictype/category-Lo: New file.
59529         * modules/unictype/category-M: New file.
59530         * modules/unictype/category-Mn: New file.
59531         * modules/unictype/category-Mc: New file.
59532         * modules/unictype/category-Me: New file.
59533         * modules/unictype/category-N: New file.
59534         * modules/unictype/category-Nd: New file.
59535         * modules/unictype/category-Nl: New file.
59536         * modules/unictype/category-No: New file.
59537         * modules/unictype/category-P: New file.
59538         * modules/unictype/category-Pc: New file.
59539         * modules/unictype/category-Pd: New file.
59540         * modules/unictype/category-Ps: New file.
59541         * modules/unictype/category-Pe: New file.
59542         * modules/unictype/category-Pi: New file.
59543         * modules/unictype/category-Pf: New file.
59544         * modules/unictype/category-Po: New file.
59545         * modules/unictype/category-S: New file.
59546         * modules/unictype/category-Sm: New file.
59547         * modules/unictype/category-Sc: New file.
59548         * modules/unictype/category-Sk: New file.
59549         * modules/unictype/category-So: New file.
59550         * modules/unictype/category-Z: New file.
59551         * modules/unictype/category-Zs: New file.
59552         * modules/unictype/category-Zl: New file.
59553         * modules/unictype/category-Zp: New file.
59554         * modules/unictype/category-C: New file.
59555         * modules/unictype/category-Cc: New file.
59556         * modules/unictype/category-Cf: New file.
59557         * modules/unictype/category-Cs: New file.
59558         * modules/unictype/category-Co: New file.
59559         * modules/unictype/category-Cn: New file.
59560         * modules/unictype/category-or: New file.
59561         * modules/unictype/category-of: New file.
59562         * modules/unictype/category-test: New file.
59563         * modules/unictype/category-test-withtable: New file.
59564         * modules/unictype/category-byname: New file.
59565         * modules/unictype/category-none: New file.
59566         * modules/unictype/category-and: New file.
59567         * modules/unictype/category-and-not: New file.
59568         * modules/unictype/category-name: New file.
59569         * modules/unictype/combining-class: New file.
59570         * modules/unictype/category-all: New file.
59571         * modules/unictype/bidicategory-all: New file.
59572         * modules/unictype/bidicategory-byname: New file.
59573         * modules/unictype/bidicategory-name: New file.
59574         * modules/unictype/bidicategory-of: New file.
59575         * modules/unictype/bidicategory-test: New file.
59576         * modules/unictype/decimal-digit: New file.
59577         * modules/unictype/digit: New file.
59578         * modules/unictype/numeric: New file.
59579         * modules/unictype/mirror: New file.
59580         * modules/unictype/property-white-space: New file.
59581         * modules/unictype/property-alphabetic: New file.
59582         * modules/unictype/property-other-alphabetic: New file.
59583         * modules/unictype/property-not-a-character: New file.
59584         * modules/unictype/property-default-ignorable-code-point: New file.
59585         * modules/unictype/property-other-default-ignorable-code-point: New
59586         file.
59587         * modules/unictype/property-deprecated: New file.
59588         * modules/unictype/property-logical-order-exception: New file.
59589         * modules/unictype/property-variation-selector: New file.
59590         * modules/unictype/property-private-use: New file.
59591         * modules/unictype/property-unassigned-code-value: New file.
59592         * modules/unictype/property-uppercase: New file.
59593         * modules/unictype/property-other-uppercase: New file.
59594         * modules/unictype/property-lowercase: New file.
59595         * modules/unictype/property-other-lowercase: New file.
59596         * modules/unictype/property-titlecase: New file.
59597         * modules/unictype/property-soft-dotted: New file.
59598         * modules/unictype/property-id-start: New file.
59599         * modules/unictype/property-other-id-start: New file.
59600         * modules/unictype/property-id-continue: New file.
59601         * modules/unictype/property-other-id-continue: New file.
59602         * modules/unictype/property-xid-start: New file.
59603         * modules/unictype/property-xid-continue: New file.
59604         * modules/unictype/property-pattern-white-space: New file.
59605         * modules/unictype/property-pattern-syntax: New file.
59606         * modules/unictype/property-join-control: New file.
59607         * modules/unictype/property-grapheme-base: New file.
59608         * modules/unictype/property-grapheme-extend: New file.
59609         * modules/unictype/property-other-grapheme-extend: New file.
59610         * modules/unictype/property-grapheme-link: New file.
59611         * modules/unictype/property-bidi-control: New file.
59612         * modules/unictype/property-bidi-left-to-right: New file.
59613         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
59614         * modules/unictype/property-bidi-arabic-right-to-left: New file.
59615         * modules/unictype/property-bidi-european-digit: New file.
59616         * modules/unictype/property-bidi-eur-num-separator: New file.
59617         * modules/unictype/property-bidi-eur-num-terminator: New file.
59618         * modules/unictype/property-bidi-arabic-digit: New file.
59619         * modules/unictype/property-bidi-common-separator: New file.
59620         * modules/unictype/property-bidi-block-separator: New file.
59621         * modules/unictype/property-bidi-segment-separator: New file.
59622         * modules/unictype/property-bidi-whitespace: New file.
59623         * modules/unictype/property-bidi-non-spacing-mark: New file.
59624         * modules/unictype/property-bidi-boundary-neutral: New file.
59625         * modules/unictype/property-bidi-pdf: New file.
59626         * modules/unictype/property-bidi-embedding-or-override: New file.
59627         * modules/unictype/property-bidi-other-neutral: New file.
59628         * modules/unictype/property-hex-digit: New file.
59629         * modules/unictype/property-ascii-hex-digit: New file.
59630         * modules/unictype/property-ideographic: New file.
59631         * modules/unictype/property-unified-ideograph: New file.
59632         * modules/unictype/property-radical: New file.
59633         * modules/unictype/property-ids-binary-operator: New file.
59634         * modules/unictype/property-ids-trinary-operator: New file.
59635         * modules/unictype/property-zero-width: New file.
59636         * modules/unictype/property-space: New file.
59637         * modules/unictype/property-non-break: New file.
59638         * modules/unictype/property-iso-control: New file.
59639         * modules/unictype/property-format-control: New file.
59640         * modules/unictype/property-dash: New file.
59641         * modules/unictype/property-hyphen: New file.
59642         * modules/unictype/property-punctuation: New file.
59643         * modules/unictype/property-line-separator: New file.
59644         * modules/unictype/property-paragraph-separator: New file.
59645         * modules/unictype/property-quotation-mark: New file.
59646         * modules/unictype/property-sentence-terminal: New file.
59647         * modules/unictype/property-terminal-punctuation: New file.
59648         * modules/unictype/property-currency-symbol: New file.
59649         * modules/unictype/property-math: New file.
59650         * modules/unictype/property-other-math: New file.
59651         * modules/unictype/property-paired-punctuation: New file.
59652         * modules/unictype/property-left-of-pair: New file.
59653         * modules/unictype/property-combining: New file.
59654         * modules/unictype/property-composite: New file.
59655         * modules/unictype/property-decimal-digit: New file.
59656         * modules/unictype/property-numeric: New file.
59657         * modules/unictype/property-diacritic: New file.
59658         * modules/unictype/property-extender: New file.
59659         * modules/unictype/property-ignorable-control: New file.
59660         * modules/unictype/property-test: New file.
59661         * modules/unictype/property-byname: New file.
59662         * modules/unictype/property-all: New file.
59663         * modules/unictype/scripts: New file.
59664         * modules/unictype/scripts-all: New file.
59665         * modules/unictype/block-of: New file.
59666         * modules/unictype/block-test: New file.
59667         * modules/unictype/block-list: New file.
59668         * modules/unictype/block-all: New file.
59669         * modules/unictype/syntax-c-whitespace: New file.
59670         * modules/unictype/syntax-java-whitespace: New file.
59671         * modules/unictype/syntax-c-ident: New file.
59672         * modules/unictype/syntax-java-ident: New file.
59673         * modules/unictype/ctype-alnum: New file.
59674         * modules/unictype/ctype-alpha: New file.
59675         * modules/unictype/ctype-cntrl: New file.
59676         * modules/unictype/ctype-digit: New file.
59677         * modules/unictype/ctype-graph: New file.
59678         * modules/unictype/ctype-lower: New file.
59679         * modules/unictype/ctype-print: New file.
59680         * modules/unictype/ctype-punct: New file.
59681         * modules/unictype/ctype-space: New file.
59682         * modules/unictype/ctype-upper: New file.
59683         * modules/unictype/ctype-xdigit: New file.
59684         * modules/unictype/ctype-blank: New file.
59685         * lib/unictype/bidi_byname.c: New file.
59686         * lib/unictype/bidi_name.c: New file.
59687         * lib/unictype/bidi_of.c: New file.
59688         * lib/unictype/bidi_test.c: New file.
59689         * lib/unictype/bitmap.h: New file.
59690         * lib/unictype/block_test.c: New file.
59691         * lib/unictype/blocks.c: New file.
59692         * lib/unictype/categ_C.c: New file.
59693         * lib/unictype/categ_Cc.c: New file.
59694         * lib/unictype/categ_Cf.c: New file.
59695         * lib/unictype/categ_Cn.c: New file.
59696         * lib/unictype/categ_Co.c: New file.
59697         * lib/unictype/categ_Cs.c: New file.
59698         * lib/unictype/categ_L.c: New file.
59699         * lib/unictype/categ_Ll.c: New file.
59700         * lib/unictype/categ_Lm.c: New file.
59701         * lib/unictype/categ_Lo.c: New file.
59702         * lib/unictype/categ_Lt.c: New file.
59703         * lib/unictype/categ_Lu.c: New file.
59704         * lib/unictype/categ_M.c: New file.
59705         * lib/unictype/categ_Mc.c: New file.
59706         * lib/unictype/categ_Me.c: New file.
59707         * lib/unictype/categ_Mn.c: New file.
59708         * lib/unictype/categ_N.c: New file.
59709         * lib/unictype/categ_Nd.c: New file.
59710         * lib/unictype/categ_Nl.c: New file.
59711         * lib/unictype/categ_No.c: New file.
59712         * lib/unictype/categ_P.c: New file.
59713         * lib/unictype/categ_Pc.c: New file.
59714         * lib/unictype/categ_Pd.c: New file.
59715         * lib/unictype/categ_Pe.c: New file.
59716         * lib/unictype/categ_Pf.c: New file.
59717         * lib/unictype/categ_Pi.c: New file.
59718         * lib/unictype/categ_Po.c: New file.
59719         * lib/unictype/categ_Ps.c: New file.
59720         * lib/unictype/categ_S.c: New file.
59721         * lib/unictype/categ_Sc.c: New file.
59722         * lib/unictype/categ_Sk.c: New file.
59723         * lib/unictype/categ_Sm.c: New file.
59724         * lib/unictype/categ_So.c: New file.
59725         * lib/unictype/categ_Z.c: New file.
59726         * lib/unictype/categ_Zl.c: New file.
59727         * lib/unictype/categ_Zp.c: New file.
59728         * lib/unictype/categ_Zs.c: New file.
59729         * lib/unictype/categ_and.c: New file.
59730         * lib/unictype/categ_and_not.c: New file.
59731         * lib/unictype/categ_byname.c: New file.
59732         * lib/unictype/categ_name.c: New file.
59733         * lib/unictype/categ_none.c: New file.
59734         * lib/unictype/categ_of.c: New file.
59735         * lib/unictype/categ_or.c: New file.
59736         * lib/unictype/categ_test.c: New file.
59737         * lib/unictype/combining.c: New file.
59738         * lib/unictype/ctype_alnum.c: New file.
59739         * lib/unictype/ctype_alpha.c: New file.
59740         * lib/unictype/ctype_blank.c: New file.
59741         * lib/unictype/ctype_cntrl.c: New file.
59742         * lib/unictype/ctype_digit.c: New file.
59743         * lib/unictype/ctype_graph.c: New file.
59744         * lib/unictype/ctype_lower.c: New file.
59745         * lib/unictype/ctype_print.c: New file.
59746         * lib/unictype/ctype_punct.c: New file.
59747         * lib/unictype/ctype_space.c: New file.
59748         * lib/unictype/ctype_upper.c: New file.
59749         * lib/unictype/ctype_xdigit.c: New file.
59750         * lib/unictype/decdigit.c: New file.
59751         * lib/unictype/digit.c: New file.
59752         * lib/unictype/identsyntaxmap.h: New file.
59753         * lib/unictype/mirror.c: New file.
59754         * lib/unictype/numeric.c: New file.
59755         * lib/unictype/pr_alphabetic.c: New file.
59756         * lib/unictype/pr_ascii_hex_digit.c: New file.
59757         * lib/unictype/pr_bidi_arabic_digit.c: New file.
59758         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
59759         * lib/unictype/pr_bidi_block_separator.c: New file.
59760         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
59761         * lib/unictype/pr_bidi_common_separator.c: New file.
59762         * lib/unictype/pr_bidi_control.c: New file.
59763         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
59764         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
59765         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
59766         * lib/unictype/pr_bidi_european_digit.c: New file.
59767         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
59768         * lib/unictype/pr_bidi_left_to_right.c: New file.
59769         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
59770         * lib/unictype/pr_bidi_other_neutral.c: New file.
59771         * lib/unictype/pr_bidi_pdf.c: New file.
59772         * lib/unictype/pr_bidi_segment_separator.c: New file.
59773         * lib/unictype/pr_bidi_whitespace.c: New file.
59774         * lib/unictype/pr_byname.c: New file.
59775         * lib/unictype/pr_byname.gperf: New file.
59776         * lib/unictype/pr_combining.c: New file.
59777         * lib/unictype/pr_composite.c: New file.
59778         * lib/unictype/pr_currency_symbol.c: New file.
59779         * lib/unictype/pr_dash.c: New file.
59780         * lib/unictype/pr_decimal_digit.c: New file.
59781         * lib/unictype/pr_default_ignorable_code_point.c: New file.
59782         * lib/unictype/pr_deprecated.c: New file.
59783         * lib/unictype/pr_diacritic.c: New file.
59784         * lib/unictype/pr_extender.c: New file.
59785         * lib/unictype/pr_format_control.c: New file.
59786         * lib/unictype/pr_grapheme_base.c: New file.
59787         * lib/unictype/pr_grapheme_extend.c: New file.
59788         * lib/unictype/pr_grapheme_link.c: New file.
59789         * lib/unictype/pr_hex_digit.c: New file.
59790         * lib/unictype/pr_hyphen.c: New file.
59791         * lib/unictype/pr_id_continue.c: New file.
59792         * lib/unictype/pr_id_start.c: New file.
59793         * lib/unictype/pr_ideographic.c: New file.
59794         * lib/unictype/pr_ids_binary_operator.c: New file.
59795         * lib/unictype/pr_ids_trinary_operator.c: New file.
59796         * lib/unictype/pr_ignorable_control.c: New file.
59797         * lib/unictype/pr_iso_control.c: New file.
59798         * lib/unictype/pr_join_control.c: New file.
59799         * lib/unictype/pr_left_of_pair.c: New file.
59800         * lib/unictype/pr_line_separator.c: New file.
59801         * lib/unictype/pr_logical_order_exception.c: New file.
59802         * lib/unictype/pr_lowercase.c: New file.
59803         * lib/unictype/pr_math.c: New file.
59804         * lib/unictype/pr_non_break.c: New file.
59805         * lib/unictype/pr_not_a_character.c: New file.
59806         * lib/unictype/pr_numeric.c: New file.
59807         * lib/unictype/pr_other_alphabetic.c: New file.
59808         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
59809         * lib/unictype/pr_other_grapheme_extend.c: New file.
59810         * lib/unictype/pr_other_id_continue.c: New file.
59811         * lib/unictype/pr_other_id_start.c: New file.
59812         * lib/unictype/pr_other_lowercase.c: New file.
59813         * lib/unictype/pr_other_math.c: New file.
59814         * lib/unictype/pr_other_uppercase.c: New file.
59815         * lib/unictype/pr_paired_punctuation.c: New file.
59816         * lib/unictype/pr_paragraph_separator.c: New file.
59817         * lib/unictype/pr_pattern_syntax.c: New file.
59818         * lib/unictype/pr_pattern_white_space.c: New file.
59819         * lib/unictype/pr_private_use.c: New file.
59820         * lib/unictype/pr_punctuation.c: New file.
59821         * lib/unictype/pr_quotation_mark.c: New file.
59822         * lib/unictype/pr_radical.c: New file.
59823         * lib/unictype/pr_sentence_terminal.c: New file.
59824         * lib/unictype/pr_soft_dotted.c: New file.
59825         * lib/unictype/pr_space.c: New file.
59826         * lib/unictype/pr_terminal_punctuation.c: New file.
59827         * lib/unictype/pr_test.c: New file.
59828         * lib/unictype/pr_titlecase.c: New file.
59829         * lib/unictype/pr_unassigned_code_value.c: New file.
59830         * lib/unictype/pr_unified_ideograph.c: New file.
59831         * lib/unictype/pr_uppercase.c: New file.
59832         * lib/unictype/pr_variation_selector.c: New file.
59833         * lib/unictype/pr_white_space.c: New file.
59834         * lib/unictype/pr_xid_continue.c: New file.
59835         * lib/unictype/pr_xid_start.c: New file.
59836         * lib/unictype/pr_zero_width.c: New file.
59837         * lib/unictype/scripts.c: New file.
59838         * lib/unictype/sy_c_ident.c: New file.
59839         * lib/unictype/sy_c_whitespace.c: New file.
59840         * lib/unictype/sy_java_ident.c: New file.
59841         * lib/unictype/sy_java_whitespace.c: New file.
59842
59843         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
59844         Unicode 5.0.0.
59845         * lib/unictype/blocks.h: Likewise.
59846         * lib/unictype/categ_C.h: Likewise.
59847         * lib/unictype/categ_Cc.h: Likewise.
59848         * lib/unictype/categ_Cf.h: Likewise.
59849         * lib/unictype/categ_Cn.h: Likewise.
59850         * lib/unictype/categ_Co.h: Likewise.
59851         * lib/unictype/categ_Cs.h: Likewise.
59852         * lib/unictype/categ_L.h: Likewise.
59853         * lib/unictype/categ_Ll.h: Likewise.
59854         * lib/unictype/categ_Lm.h: Likewise.
59855         * lib/unictype/categ_Lo.h: Likewise.
59856         * lib/unictype/categ_Lt.h: Likewise.
59857         * lib/unictype/categ_Lu.h: Likewise.
59858         * lib/unictype/categ_M.h: Likewise.
59859         * lib/unictype/categ_Mc.h: Likewise.
59860         * lib/unictype/categ_Me.h: Likewise.
59861         * lib/unictype/categ_Mn.h: Likewise.
59862         * lib/unictype/categ_N.h: Likewise.
59863         * lib/unictype/categ_Nd.h: Likewise.
59864         * lib/unictype/categ_Nl.h: Likewise.
59865         * lib/unictype/categ_No.h: Likewise.
59866         * lib/unictype/categ_P.h: Likewise.
59867         * lib/unictype/categ_Pc.h: Likewise.
59868         * lib/unictype/categ_Pd.h: Likewise.
59869         * lib/unictype/categ_Pe.h: Likewise.
59870         * lib/unictype/categ_Pf.h: Likewise.
59871         * lib/unictype/categ_Pi.h: Likewise.
59872         * lib/unictype/categ_Po.h: Likewise.
59873         * lib/unictype/categ_Ps.h: Likewise.
59874         * lib/unictype/categ_S.h: Likewise.
59875         * lib/unictype/categ_Sc.h: Likewise.
59876         * lib/unictype/categ_Sk.h: Likewise.
59877         * lib/unictype/categ_Sm.h: Likewise.
59878         * lib/unictype/categ_So.h: Likewise.
59879         * lib/unictype/categ_Z.h: Likewise.
59880         * lib/unictype/categ_Zl.h: Likewise.
59881         * lib/unictype/categ_Zp.h: Likewise.
59882         * lib/unictype/categ_Zs.h: Likewise.
59883         * lib/unictype/categ_of.h: Likewise.
59884         * lib/unictype/combining.h: Likewise.
59885         * lib/unictype/ctype_alnum.h: Likewise.
59886         * lib/unictype/ctype_alpha.h: Likewise.
59887         * lib/unictype/ctype_blank.h: Likewise.
59888         * lib/unictype/ctype_cntrl.h: Likewise.
59889         * lib/unictype/ctype_digit.h: Likewise.
59890         * lib/unictype/ctype_graph.h: Likewise.
59891         * lib/unictype/ctype_lower.h: Likewise.
59892         * lib/unictype/ctype_print.h: Likewise.
59893         * lib/unictype/ctype_punct.h: Likewise.
59894         * lib/unictype/ctype_space.h: Likewise.
59895         * lib/unictype/ctype_upper.h: Likewise.
59896         * lib/unictype/ctype_xdigit.h: Likewise.
59897         * lib/unictype/decdigit.h: Likewise.
59898         * lib/unictype/digit.h: Likewise.
59899         * lib/unictype/mirror.h: Likewise.
59900         * lib/unictype/numeric.h: Likewise.
59901         * lib/unictype/pr_alphabetic.h: Likewise.
59902         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
59903         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59904         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59905         * lib/unictype/pr_bidi_block_separator.h: Likewise.
59906         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59907         * lib/unictype/pr_bidi_common_separator.h: Likewise.
59908         * lib/unictype/pr_bidi_control.h: Likewise.
59909         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
59910         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
59911         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59912         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59913         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59914         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59915         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59916         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59917         * lib/unictype/pr_bidi_pdf.h: Likewise.
59918         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
59919         * lib/unictype/pr_bidi_whitespace.h: Likewise.
59920         * lib/unictype/pr_combining.h: Likewise.
59921         * lib/unictype/pr_composite.h: Likewise.
59922         * lib/unictype/pr_currency_symbol.h: Likewise.
59923         * lib/unictype/pr_dash.h: Likewise.
59924         * lib/unictype/pr_decimal_digit.h: Likewise.
59925         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
59926         * lib/unictype/pr_deprecated.h: Likewise.
59927         * lib/unictype/pr_diacritic.h: Likewise.
59928         * lib/unictype/pr_extender.h: Likewise.
59929         * lib/unictype/pr_format_control.h: Likewise.
59930         * lib/unictype/pr_grapheme_base.h: Likewise.
59931         * lib/unictype/pr_grapheme_extend.h: Likewise.
59932         * lib/unictype/pr_grapheme_link.h: Likewise.
59933         * lib/unictype/pr_hex_digit.h: Likewise.
59934         * lib/unictype/pr_hyphen.h: Likewise.
59935         * lib/unictype/pr_id_continue.h: Likewise.
59936         * lib/unictype/pr_id_start.h: Likewise.
59937         * lib/unictype/pr_ideographic.h: Likewise.
59938         * lib/unictype/pr_ids_binary_operator.h: Likewise.
59939         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
59940         * lib/unictype/pr_ignorable_control.h: Likewise.
59941         * lib/unictype/pr_iso_control.h: Likewise.
59942         * lib/unictype/pr_join_control.h: Likewise.
59943         * lib/unictype/pr_left_of_pair.h: Likewise.
59944         * lib/unictype/pr_line_separator.h: Likewise.
59945         * lib/unictype/pr_logical_order_exception.h: Likewise.
59946         * lib/unictype/pr_lowercase.h: Likewise.
59947         * lib/unictype/pr_math.h: Likewise.
59948         * lib/unictype/pr_non_break.h: Likewise.
59949         * lib/unictype/pr_not_a_character.h: Likewise.
59950         * lib/unictype/pr_numeric.h: Likewise.
59951         * lib/unictype/pr_other_alphabetic.h: Likewise.
59952         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
59953         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
59954         * lib/unictype/pr_other_id_continue.h: Likewise.
59955         * lib/unictype/pr_other_id_start.h: Likewise.
59956         * lib/unictype/pr_other_lowercase.h: Likewise.
59957         * lib/unictype/pr_other_math.h: Likewise.
59958         * lib/unictype/pr_other_uppercase.h: Likewise.
59959         * lib/unictype/pr_paired_punctuation.h: Likewise.
59960         * lib/unictype/pr_paragraph_separator.h: Likewise.
59961         * lib/unictype/pr_pattern_syntax.h: Likewise.
59962         * lib/unictype/pr_pattern_white_space.h: Likewise.
59963         * lib/unictype/pr_private_use.h: Likewise.
59964         * lib/unictype/pr_punctuation.h: Likewise.
59965         * lib/unictype/pr_quotation_mark.h: Likewise.
59966         * lib/unictype/pr_radical.h: Likewise.
59967         * lib/unictype/pr_sentence_terminal.h: Likewise.
59968         * lib/unictype/pr_soft_dotted.h: Likewise.
59969         * lib/unictype/pr_space.h: Likewise.
59970         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59971         * lib/unictype/pr_titlecase.h: Likewise.
59972         * lib/unictype/pr_unassigned_code_value.h: Likewise.
59973         * lib/unictype/pr_unified_ideograph.h: Likewise.
59974         * lib/unictype/pr_uppercase.h: Likewise.
59975         * lib/unictype/pr_variation_selector.h: Likewise.
59976         * lib/unictype/pr_white_space.h: Likewise.
59977         * lib/unictype/pr_xid_continue.h: Likewise.
59978         * lib/unictype/pr_xid_start.h: Likewise.
59979         * lib/unictype/pr_zero_width.h: Likewise.
59980         * lib/unictype/scripts.h: Likewise.
59981         * lib/unictype/scripts_byname.gperf: Likewise.
59982         * lib/unictype/sy_c_ident.h: Likewise.
59983         * lib/unictype/sy_c_whitespace.h: Likewise.
59984         * lib/unictype/sy_java_ident.h: Likewise.
59985         * lib/unictype/sy_java_whitespace.h: Likewise.
59986
59987         * lib/unictype/Makefile: New file.
59988         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
59989         glibc.
59990         * lib/unictype/3level.h: New file, copied from glibc.
59991         * lib/unictype/3levelbit.h: New file.
59992
59993 2007-11-11  Bruno Haible  <bruno@clisp.org>
59994
59995         * modules/gperf: New file.
59996         * modules/iconv_open (Depends-on): Add it.
59997         (Makefile.am): Remove the GPERF definition.
59998
59999 2007-11-11  Bruno Haible  <bruno@clisp.org>
60000
60001         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
60002         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
60003
60004 2007-11-11  Bruno Haible  <bruno@clisp.org>
60005
60006         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
60007         (usage): Remove function.
60008
60009 2007-11-11  Bruno Haible  <bruno@clisp.org>
60010
60011         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
60012         gl_FUNC_CEILF_LIBS.
60013         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
60014         gl_FUNC_CEIL_LIBS.
60015         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
60016         gl_FUNC_CEILL_LIBS.
60017         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
60018         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
60019         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
60020
60021 2007-11-11  Bruno Haible  <bruno@clisp.org>
60022
60023         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
60024         roundf were declared but do not exist on functions.
60025         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
60026         roundl were declared but do not exist on functions.
60027         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
60028         HAVE_FLOORL_AND_CEILL, respectively.
60029         Needed for Sun C on Solaris 10.
60030
60031 2007-11-11  Bruno Haible  <bruno@clisp.org>
60032
60033         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
60034         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
60035         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
60036         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
60037         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
60038         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
60039         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
60040         HAVE_DECL_ROUNDF.
60041         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
60042         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
60043         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
60044         of HAVE_DECL_ROUND*.
60045         * modules/math (Makefile.am): Update.
60046
60047 2007-11-10  Bruno Haible  <bruno@clisp.org>
60048
60049         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
60050         ptrdiff_t as m4/intl.m4.
60051
60052 2007-11-10  Jim Meyering  <meyering@redhat.com>
60053
60054         Avoid link failure for the argmatch test.
60055         * tests/test-argmatch.c (usage): Define function to avoid a link
60056         failure: argmatch_die requires a usage function.
60057
60058 2007-11-09  Bruno Haible  <bruno@clisp.org>
60059
60060         * doc/functions/snprintf.texi: Mention BeOS deficiency.
60061         * doc/functions/vsnprintf.texi: Likewise.
60062         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
60063         with a size argument < 2.
60064
60065 2007-11-09  Bruno Haible  <bruno@clisp.org>
60066
60067         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
60068         buffer. Fixes an inefficiency introduced on 2007-11-03.
60069
60070 2007-11-09  Bruno Haible  <bruno@clisp.org>
60071
60072         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
60073         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
60074
60075 2007-11-08  Jim Meyering  <meyering@redhat.com>
60076
60077         Change cache variable name prefix "jm_" to "gl_" everywhere.
60078         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
60079         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
60080         * m4/uptime.m4: s/gl_/jm_/
60081
60082 2007-11-07  Bruno Haible  <bruno@clisp.org>
60083
60084         Update to GNU gettext 0.17.
60085         * m4/intl.m4: Update to GNU gettext 0.17.
60086         * m4/po.m4: Likewise.
60087         * modules/gettext (Files): Remove m4/ulonglong.m4.
60088         (configure.ac): Require gettext infrastructure from version 0.17.
60089
60090 2007-11-06  Bruno Haible  <bruno@clisp.org>
60091
60092         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
60093         symbolic values are not defined in a public header.
60094         * lib/freadable.c (freadable) [QNX]: Likewise.
60095         * lib/freadahead.c (freadahead) [QNX]: Likewise.
60096         * lib/freading.c (freading) [QNX]: Likewise.
60097         * lib/fseterr.c (fseterr) [QNX]: Likewise.
60098         * lib/fwritable.c (fwritable) [QNX]: Likewise.
60099         * lib/fwriting.c (fwriting) [QNX]: Likewise.
60100         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
60101         Reported by Alain Magloire.
60102
60103         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
60104
60105 2007-11-05  Bruno Haible  <bruno@clisp.org>
60106
60107         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
60108         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
60109         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
60110         Reported by Eric Blake.
60111
60112 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60113             Bruno Haible  <bruno@clisp.org>
60114
60115         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
60116         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
60117         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
60118         (malloc): Undefine also before including <stdlib.h>.
60119         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
60120         Needed on OSF/1 4.0.
60121
60122 2007-11-05  Jim Meyering  <meyering@redhat.com>
60123
60124         git-version-gen: sync from coreutils.
60125         * build-aux/git-version-gen: Add comments.
60126         Change the first '-' to '.' in the snapshot version string,
60127         e.g., 6.9-377-08144 -> 6.9.377-08144
60128         Remove first parameter.
60129         Don't declare a version "-dirty" merely because a time
60130         stamp has changed.
60131
60132 2007-11-04  Bruno Haible  <bruno@clisp.org>
60133
60134         * lib/lock.h: Protect all macro definitions containing an 'if'
60135         statement through a "do { ... } while (0)".
60136         * lib/tls.h: Likewise.
60137
60138 2007-11-04  Bruno Haible  <bruno@clisp.org>
60139
60140         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
60141
60142 2007-11-04  Bruno Haible  <bruno@clisp.org>
60143
60144         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
60145         * modules/fprintf-posix (Depends-on): Add nocrash.
60146         * modules/snprintf-posix (Depends-on): Likewise.
60147         * modules/sprintf-posix (Depends-on): Likewise.
60148         * modules/vasnprintf-posix (Depends-on): Likewise.
60149         * modules/vasprintf-posix (Depends-on): Likewise.
60150         * modules/vfprintf-posix (Depends-on): Likewise.
60151         * modules/vsnprintf-posix (Depends-on): Likewise.
60152         * modules/vsprintf-posix (Depends-on): Likewise.
60153         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60154         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60155         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60156         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60157         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60158         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60159         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60160
60161 2007-11-04  Bruno Haible  <bruno@clisp.org>
60162
60163         * modules/nocrash: New file.
60164         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
60165         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
60166
60167 2007-11-04  Bruno Haible  <bruno@clisp.org>
60168
60169         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
60170         precision handling.
60171         * tests/test-vasprintf-posix.c (test_function): Likewise.
60172         * tests/test-snprintf-posix.h (test_function): Likewise.
60173         * tests/test-sprintf-posix.h (test_function): Likewise.
60174
60175         Fix *printf behaviour for large precisions on mingw and BeOS.
60176         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
60177         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
60178         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
60179         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60180         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60181         gl_PRINTF_PRECISION and test its result. Invoke
60182         gl_PREREQ_VASNPRINTF_PRECISION.
60183         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60184         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60185         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60186         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60187         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60188         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60189         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60190         * doc/functions/fprintf.texi: Update.
60191         * doc/functions/printf.texi: Update.
60192         * doc/functions/snprintf.texi: Update.
60193         * doc/functions/sprintf.texi: Update.
60194         * doc/functions/vfprintf.texi: Update.
60195         * doc/functions/vprintf.texi: Update.
60196         * doc/functions/vsnprintf.texi: Update.
60197         * doc/functions/vsprintf.texi: Update.
60198
60199 2007-11-04  Bruno Haible  <bruno@clisp.org>
60200
60201         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
60202
60203 2007-11-04  Bruno Haible  <bruno@clisp.org>
60204
60205         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
60206         Reported by Sylvain Beucler <beuc@gnu.org>.
60207
60208 2007-11-03  Bruno Haible  <bruno@clisp.org>
60209
60210         * tests/test-fprintf-posix2.sh: New file.
60211         * tests/test-fprintf-posix2.c: New file.
60212         * modules/fprintf-posix-tests (Files): Add them.
60213         (TESTS): Add test-fprintf-posix2.sh.
60214         (configure.ac): Check for getrlimit and setrlimit.
60215         (check_PROGRAMS): Add test-fprintf-posix2.
60216
60217         * tests/test-printf-posix2.sh: New file.
60218         * tests/test-printf-posix2.c: New file.
60219         * modules/printf-posix-tests (Files): Add them.
60220         (TESTS): Add test-printf-posix2.sh.
60221         (configure.ac): Check for getrlimit and setrlimit.
60222         (check_PROGRAMS): Add test-printf-posix2.
60223
60224         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
60225         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
60226         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
60227         (decode_double): New function, copied from decode_long_double.
60228         (scale10_round_decimal_decoded): New function, extracted from
60229         scale10_round_decimal_long_double.
60230         (scale10_round_decimal_long_double): Use it.
60231         (scale10_round_decimal_double): New function.
60232         (floorlog10): New function.
60233         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
60234         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
60235         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60236         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60237         gl_PRINTF_ENOMEM and test its result. Invoke
60238         gl_PREREQ_VASNPRINTF_ENOMEM.
60239         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60240         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60241         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60242         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60243         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60244         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60245         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60246         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
60247         * modules/snprintf-posix (Depends-on): Likewise.
60248         * modules/sprintf-posix (Depends-on): Likewise.
60249         * modules/vasnprintf-posix (Depends-on): Likewise.
60250         * modules/vasprintf-posix (Depends-on): Likewise.
60251         * modules/vfprintf-posix (Depends-on): Likewise.
60252         * modules/vsnprintf-posix (Depends-on): Likewise.
60253         * modules/vsprintf-posix (Depends-on): Likewise.
60254         * doc/functions/fprintf.texi: Update.
60255         * doc/functions/printf.texi: Update.
60256         * doc/functions/snprintf.texi: Update.
60257         * doc/functions/sprintf.texi: Update.
60258         * doc/functions/vfprintf.texi: Update.
60259         * doc/functions/vprintf.texi: Update.
60260         * doc/functions/vsnprintf.texi: Update.
60261         * doc/functions/vsprintf.texi: Update.
60262
60263 2007-11-03  Bruno Haible  <bruno@clisp.org>
60264
60265         * modules/frexp-nolibm-tests: New file.
60266
60267         * modules/frexp-nolibm: New file.
60268         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
60269
60270 2007-11-03  Bruno Haible  <bruno@clisp.org>
60271
60272         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
60273         value is C99 compliant.
60274         Needed for OSF/1 5.1.
60275
60276 2007-11-03  Bruno Haible  <bruno@clisp.org>
60277
60278         Fix out-of-memory handling of vasnprintf.
60279         * lib/printf-parse.c: Include <errno.h>.
60280         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
60281         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
60282         is already set.
60283
60284 2007-11-02  Eric Blake  <ebb9@byu.net>
60285
60286         Fix tests on cygwin.
60287         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
60288
60289 2007-11-01  Bruno Haible  <bruno@clisp.org>
60290
60291         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
60292         warning.
60293         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
60294         needed for POSIX compatibility.
60295
60296 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60297
60298         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
60299         for compatibility with GNU.
60300
60301 2007-11-01  Bruno Haible  <bruno@clisp.org>
60302
60303         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
60304         (putenv): Renamed from rpl_putenv. Change argument type from
60305         'const char *' to 'char *'.
60306         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
60307         of defining putenv in config.h, just set REPLACE_PUTENV.
60308         * modules/putenv (Depends-on): Add stdlib.
60309         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60310         (Include): Use <stdlib.h>.
60311         * lib/stdlib.in.h (putenv): New declaration.
60312         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
60313         REPLACE_PUTENV.
60314         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
60315         REPLACE_PUTENV.
60316         Needed for MacOS X 10.5.0.
60317         Reported by Peter O'Gorman <peter@pogma.com>.
60318
60319 2007-11-01  Jim Meyering  <meyering@redhat.com>
60320
60321         Treat an empty date string exactly like "0".
60322         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
60323         if the remaining date string (to be parsed) is empty, use "0".
60324         Reported by Mischa Molhoek and discussed in this thread:
60325         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
60326
60327 2007-10-31  Bruno Haible  <bruno@clisp.org>
60328
60329         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
60330         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
60331         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
60332         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
60333         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
60334         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
60335
60336 2007-10-31  Bruno Haible  <bruno@clisp.org>
60337
60338         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
60339         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
60340         (AC_TYPE_LONG_LONG_INT): Use it.
60341         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
60342         it as well.
60343         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
60344         to m4/longlong.m4.
60345         * modules/stdint (Files): Remove m4/ulonglong.m4.
60346         * modules/strtoull (Files): Use m4/longlong.m4 instead of
60347         m4/ulonglong.m4.
60348         * modules/strtoumax (Files): Likewise.
60349
60350 2007-10-30  Bruno Haible  <bruno@clisp.org>
60351
60352         * modules/xvasprintf-posix: New file.
60353         Suggested by Eric Blake.
60354
60355 2007-10-30  Bruno Haible  <bruno@clisp.org>
60356
60357         * modules/xprintf-posix-tests: New file.
60358         * tests/test-xprintf-posix.sh: New file.
60359         * tests/test-xprintf-posix.c: New file.
60360         * tests/test-xfprintf-posix.c: New file.
60361
60362         * modules/xprintf-posix: New file.
60363
60364 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60365
60366         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
60367         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
60368         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
60369
60370 2007-10-29  Bruno Haible  <bruno@clisp.org>
60371
60372         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
60373         contain the special marker '_cv_'.
60374         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
60375         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
60376         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
60377         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
60378         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
60379         Reported by Ralf Wildenhues.
60380
60381 2007-10-29  Bruno Haible  <bruno@clisp.org>
60382
60383         * gnulib-tool (func_import): When --lgpl is not specified, set
60384         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
60385         GPLv3.
60386         Reported by Simon Josefsson.
60387
60388 2007-10-28  Bruno Haible  <bruno@clisp.org>
60389
60390         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
60391         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
60392         HAVE_DECL_ISFINITE.
60393         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60394         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
60395         HAVE_DECL_ISFINITE.
60396
60397 2007-10-28  Bruno Haible  <bruno@clisp.org>
60398
60399         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
60400         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
60401
60402 2007-10-28  Bruno Haible  <bruno@clisp.org>
60403
60404         Fix link errors with Sun C 5.0 on Solaris 10.
60405         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
60406         function is declared but not present in the compiler's libm.
60407         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
60408         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
60409         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
60410         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
60411         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
60412         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
60413         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
60414         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60415         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
60416         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
60417         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
60418         HAVE_DECL_FLOORL.
60419
60420 2007-10-28  Bruno Haible  <bruno@clisp.org>
60421
60422         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
60423         gl_FUNC_FLOORL. Cache the result.
60424         (gl_FUNC_FLOORL): Use it.
60425         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
60426         gl_FUNC_CEILL. Cache the result.
60427         (gl_FUNC_CEILL): Use it.
60428
60429         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
60430         gl_FUNC_FLOOR. Cache the result.
60431         (gl_FUNC_FLOOR): Use it.
60432         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
60433         gl_FUNC_CEIL. Cache the result.
60434         (gl_FUNC_CEIL): Use it.
60435
60436         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
60437         gl_FUNC_FLOORF. Cache the result.
60438         (gl_FUNC_FLOORF): Use it.
60439         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
60440         gl_FUNC_CEILF. Cache the result.
60441         (gl_FUNC_CEILF): Use it.
60442
60443 2007-10-28  Bruno Haible  <bruno@clisp.org>
60444
60445         * gnulib-tool: Allow specifying the LGPL version number through
60446         --lgpl=2 or --lgpl=3.
60447         (func_usage): Document --lgpl with argument.
60448         Handle --lgpl=... arguments.
60449         (func_import): Recognize also gl_LGPL calls with an argument. When
60450         --lgpl=2 is used and the module's license is just LGPL, report an
60451         error. Set sed_transform_lib_file according to the lgpl variable. In
60452         the generated files, use --lgpl or gl_LGPL invocations with argument,
60453         if necessary.
60454         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
60455         an LGPv2+ license.
60456         * doc/gnulib-tool.texi (Modified imports): Update explanation of
60457         gl_LGPL macro.
60458
60459 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60460             Bruno Haible  <bruno@clisp.org>
60461
60462         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
60463         (u16_uctomb_aux): Likewise.
60464         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
60465         !HAVE_INLINE.
60466         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
60467
60468 2007-10-28  Bruno Haible  <bruno@clisp.org>
60469
60470         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
60471         Invoke AM_GETTEXT_OPTION if it exists.
60472         * modules/vasprintf: Likewise.
60473         * modules/verror: Likewise.
60474         * modules/xprintf: Likewise.
60475         * modules/xvasprintf: Likewise.
60476
60477 2007-10-27  Ben Pfaff  <blp@gnu.org>
60478
60479         * lib/math.in.h: Define isfinite macro and prototypes for
60480         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
60481         implementations.
60482         * m4/math_h.m4: New substitutions for isfinite module.
60483         * lib/isfinite.c: New file.
60484         * m4/isfinite.m4: New file.
60485         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
60486         * modules/isfinite: New file.
60487         * modules/isfinite-tests: New file.
60488         * tests/tests-isfinite.c: New file.
60489         * doc/functions/isfinite.texi: Mention isfinite module.
60490         * MODULES.html.sh: Mention new module.
60491
60492 2007-10-27  Ben Pfaff  <blp@gnu.org>
60493
60494         Ralf Wildenhues reported that Tru64 4.0D declares the round
60495         functions but does not have definitions.
60496         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
60497         cannot be found in any library, set the output variable to
60498         "missing" instead of "".
60499         * m4/round.m4: Also use our substitute if we cannot find round in
60500         any library, even if it is declared.
60501         * m4/roundf.m4: Likewise for roundf.
60502         * m4/roundl.m4: Likewise for roundl.
60503         * lib/math.in.h: Undefine roundf, round, roundl before defining
60504         their replacements, to allow for hypothetical systems where these
60505         may be defined as macros but not available in libraries.
60506
60507 2007-10-27  Bruno Haible  <bruno@clisp.org>
60508
60509         * doc/gnulib.texi: Invoke @firstparagraphindent.
60510         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
60511         changes in gnulib.
60512         (Source changes): New section.
60513
60514 2007-10-26  Bruno Haible  <bruno@clisp.org>
60515
60516         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
60517         borrowed from autoconf.
60518
60519 2007-10-26  Bruno Haible  <bruno@clisp.org>
60520
60521         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
60522         strerror returned the empty string. Needed on HP-UX 11.00.
60523
60524 2007-10-24  Micah Cowan  <micah@cowan.name>
60525
60526         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
60527         * build-aux/bootstrap: Remove support for now-unnecessary option,
60528         --cvs-user, and envvars CVS_USER, CVS_RSH.
60529
60530 2007-10-24  Jim Meyering  <meyering@redhat.com>
60531
60532         Avoid diagnostics from sha1sum when there is no cached checksum.
60533         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
60534         if the po.s1 file hasn't been created yet.
60535
60536         * build-aux/bootstrap: Sync from coreutils:
60537         2007-10-24  Jim Meyering  <meyering@redhat.com>
60538         Get gnulib from the git repository, not from an obsolete cvs one.
60539         * build-aux/bootstrap: Suggestion from Micah Cowan.
60540         2007-10-04  Jim Meyering  <jim@meyering.net>
60541         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
60542         (update_po_files): Work also when there are no .po files in po/.
60543
60544 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60545
60546         * README: Append ".git" to git and cg examples.
60547         Problem reported by Benoit Sigoure.
60548
60549 2007-10-23  Micah Cowan  <micah@cowan.name>
60550
60551         * users.txt: Add wget.
60552
60553 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60554
60555         Fix linking of some unistdio tests on FreeBSD.
60556         * modules/unistdio/u16-vsnprintf-tests
60557         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
60558         * modules/unistdio/u16-vsprintf-tests
60559         (test_u16_vsnprintf1_LDADD): Likewise.
60560         * modules/unistdio/u32-vsnprintf-tests
60561         (test_u32_vsnprintf1_LDADD): Likewise.
60562         * modules/unistdio/u32-vsprintf-tests
60563         (test_u32_vsprintf1_LDADD): Likewise.
60564         * modules/unistdio/u8-vsnprintf-tests
60565         (test_u8_vsnprintf1_LDADD): Likewise.
60566         * modules/unistdio/u8-vsprintf-tests
60567         (test_u8_vsprintf1_LDADD): Likewise.
60568         * modules/unistdio/ulc-vsnprintf-tests
60569         (test_ulc_vsnprintf1_LDADD): Likewise.
60570         * modules/unistdio/ulc-vsprintf-tests
60571         (test_ulc_vsprintf1_LDADD): Likewise.
60572
60573         Fix linking of some uniconv tests on FreeBSD.
60574         * modules/uniconv/u16-conv-from-enc-tests
60575         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
60576         * modules/uniconv/u16-conv-to-enc-tests
60577         (test_u16_conv_to_enc_LDADD): Likewise.
60578         * modules/uniconv/u16-strconv-from-enc-tests
60579         (test_u16_strconv_from_enc_LDADD): Likewise.
60580         * modules/uniconv/u16-strconv-to-enc-tests
60581         (test_u16_strconv_to_enc_LDADD): Likewise.
60582         * modules/uniconv/u32-conv-from-enc-tests
60583         (test_u32_conv_from_enc_LDADD): Likewise.
60584         * modules/uniconv/u32-conv-to-enc-tests
60585         (test_u32_conv_to_enc_LDADD): Likewise.
60586         * modules/uniconv/u32-strconv-from-enc-tests
60587         (test_u32_strconv_from_enc_LDADD): Likewise.
60588         * modules/uniconv/u32-strconv-to-enc-tests
60589         (test_u32_strconv_to_enc_LDADD): Likewise.
60590         * modules/uniconv/u8-conv-from-enc-tests
60591         (test_u8_conv_from_enc_LDADD): Likewise.
60592         * modules/uniconv/u8-conv-to-enc-tests
60593         (test_u8_conv_to_enc_LDADD): Likewise.
60594         * modules/uniconv/u8-strconv-from-enc-tests
60595         (test_u8_strconv_from_enc_LDADD): Likewise.
60596         * modules/uniconv/u8-strconv-to-enc-tests
60597         (test_u8_strconv_to_enc_LDADD): Likewise.
60598
60599 2007-10-22  Bruno Haible  <bruno@clisp.org>
60600
60601         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
60602         size.
60603
60604 2007-10-22  Eric Blake  <ebb9@byu.net>
60605
60606         Tweak x*printf documentation.
60607         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
60608         variable name and comments.
60609         Suggested by Bruno Haible.
60610
60611 2007-10-22  Bruno Haible  <bruno@clisp.org>
60612
60613         * lib/acl.c (copy_acl): Fix file name in comment.
60614
60615 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60616
60617         Fix Tru64 problem with stdbool.h.
60618         * lib/stdbool.in.h (false, true):
60619         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
60620         Don't declare as an enum in this situation; it runs afoul of Tru64.
60621         Problem reported by Steven M. Schweda in
60622         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
60623
60624 2007-10-22  Eric Blake  <ebb9@byu.net>
60625
60626         Also wrap vf?printf.
60627         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
60628         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
60629         (xvprintf, xvfprintf): New functions.
60630
60631 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60632
60633         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
60634         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
60635
60636         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
60637         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
60638
60639 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60640
60641         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
60642         by Bruno Haible.
60643
60644 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60645
60646         * lib/getloadavg.c
60647         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
60648         Undef `sys' after including sys/table.h, for Tru64 4.0D.
60649
60650         * tests/test-i-ring.c: Work for C89.
60651
60652 2007-10-22  Bruno Haible  <bruno@clisp.org>
60653
60654         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
60655         -1u, in preprocessor expression, so that we don't test for the bug
60656         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
60657         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
60658
60659 2007-10-22  Eric Blake  <ebb9@byu.net>
60660
60661         * tests/test-yesno.sh: Silence stderr during test.
60662
60663 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60664
60665         * modules/crypto/gc-camellia: New file.
60666
60667         * m4/gc-camellia.m4: New file.
60668
60669         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
60670
60671         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
60672
60673 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60674
60675         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
60676         --help to stdout.  Reported by sms@antinode.org (Steven
60677         M. Schweda).
60678
60679 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60680
60681         * users.txt: Fix link to libksba.
60682
60683 2007-10-21  Ben Pfaff  <blp@gnu.org>
60684
60685         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
60686         round.c roundf implementation that depends on floorf and ceilf to
60687         be tested unconditionally.
60688
60689 2007-10-21  Ben Pfaff  <blp@gnu.org>
60690
60691         * m4/check-libm-func.m4: Removed.
60692         * m4/check-math-lib.m4: New file.
60693         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
60694         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
60695         definition and lack of AC_LIBOBJ([roundf]).
60696         * m4/roundl.m4: Ditto, and similarly for roundl.
60697         * modules/round: Reference new m4 file.
60698         * modules/roundf: Ditto.
60699         * modules/roundl: Ditto.
60700         * tests/test-round2.c (main): Use ROUND instead of round.
60701         Bug report from Bruno Haible.
60702
60703 2007-10-21  Bruno Haible  <bruno@clisp.org>
60704
60705         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
60706         context.
60707
60708 2007-10-21  Bruno Haible  <bruno@clisp.org>
60709
60710         * tests/test-wcwidth.c (main): Allow negative result for some control
60711         characters.
60712
60713         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
60714         Needed on OSF/1 5.1.
60715
60716 2007-10-21  Bruno Haible  <bruno@clisp.org>
60717
60718         * tests/test-floorf1.c: Include isnanf.h.
60719         (main): Use isnanf() instead of isnan().
60720         * tests/test-ceilf1.c: Include isnanf.h.
60721         (main): Use isnanf() instead of isnan().
60722         * tests/test-truncf1.c: Include isnanf.h.
60723         (main): Use isnanf() instead of isnan().
60724         * tests/test-roundf1.c: Include isnanf.h.
60725         (main): Use isnanf() instead of isnan().
60726
60727 2007-10-21  Eric Blake  <ebb9@byu.net>
60728
60729         * users.txt: Update URL for m4.
60730
60731 2007-10-21  Bruno Haible  <bruno@clisp.org>
60732
60733         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
60734
60735 2007-10-21  Bruno Haible  <bruno@clisp.org>
60736
60737         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
60738         Git's management files if the CVS files are not present.
60739
60740 2007-10-20  Bruno Haible  <bruno@clisp.org>
60741
60742         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
60743         gcc-3.4.x.
60744
60745 2007-10-20  Ben Pfaff  <blp@gnu.org>
60746
60747         * lib/math.in.h: Declare round, roundf, roundl if we are providing
60748         implementations.
60749         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
60750         * lib/round.c: New file.
60751         * lib/roundf.c: New file.
60752         * lib/roundl.c: New file.
60753         * m4/round.m4: New file.
60754         * m4/roundf.m4: New file.
60755         * m4/roundl.m4: New file.
60756         * m4/check-libm-func-m4: New file.
60757         * modules/math: Replace round, roundf, roundl related @VARS@ in
60758         math.in.h.
60759         * modules/round: New file.
60760         * modules/round-tests: New file.
60761         * modules/roundf: New file.
60762         * modules/roundf-tests: New file.
60763         * modules/roundl: New file.
60764         * modules/roundl-tests: New file.
60765         * tests/test-round1.c: New file.
60766         * tests/test-round2.c: New file.
60767         * tests/test-roundf1.c: New file.
60768         * tests/test-roundf2.c: New file.
60769         * tests/test-roundl.c: New file.
60770         * doc/functions/round.texi: Mention round module.
60771         * doc/functions/roundf.texi: Mention roundf module.
60772         * doc/functions/roundl.texi: Mention roundl module.
60773         * MODULES.html.sh: Mention new modules.
60774         Thanks to Bruno Haible for suggestions.
60775
60776 2007-10-20  Jim Meyering  <meyering@redhat.com>
60777
60778         * lib/xprintf.c: Include <config.h> unconditionally.
60779
60780         Change xprintf's license to GPL.
60781         * modules/xprintf (License): s/LGPL/GPL/, since this module
60782         depends on modules (exit and exitfail) which are GPL.
60783         Suggestion from Bruno Haible.
60784
60785         xprintf fixes.
60786         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
60787         Use a clearer diagnostic.
60788         Patch from Bruno Haible.
60789
60790 2007-10-20  Bruno Haible  <bruno@clisp.org>
60791
60792         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
60793         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
60794         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60795
60796 2007-10-20  Bruno Haible  <bruno@clisp.org>
60797
60798         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
60799         precision in the comparison result > x - 1 or similar.
60800         * tests/test-ceilf2.c (correct_result_p): Likewise.
60801         * tests/test-truncf2.c (correct_result_p): Likewise.
60802         * tests/test-trunc2.c (correct_result_p): Likewise.
60803         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60804
60805 2007-10-20  Bruno Haible  <bruno@clisp.org>
60806
60807         * modules/ceil: New file.
60808         * m4/ceil.m4: New file.
60809         * doc/functions/ceil.texi: Mention the 'ceil' module.
60810
60811 2007-10-20  Bruno Haible  <bruno@clisp.org>
60812
60813         * modules/floor: New file.
60814         * m4/floor.m4: New file.
60815         * doc/functions/floor.texi: Mention the 'floor' module.
60816
60817 2007-10-20  Bruno Haible  <bruno@clisp.org>
60818
60819         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
60820         of %a.
60821         * modules/floorf-tests (Depends-on): Likewise.
60822         * modules/truncf-tests (Depends-on): Likewise.
60823         * modules/trunc-tests (Depends-on): Likewise.
60824         Reported by Ben Pfaff.
60825
60826 2007-10-19  Jim Meyering  <meyering@redhat.com>
60827
60828         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
60829         Don't bother testing specific errno values.  Just test ferror.
60830
60831         New module: xprintf
60832         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
60833
60834 2007-10-19  Bruno Haible  <bruno@clisp.org>
60835
60836         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
60837         syntax.
60838         * modules/javaexec (Makefile.am): Likewise.
60839         * modules/relocatable-prog (Makefile.am): Likewise.
60840         Suggested by Jim Meyering.
60841
60842 2007-10-18  Bruno Haible  <bruno@clisp.org>
60843
60844         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
60845         Reported by Jim Meyering.
60846
60847 2007-10-18  Eric Blake  <ebb9@byu.net>
60848
60849         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
60850
60851 2007-10-18  Bruno Haible  <bruno@clisp.org>
60852
60853         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
60854         the format string into writable memory. Needed in Fortify conditions.
60855
60856 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
60857             Bruno Haible  <bruno@clisp.org>
60858
60859         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
60860         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
60861         * modules/trim (Depends-on): Add mbchar.
60862         (configure.ac): Add gl_FUNC_MBRTOWC.
60863         (Makefile.am): Augment lib_SOURCES.
60864
60865 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60866
60867         Modify glob.c to use fstatat and dirfd, to simplify it.
60868         Suggested by Eric Blake.
60869         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
60870         Don't include <stdbool.h>; not used.
60871         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
60872         (link_exists_p): Simplify implementation, since we can now assume
60873         dirfd and fstatat.
60874         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
60875
60876 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60877
60878         * gnulib-tool (func_get_dependencies): Fix sed script to
60879         match only tests.
60880
60881 2007-10-17  Bruno Haible  <bruno@clisp.org>
60882
60883         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
60884         allow locale names without encoding suffix.
60885         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60886         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60887
60888 2007-10-16  Bruno Haible  <bruno@clisp.org>
60889
60890         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
60891         * lib/getgroups.c (getgroups): Likewise.
60892         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
60893
60894 2007-10-16  Bruno Haible  <bruno@clisp.org>
60895
60896         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
60897         * modules/malloc-posix (License): Likewise.
60898         * modules/realloc-posix (License): Likewise.
60899         * modules/calloc-posix (License): Likewise.
60900         * modules/intprops (License): Change from GPL to LGPL, with
60901         Paul Eggert's approval.
60902
60903 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60904
60905         Merge glibc changes into lib/glob.c.
60906
60907         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
60908         2007-10-15 04:59:03 UTC.  Here are the changes:
60909
60910         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
60911
60912         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
60913
60914         * lib/glob.c: Add some branch prediction throughout.
60915
60916         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
60917
60918         [BZ #5103]
60919         * lib/glob.c (glob): Recognize patterns starting \/.
60920
60921         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
60922
60923         [BZ #3996]
60924         * lib/glob.c (attribute_hidden): Define if not defined.
60925         (glob): Unescape dirname, filename or username when needed and not
60926         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
60927         is NULL.  Handle unescaped [ in pattern without closing ].
60928         Don't pass GLOB_CHECK down to recursive glob for directories.
60929         (__glob_pattern_type): New function.
60930         (__glob_pattern_p): Implement using __glob_pattern_type.
60931         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
60932         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
60933         Remove unreachable code.
60934
60935         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
60936
60937         * lib/glob.c (glob_in_dir): Add some comments and asserts to
60938         explain why there are no leaks.
60939
60940         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
60941
60942         [BZ #3253]
60943         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
60944         time, rather allocate increasingly bigger arrays of pointers, if
60945         possible with alloca, if too large with malloc.
60946
60947 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60948
60949         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
60950         Problem reported by H.Merijn Brand in
60951         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
60952         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
60953         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60954
60955 2007-10-15  Bruno Haible  <bruno@clisp.org>
60956
60957         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
60958         with explicit rpl_ prefix.
60959         * lib/fopen.c (fopen): Likewise.
60960         * lib/freopen.c (freopen): Likewise.
60961         * lib/iconv.c (iconv): Likewise.
60962         * lib/iconv_close.c (iconv_close): Likewise.
60963
60964 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60965
60966         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
60967
60968 2007-10-15  Bruno Haible  <bruno@clisp.org>
60969
60970         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
60971         <stddef.h> instead of <stdlib.h> since we only need NULL.
60972         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60973
60974 2007-10-15  Bruno Haible  <bruno@clisp.org>
60975
60976         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
60977         Replace paragraph talking about LIBOBJS.
60978         Reported by Colin Watson <cjwatson@debian.org>.
60979
60980 2007-10-15  Bruno Haible  <bruno@clisp.org>
60981
60982         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
60983         <stdlib.h> before using NULL.
60984
60985 2007-10-15  Simon Josefsson  <simon@josefsson.org>
60986
60987         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
60988         Reported by Albert Chin <china@thewrittenword.com>.
60989
60990 2007-10-14  Bruno Haible  <bruno@clisp.org>
60991
60992         * modules/iconv_open-utf-tests: New file.
60993         * tests/test-iconv-utf.c: New file.
60994
60995         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
60996         * modules/iconv_open-utf: New file.
60997         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
60998         (iconv, iconv_close): New declarations.
60999         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
61000         be defined.
61001         (iconv_open): Add special handling of conversion between UTF-8 and
61002         UTF-{16,32}{BE,LE}.
61003         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
61004         * lib/iconv_close.c: New file.
61005         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
61006         gl_FUNC_ICONV_OPEN.
61007         (gl_FUNC_ICONV_OPEN): Use it.
61008         (gl_FUNC_ICONV_OPEN_UTF): New macro.
61009         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
61010         and REPLACE_ICONV_UTF.
61011         * modules/iconv_open (Depends-on): Add c-strcase.
61012         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
61013         ICONV_CONST.
61014         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
61015
61016 2007-10-13  Albert Chin  <china@thewrittenword.com>
61017             Bruno Haible  <bruno@clisp.org>
61018
61019         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
61020         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
61021
61022 2007-10-13  Bruno Haible  <bruno@clisp.org>
61023
61024         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
61025         defined, use the ISO C99 inline semantics.
61026         * lib/argp.h (ARGP_EI): Likewise.
61027
61028 2007-10-13  Bruno Haible  <bruno@clisp.org>
61029
61030         Handle 'inline' change in gcc 4.3.0.
61031         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
61032         argp_fmtstream_write, argp_fmtstream_set_lmargin,
61033         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
61034         argp_fmtstream_point): Disable 'extern' declaration if the function
61035         definition is going to be provided inline.
61036         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
61037         semantics, not the ISO C99 inline semantics.
61038         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
61039         'extern' declaration if the function definition is going to be provided
61040         inline.
61041         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
61042         the GNU C inline semantics, not the ISO C99 inline semantics. With
61043         GCC 4.2, avoid a warning.
61044
61045 2007-10-13  Bruno Haible  <bruno@clisp.org>
61046
61047         * lib/freading.h (freading): Enable the use of __freading for
61048         glibc >= 2.7.
61049         * lib/freading.c (freading): Likewise.
61050
61051 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61052
61053         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
61054         "warning: C99 inline functions are not supported; using GNU89".
61055
61056 2007-10-12  Bruno Haible  <bruno@clisp.org>
61057
61058         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
61059         of 2.
61060         * tests/test-ceilf2.c: New file.
61061         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
61062
61063         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
61064         * modules/ceilf-tests: Update.
61065
61066 2007-10-12  Bruno Haible  <bruno@clisp.org>
61067
61068         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
61069         of 2.
61070         * tests/test-floorf2.c: New file.
61071         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
61072
61073         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
61074         * modules/floorf-tests: Update.
61075
61076 2007-10-12  Bruno Haible  <bruno@clisp.org>
61077
61078         * tests/test-trunc2.c: New file.
61079         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
61080
61081         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
61082         * modules/trunc-tests: Update.
61083
61084 2007-10-12  Bruno Haible  <bruno@clisp.org>
61085
61086         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
61087         of 2.
61088         * tests/test-truncf2.c: New file.
61089         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
61090
61091         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
61092         * modules/truncf-tests: Update.
61093
61094 2007-10-11  Eric Blake  <ebb9@byu.net>
61095
61096         Don't claim strerror is broken on Interix.
61097         * doc/functions/strerror.texi (strerror): Known broken systems are
61098         now Solaris 8, and not Interix.
61099         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
61100         Interix on cross-compile.
61101         Reported by Martin Koeppe in
61102         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
61103
61104 2007-10-11  Bruno Haible  <bruno@clisp.org>
61105
61106         * modules/i-ring-tests: New file.
61107         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
61108         instead of assert.
61109
61110 2007-10-11  Bruno Haible  <bruno@clisp.org>
61111
61112         * modules/filenamecat-tests: New file.
61113         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
61114         * lib/filenamecat.c: Remove test code.
61115
61116 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61117
61118         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
61119
61120         * lib/strerror.c: Include <string.h> always, to test interface,
61121         and to remove the need for the dummy.
61122         Include intprops.h to compute width instead of doing it ourselves
61123         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
61124         (strerror): Define it to return NULL if there's no system strerror.
61125         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
61126         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
61127         ancient pre-strerror Unix systems well any more.  Saying "unknown
61128         system error" is enough.
61129         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
61130         simpler strerror.c implementation.
61131         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
61132         Simplify the tests to reflect the simpler strerror implementation.
61133         * modules/strerror (Depends-on): Add intprops.
61134
61135 2007-10-09  Eric Blake  <ebb9@byu.net>
61136
61137         Silence test-fpending.
61138         * modules/fpending-tests (Files): Add wrapper script.
61139         * tests/test-fpending.sh: New file.
61140
61141 2007-10-09  Bruno Haible  <bruno@clisp.org>
61142
61143         * MODULES.html.sh (func_module): Don't create a hyperlink for
61144         function names like 'printf_frexp'.
61145         (Misc): Add crc, memxor.
61146         (Characteristics of floating types): New section.
61147         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
61148         isnanf-nolibm, signbit, trunc, truncf, truncl.
61149         (Enhancements for ISO C 99 functions): New subsection Input/output.
61150         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
61151         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
61152         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
61153         (Compatibility checks for POSIX:2001 functions): Add clock-time.
61154         (Enhancements for POSIX:2001 functions): Add chdir-long.
61155         (File system functions): Add areadlink, chdir-safer, read-file.
61156         Remove cycle-check.
61157         (File system as inode set): New section.
61158         (Date and time): Add gethrxtime.
61159         (Multithreading): Add openmp.
61160         (Internationalization functions): Add localename.
61161         (Unicode string functions): Add unistr/u*-mbsnlen.
61162         (Support for maintaining and releasing projects): Add git-version-gen.
61163         (Lone files): Remove directories.
61164
61165 2007-10-08  Ben Pfaff  <blp@gnu.org>
61166
61167         * lib/xmalloca.h: Fix typo in comment.
61168
61169 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61170
61171         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
61172         when avoiding problems with integer overflow.  Use a portable test
61173         instead.
61174
61175 2007-10-08  Simon Josefsson  <simon@josefsson.org>
61176
61177         * modules/dummy (License): Change to LGPLv2+.
61178         * modules/float (License): Likewise
61179         * modules/realloc (License): Likewise
61180         * modules/stdlib (License): Likewise
61181
61182 2007-10-07  Bruno Haible  <bruno@clisp.org>
61183
61184         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
61185         * floor.c (TWO_MANT_DIG): Likewise.
61186         * ceil.c (TWO_MANT_DIG): Likewise.
61187         Reported by Ben Pfaff.
61188
61189 2007-10-07  Bruno Haible  <bruno@clisp.org>
61190
61191         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
61192         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
61193         * lib/frexp.c (FUNC): Likewise.
61194         * lib/printf-frexp.h (printf_frexp): Likewise.
61195         * lib/printf-frexpl.h (printf_frexpl): Likewise.
61196         * lib/printf-frexp.c (FUNC): Likewise.
61197         Suggested by Jim Meyering.
61198
61199 2007-10-07  Jim Meyering  <meyering@redhat.com>
61200
61201         Make xnanosleep's integer overflow test more robust.
61202         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
61203         so that gcc-4.3.0 doesn't optimize away this test for overflow.
61204
61205 2007-10-07  Bruno Haible  <bruno@clisp.org>
61206
61207         * NEWS: Mention the license change.
61208
61209         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
61210         abbreviations in the modules files.
61211
61212         Change copyright notice from GPLv2+ to GPLv3+.
61213         * README: Change copyright notice.
61214         * MODULES.html.sh: Likewise.
61215         * build-aux/bootstrap.conf: Likewise.
61216         * build-aux/config.libpath: Likewise.
61217         * build-aux/csharpcomp.sh.in: Likewise.
61218         * build-aux/csharpexec.sh.in: Likewise.
61219         * build-aux/install-reloc: Likewise.
61220         * build-aux/javacomp.sh.in: Likewise.
61221         * build-aux/javaexec.sh.in: Likewise.
61222         * build-aux/ldd.sh.in: Likewise.
61223         * build-aux/reloc-ldflags: Likewise.
61224         * build-aux/relocatable.sh.in: Likewise.
61225         * build-aux/x-to-1.in: Likewise.
61226         * check-module: Likewise.
61227         * config/srclistvars.sh: Likewise.
61228         * gnulib-tool: Likewise.
61229         * lib/acl-internal.h: Likewise.
61230         * lib/acl.c: Likewise.
61231         * lib/acl.h: Likewise.
61232         * lib/acl_entries.c: Likewise.
61233         * lib/areadlink-with-size.c: Likewise.
61234         * lib/areadlink.c: Likewise.
61235         * lib/areadlink.h: Likewise.
61236         * lib/argmatch.c: Likewise.
61237         * lib/argmatch.h: Likewise.
61238         * lib/argp-ba.c: Likewise.
61239         * lib/argp-eexst.c: Likewise.
61240         * lib/argp-fmtstream.c: Likewise.
61241         * lib/argp-fmtstream.h: Likewise.
61242         * lib/argp-fs-xinl.c: Likewise.
61243         * lib/argp-help.c: Likewise.
61244         * lib/argp-namefrob.h: Likewise.
61245         * lib/argp-parse.c: Likewise.
61246         * lib/argp-pin.c: Likewise.
61247         * lib/argp-pv.c: Likewise.
61248         * lib/argp-pvh.c: Likewise.
61249         * lib/argp-xinl.c: Likewise.
61250         * lib/argp.h: Likewise.
61251         * lib/at-func.c: Likewise.
61252         * lib/atanl.c: Likewise.
61253         * lib/backupfile.c: Likewise.
61254         * lib/backupfile.h: Likewise.
61255         * lib/basename.c: Likewise.
61256         * lib/binary-io.h: Likewise.
61257         * lib/byteswap.in.h: Likewise.
61258         * lib/c-stack.c: Likewise.
61259         * lib/c-stack.h: Likewise.
61260         * lib/c-strcasestr.c: Likewise.
61261         * lib/c-strcasestr.h: Likewise.
61262         * lib/c-strstr.c: Likewise.
61263         * lib/c-strstr.h: Likewise.
61264         * lib/c-strtod.c: Likewise.
61265         * lib/calloc.c: Likewise.
61266         * lib/canon-host.c: Likewise.
61267         * lib/canon-host.h: Likewise.
61268         * lib/canonicalize-lgpl.c: Likewise.
61269         * lib/canonicalize.c: Likewise.
61270         * lib/canonicalize.h: Likewise.
61271         * lib/ceil.c: Likewise.
61272         * lib/ceilf.c: Likewise.
61273         * lib/ceill.c: Likewise.
61274         * lib/chdir-long.c: Likewise.
61275         * lib/chdir-long.h: Likewise.
61276         * lib/chdir-safer.c: Likewise.
61277         * lib/chdir-safer.h: Likewise.
61278         * lib/chown.c: Likewise.
61279         * lib/classpath.c: Likewise.
61280         * lib/classpath.h: Likewise.
61281         * lib/clean-temp.c: Likewise.
61282         * lib/clean-temp.h: Likewise.
61283         * lib/cloexec.c: Likewise.
61284         * lib/close-stream.c: Likewise.
61285         * lib/closein.c: Likewise.
61286         * lib/closein.h: Likewise.
61287         * lib/closeout.c: Likewise.
61288         * lib/closeout.h: Likewise.
61289         * lib/concat-filename.c: Likewise.
61290         * lib/copy-file.c: Likewise.
61291         * lib/copy-file.h: Likewise.
61292         * lib/count-one-bits.h: Likewise.
61293         * lib/crc.c: Likewise.
61294         * lib/crc.h: Likewise.
61295         * lib/creat-safer.c: Likewise.
61296         * lib/csharpcomp.c: Likewise.
61297         * lib/csharpcomp.h: Likewise.
61298         * lib/csharpexec.c: Likewise.
61299         * lib/csharpexec.h: Likewise.
61300         * lib/cycle-check.c: Likewise.
61301         * lib/cycle-check.h: Likewise.
61302         * lib/diacrit.c: Likewise.
61303         * lib/diacrit.h: Likewise.
61304         * lib/diffseq.h: Likewise.
61305         * lib/dirchownmod.c: Likewise.
61306         * lib/dirent.in.h: Likewise.
61307         * lib/dirfd.c: Likewise.
61308         * lib/dirfd.h: Likewise.
61309         * lib/dirname.c: Likewise.
61310         * lib/dirname.h: Likewise.
61311         * lib/dummy.c: Likewise.
61312         * lib/dup-safer.c: Likewise.
61313         * lib/dup2.c: Likewise.
61314         * lib/eealloc.h: Likewise.
61315         * lib/error.c: Likewise.
61316         * lib/error.h: Likewise.
61317         * lib/euidaccess.c: Likewise.
61318         * lib/exclude.c: Likewise.
61319         * lib/exclude.h: Likewise.
61320         * lib/execute.c: Likewise.
61321         * lib/execute.h: Likewise.
61322         * lib/exitfail.c: Likewise.
61323         * lib/exitfail.h: Likewise.
61324         * lib/expl.c: Likewise.
61325         * lib/fatal-signal.c: Likewise.
61326         * lib/fatal-signal.h: Likewise.
61327         * lib/fbufmode.c: Likewise.
61328         * lib/fbufmode.h: Likewise.
61329         * lib/fchdir.c: Likewise.
61330         * lib/fchmodat.c: Likewise.
61331         * lib/fchownat.c: Likewise.
61332         * lib/fcntl--.h: Likewise.
61333         * lib/fcntl-safer.h: Likewise.
61334         * lib/fcntl.in.h: Likewise.
61335         * lib/fd-safer.c: Likewise.
61336         * lib/fflush.c: Likewise.
61337         * lib/file-has-acl.c: Likewise.
61338         * lib/file-set.c: Likewise.
61339         * lib/file-type.c: Likewise.
61340         * lib/file-type.h: Likewise.
61341         * lib/fileblocks.c: Likewise.
61342         * lib/filemode.c: Likewise.
61343         * lib/filemode.h: Likewise.
61344         * lib/filename.h: Likewise.
61345         * lib/filenamecat.c: Likewise.
61346         * lib/filenamecat.h: Likewise.
61347         * lib/findprog.c: Likewise.
61348         * lib/findprog.h: Likewise.
61349         * lib/float.in.h: Likewise.
61350         * lib/floor.c: Likewise.
61351         * lib/floorf.c: Likewise.
61352         * lib/floorl.c: Likewise.
61353         * lib/fopen-safer.c: Likewise.
61354         * lib/fopen.c: Likewise.
61355         * lib/fpending.c: Likewise.
61356         * lib/fpending.h: Likewise.
61357         * lib/fprintf.c: Likewise.
61358         * lib/fprintftime.h: Likewise.
61359         * lib/fpucw.h: Likewise.
61360         * lib/fpurge.c: Likewise.
61361         * lib/fpurge.h: Likewise.
61362         * lib/freadable.c: Likewise.
61363         * lib/freadable.h: Likewise.
61364         * lib/freadahead.c: Likewise.
61365         * lib/freadahead.h: Likewise.
61366         * lib/freading.c: Likewise.
61367         * lib/freading.h: Likewise.
61368         * lib/free.c: Likewise.
61369         * lib/freopen.c: Likewise.
61370         * lib/frexp.c: Likewise.
61371         * lib/frexpl.c: Likewise.
61372         * lib/fseek.c: Likewise.
61373         * lib/fseterr.c: Likewise.
61374         * lib/fseterr.h: Likewise.
61375         * lib/fstatat.c: Likewise.
61376         * lib/fstrcmp.c: Likewise.
61377         * lib/fstrcmp.h: Likewise.
61378         * lib/fsusage.c: Likewise.
61379         * lib/fsusage.h: Likewise.
61380         * lib/ftell.c: Likewise.
61381         * lib/ftello.c: Likewise.
61382         * lib/fts-cycle.c: Likewise.
61383         * lib/fts.c: Likewise.
61384         * lib/fts_.h: Likewise.
61385         * lib/full-read.c: Likewise.
61386         * lib/full-read.h: Likewise.
61387         * lib/full-write.c: Likewise.
61388         * lib/full-write.h: Likewise.
61389         * lib/fwritable.c: Likewise.
61390         * lib/fwritable.h: Likewise.
61391         * lib/fwriteerror.c: Likewise.
61392         * lib/fwriteerror.h: Likewise.
61393         * lib/fwriting.c: Likewise.
61394         * lib/fwriting.h: Likewise.
61395         * lib/gcd.c: Likewise.
61396         * lib/gcd.h: Likewise.
61397         * lib/getcwd.c: Likewise.
61398         * lib/getdate.h: Likewise.
61399         * lib/getdate.y: Likewise.
61400         * lib/getdomainname.c: Likewise.
61401         * lib/getdomainname.h: Likewise.
61402         * lib/getgroups.c: Likewise.
61403         * lib/gethostname.c: Likewise.
61404         * lib/gethrxtime.c: Likewise.
61405         * lib/gethrxtime.h: Likewise.
61406         * lib/getloadavg.c: Likewise.
61407         * lib/getndelim2.c: Likewise.
61408         * lib/getndelim2.h: Likewise.
61409         * lib/getnline.c: Likewise.
61410         * lib/getnline.h: Likewise.
61411         * lib/getopt.c: Likewise.
61412         * lib/getopt.in.h: Likewise.
61413         * lib/getopt1.c: Likewise.
61414         * lib/getopt_int.h: Likewise.
61415         * lib/getpagesize.h: Likewise.
61416         * lib/getsubopt.c: Likewise.
61417         * lib/gettime.c: Likewise.
61418         * lib/getugroups.c: Likewise.
61419         * lib/getugroups.h: Likewise.
61420         * lib/getusershell.c: Likewise.
61421         * lib/gl_anyavltree_list1.h: Likewise.
61422         * lib/gl_anyavltree_list2.h: Likewise.
61423         * lib/gl_anyhash_list1.h: Likewise.
61424         * lib/gl_anyhash_list2.h: Likewise.
61425         * lib/gl_anylinked_list1.h: Likewise.
61426         * lib/gl_anylinked_list2.h: Likewise.
61427         * lib/gl_anyrbtree_list1.h: Likewise.
61428         * lib/gl_anyrbtree_list2.h: Likewise.
61429         * lib/gl_anytree_list1.h: Likewise.
61430         * lib/gl_anytree_list2.h: Likewise.
61431         * lib/gl_anytree_oset.h: Likewise.
61432         * lib/gl_anytreehash_list1.h: Likewise.
61433         * lib/gl_anytreehash_list2.h: Likewise.
61434         * lib/gl_array_list.c: Likewise.
61435         * lib/gl_array_list.h: Likewise.
61436         * lib/gl_array_oset.c: Likewise.
61437         * lib/gl_array_oset.h: Likewise.
61438         * lib/gl_avltree_list.c: Likewise.
61439         * lib/gl_avltree_list.h: Likewise.
61440         * lib/gl_avltree_oset.c: Likewise.
61441         * lib/gl_avltree_oset.h: Likewise.
61442         * lib/gl_avltreehash_list.c: Likewise.
61443         * lib/gl_avltreehash_list.h: Likewise.
61444         * lib/gl_carray_list.c: Likewise.
61445         * lib/gl_carray_list.h: Likewise.
61446         * lib/gl_linked_list.c: Likewise.
61447         * lib/gl_linked_list.h: Likewise.
61448         * lib/gl_linkedhash_list.c: Likewise.
61449         * lib/gl_linkedhash_list.h: Likewise.
61450         * lib/gl_list.c: Likewise.
61451         * lib/gl_list.h: Likewise.
61452         * lib/gl_oset.c: Likewise.
61453         * lib/gl_oset.h: Likewise.
61454         * lib/gl_rbtree_list.c: Likewise.
61455         * lib/gl_rbtree_list.h: Likewise.
61456         * lib/gl_rbtree_oset.c: Likewise.
61457         * lib/gl_rbtree_oset.h: Likewise.
61458         * lib/gl_rbtreehash_list.c: Likewise.
61459         * lib/gl_rbtreehash_list.h: Likewise.
61460         * lib/gl_sublist.c: Likewise.
61461         * lib/gl_sublist.h: Likewise.
61462         * lib/group-member.c: Likewise.
61463         * lib/group-member.h: Likewise.
61464         * lib/hard-locale.c: Likewise.
61465         * lib/hard-locale.h: Likewise.
61466         * lib/hash-pjw.c: Likewise.
61467         * lib/hash-pjw.h: Likewise.
61468         * lib/hash-triple.c: Likewise.
61469         * lib/hash.c: Likewise.
61470         * lib/hash.h: Likewise.
61471         * lib/human.c: Likewise.
61472         * lib/human.h: Likewise.
61473         * lib/i-ring.c: Likewise.
61474         * lib/i-ring.h: Likewise.
61475         * lib/idcache.c: Likewise.
61476         * lib/imaxabs.c: Likewise.
61477         * lib/imaxdiv.c: Likewise.
61478         * lib/inet_pton.c: Likewise.
61479         * lib/inet_pton.h: Likewise.
61480         * lib/intprops.h: Likewise.
61481         * lib/inttostr.c: Likewise.
61482         * lib/inttostr.h: Likewise.
61483         * lib/inttypes.in.h: Likewise.
61484         * lib/isapipe.c: Likewise.
61485         * lib/isdir.c: Likewise.
61486         * lib/isnan.c: Likewise.
61487         * lib/isnan.h: Likewise.
61488         * lib/isnanf.c: Likewise.
61489         * lib/isnanf.h: Likewise.
61490         * lib/isnanl-nolibm.h: Likewise.
61491         * lib/isnanl.c: Likewise.
61492         * lib/isnanl.h: Likewise.
61493         * lib/javacomp.c: Likewise.
61494         * lib/javacomp.h: Likewise.
61495         * lib/javaexec.c: Likewise.
61496         * lib/javaexec.h: Likewise.
61497         * lib/javaversion.c: Likewise.
61498         * lib/javaversion.h: Likewise.
61499         * lib/javaversion.java: Likewise.
61500         * lib/lbrkprop.h: Likewise.
61501         * lib/lchmod.h: Likewise.
61502         * lib/lchown.c: Likewise.
61503         * lib/ldexpl.c: Likewise.
61504         * lib/linebreak.c: Likewise.
61505         * lib/linebreak.h: Likewise.
61506         * lib/linebuffer.c: Likewise.
61507         * lib/linebuffer.h: Likewise.
61508         * lib/locale.in.h: Likewise.
61509         * lib/logl.c: Likewise.
61510         * lib/long-options.c: Likewise.
61511         * lib/long-options.h: Likewise.
61512         * lib/lstat.c: Likewise.
61513         * lib/lstat.h: Likewise.
61514         * lib/math.in.h: Likewise.
61515         * lib/mbchar.c: Likewise.
61516         * lib/mbchar.h: Likewise.
61517         * lib/mbfile.h: Likewise.
61518         * lib/mbiter.h: Likewise.
61519         * lib/mbscasecmp.c: Likewise.
61520         * lib/mbscasestr.c: Likewise.
61521         * lib/mbschr.c: Likewise.
61522         * lib/mbscspn.c: Likewise.
61523         * lib/mbslen.c: Likewise.
61524         * lib/mbsncasecmp.c: Likewise.
61525         * lib/mbsnlen.c: Likewise.
61526         * lib/mbspbrk.c: Likewise.
61527         * lib/mbspcasecmp.c: Likewise.
61528         * lib/mbsrchr.c: Likewise.
61529         * lib/mbssep.c: Likewise.
61530         * lib/mbsspn.c: Likewise.
61531         * lib/mbsstr.c: Likewise.
61532         * lib/mbstok_r.c: Likewise.
61533         * lib/mbswidth.c: Likewise.
61534         * lib/mbswidth.h: Likewise.
61535         * lib/mbuiter.h: Likewise.
61536         * lib/memcasecmp.c: Likewise.
61537         * lib/memcasecmp.h: Likewise.
61538         * lib/memchr.c: Likewise.
61539         * lib/memcmp.c: Likewise.
61540         * lib/memcoll.c: Likewise.
61541         * lib/memcoll.h: Likewise.
61542         * lib/memcpy.c: Likewise.
61543         * lib/memrchr.c: Likewise.
61544         * lib/mkancesdirs.c: Likewise.
61545         * lib/mkdir-p.c: Likewise.
61546         * lib/mkdir-p.h: Likewise.
61547         * lib/mkdir.c: Likewise.
61548         * lib/mkdirat.c: Likewise.
61549         * lib/mkdtemp.c: Likewise.
61550         * lib/mkstemp-safer.c: Likewise.
61551         * lib/mkstemp.c: Likewise.
61552         * lib/modechange.c: Likewise.
61553         * lib/modechange.h: Likewise.
61554         * lib/mountlist.c: Likewise.
61555         * lib/mountlist.h: Likewise.
61556         * lib/mpsort.c: Likewise.
61557         * lib/nanosleep.c: Likewise.
61558         * lib/obstack.c: Likewise.
61559         * lib/obstack.h: Likewise.
61560         * lib/open-safer.c: Likewise.
61561         * lib/open.c: Likewise.
61562         * lib/openat-die.c: Likewise.
61563         * lib/openat-priv.h: Likewise.
61564         * lib/openat-proc.c: Likewise.
61565         * lib/openat.c: Likewise.
61566         * lib/openat.h: Likewise.
61567         * lib/pagealign_alloc.c: Likewise.
61568         * lib/pagealign_alloc.h: Likewise.
61569         * lib/physmem.c: Likewise.
61570         * lib/physmem.h: Likewise.
61571         * lib/pipe-safer.c: Likewise.
61572         * lib/pipe.c: Likewise.
61573         * lib/pipe.h: Likewise.
61574         * lib/posixtm.c: Likewise.
61575         * lib/posixtm.h: Likewise.
61576         * lib/posixver.c: Likewise.
61577         * lib/printf-frexp.c: Likewise.
61578         * lib/printf-frexp.h: Likewise.
61579         * lib/printf-frexpl.c: Likewise.
61580         * lib/printf-frexpl.h: Likewise.
61581         * lib/printf.c: Likewise.
61582         * lib/progname.c: Likewise.
61583         * lib/progname.h: Likewise.
61584         * lib/progreloc.c: Likewise.
61585         * lib/putenv.c: Likewise.
61586         * lib/quote.c: Likewise.
61587         * lib/quote.h: Likewise.
61588         * lib/quotearg.c: Likewise.
61589         * lib/quotearg.h: Likewise.
61590         * lib/raise.c: Likewise.
61591         * lib/readline.c: Likewise.
61592         * lib/readline.h: Likewise.
61593         * lib/readlink.c: Likewise.
61594         * lib/readtokens.c: Likewise.
61595         * lib/readtokens.h: Likewise.
61596         * lib/readtokens0.c: Likewise.
61597         * lib/readtokens0.h: Likewise.
61598         * lib/readutmp.c: Likewise.
61599         * lib/readutmp.h: Likewise.
61600         * lib/realloc.c: Likewise.
61601         * lib/relocwrapper.c: Likewise.
61602         * lib/rename-dest-slash.c: Likewise.
61603         * lib/rename.c: Likewise.
61604         * lib/rmdir.c: Likewise.
61605         * lib/rpmatch.c: Likewise.
61606         * lib/safe-read.c: Likewise.
61607         * lib/safe-read.h: Likewise.
61608         * lib/safe-write.c: Likewise.
61609         * lib/safe-write.h: Likewise.
61610         * lib/same-inode.h: Likewise.
61611         * lib/same.c: Likewise.
61612         * lib/same.h: Likewise.
61613         * lib/save-cwd.c: Likewise.
61614         * lib/save-cwd.h: Likewise.
61615         * lib/savedir.c: Likewise.
61616         * lib/savedir.h: Likewise.
61617         * lib/savewd.c: Likewise.
61618         * lib/savewd.h: Likewise.
61619         * lib/search.in.h: Likewise.
61620         * lib/setenv.c: Likewise.
61621         * lib/setenv.h: Likewise.
61622         * lib/settime.c: Likewise.
61623         * lib/sh-quote.c: Likewise.
61624         * lib/sh-quote.h: Likewise.
61625         * lib/sig2str.c: Likewise.
61626         * lib/sig2str.h: Likewise.
61627         * lib/signal.in.h: Likewise.
61628         * lib/signbitd.c: Likewise.
61629         * lib/signbitf.c: Likewise.
61630         * lib/signbitl.c: Likewise.
61631         * lib/sigprocmask.c: Likewise.
61632         * lib/sincosl.c: Likewise.
61633         * lib/sleep.c: Likewise.
61634         * lib/sprintf.c: Likewise.
61635         * lib/sqrtl.c: Likewise.
61636         * lib/stat-time.h: Likewise.
61637         * lib/stdio--.h: Likewise.
61638         * lib/stdio-safer.h: Likewise.
61639         * lib/stdlib--.h: Likewise.
61640         * lib/stdlib-safer.h: Likewise.
61641         * lib/stdlib.in.h: Likewise.
61642         * lib/stpcpy.c: Likewise.
61643         * lib/stpncpy.c: Likewise.
61644         * lib/strchrnul.c: Likewise.
61645         * lib/strcspn.c: Likewise.
61646         * lib/strerror.c: Likewise.
61647         * lib/strftime.c: Likewise.
61648         * lib/strftime.h: Likewise.
61649         * lib/striconveh.c: Likewise.
61650         * lib/striconveh.h: Likewise.
61651         * lib/striconveha.c: Likewise.
61652         * lib/striconveha.h: Likewise.
61653         * lib/stripslash.c: Likewise.
61654         * lib/strnlen1.c: Likewise.
61655         * lib/strnlen1.h: Likewise.
61656         * lib/strtod.c: Likewise.
61657         * lib/strtoimax.c: Likewise.
61658         * lib/strtok_r.c: Likewise.
61659         * lib/strtol.c: Likewise.
61660         * lib/strtoll.c: Likewise.
61661         * lib/strtoul.c: Likewise.
61662         * lib/strtoull.c: Likewise.
61663         * lib/sysexits.in.h: Likewise.
61664         * lib/tempname.c: Likewise.
61665         * lib/tempname.h: Likewise.
61666         * lib/timespec.h: Likewise.
61667         * lib/tls.c: Likewise.
61668         * lib/tls.h: Likewise.
61669         * lib/tmpdir.c: Likewise.
61670         * lib/tmpdir.h: Likewise.
61671         * lib/tmpfile-safer.c: Likewise.
61672         * lib/tmpfile.c: Likewise.
61673         * lib/trigl.c: Likewise.
61674         * lib/trigl.h: Likewise.
61675         * lib/trim.c: Likewise.
61676         * lib/trim.h: Likewise.
61677         * lib/trunc.c: Likewise.
61678         * lib/truncf.c: Likewise.
61679         * lib/truncl.c: Likewise.
61680         * lib/tsearch.c: Likewise.
61681         * lib/unicodeio.c: Likewise.
61682         * lib/unicodeio.h: Likewise.
61683         * lib/unistd--.h: Likewise.
61684         * lib/unistd-safer.h: Likewise.
61685         * lib/unistdio/ulc-fprintf.c: Likewise.
61686         * lib/unistdio/ulc-vfprintf.c: Likewise.
61687         * lib/unlinkdir.c: Likewise.
61688         * lib/unlinkdir.h: Likewise.
61689         * lib/unlocked-io.h: Likewise.
61690         * lib/unsetenv.c: Likewise.
61691         * lib/userspec.c: Likewise.
61692         * lib/utime.c: Likewise.
61693         * lib/utimecmp.c: Likewise.
61694         * lib/utimecmp.h: Likewise.
61695         * lib/utimens.c: Likewise.
61696         * lib/verify.h: Likewise.
61697         * lib/verror.c: Likewise.
61698         * lib/verror.h: Likewise.
61699         * lib/version-etc-fsf.c: Likewise.
61700         * lib/version-etc.c: Likewise.
61701         * lib/version-etc.h: Likewise.
61702         * lib/vfprintf.c: Likewise.
61703         * lib/vprintf.c: Likewise.
61704         * lib/vsprintf.c: Likewise.
61705         * lib/w32spawn.h: Likewise.
61706         * lib/wait-process.c: Likewise.
61707         * lib/wait-process.h: Likewise.
61708         * lib/wcwidth.c: Likewise.
61709         * lib/write-any-file.c: Likewise.
61710         * lib/xalloc-die.c: Likewise.
61711         * lib/xalloc.h: Likewise.
61712         * lib/xasprintf.c: Likewise.
61713         * lib/xgetcwd.c: Likewise.
61714         * lib/xgetcwd.h: Likewise.
61715         * lib/xgetdomainname.c: Likewise.
61716         * lib/xgetdomainname.h: Likewise.
61717         * lib/xgethostname.c: Likewise.
61718         * lib/xmalloc.c: Likewise.
61719         * lib/xmalloca.c: Likewise.
61720         * lib/xmalloca.h: Likewise.
61721         * lib/xmemcoll.c: Likewise.
61722         * lib/xnanosleep.c: Likewise.
61723         * lib/xreadlink.c: Likewise.
61724         * lib/xreadlink.h: Likewise.
61725         * lib/xsetenv.c: Likewise.
61726         * lib/xsetenv.h: Likewise.
61727         * lib/xstriconv.c: Likewise.
61728         * lib/xstriconv.h: Likewise.
61729         * lib/xstrndup.c: Likewise.
61730         * lib/xstrndup.h: Likewise.
61731         * lib/xstrtod.c: Likewise.
61732         * lib/xstrtod.h: Likewise.
61733         * lib/xstrtol-error.c: Likewise.
61734         * lib/xstrtol.c: Likewise.
61735         * lib/xstrtol.h: Likewise.
61736         * lib/xtime.h: Likewise.
61737         * lib/xvasprintf.c: Likewise.
61738         * lib/xvasprintf.h: Likewise.
61739         * lib/yesno.c: Likewise.
61740         * lib/yesno.h: Likewise.
61741         * posix-modules: Likewise.
61742         * tests/test-alloca-opt.c: Likewise.
61743         * tests/test-arcfour.c: Likewise.
61744         * tests/test-arctwo.c: Likewise.
61745         * tests/test-argmatch.c: Likewise.
61746         * tests/test-argp-2.sh: Likewise.
61747         * tests/test-argp.c: Likewise.
61748         * tests/test-arpa_inet.c: Likewise.
61749         * tests/test-array_list.c: Likewise.
61750         * tests/test-array_oset.c: Likewise.
61751         * tests/test-atexit.c: Likewise.
61752         * tests/test-avltree_list.c: Likewise.
61753         * tests/test-avltree_oset.c: Likewise.
61754         * tests/test-avltreehash_list.c: Likewise.
61755         * tests/test-base64.c: Likewise.
61756         * tests/test-binary-io.c: Likewise.
61757         * tests/test-byteswap.c: Likewise.
61758         * tests/test-c-ctype.c: Likewise.
61759         * tests/test-c-strcasecmp.c: Likewise.
61760         * tests/test-c-strcasestr.c: Likewise.
61761         * tests/test-c-strncasecmp.c: Likewise.
61762         * tests/test-c-strstr.c: Likewise.
61763         * tests/test-canonicalize-lgpl.c: Likewise.
61764         * tests/test-canonicalize.c: Likewise.
61765         * tests/test-carray_list.c: Likewise.
61766         * tests/test-ceilf.c: Likewise.
61767         * tests/test-ceill.c: Likewise.
61768         * tests/test-count-one-bits.c: Likewise.
61769         * tests/test-crc.c: Likewise.
61770         * tests/test-dirname.c: Likewise.
61771         * tests/test-fbufmode.c: Likewise.
61772         * tests/test-fcntl.c: Likewise.
61773         * tests/test-fflush.c: Likewise.
61774         * tests/test-floorf.c: Likewise.
61775         * tests/test-floorl.c: Likewise.
61776         * tests/test-fopen.c: Likewise.
61777         * tests/test-fprintf-posix.c: Likewise.
61778         * tests/test-fprintf-posix.h: Likewise.
61779         * tests/test-fpurge.c: Likewise.
61780         * tests/test-freadable.c: Likewise.
61781         * tests/test-freadahead.c: Likewise.
61782         * tests/test-freading.c: Likewise.
61783         * tests/test-freopen.c: Likewise.
61784         * tests/test-frexp.c: Likewise.
61785         * tests/test-frexpl.c: Likewise.
61786         * tests/test-fseek.c: Likewise.
61787         * tests/test-fseeko.c: Likewise.
61788         * tests/test-fseterr.c: Likewise.
61789         * tests/test-fstrcmp.c: Likewise.
61790         * tests/test-ftell.c: Likewise.
61791         * tests/test-ftello.c: Likewise.
61792         * tests/test-fwritable.c: Likewise.
61793         * tests/test-fwriting.c: Likewise.
61794         * tests/test-getaddrinfo.c: Likewise.
61795         * tests/test-getpass.c: Likewise.
61796         * tests/test-gettimeofday.c: Likewise.
61797         * tests/test-hmac-md5.c: Likewise.
61798         * tests/test-hmac-sha1.c: Likewise.
61799         * tests/test-iconv.c: Likewise.
61800         * tests/test-iconvme.c: Likewise.
61801         * tests/test-inttypes.c: Likewise.
61802         * tests/test-isnan.c: Likewise.
61803         * tests/test-isnanf.c: Likewise.
61804         * tests/test-isnanl-nolibm.c: Likewise.
61805         * tests/test-isnanl.c: Likewise.
61806         * tests/test-isnanl.h: Likewise.
61807         * tests/test-ldexpl.c: Likewise.
61808         * tests/test-linked_list.c: Likewise.
61809         * tests/test-linkedhash_list.c: Likewise.
61810         * tests/test-locale.c: Likewise.
61811         * tests/test-localename.c: Likewise.
61812         * tests/test-lock.c: Likewise.
61813         * tests/test-lseek.c: Likewise.
61814         * tests/test-malloca.c: Likewise.
61815         * tests/test-math.c: Likewise.
61816         * tests/test-mbscasecmp.c: Likewise.
61817         * tests/test-mbscasestr1.c: Likewise.
61818         * tests/test-mbscasestr2.c: Likewise.
61819         * tests/test-mbscasestr3.c: Likewise.
61820         * tests/test-mbscasestr4.c: Likewise.
61821         * tests/test-mbschr.c: Likewise.
61822         * tests/test-mbscspn.c: Likewise.
61823         * tests/test-mbsncasecmp.c: Likewise.
61824         * tests/test-mbspbrk.c: Likewise.
61825         * tests/test-mbspcasecmp.c: Likewise.
61826         * tests/test-mbsrchr.c: Likewise.
61827         * tests/test-mbsspn.c: Likewise.
61828         * tests/test-mbsstr1.c: Likewise.
61829         * tests/test-mbsstr2.c: Likewise.
61830         * tests/test-mbsstr3.c: Likewise.
61831         * tests/test-md5.c: Likewise.
61832         * tests/test-memmem.c: Likewise.
61833         * tests/test-netinet_in.c: Likewise.
61834         * tests/test-open.c: Likewise.
61835         * tests/test-printf-frexp.c: Likewise.
61836         * tests/test-printf-frexpl.c: Likewise.
61837         * tests/test-printf-posix.c: Likewise.
61838         * tests/test-printf-posix.h: Likewise.
61839         * tests/test-rbtree_list.c: Likewise.
61840         * tests/test-rbtree_oset.c: Likewise.
61841         * tests/test-rbtreehash_list.c: Likewise.
61842         * tests/test-read-file.c: Likewise.
61843         * tests/test-rijndael.c: Likewise.
61844         * tests/test-search.c: Likewise.
61845         * tests/test-signbit.c: Likewise.
61846         * tests/test-sleep.c: Likewise.
61847         * tests/test-snprintf-posix.c: Likewise.
61848         * tests/test-snprintf-posix.h: Likewise.
61849         * tests/test-snprintf.c: Likewise.
61850         * tests/test-sprintf-posix.c: Likewise.
61851         * tests/test-sprintf-posix.h: Likewise.
61852         * tests/test-stat-time.c: Likewise.
61853         * tests/test-stdbool.c: Likewise.
61854         * tests/test-stdint.c: Likewise.
61855         * tests/test-stdio.c: Likewise.
61856         * tests/test-stdlib.c: Likewise.
61857         * tests/test-stpncpy.c: Likewise.
61858         * tests/test-strcasestr.c: Likewise.
61859         * tests/test-striconv.c: Likewise.
61860         * tests/test-striconveh.c: Likewise.
61861         * tests/test-striconveha.c: Likewise.
61862         * tests/test-string.c: Likewise.
61863         * tests/test-sys_select.c: Likewise.
61864         * tests/test-sys_socket.c: Likewise.
61865         * tests/test-sys_stat.c: Likewise.
61866         * tests/test-sys_time.c: Likewise.
61867         * tests/test-sysexits.c: Likewise.
61868         * tests/test-time.c: Likewise.
61869         * tests/test-tls.c: Likewise.
61870         * tests/test-trunc.c: Likewise.
61871         * tests/test-truncf.c: Likewise.
61872         * tests/test-truncl.c: Likewise.
61873         * tests/test-unistd.c: Likewise.
61874         * tests/test-vasnprintf-posix.c: Likewise.
61875         * tests/test-vasnprintf-posix2.c: Likewise.
61876         * tests/test-vasnprintf.c: Likewise.
61877         * tests/test-vasprintf-posix.c: Likewise.
61878         * tests/test-vasprintf.c: Likewise.
61879         * tests/test-verify.c: Likewise.
61880         * tests/test-vfprintf-posix.c: Likewise.
61881         * tests/test-vprintf-posix.c: Likewise.
61882         * tests/test-vsnprintf-posix.c: Likewise.
61883         * tests/test-vsnprintf.c: Likewise.
61884         * tests/test-vsprintf-posix.c: Likewise.
61885         * tests/test-wchar.c: Likewise.
61886         * tests/test-wctype.c: Likewise.
61887         * tests/test-wcwidth.c: Likewise.
61888         * tests/test-xstrtol.c: Likewise.
61889         * tests/test-xvasprintf.c: Likewise.
61890         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
61891         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
61892         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61893         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61894         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61895         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
61896         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61897         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61898         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61899         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
61900         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61901         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61902         * tests/uniname/test-uninames.c: Likewise.
61903         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
61904         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
61905         * tests/unistdio/test-u16-printf1.h: Likewise.
61906         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
61907         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
61908         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
61909         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
61910         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
61911         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
61912         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
61913         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
61914         * tests/unistdio/test-u32-printf1.h: Likewise.
61915         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
61916         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
61917         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
61918         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
61919         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
61920         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
61921         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
61922         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
61923         * tests/unistdio/test-u8-printf1.h: Likewise.
61924         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
61925         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
61926         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
61927         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
61928         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
61929         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
61930         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
61931         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
61932         * tests/unistdio/test-ulc-printf1.h: Likewise.
61933         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
61934         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
61935         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
61936         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
61937         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
61938         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
61939         * tests/uniwidth/test-u16-strwidth.c: Likewise.
61940         * tests/uniwidth/test-u16-width.c: Likewise.
61941         * tests/uniwidth/test-u32-strwidth.c: Likewise.
61942         * tests/uniwidth/test-u32-width.c: Likewise.
61943         * tests/uniwidth/test-u8-strwidth.c: Likewise.
61944         * tests/uniwidth/test-u8-width.c: Likewise.
61945         * tests/uniwidth/test-uc_width.c: Likewise.
61946         * config/srclist-update: Likewise.
61947         (fixlicense): Update to GPLv3+.
61948
61949         Change copyright notice from LGPLv2.1+ to LGPLv3+.
61950         * tests/test-tsearch.c: Change copyright notice.
61951
61952         Change copyright notice from LGPLv2.0+ to LGPLv3+.
61953         * lib/c-strcaseeq.h: Change copyright notice.
61954         * lib/streq.h: Likewise.
61955         * lib/uniconv.h: Likewise.
61956         * lib/uniconv/u-conv-from-enc.h: Likewise.
61957         * lib/uniconv/u-conv-to-enc.h: Likewise.
61958         * lib/uniconv/u-strconv-from-enc.h: Likewise.
61959         * lib/uniconv/u-strconv-to-enc.h: Likewise.
61960         * lib/uniconv/u16-conv-from-enc.c: Likewise.
61961         * lib/uniconv/u16-conv-to-enc.c: Likewise.
61962         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
61963         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
61964         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
61965         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
61966         * lib/uniconv/u32-conv-from-enc.c: Likewise.
61967         * lib/uniconv/u32-conv-to-enc.c: Likewise.
61968         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
61969         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
61970         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
61971         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
61972         * lib/uniconv/u8-conv-from-enc.c: Likewise.
61973         * lib/uniconv/u8-conv-to-enc.c: Likewise.
61974         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
61975         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
61976         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
61977         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
61978         * lib/uniname.h: Likewise.
61979         * lib/uniname/uniname.c: Likewise.
61980         * lib/unistdio.h: Likewise.
61981         * lib/unistdio/u-asnprintf.h: Likewise.
61982         * lib/unistdio/u-asprintf.h: Likewise.
61983         * lib/unistdio/u-printf-args.c: Likewise.
61984         * lib/unistdio/u-printf-args.h: Likewise.
61985         * lib/unistdio/u-printf-parse.h: Likewise.
61986         * lib/unistdio/u-snprintf.h: Likewise.
61987         * lib/unistdio/u-sprintf.h: Likewise.
61988         * lib/unistdio/u-vasprintf.h: Likewise.
61989         * lib/unistdio/u-vsnprintf.h: Likewise.
61990         * lib/unistdio/u-vsprintf.h: Likewise.
61991         * lib/unistdio/u16-asnprintf.c: Likewise.
61992         * lib/unistdio/u16-asprintf.c: Likewise.
61993         * lib/unistdio/u16-printf-parse.c: Likewise.
61994         * lib/unistdio/u16-snprintf.c: Likewise.
61995         * lib/unistdio/u16-sprintf.c: Likewise.
61996         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
61997         * lib/unistdio/u16-u16-asprintf.c: Likewise.
61998         * lib/unistdio/u16-u16-snprintf.c: Likewise.
61999         * lib/unistdio/u16-u16-sprintf.c: Likewise.
62000         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
62001         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
62002         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
62003         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
62004         * lib/unistdio/u16-vasnprintf.c: Likewise.
62005         * lib/unistdio/u16-vasprintf.c: Likewise.
62006         * lib/unistdio/u16-vsnprintf.c: Likewise.
62007         * lib/unistdio/u16-vsprintf.c: Likewise.
62008         * lib/unistdio/u32-asnprintf.c: Likewise.
62009         * lib/unistdio/u32-asprintf.c: Likewise.
62010         * lib/unistdio/u32-printf-parse.c: Likewise.
62011         * lib/unistdio/u32-snprintf.c: Likewise.
62012         * lib/unistdio/u32-sprintf.c: Likewise.
62013         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
62014         * lib/unistdio/u32-u32-asprintf.c: Likewise.
62015         * lib/unistdio/u32-u32-snprintf.c: Likewise.
62016         * lib/unistdio/u32-u32-sprintf.c: Likewise.
62017         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
62018         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
62019         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
62020         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
62021         * lib/unistdio/u32-vasnprintf.c: Likewise.
62022         * lib/unistdio/u32-vasprintf.c: Likewise.
62023         * lib/unistdio/u32-vsnprintf.c: Likewise.
62024         * lib/unistdio/u32-vsprintf.c: Likewise.
62025         * lib/unistdio/u8-asnprintf.c: Likewise.
62026         * lib/unistdio/u8-asprintf.c: Likewise.
62027         * lib/unistdio/u8-printf-parse.c: Likewise.
62028         * lib/unistdio/u8-snprintf.c: Likewise.
62029         * lib/unistdio/u8-sprintf.c: Likewise.
62030         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
62031         * lib/unistdio/u8-u8-asprintf.c: Likewise.
62032         * lib/unistdio/u8-u8-snprintf.c: Likewise.
62033         * lib/unistdio/u8-u8-sprintf.c: Likewise.
62034         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
62035         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
62036         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
62037         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
62038         * lib/unistdio/u8-vasnprintf.c: Likewise.
62039         * lib/unistdio/u8-vasprintf.c: Likewise.
62040         * lib/unistdio/u8-vsnprintf.c: Likewise.
62041         * lib/unistdio/u8-vsprintf.c: Likewise.
62042         * lib/unistdio/ulc-asnprintf.c: Likewise.
62043         * lib/unistdio/ulc-asprintf.c: Likewise.
62044         * lib/unistdio/ulc-printf-parse.c: Likewise.
62045         * lib/unistdio/ulc-snprintf.c: Likewise.
62046         * lib/unistdio/ulc-sprintf.c: Likewise.
62047         * lib/unistdio/ulc-vasnprintf.c: Likewise.
62048         * lib/unistdio/ulc-vasprintf.c: Likewise.
62049         * lib/unistdio/ulc-vsnprintf.c: Likewise.
62050         * lib/unistdio/ulc-vsprintf.c: Likewise.
62051         * lib/unistr.h: Likewise.
62052         * lib/unistr/u-cpy-alloc.h: Likewise.
62053         * lib/unistr/u-cpy.h: Likewise.
62054         * lib/unistr/u-endswith.h: Likewise.
62055         * lib/unistr/u-move.h: Likewise.
62056         * lib/unistr/u-set.h: Likewise.
62057         * lib/unistr/u-startswith.h: Likewise.
62058         * lib/unistr/u-stpcpy.h: Likewise.
62059         * lib/unistr/u-stpncpy.h: Likewise.
62060         * lib/unistr/u-strcat.h: Likewise.
62061         * lib/unistr/u-strcpy.h: Likewise.
62062         * lib/unistr/u-strcspn.h: Likewise.
62063         * lib/unistr/u-strdup.h: Likewise.
62064         * lib/unistr/u-strlen.h: Likewise.
62065         * lib/unistr/u-strncat.h: Likewise.
62066         * lib/unistr/u-strncpy.h: Likewise.
62067         * lib/unistr/u-strnlen.h: Likewise.
62068         * lib/unistr/u-strpbrk.h: Likewise.
62069         * lib/unistr/u-strspn.h: Likewise.
62070         * lib/unistr/u-strstr.h: Likewise.
62071         * lib/unistr/u-strtok.h: Likewise.
62072         * lib/unistr/u16-check.c: Likewise.
62073         * lib/unistr/u16-chr.c: Likewise.
62074         * lib/unistr/u16-cmp.c: Likewise.
62075         * lib/unistr/u16-cpy-alloc.c: Likewise.
62076         * lib/unistr/u16-cpy.c: Likewise.
62077         * lib/unistr/u16-endswith.c: Likewise.
62078         * lib/unistr/u16-mblen.c: Likewise.
62079         * lib/unistr/u16-mbsnlen.c: Likewise.
62080         * lib/unistr/u16-mbtouc-aux.c: Likewise.
62081         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
62082         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
62083         * lib/unistr/u16-mbtouc.c: Likewise.
62084         * lib/unistr/u16-mbtoucr.c: Likewise.
62085         * lib/unistr/u16-move.c: Likewise.
62086         * lib/unistr/u16-next.c: Likewise.
62087         * lib/unistr/u16-prev.c: Likewise.
62088         * lib/unistr/u16-set.c: Likewise.
62089         * lib/unistr/u16-startswith.c: Likewise.
62090         * lib/unistr/u16-stpcpy.c: Likewise.
62091         * lib/unistr/u16-stpncpy.c: Likewise.
62092         * lib/unistr/u16-strcat.c: Likewise.
62093         * lib/unistr/u16-strchr.c: Likewise.
62094         * lib/unistr/u16-strcmp.c: Likewise.
62095         * lib/unistr/u16-strcpy.c: Likewise.
62096         * lib/unistr/u16-strcspn.c: Likewise.
62097         * lib/unistr/u16-strdup.c: Likewise.
62098         * lib/unistr/u16-strlen.c: Likewise.
62099         * lib/unistr/u16-strmblen.c: Likewise.
62100         * lib/unistr/u16-strmbtouc.c: Likewise.
62101         * lib/unistr/u16-strncat.c: Likewise.
62102         * lib/unistr/u16-strncmp.c: Likewise.
62103         * lib/unistr/u16-strncpy.c: Likewise.
62104         * lib/unistr/u16-strnlen.c: Likewise.
62105         * lib/unistr/u16-strpbrk.c: Likewise.
62106         * lib/unistr/u16-strrchr.c: Likewise.
62107         * lib/unistr/u16-strspn.c: Likewise.
62108         * lib/unistr/u16-strstr.c: Likewise.
62109         * lib/unistr/u16-strtok.c: Likewise.
62110         * lib/unistr/u16-to-u32.c: Likewise.
62111         * lib/unistr/u16-to-u8.c: Likewise.
62112         * lib/unistr/u16-uctomb-aux.c: Likewise.
62113         * lib/unistr/u16-uctomb.c: Likewise.
62114         * lib/unistr/u32-check.c: Likewise.
62115         * lib/unistr/u32-chr.c: Likewise.
62116         * lib/unistr/u32-cmp.c: Likewise.
62117         * lib/unistr/u32-cpy-alloc.c: Likewise.
62118         * lib/unistr/u32-cpy.c: Likewise.
62119         * lib/unistr/u32-endswith.c: Likewise.
62120         * lib/unistr/u32-mblen.c: Likewise.
62121         * lib/unistr/u32-mbsnlen.c: Likewise.
62122         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
62123         * lib/unistr/u32-mbtouc.c: Likewise.
62124         * lib/unistr/u32-mbtoucr.c: Likewise.
62125         * lib/unistr/u32-move.c: Likewise.
62126         * lib/unistr/u32-next.c: Likewise.
62127         * lib/unistr/u32-prev.c: Likewise.
62128         * lib/unistr/u32-set.c: Likewise.
62129         * lib/unistr/u32-startswith.c: Likewise.
62130         * lib/unistr/u32-stpcpy.c: Likewise.
62131         * lib/unistr/u32-stpncpy.c: Likewise.
62132         * lib/unistr/u32-strcat.c: Likewise.
62133         * lib/unistr/u32-strchr.c: Likewise.
62134         * lib/unistr/u32-strcmp.c: Likewise.
62135         * lib/unistr/u32-strcpy.c: Likewise.
62136         * lib/unistr/u32-strcspn.c: Likewise.
62137         * lib/unistr/u32-strdup.c: Likewise.
62138         * lib/unistr/u32-strlen.c: Likewise.
62139         * lib/unistr/u32-strmblen.c: Likewise.
62140         * lib/unistr/u32-strmbtouc.c: Likewise.
62141         * lib/unistr/u32-strncat.c: Likewise.
62142         * lib/unistr/u32-strncmp.c: Likewise.
62143         * lib/unistr/u32-strncpy.c: Likewise.
62144         * lib/unistr/u32-strnlen.c: Likewise.
62145         * lib/unistr/u32-strpbrk.c: Likewise.
62146         * lib/unistr/u32-strrchr.c: Likewise.
62147         * lib/unistr/u32-strspn.c: Likewise.
62148         * lib/unistr/u32-strstr.c: Likewise.
62149         * lib/unistr/u32-strtok.c: Likewise.
62150         * lib/unistr/u32-to-u16.c: Likewise.
62151         * lib/unistr/u32-to-u8.c: Likewise.
62152         * lib/unistr/u32-uctomb.c: Likewise.
62153         * lib/unistr/u8-check.c: Likewise.
62154         * lib/unistr/u8-chr.c: Likewise.
62155         * lib/unistr/u8-cmp.c: Likewise.
62156         * lib/unistr/u8-cpy-alloc.c: Likewise.
62157         * lib/unistr/u8-cpy.c: Likewise.
62158         * lib/unistr/u8-endswith.c: Likewise.
62159         * lib/unistr/u8-mblen.c: Likewise.
62160         * lib/unistr/u8-mbsnlen.c: Likewise.
62161         * lib/unistr/u8-mbtouc-aux.c: Likewise.
62162         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
62163         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
62164         * lib/unistr/u8-mbtouc.c: Likewise.
62165         * lib/unistr/u8-mbtoucr.c: Likewise.
62166         * lib/unistr/u8-move.c: Likewise.
62167         * lib/unistr/u8-next.c: Likewise.
62168         * lib/unistr/u8-prev.c: Likewise.
62169         * lib/unistr/u8-set.c: Likewise.
62170         * lib/unistr/u8-startswith.c: Likewise.
62171         * lib/unistr/u8-stpcpy.c: Likewise.
62172         * lib/unistr/u8-stpncpy.c: Likewise.
62173         * lib/unistr/u8-strcat.c: Likewise.
62174         * lib/unistr/u8-strchr.c: Likewise.
62175         * lib/unistr/u8-strcmp.c: Likewise.
62176         * lib/unistr/u8-strcpy.c: Likewise.
62177         * lib/unistr/u8-strcspn.c: Likewise.
62178         * lib/unistr/u8-strdup.c: Likewise.
62179         * lib/unistr/u8-strlen.c: Likewise.
62180         * lib/unistr/u8-strmblen.c: Likewise.
62181         * lib/unistr/u8-strmbtouc.c: Likewise.
62182         * lib/unistr/u8-strncat.c: Likewise.
62183         * lib/unistr/u8-strncmp.c: Likewise.
62184         * lib/unistr/u8-strncpy.c: Likewise.
62185         * lib/unistr/u8-strnlen.c: Likewise.
62186         * lib/unistr/u8-strpbrk.c: Likewise.
62187         * lib/unistr/u8-strrchr.c: Likewise.
62188         * lib/unistr/u8-strspn.c: Likewise.
62189         * lib/unistr/u8-strstr.c: Likewise.
62190         * lib/unistr/u8-strtok.c: Likewise.
62191         * lib/unistr/u8-to-u16.c: Likewise.
62192         * lib/unistr/u8-to-u32.c: Likewise.
62193         * lib/unistr/u8-uctomb-aux.c: Likewise.
62194         * lib/unistr/u8-uctomb.c: Likewise.
62195         * lib/unitypes.h: Likewise.
62196         * lib/uniwidth.h: Likewise.
62197         * lib/uniwidth/cjk.h: Likewise.
62198         * lib/uniwidth/u16-strwidth.c: Likewise.
62199         * lib/uniwidth/u16-width.c: Likewise.
62200         * lib/uniwidth/u32-strwidth.c: Likewise.
62201         * lib/uniwidth/u32-width.c: Likewise.
62202         * lib/uniwidth/u8-strwidth.c: Likewise.
62203         * lib/uniwidth/u8-width.c: Likewise.
62204         * lib/uniwidth/width.c: Likewise.
62205
62206 2007-10-07  Bruno Haible  <bruno@clisp.org>
62207
62208         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
62209         The file is still under LGPL (see modules/inttypes).
62210
62211 2007-10-06  Bruno Haible  <bruno@clisp.org>
62212
62213         * modules/trunc (Dependencies): Add 'extensions'.
62214         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
62215         Reported by Ben Pfaff <blp@gnu.org>.
62216
62217 2007-10-06  Bruno Haible  <bruno@clisp.org>
62218
62219         * modules/freopen-tests: New file.
62220         * tests/test-freopen.c: New file.
62221
62222         * modules/fopen-tests: New file.
62223         * tests/test-fopen.c: New file.
62224
62225         * modules/fopen: New file.
62226         * lib/fopen.c: New file.
62227         * m4/fopen.m4: New file.
62228         * modules/freopen: New file.
62229         * lib/freopen.c: New file.
62230         * m4/freopen.m4: New file.
62231         * lib/stdio.in.h (fopen, freopen): New declarations.
62232         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
62233         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62234         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
62235         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62236         * doc/functions/fopen.texi: Mention the 'fopen' module.
62237         * doc/functions/freopen.texi: Mention the 'freopen' module.
62238
62239 2007-10-06  Bruno Haible  <bruno@clisp.org>
62240
62241         * modules/open-tests: New file.
62242         * tests/test-open.c: New file.
62243
62244         * modules/open: New file.
62245         * lib/open.c: New file.
62246         * m4/open.m4: New file.
62247         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
62248         lib/open.c does.
62249         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
62250         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
62251         macros.
62252         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
62253         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
62254         REPLACE_OPEN.
62255         * doc/functions/open.texi: Mention the 'open' module.
62256
62257 2007-10-04  Bruno Haible  <bruno@clisp.org>
62258
62259         * modules/ceill-tests: New file.
62260         * tests/test-ceill.c: New file.
62261
62262         * modules/ceill: New file.
62263         * lib/ceill.c: Replace entire file.
62264         * m4/ceill.m4: New file.
62265         * lib/math.in.h (ceill): Replace declaration.
62266         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
62267         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
62268         * doc/functions/ceill.texi: Mention the 'ceill' module.
62269         * modules/mathl (Files): Remove lib/ceill.c.
62270         (Depends-on): Add ceill.
62271
62272 2007-10-04  Bruno Haible  <bruno@clisp.org>
62273
62274         * modules/ceilf-tests: New file.
62275         * tests/test-ceilf.c: New file.
62276
62277         * modules/ceilf: New file.
62278         * lib/ceil.c: New file.
62279         * lib/ceilf.c: New file.
62280         * m4/ceilf.m4: New file.
62281         * lib/math.in.h (ceilf): New declaration.
62282         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
62283         HAVE_DECL_CEILF.
62284         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
62285         HAVE_DECL_CEILF.
62286         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
62287
62288 2007-10-04  Bruno Haible  <bruno@clisp.org>
62289
62290         * modules/floorl-tests: New file.
62291         * tests/test-floorl.c: New file.
62292
62293         * modules/floorl: New file.
62294         * lib/floorl.c: Replace entire file.
62295         * m4/floorl.m4: New file.
62296         * lib/math.in.h (floorl): Replace declaration.
62297         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
62298         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
62299         * doc/functions/floorl.texi: Mention the 'floorl' module.
62300         * modules/mathl (Files): Remove lib/floorl.c.
62301         (Depends-on): Add floorl.
62302
62303 2007-10-04  Bruno Haible  <bruno@clisp.org>
62304
62305         * modules/floorf-tests: New file.
62306         * tests/test-floorf.c: New file.
62307
62308         * modules/floorf: New file.
62309         * lib/floor.c: New file.
62310         * lib/floorf.c: New file.
62311         * m4/floorf.m4: New file.
62312         * lib/math.in.h (floorf): New declaration.
62313         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
62314         HAVE_DECL_FLOORF.
62315         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
62316         HAVE_DECL_FLOORF.
62317         * doc/functions/floorf.texi: Mention the 'floorf' module.
62318
62319 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
62320             Bruno Haible  <bruno@clisp.org>
62321
62322         Advertise for the Git server instead of the CVS server.
62323         * doc/gnulib-intro.texi (Steady Development): Mention the Git
62324         repository instead of the CVS one.
62325         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
62326         about all VCS systems generically.
62327         * doc/gnulib.texi (Introduction): Capitalize `Git'.
62328
62329 2007-10-04  Bruno Haible  <bruno@clisp.org>
62330
62331         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
62332         means.
62333         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
62334
62335 2007-10-04  Bruno Haible  <bruno@clisp.org>
62336
62337         * modules/truncl-tests: New file.
62338         * tests/test-truncl.c: New file.
62339
62340         * modules/truncl: New file.
62341         * lib/truncl.c: New file.
62342         * m4/truncl.m4: New file.
62343         * lib/math.in.h (truncl): New declaration.
62344         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
62345         HAVE_DECL_TRUNCL.
62346         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
62347         HAVE_DECL_TRUNCL.
62348         * doc/functions/truncl.texi: Mention the 'truncl' module.
62349
62350 2007-10-04  Bruno Haible  <bruno@clisp.org>
62351
62352         * modules/truncf-tests: New file.
62353         * tests/test-truncf.c: New file.
62354
62355         * modules/truncf: New file.
62356         * lib/trunc.c: Make paramerizable through USE_* macros.
62357         * lib/truncf.c: New file.
62358         * m4/truncf.m4: New file.
62359         * lib/math.in.h (truncf): New declaration.
62360         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
62361         HAVE_DECL_TRUNCF.
62362         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
62363         HAVE_DECL_TRUNCF.
62364         * doc/functions/truncf.texi: Mention the 'truncf' module.
62365
62366 2007-10-03  Bruno Haible  <bruno@clisp.org>
62367
62368         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62369         augmentation also for tests modules.
62370         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
62371         * modules/atexit-tests (Makefile.am): Likewise.
62372         * modules/binary-io-tests (Makefile.am): Likewise.
62373         * modules/c-strcase-tests (Makefile.am): Likewise.
62374         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
62375         * modules/canonicalize-tests (Makefile.am): Likewise.
62376         * modules/closein-tests (Makefile.am): Likewise.
62377         * modules/fprintf-posix-tests (Makefile.am): Likewise.
62378         * modules/freadahead-tests (Makefile.am): Likewise.
62379         * modules/fseek-tests (Makefile.am): Likewise.
62380         * modules/fseeko-tests (Makefile.am): Likewise.
62381         * modules/ftell-tests (Makefile.am): Likewise.
62382         * modules/ftello-tests (Makefile.am): Likewise.
62383         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
62384         * modules/isnanl-tests (Makefile.am): Likewise.
62385         * modules/lseek-tests (Makefile.am): Likewise.
62386         * modules/mbscasecmp-tests (Makefile.am): Likewise.
62387         * modules/mbscasestr-tests (Makefile.am): Likewise.
62388         * modules/mbschr-tests (Makefile.am): Likewise.
62389         * modules/mbscspn-tests (Makefile.am): Likewise.
62390         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
62391         * modules/mbspbrk-tests (Makefile.am): Likewise.
62392         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
62393         * modules/mbsrchr-tests (Makefile.am): Likewise.
62394         * modules/mbsspn-tests (Makefile.am): Likewise.
62395         * modules/mbsstr-tests (Makefile.am): Likewise.
62396         * modules/printf-posix-tests (Makefile.am): Likewise.
62397         * modules/snprintf-posix-tests (Makefile.am): Likewise.
62398         * modules/sprintf-posix-tests (Makefile.am): Likewise.
62399         * modules/tsearch-tests (Makefile.am): Likewise.
62400         * modules/uniname/uniname-tests (Makefile.am): Likewise.
62401         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
62402         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
62403         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
62404         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
62405         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
62406         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
62407         * modules/vprintf-posix-tests (Makefile.am): Likewise.
62408         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
62409         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
62410         * modules/xstrtoimax-tests (Makefile.am): Likewise.
62411         * modules/xstrtol-tests (Makefile.am): Likewise.
62412         * modules/xstrtoumax-tests (Makefile.am): Likewise.
62413         * modules/yesno-tests (Makefile.am): Likewise.
62414
62415 2007-10-03  Bruno Haible  <bruno@clisp.org>
62416
62417         * modules/trunc-tests: New file.
62418         * tests/test-trunc.c: New file.
62419
62420         * modules/trunc: New file.
62421         * lib/trunc.c: New file.
62422         * m4/trunc.m4: New file.
62423         * lib/math.in.h (trunc): New declaration.
62424         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
62425         HAVE_DECL_TRUNC.
62426         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
62427         HAVE_DECL_TRUNC.
62428         * doc/functions/trunc.texi: Mention the 'trunc' module.
62429
62430 2007-10-03  Bruno Haible  <bruno@clisp.org>
62431
62432         * tests/test-fpending.c: New file, mostly copied
62433         from coreutils/lib/t-fpending.c.
62434         * modules/fpending-tests: New file.
62435
62436 2007-10-03  Bruno Haible  <bruno@clisp.org>
62437
62438         Port the stdio extensions to QNX (untested).
62439         * lib/fseterr.c (fseterr): Add support for QNX.
62440         * lib/fbufmode.c (fbufmode): Likewise.
62441         * lib/freadable.c (freadable): Likewise.
62442         * lib/fwritable.c (fwritable): Likewise.
62443         * lib/freading.c (freading): Likewise.
62444         * lib/fwriting.c (fwriting): Likewise.
62445         * lib/freadahead.c (freadahed): Likewise.
62446         * lib/fpurge.c (fpurge): Likewise.
62447         * lib/fseeko.c (rpl_fseeko): Likewise.
62448
62449 2007-10-03  Bruno Haible  <bruno@clisp.org>
62450             Jim Meyering  <jim@meyering.net>
62451             Eric Blake  <ebb9@byu.net>
62452
62453         * doc/relocatable.texi: Use @command instead of @program.
62454
62455 2007-10-02  Jim Meyering  <jim@meyering.net>
62456
62457         Perform one more "_.h" -> ".in.h" substitution.
62458         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
62459         instead of unistd_.h here, too.
62460
62461 2007-10-01  Bruno Haible  <bruno@clisp.org>
62462
62463         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
62464         Needed for the alloca-opt module.
62465
62466 2007-09-30  Bruno Haible  <bruno@clisp.org>
62467
62468         * lib/alloca.in.h: Renamed from lib/alloca_.h.
62469         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
62470         alloca_.h.
62471         * lib/argz.in.h: Renamed from lib/argz_.h.
62472         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
62473         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
62474         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
62475         byteswap_.h.
62476         * lib/dirent.in.h: Renamed from lib/dirent_.h.
62477         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
62478         dirent_.h.
62479         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
62480         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
62481         fcntl_.h.
62482         * lib/float.in.h: Renamed from lib/float_.h.
62483         * modules/float (Files, Makefile.am): Use float.in.h instead of
62484         float_.h.
62485         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
62486         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
62487         fnmatch_.h.
62488         * lib/getopt.in.h: Renamed from lib/getopt_.h.
62489         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
62490         getopt_.h.
62491         * lib/glob.in.h: Renamed from lib/glob_.h.
62492         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
62493         * lib/iconv.in.h: Renamed from lib/iconv_.h.
62494         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
62495         iconv_.h.
62496         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
62497         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
62498         inttypes_.h.
62499         * lib/locale.in.h: Renamed from lib/locale_.h.
62500         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
62501         locale_.h.
62502         * lib/math.in.h: Renamed from lib/math_.h.
62503         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
62504         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
62505         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
62506         of netinet_in_.h. Add dependency.
62507         * lib/poll.in.h: Renamed from lib/poll_.h.
62508         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
62509         * lib/search.in.h: Renamed from lib/search_.h.
62510         * modules/search (Files, Makefile.am): Use search.in.h instead of
62511         search_.h.
62512         * lib/signal.in.h: Renamed from lib/signal_.h.
62513         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
62514         _signal.h.
62515         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
62516         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
62517         stdbool_.h.
62518         * lib/stdint.in.h: Renamed from lib/stdint_.h.
62519         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
62520         stdint_.h.
62521         * lib/stdio.in.h: Renamed from lib/stdio_.h.
62522         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
62523         stdio_.h.
62524         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
62525         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
62526         stdlib_.h.
62527         * lib/string.in.h: Renamed from lib/string_.h.
62528         * modules/string (Files, Makefile.am): Use string.in.h instead of
62529         string_.h.
62530         * doc/gnulib-tool.texi (Initial import): Update.
62531         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
62532         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
62533         of sys_select_.h. Add dependency.
62534         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
62535         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
62536         of sys_socket_.h.
62537         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
62538         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
62539         sys_stat_.h.
62540         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
62541         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
62542         sys_time_.h.
62543         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
62544         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
62545         sysexits_.h.
62546         * lib/time.in.h: Renamed from lib/time_.h.
62547         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
62548         * lib/unistd.in.h: Renamed from lib/unistd_.h.
62549         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
62550         unistd_.h.
62551         * lib/wchar.in.h: Renamed from lib/wchar_.h.
62552         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
62553         wchar_.h.
62554         * lib/wctype.in.h: Renamed from lib/wctype_.h.
62555         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
62556         wctype_.h.
62557         * build-aux/bootstrap (slurp): Update.
62558         * lib/.cppi-disable: Update.
62559
62560 2007-09-30  Bruno Haible  <bruno@clisp.org>
62561
62562         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
62563         Needed on BeOS.
62564
62565 2007-09-30  Bruno Haible  <bruno@clisp.org>
62566
62567         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
62568
62569 2007-09-29  Bruno Haible  <bruno@clisp.org>
62570
62571         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
62572
62573 2007-09-29  Bruno Haible  <bruno@clisp.org>
62574
62575         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
62576         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
62577         * build-aux/install-reloc: Compile also areadlink.c.
62578         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
62579
62580 2007-09-29  Bruno Haible  <bruno@clisp.org>
62581
62582         * gnulib-tool (func_emit_initmacro_done): Indentation.
62583
62584 2007-09-29  Bruno Haible  <bruno@clisp.org>
62585
62586         * README: Add CVS checkout update instructions.
62587         Info from Bob Proulx <bob@proulx.com>.
62588
62589 2007-09-28  Eric Blake  <ebb9@byu.net>
62590
62591         Provide move-if-change.
62592         * build-aux/move-if-change: New file, based on best practice
62593         rather than any canonical upstream location.
62594
62595 2007-09-28  Jim Meyering  <jim@meyering.net>
62596
62597         Fix canonicalize loop-detection corner case.
62598         Do not attempt to stat the symlink values stored via seen_triple.
62599         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
62600         on linux-2.6.18, (but not 2.6.22).
62601         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
62602         triple_compare.  The former compares dev,ino,filename, while the latter
62603         would actually stat dirname(filename) when dev and ino were equal.
62604         * lib/hash-triple.c: Install <string.h>.
62605         (STREQ): Define.
62606         (triple_compare_ino_str): New function.
62607         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
62608
62609 2007-09-28  Eric Blake  <ebb9@byu.net>
62610
62611         Enforce that AC_REPLACE_FUNCS files exist.
62612         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
62613         override check for typos.
62614
62615         Fix test-closein on Solaris 10.
62616         * tests/test-closein.c (main): Don't assume stdin can be inherited
62617         closed on all systems.
62618         * tests/test-closein.sh: Likewise.
62619         Reported by Piotr Tarnowski.
62620
62621 2007-09-28  Jim Meyering  <jim@meyering.net>
62622
62623         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
62624
62625 2007-09-27  Jim Meyering  <jim@meyering.net>
62626
62627         canonicalize: Avoid a false-positive cycle failure.
62628         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
62629         Sort.  Remove cycle-check.
62630         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
62631         not cycle-check.h.
62632         (seen_triple): New function.
62633         (canonicalize_filename_mode): Use it instead of cycle-check.
62634         * tests/test-canonicalize.c: Add a test for this bug.
62635         * tests/test-canonicalize.sh: Set up and run the test.
62636
62637         New module, file-set, from coreutils.
62638         * modules/file-set: Define it.
62639         * lib/file-set.c, lib/file-set.h: Implement.
62640
62641         New module, hash-triple, from coreutils.
62642         * modules/hash-triple: Define it.
62643         * lib/hash-triple.c, lib/hash-triple.h: Implement.
62644
62645 2007-09-25  Eric Blake  <ebb9@byu.net>
62646
62647         Fix strerror on Interix.
62648         * lib/string_.h (strerror): Declare replacement.
62649         * doc/functions/strerror.texi (strerror): Document the Interix
62650         shortcoming.
62651         * modules/string (Makefile.am): Support new hooks.
62652         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
62653         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
62654         gl_FUNC_STRERROR_SEPARATE.
62655         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
62656         * lib/strerror.c (rpl_strerror): Provide replacement.
62657         * modules/strerror (Depends-on): Add string.
62658         (configure.ac): Detect use of module.
62659         * tests/test-strerror.c: New file.
62660         * modules/strerror-tests: New test module.
62661         * modules/argp (Depends-on): Add strerror.
62662         * modules/error (Depends-on): Likewise.
62663         Reported by Martin Koeppe.
62664
62665 2007-09-24  Bruno Haible  <bruno@clisp.org>
62666
62667         * README: Update git instructions.
62668
62669 2007-09-24  Eric Blake  <ebb9@byu.net>
62670
62671         Revert fpending breakage from 2007-09-08.
62672         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
62673         __fpending.c.
62674
62675 2007-09-24  Jim Meyering  <jim@meyering.net>
62676
62677         filenamecat.c: Add a test.
62678         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
62679         showing how the function works when DIR is the empty string.
62680
62681 2007-09-21  Simon Josefsson  <simon@josefsson.org>
62682
62683         * tests/test-canonicalize.sh: Turn on executable bit.
62684
62685 2007-09-19  Eric Blake  <ebb9@byu.net>
62686
62687         * README: Update CVS instructions.
62688
62689 2007-09-18  Bruno Haible  <bruno@clisp.org>
62690
62691         * modules/areadlink: New file.
62692         * lib/areadlink.h (areadlink): New declaration.
62693         * lib/areadlink.c: New file, based on lib/xreadlink.c.
62694
62695 2007-09-17  Jim Meyering  <jim@meyering.net>
62696
62697         * lib/savewd.c (ESTALE) [!defined]: Define.
62698         Reported to be required on Interix by Martin Koeppe.
62699
62700 2007-09-17  Bruno Haible  <bruno@clisp.org>
62701
62702         * gnulib-tool (func_version): Use $version.
62703
62704 2007-09-16  Bruno Haible  <bruno@clisp.org>
62705
62706         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
62707         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
62708         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
62709         Reported by Greg Schafer <gschafer@zip.com.au>.
62710
62711 2007-09-15  Bruno Haible  <bruno@clisp.org>
62712
62713         * gnulib-tool (sed): Try a little harder to make bash understand the
62714         alias.
62715         Reported by Bruce Korb <bruce.korb@gmail.com>.
62716
62717 2007-09-13  Eric Blake  <ebb9@byu.net>
62718
62719         * ChangeLog: Remove conflict markers.
62720
62721 2007-09-13  Simon Josefsson  <simon@josefsson.org>
62722
62723         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
62724         Reported by Bruno Haible <bruno@clisp.org>.
62725
62726 2007-09-12  Bruno Haible  <bruno@clisp.org>
62727
62728         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
62729         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
62730         is not defined.
62731
62732 2007-09-12  Eric Blake  <ebb9@byu.net>
62733
62734         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
62735         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
62736         Autoconf definition.
62737         * modules/euidaccess (Depends-on): Add extensions, for
62738         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
62739         * modules/fnmatch (Depends-on): Likewise.
62740         * modules/getaddrinfo (Depends-on): Likewise.
62741         * modules/getdelim (Depends-on): Likewise.
62742         * modules/getline (Depends-on): Likewise.
62743         * modules/getsubopt (Depends-on): Likewise.
62744         * modules/gettext (Depends-on): Likewise.
62745         * modules/group-member (Depends-on): Likewise.
62746         * modules/mbchar (Depends-on): Likewise.
62747         * modules/memmem (Depends-on): Likewise.
62748         * modules/mempcpy (Depends-on): Likewise.
62749         * modules/memrchr (Depends-on): Likewise.
62750         * modules/pagealign_alloc (Depends-on): Likewise.
62751         * modules/readutmp (Depends-on): Likewise.
62752         * modules/stpcpy (Depends-on): Likewise.
62753         * modules/stpncpy (Depends-on): Likewise.
62754         * modules/strchrnul (Depends-on): Likewise.
62755         * modules/strndup (Depends-on): Likewise.
62756         * modules/strsep (Depends-on): Likewise.
62757         * modules/strverscmp (Depends-on): Likewise.
62758         * modules/vasprintf (Depends-on): Likewise.
62759         * modules/wcwidth (Depends-on): Likewise.
62760         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
62761         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
62762         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
62763         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
62764         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62765         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62766         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
62767         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62768         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
62769         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
62770         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62771         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62772         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62773         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62774         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
62775         * m4/readutmp.m4 (gl_READUTMP): Likewise.
62776         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62777         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62778         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62779         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62780         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62781         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62782         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62783         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
62784         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
62785         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62786         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
62787         so that lock.m4 can be used in gettext without extensions module.
62788
62789 2007-09-11  Bruno Haible  <bruno@clisp.org>
62790
62791         * m4/isc-posix.m4: Remove file.
62792         Suggested by Eric Blake.
62793
62794 2007-09-11  Eric Blake  <ebb9@byu.net>
62795
62796         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
62797
62798 2007-09-10  Bruno Haible  <bruno@clisp.org>
62799
62800         * posix-modules: Fix typo in error message.
62801         Reported by Matt <mkraai@beckman.com>.
62802
62803 2007-09-09  Bruno Haible  <bruno@clisp.org>
62804
62805         * doc/functions/getdelim.texi: Update list of platforms lacking the
62806         function.
62807         * doc/functions/getline.texi: Likewise.
62808
62809 2007-09-09  Jim Meyering  <jim@meyering.net>
62810
62811         * lib/hash.c (hash_initialize): Detect calloc failure.
62812         Reported by Bruno Haible.
62813
62814 2007-09-09  Bruno Haible  <bruno@clisp.org>
62815
62816         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
62817         malloc or realloc fails.
62818
62819 2007-09-09  Bruno Haible  <bruno@clisp.org>
62820
62821         * modules/getcwd (Depends-on): Add malloc-posix.
62822         * modules/glob (Depends-on): Likewise.
62823         * modules/putenv (Depends-on): Likewise.
62824         * modules/strdup (Depends-on): Likewise.
62825         * modules/getdelim (Depends-on): Add realloc-posix.
62826         * modules/read-file (Depends-on): Likewise.
62827
62828 2007-09-09  Bruno Haible  <bruno@clisp.org>
62829
62830         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
62831         (gl_FUNC_MALLOC_POSIX): Require it.
62832         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
62833         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
62834         * modules/realloc (Files): Add m4/malloc.m4.
62835         * modules/calloc (Files): Likewise.
62836
62837 2007-09-09  Bruno Haible  <bruno@clisp.org>
62838
62839         * modules/malloc-posix: New file.
62840         * modules/malloc (Depends-on): Add malloc-posix.
62841         * lib/malloc.c: Include errno.h.
62842         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
62843         and a POSIX-compatible malloc into a single function. Set ENOMEM
62844         when returning NULL.
62845         * m4/malloc.m4: New file.
62846         * doc/functions/malloc.texi: Mention the malloc-posix module.
62847         * lib/stdlib_.h (malloc): New declaration.
62848         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62849         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
62850         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
62851         and HAVE_MALLOC_POSIX.
62852
62853 2007-09-09  Bruno Haible  <bruno@clisp.org>
62854
62855         * modules/realloc-posix: New file.
62856         * modules/realloc (Depends-on): Add realloc-posix.
62857         * lib/realloc.c: Include errno.h.
62858         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
62859         and a POSIX-compatible realloc into a single function. Set ENOMEM
62860         when returning NULL.
62861         * m4/realloc.m4: New file.
62862         * doc/functions/realloc.texi: Mention the realloc-posix module.
62863         * lib/stdlib_.h (realloc): New declaration.
62864         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62865         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
62866         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
62867         and HAVE_REALLOC_POSIX.
62868
62869 2007-09-09  Bruno Haible  <bruno@clisp.org>
62870
62871         * modules/calloc-posix: New file.
62872         * modules/calloc (Depends-on): Add calloc-posix.
62873         * lib/calloc.c: Include errno.h.
62874         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
62875         and a POSIX-compatible calloc into a single function. Set ENOMEM
62876         when returning NULL.
62877         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
62878         * doc/functions/calloc.texi: Mention the calloc-posix module.
62879         * lib/stdlib_.h (calloc): New declaration.
62880         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62881         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
62882         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
62883         and HAVE_CALLOC_POSIX.
62884
62885 2007-09-09  Bruno Haible  <bruno@clisp.org>
62886
62887         Allow for modules to show an arbitrary notice.
62888         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
62889         * gnulib-tool: New option --extract-notice.
62890         (func_usage): Document it.
62891         (sed_extract_prog): Update.
62892         (func_get_notice): New function.
62893         (func_modules_notice): New function.
62894         (func_import, func_create_testdir): Invoke it.
62895         Suggested by Jim Meyering.
62896
62897 2007-09-09  Bruno Haible  <bruno@clisp.org>
62898
62899         * gnulib-tool: New options --verbose, --quiet.
62900         (func_usage): Document them.
62901         (verbose): New variable.
62902         (func_execute_command): New function.
62903         (func_import): Don't show the module list and the file list if
62904         $verbose < 0.
62905         (func_create_testdir): Likewise. Use func_execute_command.
62906         (func_create_megatestdir): Use func_execute_command.
62907
62908 2007-09-08  Bruno Haible  <bruno@clisp.org>
62909
62910         * gnulib-tool (func_import): Prefer rsync over wget when available,
62911         for fetching the PO files.
62912
62913 2007-09-08  Bruno Haible  <bruno@clisp.org>
62914
62915         * posix-modules: New file. Portions copied from gnulib-tool.
62916         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
62917
62918 2007-09-08  Jim Meyering  <jim@meyering.net>
62919
62920         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
62921         * lib/fpending.h: Rename from __fpending.h.
62922         * lib/fpending.c: Rename from __fpending.c.
62923         Include "fpending.h", not "__fpending.h".
62924         * lib/__fpending.h, lib/__fpending.c: Remove files.
62925         * modules/fpending (Files): Reflect new file names.
62926         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
62927
62928 2007-09-08  Bruno Haible  <bruno@clisp.org>
62929
62930         * m4/inttypes-h.m4: Remove stub file.
62931
62932 2007-09-07  Simon Josefsson  <simon@josefsson.org>
62933
62934         * doc/headers/stdint.texi: Discuss #include_next issue.
62935
62936 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62937
62938         * build-aux/bootstrap: Remove obsolete comment about wget --help.
62939
62940 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62941
62942         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
62943         in variable name.
62944
62945 2007-09-03  Jim Meyering  <jim@meyering.net>
62946
62947         New module: git-version-gen.
62948         * modules/git-version-gen: New file.
62949
62950         Import changes from coreutils for bootstrap script.
62951
62952         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
62953
62954         bootstrap: uses rsync to download the .po files
62955         * build-aux/bootstrap (po_download_command_format): New global.
62956         (download_po_files): Use rsync.
62957         (update_po_files): Don't remove .po files after download,
62958         so future rsync runs can take advantage of the copies.
62959
62960         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
62961
62962         Solve the unnecessary-.po-file-regeneration problem once and for all.
62963         * build-aux/bootstrap (download_po_files): New function, renamed from
62964         get_translations.  Now, downloads, but doesn't update LINGUAS.
62965         (update_po_files): New function.
62966
62967         bootstrap: Ignore more.
62968         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
62969         uniwidth to e.g., lib/.gitignore.
62970         (slurp): Handle the sys_stat_.h -> sys mapping, too.
62971
62972         * build-aux/bootstrap: New setting: vc_ignore.
62973         (insert_sorted_if_absent): Create $file if absent.
62974         Adapt to new, possibly empty, list: $vc_ignore.
62975
62976         bootstrap: generate more ignorable names
62977         * build-aux/bootstrap (slurp): When generating ignorable names,
62978         also map .sin to .sed, .gperf to .c, and .y to .c.
62979
62980 2007-09-03  Jim Meyering  <jim@meyering.net>
62981
62982         * build-aux/git-version-gen: New file, from coreutils.  For details, see
62983         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
62984
62985 2007-09-02  Bruno Haible  <bruno@clisp.org>
62986
62987         Fix mis-recognition of 'mcs' on QNX 6.
62988         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
62989         output contains the string "Mono".
62990         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
62991         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
62992
62993 2007-09-01  Bruno Haible  <bruno@clisp.org>
62994
62995         Fix collision between uniwidth/* and linebreak modules.
62996         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
62997         u32_width): Remove declarations.
62998         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
62999         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
63000         streq3, streq2, streq1, streq0): Remove functions.
63001         (STREQ): Remove macro.
63002         (is_cjk_encoding): Remove function.
63003         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
63004         (uc_width, u8_width, u16_width, u32_width): Remove functions.
63005         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
63006         * NEWS: Document the change.
63007
63008 2007-09-01  Bruno Haible  <bruno@clisp.org>
63009
63010         * lib/streq.h: Add double-inclusion guard.
63011
63012 2007-09-01  Karl Berry  <karl@gnu.org>
63013
63014         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
63015
63016 2007-08-28  Jim Meyering  <jim@meyering.net>
63017
63018         Rename mreadlink_with_size to areadlink_with_size.
63019         * NEWS: Document the change.
63020         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
63021         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
63022         * lib/mreadlink.h: Rename this to...
63023         * lib/areadlink.h: ...this.
63024         * modules/mreadlink-with-size: Rename this to...
63025         * modules/areadlink-with-size: ...this.
63026         * lib/canonicalize.c: Reflect the renaming.
63027         * modules/canonicalize: Likewise.
63028
63029 2007-08-26  Bruno Haible  <bruno@clisp.org>
63030
63031         * gnulib-tool (func_import): When deciding which files to remove,
63032         consider also dangling symbolic links.
63033         Reported by Eric Blake.
63034
63035 2007-08-26  Bruno Haible  <bruno@clisp.org>
63036
63037         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
63038
63039 2007-08-23  Simon Josefsson  <simon@josefsson.org>
63040
63041         * lib/readline.c: Don't include getline.h, the prototype is now
63042         found in stdio.h.
63043
63044 2007-08-23  Jim Meyering  <jim@meyering.net>
63045
63046         Getdelim touchup.
63047         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
63048         around the funlockfile call, since funlockfile never sets errno.
63049         Don't set errno upon failed realloc.
63050
63051 2007-08-22  Eric Blake  <ebb9@byu.net>
63052
63053         Getline touchups.
63054         * lib/getdelim.c (getdelim): Revert regression that required *n to
63055         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
63056         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
63057         getdelim, rather than whether implementation is missing.
63058         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
63059         * lib/stdio_.h (getline): Also declare if replacement is
63060         required.
63061         * doc/functions/getdelim.texi: New file.
63062         * doc/functions/getline.texi: Likewise.
63063         * doc/gnulib.texi (Function Substitutes): Add new files.
63064         Reported by Bruno Haible.
63065
63066 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
63067
63068         * users.txt: Add Guile.
63069
63070 2007-08-22  Eric Blake  <ebb9@byu.net>
63071
63072         * tests/test-getdelim.c (main): Use remove, not unlink.
63073         * tests/test-getline.c (main): Likewise.
63074
63075         Move getline and getdelim into stdio.h, per POSIX 200x.
63076         * modules/getline (Files): Remove getline.h.
63077         (Depends-on): Add stdio.
63078         (configure.ac): Add module indicator.
63079         * modules/getdelim (Files): Remove getdelim.h.
63080         (Depends-on): Add stdio.
63081         (configure.ac): Add module indicator.
63082         * modules/stdio (Makefile.am): Work with new indicators.
63083         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
63084         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
63085         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63086         * lib/getdelim.h: Delete.
63087         * lib/getline.h: Delete.
63088         * lib/stdio_.h (getdelim, getline): Declare.
63089         * modules/getdelim-tests: New module.
63090         * modules/getline-tests: Likewise.
63091         * tests/test-getdelim.c: New file.
63092         * tests/test-getline.c: Likewise.
63093         * NEWS: Document the change.
63094         * lib/getline.c: Update choice of header.
63095         * lib/csharpcomp.c: Likewise.
63096         * lib/getpass.c: Likewise.
63097         * lib/javacomp.c: Likewise.
63098         * lib/javaversion.c: Likewise.
63099         * lib/yesno.c: Likewise.
63100         * lib/getdelim.c: Likewise.
63101         (getdelim): Set errno on failure, and avoid memory leak.
63102
63103 2007-08-19  Bruno Haible  <bruno@clisp.org>
63104
63105         * modules/closein (Depends-on): Add freadahead.
63106         * lib/closein.c: Include freadahead.h.
63107         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
63108         is zero.
63109
63110 2007-08-19  Bruno Haible  <bruno@clisp.org>
63111
63112         * modules/freadahead-tests: New file.
63113         * tests/test-freadahead.sh: New file.
63114         * tests/test-freadahead.c: New file.
63115
63116         * modules/freadahead: New file.
63117         * lib/freadahead.h: New file.
63118         * lib/freadahead.c: New file.
63119         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
63120         fbufmode, fpurge, freadable, fwritable.
63121
63122 2007-08-19  Eric Blake  <ebb9@byu.net>
63123
63124         Test yesno in combination with closein.
63125         * lib/yesno.c (yesno): Document use of stdin.
63126         * modules/yesno-tests (Files): New module.
63127         * tests/test-yesno.c (main): New file.
63128         * tests/test-yesno.sh: Likewise.
63129
63130 2007-08-19  Bruno Haible  <bruno@clisp.org>
63131
63132         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
63133         * lib/fseeko.c (rpl_fseeko): Likewise.
63134         * lib/fseterr.c (fseterr): Likewise.
63135
63136 2007-08-19  Bruno Haible  <bruno@clisp.org>
63137
63138         * tests/test-lseek.c (main): Disable a test for BeOS.
63139         * doc/functions/lseek.texi: Document the BeOS bug.
63140
63141 2007-08-19  Bruno Haible  <bruno@clisp.org>
63142             Eric Blake  <ebb9@byu.net>
63143
63144         * lib/lseek.c: Include <sys/stat.h>.
63145         (rpl_lseek): Add workaround code also for Unix platforms.
63146         Needed for BeOS.
63147         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
63148         * doc/functions/lseek.texi: Document BeOS definiency.
63149
63150 2007-08-18  Bruno Haible  <bruno@clisp.org>
63151
63152         * modules/fstrcmp-tests: New file.
63153         * tests/test-fstrcmp.c: New file.
63154
63155 2007-08-18  Bruno Haible  <bruno@clisp.org>
63156
63157         * modules/fstrcmp: New file, from GNU gettext with modifications.
63158         * lib/fstrcmp.h: New file, from GNU gettext.
63159         * lib/fstrcmp.c: New file, from GNU gettext.
63160         * MODULES.html.sh (String handling): Add fstrcmp.
63161
63162 2007-08-18  Bruno Haible  <bruno@clisp.org>
63163
63164         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
63165         'bool'.
63166         (diag, compareseq): Remove const from the ctxt argument.
63167         (USE_HEURISTIC): Undefine at the end.
63168
63169 2007-08-18  Jim Meyering  <jim@meyering.net>
63170
63171         New file: lib/idcache.h
63172         * NEWS: Mention the addition.
63173         * modules/idcache (Files): Add lib/idcache.h
63174         * lib/idcache.c: Include "idcache.h".
63175         Don't include <sys/types.h>.
63176         Add a FIXME comment.
63177         Move file-scoped "static" declarations to the top.
63178         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
63179
63180 2007-08-17  Bruno Haible  <bruno@clisp.org>
63181         and Paul Eggert  <eggert@cs.ucla.edu>
63182
63183         * MODULES.html.sh: Add diffseq.
63184         * modules/diffseq: New file.
63185         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
63186         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
63187
63188 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63189
63190         Import changes from coreutils for bootstrap script.
63191
63192         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
63193
63194         * build-aux/bootstrap (slurp): Work even in environments where
63195         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
63196         current code does not slurp files whose names start with ".", and
63197         this looks like it might be a troublesome area.
63198
63199         2007-07-11  Jim Meyering  <jim@meyering.net>
63200
63201         If there's a GPL vN copyright comment, require that N == 3.
63202
63203         2007-07-08  Jim Meyering  <jim@meyering.net>
63204
63205         Run the coreutils-specific code only if tests/Makefile.am.in exists.
63206         * build-aux/bootstrap (mam_template): Move definition out of loop.
63207
63208         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
63209
63210         * build-aux/bootstrap (symlink_to_dir): Rename function from
63211         symlink_to_gnulib.  Add a directory parameter.  Update all
63212         callers.
63213         (cp_mark_as_generated): Also check for -- and link to -- files in
63214         gl/.
63215
63216         2007-07-08  Jim Meyering  <jim@meyering.net>
63217
63218         Adapt to deeper hierarchy in gnulib.
63219         * build-aux/bootstrap (symlink_to_dir): If the destination
63220         directory doesn't exist, create it. This is required at least for
63221         "lib/uniwidth/cjk.h".
63222
63223         2007-05-15  Jim Meyering  <jim@meyering.net>
63224
63225         * build-aux/bootstrap: Now that generated Makefile.am files
63226         are no longer under version control, they must be created at
63227         bootstrap time.
63228
63229 2007-08-14  Ben Pfaff  <blp@gnu.org>
63230
63231         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
63232
63233 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63234
63235         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
63236         given the changes below.
63237         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
63238         even on hosts that have padding bits beyond the supported 64.
63239
63240 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63241
63242         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
63243         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
63244         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
63245         depends on it.
63246         (xstrtol_error): Remove.
63247         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
63248         but with a different signature.
63249         (ATTRIBUTE_NORETURN, __attribute__): New macros.
63250         * lib/xstrtol-error.c: Include exitfail.h.
63251         (xstrtol_fatal): New function, with a different signature from the
63252         old xstrtol_error, so that the caller need not worry about passing
63253         in an exit status, or about storage management of the option argument.
63254         (xstrtol_error): Now a static function.  Redo signature to
63255         implement xstrtol_fatal.  Output the correct number of hyphens in
63256         front of the option so that the caller need not worry about
63257         storage management.
63258         (N_): New macro.
63259         (_): Remove; not used now.
63260         * modules/xstrtol: Depend on getopt.
63261         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
63262         of old STRTOL_FATAL_ERROR macro.
63263         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
63264         of test program.
63265         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
63266         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
63267
63268 2007-08-08  Eric Blake  <ebb9@byu.net>
63269
63270         * lib/xstrtol-error.c: Add missing include.
63271
63272         Move xstrtol messages into gnulib domain, when --pobase is used.
63273         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
63274         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
63275         * modules/xstrtol (Files): Distribute new file.
63276         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
63277         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
63278         * tests/test-xstrtol.c: ...into new file.
63279         * tests/test-xstrtoul.c: Also test xstrtoul.
63280         * tests/test-xstrtoimax.c: Also test xstrtoimax.
63281         * tests/test-xstrtoumax.c: Also test xstrtoumax.
63282         * tests/test-xstrtol.sh: Drive the tests.
63283         * tests/test-xstrtoimax.sh: Likewise.
63284         * tests/test-xstrtoumax.sh: Likewise.
63285         * modules/xstrtol-tests: New module.
63286         * modules/xstrtoimax-tests: Likewise.
63287         * modules/xstrtoumax-tests: Likewise.
63288
63289 2007-08-08  Jim Meyering  <jim@meyering.net>
63290
63291         New function: mfile_name_concat.
63292         * lib/filenamecat.c (mfile_name_concat): New function, just like
63293         file_name_concat, but return NULL upon failure rather than exiting
63294         with a diagnostic.
63295         * lib/filenamecat.h: Declare it.
63296
63297 2007-08-07  Bruno Haible  <bruno@clisp.org>
63298
63299         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
63300         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
63301         warning from gcc.
63302         Reported by Eric Blake.
63303
63304 2007-08-07  Simon Josefsson  <simon@josefsson.org>
63305
63306         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
63307         * modules/crypto/arcfour (License): Likewise.
63308         * modules/crypto/des-tests (License): Likewise.
63309         * modules/crypto/gc-arctwo-tests (License): Likewise.
63310         * modules/crypto/gc-des-tests (License): Likewise.
63311         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
63312         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
63313         * modules/crypto/gc-md2-tests (License): Likewise.
63314         * modules/crypto/gc-md4-tests (License): Likewise.
63315         * modules/crypto/gc-md5-tests (License): Likewise.
63316         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
63317         * modules/crypto/gc-rijndael-tests (License): Likewise.
63318         * modules/crypto/gc-sha1-tests (License): Likewise.
63319         * modules/crypto/gc-tests (License): Likewise.
63320         * modules/crypto/hmac-md5 (License): Likewise.
63321         * modules/crypto/hmac-sha1 (License): Likewise.
63322         * modules/crypto/md2-tests (License): Likewise.
63323         * modules/crypto/md4-tests (License): Likewise.
63324         * modules/crypto/md5 (License): Likewise.
63325         * modules/crypto/rijndael (License): Likewise.
63326         * modules/crypto/sha1 (License): Likewise.
63327         * modules/memxor (License): Likewise.
63328
63329 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
63330         and Bruno Haible  <bruno@clisp.org>
63331
63332         * NEWS: Describe interface changes to human, xstrtol.
63333         * lib/human.h: Include <xstrtol.h>.
63334         (human_options): Return enum strtol_error, not int.  Remove
63335         bool arg; take int * instead.
63336         * lib/human.c: Don't include "gettext.h".
63337         (_): Remove; no longer used.
63338         Don't include <xstrtol.h>, since human.h does it.
63339         (human_options): Adjust to abovementioned interface changes.
63340         Do not report error to stderr; that's now the caller's
63341         responsibility.
63342         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
63343         interface change.
63344         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
63345         Str, Argument_type_string.  All uses changed.  Put " argument"
63346         in diagnostics to make them clearer.  Change wording of suffix
63347         message for clarity.
63348         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
63349         Argument_type_string.
63350         (STRTOL_FATAL_WARN): Remove; no longer used.
63351         * modules/human (Depends-on): Remove gettext-h.
63352
63353 2007-08-06  Simon Josefsson  <simon@josefsson.org>
63354
63355         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
63356
63357 2007-07-31  Bruno Haible  <bruno@clisp.org>
63358
63359         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
63360         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
63361         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
63362
63363 2007-07-31  Bruno Haible  <bruno@clisp.org>
63364
63365         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
63366         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
63367
63368 2007-07-30  Bruno Haible  <bruno@clisp.org>
63369
63370         * modules/base64 (License): Use the synonymous term "LGPLv2+".
63371         * modules/c-ctype (License): Likewise.
63372         * modules/c-strcase (License): Likewise.
63373         * modules/check-version (License): Likewise.
63374         * modules/iconv (License): Likewise.
63375         * modules/iconv_open (License): Likewise.
63376         * modules/read-file (License): Likewise.
63377         * modules/striconv (License): Likewise.
63378         * modules/strverscmp (License): Likewise.
63379         * modules/vasprintf (License): Likewise.
63380         * modules/crypto/des (License): Likewise.
63381         * modules/crypto/gc (License): Likewise.
63382         * modules/crypto/gc-arcfour (License): Likewise.
63383         * modules/crypto/gc-arctwo (License): Likewise.
63384         * modules/crypto/gc-des (License): Likewise.
63385         * modules/crypto/gc-hmac-md5 (License): Likewise.
63386         * modules/crypto/gc-hmac-sha1 (License): Likewise.
63387         * modules/crypto/gc-md2 (License): Likewise.
63388         * modules/crypto/gc-md4 (License): Likewise.
63389         * modules/crypto/gc-md5 (License): Likewise.
63390         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
63391         * modules/crypto/gc-random (License): Likewise.
63392         * modules/crypto/gc-rijndael (License): Likewise.
63393         * modules/crypto/gc-sha1 (License): Likewise.
63394         * modules/crypto/md2 (License): Likewise.
63395         * modules/crypto/md4 (License): Likewise.
63396
63397 2007-07-30  Jim Meyering  <jim@meyering.net>
63398
63399         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
63400         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
63401         it has valid stat data.  This bug would cause du not to count the
63402         sizes of inaccessible directories.
63403         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
63404         in <http://bugzilla.redhat.com/250077>.
63405
63406 2007-07-25  Peter O'Gorman  <peter@pogma.com>
63407             Bruno Haible  <bruno@clisp.org>
63408
63409         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
63410         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
63411         #include_next, gives a diagnostic about it, but reports no error in
63412         the exit code.
63413         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
63414
63415 2007-07-24  Ben Pfaff  <blp@gnu.org>
63416
63417         Improve name: "count-one-bits" is better than "popcount".
63418         * MODULES.html.sh: Update name.
63419         * lib/popcount.h: Renamed lib/count-one-bits.h.
63420         (popcount): Renamed count_one_bits.
63421         (popcountl): Renamed count_one_bits_l.
63422         (popcountll): Renamed count_one_bits_ll.
63423         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
63424         * modules/popcount: Renamed module/count-one-bits.
63425         * modules/popcount-tests: Renamed module/count-one-bits-tests.
63426         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
63427
63428 2007-07-23  Ben Pfaff  <blp@gnu.org>
63429
63430         * lib/popcount.h (popcount32): Reduce size of constants, to allow
63431         better code generation, and add U to large constants to avoid
63432         warnings, in non-GCC case.
63433         Suggested by Bruno Haible.
63434
63435 2007-07-23  Ben Pfaff  <blp@gnu.org>
63436
63437         * lib/popcount.h: Use verify_true instead of if...abort.
63438         * modules/popcount: Depend on verify module.
63439         Suggested by Jim Meyering.
63440
63441 2007-07-23  Bruno Haible  <bruno@clisp.org>
63442
63443         * gnulib-tool (func_import): Create a .cvsignore file also when the
63444         directory is not yet in CVS but the toplevel directory is. When
63445         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
63446         Reported by Karl Berry.
63447
63448 2007-07-22  Ben Pfaff  <blp@gnu.org>
63449
63450         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
63451         case.
63452         Suggested by Eric Blake.
63453
63454 2007-07-22  Ben Pfaff  <blp@gnu.org>
63455
63456         New module: popcount.
63457         * MODULES.html.sh: Add popcount.
63458         * modules/popcount: New file.
63459         * modules/popcount-tests: New file.
63460         * tests/test-popcount.c: New file.
63461         * lib/popcount.h: New file.
63462         * m4/popcount.m4: New file.
63463
63464 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63465
63466         * build-aux/announce-gen: Update to GPLv3.
63467
63468         * build-aux/config.guess: Update from config.
63469
63470 2007-07-21  Bruno Haible  <bruno@clisp.org>
63471
63472         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
63473         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
63474
63475 2007-07-20  Jim Meyering  <jim@meyering.net>
63476
63477         * check-module: Diagnose a self-dependency.
63478
63479 2007-07-19  Bruno Haible  <bruno@clisp.org>
63480
63481         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
63482         empty.
63483         Reported by Eric Blake.
63484
63485 2007-07-18  Bruno Haible  <bruno@clisp.org>
63486
63487         * gnulib-tool: New options --po-base, --po-domain.
63488         (func_usage): Document them.
63489         (pobase, po_domain): New variables.
63490         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
63491         DEFAULT_TEXT_DOMAIN.
63492         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
63493         (func_import): Consider pobase and po_domain. Create a po/ directory.
63494         (func_create_testdir): Set pobase and po_domain to empty.
63495         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
63496         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
63497
63498 2007-07-18  Bruno Haible  <bruno@clisp.org>
63499
63500         * gnulib-tool (func_get_automake_snippet): Synthesize also an
63501         EXTRA_DIST augmentation for files in build-aux/.
63502
63503 2007-07-16  Bruno Haible  <bruno@clisp.org>
63504
63505         * modules/lseek (License): Use the synonymous term "LGPLv2+".
63506         * modules/getdelim (License): Likewise.
63507
63508 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63509
63510         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
63511         * modules/d-type (License): Likewise.
63512         * modules/extensions (License): Likewise.
63513         * modules/fnmatch (License): Likewise.
63514         * modules/fseeko (License): Likewise.
63515         * modules/getaddrinfo (License): Likewise.
63516         * modules/getline (License): Likewise.
63517         * modules/getlogin_r (License): Likewise.
63518         * modules/getpass (License): Likewise.
63519         * modules/gettimeofday (License): Likewise.
63520         * modules/glob (License): Likewise.
63521         * modules/inet_ntop (License): Likewise.
63522         * modules/malloc (License): Likewise.
63523         * modules/malloca (License): Likewise.
63524         * modules/memmem (License): Likewise.
63525         * modules/mempcpy (License): Likewise.
63526         * modules/memset (License): Likewise.
63527         * modules/minmax (License): Likewise.
63528         * modules/mktime (License): Likewise.
63529         * modules/netinet_in (License): Likewise.
63530         * modules/pathmax (License): Likewise.
63531         * modules/poll (License): Likewise.
63532         * modules/regex (License): Likewise.
63533         * modules/snprintf (License): Likewise.
63534         * modules/stdbool (License): Likewise.
63535         * modules/stdint (License): Likewise.
63536         * modules/stdio (License): Likewise.
63537         * modules/strcase (License): Likewise.
63538         * modules/strcasestr (License): Likewise.
63539         * modules/strdup (License): Likewise.
63540         * modules/string (License): Likewise.
63541         * modules/strndup (License): Likewise.
63542         * modules/strnlen (License): Likewise.
63543         * modules/strpbrk (License): Likewise.
63544         * modules/strptime (License): Likewise.
63545         * modules/strsep (License): Likewise.
63546         * modules/sys_select (License): Likewise.
63547         * modules/sys_socket (License): Likewise.
63548         * modules/sys_stat (License): Likewise.
63549         * modules/sys_time (License): Likewise.
63550         * modules/time (License): Likewise.
63551         * modules/time_r (License): Likewise.
63552         * modules/timegm (License): Likewise.
63553         * modules/unistd (License): Likewise.
63554         * modules/vsnprintf (License): Likewise.
63555         * modules/wctype (License): Likewise.
63556
63557 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63558
63559         * modules/argz (License): LGPLv2+.
63560
63561 2007-07-15  Karl Berry  <karl@gnu.org>
63562
63563         * doc/gnulib.texi: revise node structure per new fdl.texi.
63564
63565 2007-07-14  Bruno Haible  <bruno@clisp.org>
63566
63567         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
63568         the output file.
63569         * lib/uniname/uninames.h: Regenerated.
63570
63571 2007-07-14  Karl Berry  <karl@gnu.org>
63572
63573         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
63574         omitting sectioning and index commands.
63575
63576 2007-07-13  Bruno Haible  <bruno@clisp.org>
63577
63578         New gnulib-tool option --more-symlinks.
63579         * gnulib-tool (func_usage): Document --more-symlinks.
63580         (do_copyrights): New variable.
63581         Recognize option --more-symlinks.
63582         (func_import): Don't add a copyright notice transform to
63583         sed_transform_lib_file if do_copyrights is empty.
63584
63585 2007-07-13  Bruno Haible  <bruno@clisp.org>
63586
63587         * lib/vasnprintf.c (decimal_point_char): Define also if
63588         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
63589         && !NEED_PRINTF_DIRECTIVE_A.
63590         Reported by Clemens Koller <clemens.koller@anagramm.de> via
63591         Gary V. Vaughan <gary@gnu.org>.
63592
63593 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
63594
63595         * lib/inttypes_.h: Undo previous change, since it was fixed
63596         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
63597
63598 2007-07-13  Bruno Haible  <bruno@clisp.org>
63599
63600         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
63601         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
63602
63603 2007-07-13  Jim Meyering  <jim@meyering.net>
63604
63605         df: Don't fail for Tru64's "file-on-file mount".
63606         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
63607         so we fall through and use statfs instead.  Details here:
63608         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
63609         Reported by Albert Chin.
63610
63611 2007-07-13  Bruno Haible  <bruno@clisp.org>
63612
63613         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
63614         * modules/configmake (License): Likewise.
63615         * modules/gettext (License): Likewise.
63616         * modules/gettext-h (License): Likewise.
63617         * modules/include_next (License): Likewise.
63618         * modules/link-warning (License): Likewise.
63619         * modules/localcharset (License): Likewise.
63620         * modules/localename (License): Likewise.
63621         * modules/lock (License): Likewise.
63622         * modules/relocatable-lib-lgpl (License): Likewise.
63623         * modules/size_max (License): Likewise.
63624         * modules/vasnprintf (License): Likewise.
63625         * modules/wchar (License): Likewise.
63626         * modules/xsize (License): Likewise.
63627
63628 2007-07-13  Bruno Haible  <bruno@clisp.org>
63629
63630         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
63631         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
63632
63633 2007-07-12  Bruno Haible  <bruno@clisp.org>
63634
63635         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
63636         in the modules files.
63637
63638 2007-07-11  Karl Berry  <karl@gnu.org>
63639
63640         * MODULES.html.sh (func_module): use
63641          sed -e '\|^'"${includefile}"'$|d'
63642          instead of /.../d, to avoid errors on $includefile's containing /.
63643
63644 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63645
63646         * gnulib-tool (func_import): Avoid duplication of --avoid
63647         statements
63648         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
63649         names to `_' in variable names.
63650
63651 2007-07-10  Eric Blake  <ebb9@byu.net>
63652
63653         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
63654         * NEWS: Document this change.
63655
63656 2007-07-08  Bruno Haible  <bruno@clisp.org>
63657
63658         Update to Unicode 5.0.
63659         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
63660         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
63661         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
63662         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
63663         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
63664         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
63665         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
63666         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
63667         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
63668         U+10A3F, U+1D242..U+1D244.
63669         (nonspacing_table_ind): Update.
63670         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
63671         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
63672
63673 2007-07-08  Bruno Haible  <bruno@clisp.org>
63674
63675         Update to Unicode 5.0.
63676         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
63677         code transform. Extend the name index field of unicode_name_to_code and
63678         unicode_code_to_name from 16 to 24 bits.
63679         * lib/uniname/uniname.c (unicode_character_name,
63680         unicode_name_character): Add the range 0x12xxx to the code transform.
63681         * lib/uniname/uninames.h: Regenerated.
63682         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
63683
63684 2007-07-07  Bruno Haible  <bruno@clisp.org>
63685
63686         * modules/wcwidth-tests: New file.
63687         * tests/test-wcwidth.c: New file.
63688
63689         Work around MacOS X wcwidth() bug.
63690         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
63691         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
63692         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
63693         original wcwidth in non-UTF-8 locales.
63694         * modules/wcwidth (Depends-on): Add localcharset, streq,
63695         uniwidth/width.
63696         * doc/functions/wcwidth.texi: Update.
63697
63698 2007-07-07  Bruno Haible  <bruno@clisp.org>
63699
63700         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
63701         (wcwidth): New declaration.
63702         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
63703         macros.
63704         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
63705         here. Prepare for creating <wchar.h> unconditionally.
63706         * modules/wchar (Depends-on): Add link-warning.
63707         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
63708         REPLACE_WCWIDTH, and GL_LINK_WARNING.
63709         * lib/wcwidth.h: Remove file.
63710         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
63711         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
63712         * modules/wcwidth (Files): Remove lib/wcwidth.h.
63713         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
63714         (Include): Replace wcwidth.h with <wchar.h>.
63715         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
63716         * lib/mbchar.h: Don't include wcwidth.h.
63717         * lib/mbswidth.c: Likewise.
63718         * NEWS: Mention the change.
63719
63720 2007-07-07  Bruno Haible  <bruno@clisp.org>
63721
63722         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
63723         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
63724         definition with an external declaration.
63725         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
63726         defined as a function. Remove AC_C_INLINE requirement.
63727         * modules/wcwidth (Files): Add lib/wcwidth.c.
63728         (Makefile.am): Remove redundant statement.
63729
63730 2007-07-07  Bruno Haible  <bruno@clisp.org>
63731
63732         * MODULES.html.sh (Unicode string functions): Add the new modules.
63733
63734         * tests/uniwidth/test-u32-strwidth.c: New file.
63735         * modules/uniwidth/u32-strwidth-tests: New file.
63736
63737         * lib/uniwidth/u32-strwidth.c: New file.
63738         * modules/uniwidth/u32-strwidth: New file.
63739
63740         * tests/uniwidth/test-u16-strwidth.c: New file.
63741         * modules/uniwidth/u16-strwidth-tests: New file.
63742
63743         * lib/uniwidth/u16-strwidth.c: New file.
63744         * modules/uniwidth/u16-strwidth: New file.
63745
63746         * tests/uniwidth/test-u8-strwidth.c: New file.
63747         * modules/uniwidth/u8-strwidth-tests: New file.
63748
63749         * lib/uniwidth/u8-strwidth.c: New file.
63750         * modules/uniwidth/u8-strwidth: New file.
63751
63752         * tests/uniwidth/test-u32-width.c: New file.
63753         * modules/uniwidth/u32-width-tests: New file.
63754
63755         * lib/uniwidth/u32-width.c: New file.
63756         * modules/uniwidth/u32-width: New file.
63757
63758         * tests/uniwidth/test-u16-width.c: New file.
63759         * modules/uniwidth/u16-width-tests: New file.
63760
63761         * lib/uniwidth/u16-width.c: New file.
63762         * modules/uniwidth/u16-width: New file.
63763
63764         * tests/uniwidth/test-u8-width.c: New file.
63765         * modules/uniwidth/u8-width-tests: New file.
63766
63767         * lib/uniwidth/u8-width.c: New file.
63768         * modules/uniwidth/u8-width: New file.
63769
63770         * tests/uniwidth/test-uc_width.c: New file.
63771         * modules/uniwidth/width-tests: New file.
63772
63773         * lib/uniwidth/width.c: New file, from GNU libiconv.
63774         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
63775         * modules/uniwidth/width: New file.
63776
63777         * lib/uniwidth.h: New file, from GNU libiconv.
63778         * modules/uniwidth/base: New file.
63779
63780 2007-07-07  Bruno Haible  <bruno@clisp.org>
63781
63782         * lib/uniname.h: New file, from GNU gettext.
63783         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
63784         * lib/uniname/uninames.h: New file, from GNU gettext.
63785         * lib/uniname/uniname.c: New file, from GNU gettext.
63786         * tests/uniname/test-uninames.sh: New file.
63787         * tests/uniname/test-uninames.c: New file, from GNU gettext.
63788         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
63789         * modules/uniname/base: New file.
63790         * modules/uniname/uniname: New file.
63791         * modules/uniname/uniname-tests: New file.
63792         * MODULES.html.sh (Unicode string functions): Add the new modules.
63793
63794 2007-07-06  Bruno Haible  <bruno@clisp.org>
63795
63796         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
63797
63798 2007-07-06  Bruno Haible  <bruno@clisp.org>
63799
63800         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
63801         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
63802         includes <cygwin/sys_time.h> which includes <sys/select.h> which
63803         include <sys/time.h>.
63804         Reported by Eric Blake.
63805
63806 2007-07-06  Eric Blake  <ebb9@byu.net>
63807
63808         Fix testing canonicalize on cygwin.
63809         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63810         Revert patch from 2007-06-19.
63811         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
63812         canonicalize module is also in use.
63813         * tests/test-canonicalize.c: New file.
63814         * tests/test-canonicalize.sh: Likewise.
63815         * modules/canonicalize-tests: Likewise.
63816
63817 2007-07-06  Jim Meyering  <jim@meyering.net>
63818
63819         * lib/getugroups.c (getugroups): Detect getgrent failure.
63820         Adjust comment to reflect reality: this function may return -1.
63821
63822 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
63823
63824         * build-aux/bootstrap (TP_URL,get_translations): Update to use
63825         the new TP address.
63826         (usage): Fix typo
63827         (gnulib_mk): New variable.
63828
63829 2007-07-05  Jim Meyering  <jim@meyering.net>
63830
63831         Don't let endgrent clobber errno, no matter how improbable.
63832         * lib/getugroups.c (getugroups): Save and restore errno around
63833         endgrent call.
63834
63835         Close the group DB even when failing with 2^31 or more members.
63836         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
63837
63838 2007-07-04  Jim Meyering  <jim@meyering.net>
63839
63840         * lib/getugroups.h: New file.
63841         * lib/getugroups.c: Include "getugroups.h".
63842         Remove uses of "register" keyword.
63843         Move local variable, "cp", down into scope where used.
63844         Give "username" parameter the "const" attribute.
63845         * modules/getugroups (Files): Add lib/getugroups.h
63846
63847 2007-07-04  Karl Berry  <karl@gnu.org>
63848
63849         * MODULES.html.sh (func_all_modules): Complete rename of
63850         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
63851
63852 2007-07-02  Bruno Haible  <bruno@clisp.org>
63853
63854         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
63855         mode, when inttypes.h comes from gnulib.
63856         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63857
63858 2007-07-02  Simon Josefsson  <simon@josefsson.org>
63859
63860         * NEWS: Mention lgpl module name change.
63861
63862         * modules/lgpl-2.1: Renamed from lgpl.
63863
63864         * NEWS: Mention gpl module name change.
63865
63866         * modules/gpl-3.0: New file, based on gpl-2.0.
63867
63868         * modules/gpl-2.0: Renamed from gpl.
63869
63870         * modules/gpl: Fix filename, doc/gpl.texi is now found at
63871         doc/gpl-2.0.texi.
63872
63873 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63874
63875         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
63876         #define __STDC_LIMIT_MACROS temporarily while including
63877         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
63878         Problem reported by Joel E. Denny in
63879         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
63880
63881 2007-07-01  Bruno Haible  <bruno@clisp.org>
63882
63883         * lib/unistdio.h: New file.
63884         * lib/unistdio/u-asnprintf.h: New file.
63885         * lib/unistdio/u-asprintf.h: New file.
63886         * lib/unistdio/u-printf-args.c: New file.
63887         * lib/unistdio/u-printf-args.h: New file.
63888         * lib/unistdio/u-printf-parse.h: New file.
63889         * lib/unistdio/u-snprintf.h: New file.
63890         * lib/unistdio/u-sprintf.h: New file.
63891         * lib/unistdio/u-vasprintf.h: New file.
63892         * lib/unistdio/u-vsnprintf.h: New file.
63893         * lib/unistdio/u-vsprintf.h: New file.
63894         * lib/unistdio/ulc-asnprintf.c: New file.
63895         * lib/unistdio/ulc-asprintf.c: New file.
63896         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
63897         * lib/unistdio/ulc-printf-parse.c: New file.
63898         * lib/unistdio/ulc-snprintf.c: New file.
63899         * lib/unistdio/ulc-sprintf.c: New file.
63900         * lib/unistdio/ulc-vasnprintf.c: New file.
63901         * lib/unistdio/ulc-vasprintf.c: New file.
63902         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
63903         * lib/unistdio/ulc-vsnprintf.c: New file.
63904         * lib/unistdio/ulc-vsprintf.c: New file.
63905         * lib/unistdio/u8-asnprintf.c: New file.
63906         * lib/unistdio/u8-asprintf.c: New file.
63907         * lib/unistdio/u8-printf-parse.c: New file.
63908         * lib/unistdio/u8-snprintf.c: New file.
63909         * lib/unistdio/u8-sprintf.c: New file.
63910         * lib/unistdio/u8-vasnprintf.c: New file.
63911         * lib/unistdio/u8-vasprintf.c: New file.
63912         * lib/unistdio/u8-vsnprintf.c: New file.
63913         * lib/unistdio/u8-vsprintf.c: New file.
63914         * lib/unistdio/u8-u8-asnprintf.c: New file.
63915         * lib/unistdio/u8-u8-asprintf.c: New file.
63916         * lib/unistdio/u8-u8-snprintf.c: New file.
63917         * lib/unistdio/u8-u8-sprintf.c: New file.
63918         * lib/unistdio/u8-u8-vasnprintf.c: New file.
63919         * lib/unistdio/u8-u8-vasprintf.c: New file.
63920         * lib/unistdio/u8-u8-vsnprintf.c: New file.
63921         * lib/unistdio/u8-u8-vsprintf.c: New file.
63922         * lib/unistdio/u16-asnprintf.c: New file.
63923         * lib/unistdio/u16-asprintf.c: New file.
63924         * lib/unistdio/u16-printf-parse.c: New file.
63925         * lib/unistdio/u16-snprintf.c: New file.
63926         * lib/unistdio/u16-sprintf.c: New file.
63927         * lib/unistdio/u16-vasnprintf.c: New file.
63928         * lib/unistdio/u16-vasprintf.c: New file.
63929         * lib/unistdio/u16-vsnprintf.c: New file.
63930         * lib/unistdio/u16-vsprintf.c: New file.
63931         * lib/unistdio/u16-u16-asnprintf.c: New file.
63932         * lib/unistdio/u16-u16-asprintf.c: New file.
63933         * lib/unistdio/u16-u16-snprintf.c: New file.
63934         * lib/unistdio/u16-u16-sprintf.c: New file.
63935         * lib/unistdio/u16-u16-vasnprintf.c: New file.
63936         * lib/unistdio/u16-u16-vasprintf.c: New file.
63937         * lib/unistdio/u16-u16-vsnprintf.c: New file.
63938         * lib/unistdio/u16-u16-vsprintf.c: New file.
63939         * lib/unistdio/u32-asnprintf.c: New file.
63940         * lib/unistdio/u32-asprintf.c: New file.
63941         * lib/unistdio/u32-printf-parse.c: New file.
63942         * lib/unistdio/u32-snprintf.c: New file.
63943         * lib/unistdio/u32-sprintf.c: New file.
63944         * lib/unistdio/u32-vasnprintf.c: New file.
63945         * lib/unistdio/u32-vasprintf.c: New file.
63946         * lib/unistdio/u32-vsnprintf.c: New file.
63947         * lib/unistdio/u32-vsprintf.c: New file.
63948         * lib/unistdio/u32-u32-asnprintf.c: New file.
63949         * lib/unistdio/u32-u32-asprintf.c: New file.
63950         * lib/unistdio/u32-u32-snprintf.c: New file.
63951         * lib/unistdio/u32-u32-sprintf.c: New file.
63952         * lib/unistdio/u32-u32-vasnprintf.c: New file.
63953         * lib/unistdio/u32-u32-vasprintf.c: New file.
63954         * lib/unistdio/u32-u32-vsnprintf.c: New file.
63955         * lib/unistdio/u32-u32-vsprintf.c: New file.
63956         * tests/unistdio/test-ulc-asnprintf1.c: New file.
63957         * tests/unistdio/test-ulc-asnprintf1.h: New file.
63958         * tests/unistdio/test-ulc-printf1.h: New file.
63959         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
63960         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
63961         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
63962         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
63963         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
63964         * tests/unistdio/test-ulc-vasprintf1.c: New file.
63965         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
63966         * tests/unistdio/test-ulc-vsprintf1.c: New file.
63967         * tests/unistdio/test-u8-asnprintf1.c: New file.
63968         * tests/unistdio/test-u8-asnprintf1.h: New file.
63969         * tests/unistdio/test-u8-printf1.h: New file.
63970         * tests/unistdio/test-u8-vasnprintf1.c: New file.
63971         * tests/unistdio/test-u8-vasnprintf2.c: New file.
63972         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
63973         * tests/unistdio/test-u8-vasnprintf3.c: New file.
63974         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
63975         * tests/unistdio/test-u8-vasprintf1.c: New file.
63976         * tests/unistdio/test-u8-vsnprintf1.c: New file.
63977         * tests/unistdio/test-u8-vsprintf1.c: New file.
63978         * tests/unistdio/test-u16-asnprintf1.c: New file.
63979         * tests/unistdio/test-u16-asnprintf1.h: New file.
63980         * tests/unistdio/test-u16-printf1.h: New file.
63981         * tests/unistdio/test-u16-vasnprintf1.c: New file.
63982         * tests/unistdio/test-u16-vasnprintf2.c: New file.
63983         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
63984         * tests/unistdio/test-u16-vasnprintf3.c: New file.
63985         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
63986         * tests/unistdio/test-u16-vasprintf1.c: New file.
63987         * tests/unistdio/test-u16-vsnprintf1.c: New file.
63988         * tests/unistdio/test-u16-vsprintf1.c: New file.
63989         * tests/unistdio/test-u32-asnprintf1.c: New file.
63990         * tests/unistdio/test-u32-asnprintf1.h: New file.
63991         * tests/unistdio/test-u32-printf1.h: New file.
63992         * tests/unistdio/test-u32-vasnprintf1.c: New file.
63993         * tests/unistdio/test-u32-vasnprintf2.c: New file.
63994         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
63995         * tests/unistdio/test-u32-vasnprintf3.c: New file.
63996         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
63997         * tests/unistdio/test-u32-vasprintf1.c: New file.
63998         * tests/unistdio/test-u32-vsnprintf1.c: New file.
63999         * tests/unistdio/test-u32-vsprintf1.c: New file.
64000         * modules/unistdio/base: New file.
64001         * modules/unistdio/u-printf-args: New file.
64002         * modules/unistdio/ulc-asnprintf: New file.
64003         * modules/unistdio/ulc-asprintf: New file.
64004         * modules/unistdio/ulc-fprintf: New file.
64005         * modules/unistdio/ulc-printf-parse: New file.
64006         * modules/unistdio/ulc-snprintf: New file.
64007         * modules/unistdio/ulc-sprintf: New file.
64008         * modules/unistdio/ulc-vasnprintf: New file.
64009         * modules/unistdio/ulc-vasprintf: New file.
64010         * modules/unistdio/ulc-vfprintf: New file.
64011         * modules/unistdio/ulc-vsnprintf: New file.
64012         * modules/unistdio/ulc-vsprintf: New file.
64013         * modules/unistdio/u8-asnprintf: New file.
64014         * modules/unistdio/u8-asprintf: New file.
64015         * modules/unistdio/u8-printf-parse: New file.
64016         * modules/unistdio/u8-snprintf: New file.
64017         * modules/unistdio/u8-sprintf: New file.
64018         * modules/unistdio/u8-vasnprintf: New file.
64019         * modules/unistdio/u8-vasprintf: New file.
64020         * modules/unistdio/u8-vsnprintf: New file.
64021         * modules/unistdio/u8-vsprintf: New file.
64022         * modules/unistdio/u8-u8-asnprintf: New file.
64023         * modules/unistdio/u8-u8-asprintf: New file.
64024         * modules/unistdio/u8-u8-snprintf: New file.
64025         * modules/unistdio/u8-u8-sprintf: New file.
64026         * modules/unistdio/u8-u8-vasnprintf: New file.
64027         * modules/unistdio/u8-u8-vasprintf: New file.
64028         * modules/unistdio/u8-u8-vsnprintf: New file.
64029         * modules/unistdio/u8-u8-vsprintf: New file.
64030         * modules/unistdio/u16-asnprintf: New file.
64031         * modules/unistdio/u16-asprintf: New file.
64032         * modules/unistdio/u16-printf-parse: New file.
64033         * modules/unistdio/u16-snprintf: New file.
64034         * modules/unistdio/u16-sprintf: New file.
64035         * modules/unistdio/u16-vasnprintf: New file.
64036         * modules/unistdio/u16-vasprintf: New file.
64037         * modules/unistdio/u16-vsnprintf: New file.
64038         * modules/unistdio/u16-vsprintf: New file.
64039         * modules/unistdio/u16-u16-asnprintf: New file.
64040         * modules/unistdio/u16-u16-asprintf: New file.
64041         * modules/unistdio/u16-u16-snprintf: New file.
64042         * modules/unistdio/u16-u16-sprintf: New file.
64043         * modules/unistdio/u16-u16-vasnprintf: New file.
64044         * modules/unistdio/u16-u16-vasprintf: New file.
64045         * modules/unistdio/u16-u16-vsnprintf: New file.
64046         * modules/unistdio/u16-u16-vsprintf: New file.
64047         * modules/unistdio/u32-asnprintf: New file.
64048         * modules/unistdio/u32-asprintf: New file.
64049         * modules/unistdio/u32-printf-parse: New file.
64050         * modules/unistdio/u32-snprintf: New file.
64051         * modules/unistdio/u32-sprintf: New file.
64052         * modules/unistdio/u32-vasnprintf: New file.
64053         * modules/unistdio/u32-vasprintf: New file.
64054         * modules/unistdio/u32-vsnprintf: New file.
64055         * modules/unistdio/u32-vsprintf: New file.
64056         * modules/unistdio/u32-u32-asnprintf: New file.
64057         * modules/unistdio/u32-u32-asprintf: New file.
64058         * modules/unistdio/u32-u32-snprintf: New file.
64059         * modules/unistdio/u32-u32-sprintf: New file.
64060         * modules/unistdio/u32-u32-vasnprintf: New file.
64061         * modules/unistdio/u32-u32-vasprintf: New file.
64062         * modules/unistdio/u32-u32-vsnprintf: New file.
64063         * modules/unistdio/u32-u32-vsprintf: New file.
64064         * modules/unistdio/ulc-asnprintf-tests: New file.
64065         * modules/unistdio/ulc-vasnprintf-tests: New file.
64066         * modules/unistdio/ulc-vasprintf-tests: New file.
64067         * modules/unistdio/ulc-vsnprintf-tests: New file.
64068         * modules/unistdio/ulc-vsprintf-tests: New file.
64069         * modules/unistdio/u8-asnprintf-tests: New file.
64070         * modules/unistdio/u8-vasnprintf-tests: New file.
64071         * modules/unistdio/u8-vasprintf-tests: New file.
64072         * modules/unistdio/u8-vsnprintf-tests: New file.
64073         * modules/unistdio/u8-vsprintf-tests: New file.
64074         * modules/unistdio/u16-asnprintf-tests: New file.
64075         * modules/unistdio/u16-vasnprintf-tests: New file.
64076         * modules/unistdio/u16-vasprintf-tests: New file.
64077         * modules/unistdio/u16-vsnprintf-tests: New file.
64078         * modules/unistdio/u16-vsprintf-tests: New file.
64079         * modules/unistdio/u32-asnprintf-tests: New file.
64080         * modules/unistdio/u32-vasnprintf-tests: New file.
64081         * modules/unistdio/u32-vasprintf-tests: New file.
64082         * modules/unistdio/u32-vsnprintf-tests: New file.
64083         * modules/unistdio/u32-vsprintf-tests: New file.
64084         * MODULES.html.sh (Unicode string functions): Add the new modules.
64085
64086 2007-07-01  Bruno Haible  <bruno@clisp.org>
64087
64088         * lib/sprintf.c (sprintf): Limit the available length estimation,
64089         to avoid address wraparound.
64090         * lib/vsprintf.c (vsprintf): Likewise.
64091         * modules/sprintf-posix (Dependencies): Add stdint.
64092         * modules/vsprintf-posix (Dependencies): Likewise.
64093
64094 2007-07-01  Bruno Haible  <bruno@clisp.org>
64095
64096         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
64097         Windows PATH as well. Conservative double-quoting. Comments.
64098
64099 2007-07-01  Bruno Haible  <bruno@clisp.org>
64100             Eric Blake  <ebb9@byu.net>
64101             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64102
64103         * gnulib-tool (self_abspathname): Fix algorithm to cope with
64104         empty components in $PATH, denoting '.'.
64105
64106 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64107
64108         * gnulib-tool: Fix indentation.
64109         (func_create_megatestdir): Likewise.
64110         Report by Bruno Haible.
64111
64112 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64113
64114         Sync from Automake.
64115         * build-aux/gnupload: Fix shell portability issues with for loops.
64116         Report by Karl Berry.
64117
64118 2007-06-29  Simon Josefsson  <simon@josefsson.org>
64119
64120         * build-aux/maint.mk (POURL): Use translationproject.org.
64121
64122 2007-06-27  Simon Josefsson  <simon@josefsson.org>
64123             Bruno Haible  <bruno@clisp.org>
64124
64125         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
64126         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
64127         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
64128         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
64129         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
64130
64131 2007-06-27  Bruno Haible  <bruno@clisp.org>
64132
64133         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
64134         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
64135
64136 2007-06-26  Karl Berry  <karl@gnu.org>
64137
64138         * MODULES.html.sh: remove xreadlink-with-size.
64139
64140 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64141
64142         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
64143         method that I hope also handles the double-include problem noted
64144         by Bruno Haible in
64145         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
64146
64147 2007-06-23  Bruno Haible  <bruno@clisp.org>
64148
64149         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64150         Don't let the 'mostlyclean' target fail if the last subdirectory could
64151         not be removed.
64152         Reported by Karl Berry.
64153
64154 2007-06-23  Bruno Haible  <bruno@clisp.org>
64155
64156         * gnulib-tool (echo): Add a speedier workaround for ksh.
64157         * tests/test-echo.sh: Likewise.
64158
64159 2007-06-23  Bruno Haible  <bruno@clisp.org>
64160
64161         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
64162         * tests/test-echo.sh: Likewise.
64163
64164 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64165
64166         * gnulib-tool (IFS): Initialize early, so we don't set it to
64167         empty later.
64168         (self_abspathname): Rewrite algorithm to set it, reindent.
64169         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
64170         (func_create_megatestdir): Merge some sed scripts.
64171
64172 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64173
64174         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
64175         exposed by Sun Studio 11 cc on Solaris 8.
64176
64177 2007-06-22  Bruno Haible  <bruno@clisp.org>
64178
64179         * gnulib-tool (echo): Ensure the echo primitive does not interpret
64180         backslashes.
64181         * tests/test-echo.sh: New file.
64182
64183 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64184
64185         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
64186         simplify `sed_replace_build_aux' scripts, they are portable but
64187         echoing them with `echo' is not.
64188         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
64189
64190 2007-06-21  Karl Berry  <karl@gnu.org>
64191
64192         * config/srclist.txt: guess we can't handle the licenses via
64193         srclist at the moment.
64194
64195 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64196
64197         * MODULES.html.sh: Add include_next.
64198         * modules/include_next: New file.
64199
64200 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64201
64202         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
64203         INCLUDE_NEXT.
64204         (gl_CHECK_NEXT_HEADERS): New macro.
64205         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
64206         the obsolescent gl_ABSOLUTE_HEADER.
64207         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
64208         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
64209         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
64210         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
64211         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
64212         * m4/math_h.m4 (gl_MATH_H): Likewise.
64213         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
64214         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
64215         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
64216         * m4/stdint.m4 (gl_STDINT_H): Likewise.
64217         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
64218         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
64219         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
64220         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
64221         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
64222         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
64223         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
64224         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
64225         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
64226         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
64227         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
64228         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64229         * m4/inttypes.m4 (gl_INTTYPES_H): Define
64230         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
64231         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
64232         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
64233         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
64234         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
64235         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
64236         * lib/float_.h: Likewise.
64237         * lib/inttypes_.h: Likewise.
64238         * lib/math_.h: Likewise.
64239         * lib/search_.h: Likewise.
64240         * lib/signal_.h: Likewise.
64241         * lib/stdint_.h: Likewise.
64242         * lib/stdio_.h: Likewise.
64243         * lib/stdlib_.h: Likewise.
64244         * lib/string_.h: Likewise.
64245         * lib/sys_stat_.h: Likewise.
64246         * lib/sys_time_.h: Likewise.
64247         * lib/time_.h: Likewise.
64248         * lib/unistd_.h: Likewise.
64249         * lib/wchar_.h: Likewise.
64250         * lib/wctype_.h: Likewise.
64251         * lib/dirent_.h: Likewise.
64252         * lib/iconv_.h: Likewise.
64253         * lib/locale_.h: Likewise.
64254         * lib/netinet_in_.h: Likewise.
64255         * lib/sys_select_.h: Likewise.
64256         * lib/sys_socket_.h: Likewise.
64257         * lib/sysexits_.h: Likewise.
64258         * modules/fcntl (Depends-on): Depend on include_next, not
64259         absolute_header.
64260         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
64261         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
64262         * modules/fchdir: Likewise.
64263         * modules/float: Likewise.
64264         * modules/iconv_open: Likewise.
64265         * modules/inttypes: Likewise.
64266         * modules/locale: Likewise.
64267         * modules/math: Likewise.
64268         * modules/netinet_in: Likewise.
64269         * modules/search: Likewise.
64270         * modules/signal: Likewise.
64271         * modules/stdint: Likewise.
64272         * modules/stdio: Likewise.
64273         * modules/stdlib: Likewise.
64274         * modules/string: Likewise.
64275         * modules/sys_select: Likewise.
64276         * modules/sys_socket: Likewise.
64277         * modules/sys_stat: Likewise.
64278         * modules/sys_time: Likewise.
64279         * modules/sysexits: Likewise.
64280         * modules/time: Likewise.
64281         * modules/unistd: Likewise.
64282         * modules/wchar: Likewise.
64283         * modules/wctype: Likewise.
64284         * modules/sys_stat: Change maintainer to "all".
64285         * modules/unistd: Likewise.
64286
64287 2007-06-20  Karl Berry  <karl@gnu.org>
64288
64289         * config/srclist.txt: track www changes in license files.
64290
64291 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
64292
64293         * build-aux/bootstrap: Remove stray dot.
64294         Make sure build_aux settings are honored when linking
64295         gnulib_extra_files.
64296
64297 2007-06-19  Eric Blake  <ebb9@byu.net>
64298
64299         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64300         Allow compilation on cygwin.
64301
64302 2007-06-19  Jim Meyering  <jim@meyering.net>
64303
64304         xreadlink-with-size: Remove module.  No longer used.
64305         Ex-callers now use xreadlink or mreadlink-with-size.
64306         * modules/xreadlink-with-size: Remove module.
64307         * lib/xreadlink-with-size.c: Remove file.
64308         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
64309         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
64310         just before the function definition *is* accurate.
64311
64312         Eliminate one way canonicalize_filename_mode could exit.
64313         * lib/canonicalize.c (canonicalize_filename_mode):
64314         Use mreadlink_with_size, not xreadlink_with_size.
64315
64316 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
64317
64318         Detect porting problems to FreeBSD/arm, which has time_t wider than
64319         long int.  Original problem reported for GNU diff by Xin Li in
64320         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
64321         * modules/getdate (Depends-on): Add intprops, verify.
64322         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
64323         is an integer type no wider than long int.
64324
64325 2007-06-18  Jim Meyering  <jim@meyering.net>
64326
64327         New module: mreadlink-with-size.
64328         * MODULES.html.sh: Add mreadlink-with-size.
64329         * modules/mreadlink-with-size: New module
64330         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
64331         not xreadlink-with-size.
64332         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
64333
64334 2007-06-16  Bruno Haible  <bruno@clisp.org>
64335
64336         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
64337         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
64338         Reported by Gary V. Vaughan <gary@gnu.org>.
64339
64340 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
64341
64342         Revamp lchown so that it lives in unistd.h where it belongs.
64343         * lib/lchown.h: Remove.
64344         * lib/dirchownmod.c: Don't include lib/lchown.h.
64345         * lib/fchownat.c: Likewise.
64346         * lib/openat.c: Likewise.
64347         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
64348         does not follow symlinks.
64349         (EOPNOTSUPP): Define if not defined.
64350         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
64351         is defined to 0.
64352         (lchown): New decl.
64353         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
64354         Do not check for lchown decl.
64355         Set REPLACE_LCHOWN.
64356         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
64357         REPLACE_LCHOWN.
64358         * modules/chown: Make it clear it follows symlinks.
64359         * modules/lchown: Make it clear it doesn't follow symlinks.
64360         (Files): Remove lib/lchown.h
64361         (Depends-on): Add unistd.
64362         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
64363         (Include): Include <unistd.h>, not "lchown.h".
64364         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
64365         REPLACE_LCHOWN.
64366
64367 2007-06-15  Jim Meyering  <jim@meyering.net>
64368
64369         Change license (GPL to LGPL) of fsusage and dependents.
64370         * modules/fsusage (License): Change to LGPL.
64371         * modules/full-read (License): Likewise.
64372         * modules/full-write (License): Likewise.
64373         * modules/safe-read (License): Likewise.
64374         * modules/safe-write (License): Likewise.
64375
64376 2007-06-14  Ben Pfaff  <blp@gnu.org>
64377
64378         Missing part of allocsa -> malloca transition.
64379         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
64380         gl_MALLOCA.
64381
64382 2007-06-12  Bruno Haible  <bruno@clisp.org>
64383
64384         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
64385         to ia64, x86_64, i386.
64386         Reported by Eric Blake.
64387
64388 2007-06-12  Bruno Haible  <bruno@clisp.org>
64389
64390         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
64391         cross-compiling to x86_64.
64392
64393 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
64394
64395         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
64396         glitch reported by Ralf Wildenhues in
64397         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
64398
64399         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
64400         Vin Shelton.
64401
64402 2007-06-11  Bruno Haible  <bruno@clisp.org>
64403
64404         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
64405         replacement string.
64406         Reported by Eric Blake.
64407
64408 2007-06-10  Bruno Haible  <bruno@clisp.org>
64409
64410         Prepare vasnprintf code for use with Unicode strings.
64411         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
64412         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
64413         TYPE_U32_STRING.
64414         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
64415         a_u32_string variants.
64416         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64417         * lib/printf-args.c: Don't include config.h and the specification
64418         header if PRINTF_FETCHARGS is already defined.
64419         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64420         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
64421         TYPE_U16_STRING, TYPE_U32_STRING.
64422         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
64423         u16_directive, u16_directives, u32_directive, u32_directives): New
64424         types.
64425         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
64426         New declarations.
64427         * lib/printf-parse.c: Don't include config.h and the specification
64428         header if PRINTF_PARSE is already defined. Eliminate the set of
64429         parameters for WIDE_CHAR_VERSION; the user of this file must provide
64430         them now. Include c-ctype.h.
64431         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
64432         directive and CHAR_T_ONLY_ASCII.
64433         * lib/vasnprintf.c: Don't include config.h and the specification header
64434         if VASNPRINTF is already defined.
64435         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
64436         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
64437         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
64438         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
64439         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
64440         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
64441         code accordingly.
64442         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
64443         pad_ourselves also in this case, with the 'c' and 's' directives, and
64444         with a different notion of "width".
64445         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
64446
64447 2007-06-10  Bruno Haible  <bruno@clisp.org>
64448
64449         * modules/unistr/u32-mbsnlen: New file.
64450         * lib/unistr/u32-mbsnlen.c: New file.
64451
64452         * modules/unistr/u16-mbsnlen: New file.
64453         * lib/unistr/u16-mbsnlen.c: New file.
64454
64455         * modules/unistr/u8-mbsnlen: New file.
64456         * lib/unistr/u8-mbsnlen.c: New file.
64457
64458         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
64459         declarations.
64460
64461 2007-06-10  Bruno Haible  <bruno@clisp.org>
64462
64463         * lib/string_.h (mbsnlen): New declaration.
64464         * lib/mbsnlen.c: New file.
64465         * m4/mbsnlen.m4: New file.
64466         * modules/mbsnlen: New file.
64467         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
64468         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
64469         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
64470
64471 2007-06-10  Bruno Haible  <bruno@clisp.org>
64472
64473         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
64474
64475 2007-06-10  Bruno Haible  <bruno@clisp.org>
64476
64477         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
64478         * lib/mbuiter.h: Likewise.
64479
64480 2007-06-10  Bruno Haible  <bruno@clisp.org>
64481
64482         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
64483         declaration.
64484
64485 2007-06-10  Karl Berry  <karl@gnu.org>
64486
64487         * config/srclist.txt: remove gettext entries, Bruno prefers
64488         to update individually.
64489
64490 2007-06-10  Bruno Haible  <bruno@clisp.org>
64491
64492         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
64493         'maxlen'. Ensure only length + width bytes are allocated, not
64494         length + 1 + width.
64495
64496 2007-06-09  Bruno Haible  <bruno@clisp.org>
64497
64498         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
64499         (CHAR_T): Remove macro.
64500         (VASNPRINTF): Update.
64501
64502 2007-06-09  Bruno Haible  <bruno@clisp.org>
64503
64504         * MODULES.html.sh (Unicode string functions): Add the new modules.
64505
64506         * modules/uniconv/u32-conv-to-enc: New file.
64507         * lib/uniconv/u32-conv-to-enc.c: New file.
64508         * modules/uniconv/u32-conv-to-enc-tests: New file.
64509         * tests/uniconv/test-u32-conv-to-enc.c: New file.
64510
64511         * modules/uniconv/u16-conv-to-enc: New file.
64512         * lib/uniconv/u16-conv-to-enc.c: New file.
64513         * lib/uniconv/u-conv-to-enc.h: New file.
64514         * modules/uniconv/u16-conv-to-enc-tests: New file.
64515         * tests/uniconv/test-u16-conv-to-enc.c: New file.
64516
64517         * modules/uniconv/u8-conv-to-enc: New file.
64518         * lib/uniconv/u8-conv-to-enc.c: New file.
64519         * modules/uniconv/u8-conv-to-enc-tests: New file.
64520         * tests/uniconv/test-u8-conv-to-enc.c: New file.
64521
64522         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
64523         u32_conv_to_encoding): New declarations.
64524
64525 2007-06-09  Bruno Haible  <bruno@clisp.org>
64526
64527         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
64528
64529 2007-06-09  Bruno Haible  <bruno@clisp.org>
64530
64531         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
64532         * modules/malloca: Renamed from modules/allocsa, updated.
64533         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
64534         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
64535         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
64536         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
64537         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
64538         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
64539         * modules/xmalloca: Renamed from modules/xallocsa, updated.
64540         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
64541         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
64542         * modules/c-strcasestr (Depends-on): Update.
64543         * lib/c-strcasestr.c: Update.
64544         * modules/c-strstr (Depends-on): Update.
64545         * lib/c-strstr.c: Update.
64546         * modules/canonicalize-lgpl (Depends-on): Update.
64547         * lib/canonicalize-lgpl.c: Update.
64548         * modules/clean-temp (Depends-on): Update.
64549         * lib/clean-temp.c: Update.
64550         * modules/csharpcomp (Depends-on): Update.
64551         * lib/csharpcomp.c: Update.
64552         * modules/csharpexec (Depends-on): Update.
64553         * lib/csharpexec.c: Update.
64554         * modules/javacomp (Depends-on): Update.
64555         * lib/javacomp.c: Update.
64556         * modules/javaexec (Depends-on): Update.
64557         * lib/javaexec.c: Update.
64558         * modules/mbscasestr (Depends-on): Update.
64559         * lib/mbscasestr.c: Update.
64560         * modules/mbsstr (Depends-on): Update.
64561         * lib/mbsstr.c: Update.
64562         * modules/setenv (Depends-on): Update.
64563         * lib/setenv.c: Update.
64564         * modules/strcasestr (Depends-on): Update.
64565         * lib/strcasestr.c: Update.
64566         * modules/striconveha (Depends-on): Update.
64567         * lib/striconveha.c: Update.
64568         * modules/relocatable-prog-wrapper (Files): Update.
64569         * lib/relocwrapper.c: Update.
64570         * build-aux/install-reloc: Update.
64571         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
64572
64573 2007-06-08  Bruno Haible  <bruno@clisp.org>
64574
64575         Port to uClibc.
64576         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
64577         * lib/fpurge.c (fpurge): Likewise.
64578         * lib/freading.c (freading): Likewise.
64579         * lib/fseeko.c (rpl_fseeko): Likewise.
64580         * lib/fseterr.c (fseterr): Likewise.
64581         * lib/fwriting.c (fwriting): Likewise.
64582         * tests/test-fflush.c (main): Avoid a failure on uClibc.
64583
64584 2007-06-08  Bruno Haible  <bruno@clisp.org>
64585
64586         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
64587         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
64588         * modules/gettext (Files): Add m4/intlmacosx.m4.
64589
64590 2007-06-07  Bruno Haible  <bruno@clisp.org>
64591
64592         * modules/localename-tests: New file.
64593         * tests/test-localename.c: New file.
64594
64595         New module 'localename'.
64596         * lib/localename.h: New file.
64597         * lib/localename.c: New file, from GNU gettext.
64598         * m4/localename.m4: New file.
64599         * modules/localename: New file.
64600
64601 2007-06-07  Bruno Haible  <bruno@clisp.org>
64602
64603         Work around the lack of <wchar.h> on some builds of uClibc.
64604         * doc/headers/wchar.texi: Update.
64605         * lib/wchar_.h: Include <wchar.h> only if it exists.
64606         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
64607         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
64608         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
64609         doesn't exist.
64610         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
64611         * modules/mbfile (Depends-on): Add wchar.
64612         * modules/mbiter (Depends-on): Likewise.
64613         * modules/mbuiter (Depends-on): Likewise.
64614         Reported by Simon Josefsson.
64615
64616 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64617
64618         Work around problem reported by Steven M. Schweda in
64619         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
64620         Tru64 5.1B with the Compaq compiler environment installed declares
64621         an 'isblank' function but does not define it in the C library.
64622         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
64623         * lib/regex_internal.h (isblank): Likewise.
64624         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
64625         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64626
64627 2007-06-05  Bruno Haible  <bruno@clisp.org>
64628
64629         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
64630         ia64.
64631         * modules/printf-safe: New file.
64632         * modules/fprintf-posix (Depends-on): Add printf-safe.
64633         * modules/printf-posix (Depends-on): Likewise.
64634         * modules/snprintf-posix (Depends-on): Likewise.
64635         * modules/sprintf-posix (Depends-on): Likewise.
64636         * modules/vasnprintf-posix (Depends-on): Likewise.
64637         * modules/vasprintf-posix (Depends-on): Likewise.
64638         * modules/vfprintf-posix (Depends-on): Likewise.
64639         * modules/vprintf-posix (Depends-on): Likewise.
64640         * modules/vsnprintf-posix (Depends-on): Likewise.
64641         * modules/vsprintf-posix (Depends-on): Likewise.
64642         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
64643         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
64644         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
64645         "no" on i386, x86_64, ia64.
64646         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
64647         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64648         on i386, x86_64, ia64.
64649         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
64650         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64651         on i386, x86_64, ia64.
64652         * tests/test-vasnprintf-posix.c: Include float.h.
64653         (LDBL80_WORDS): New macro.
64654         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64655         on i386, x86_64, ia64.
64656         * tests/test-vasprintf-posix.c: Include float.h.
64657         (LDBL80_WORDS): New macro.
64658         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64659         on i386, x86_64, ia64.
64660         * tests/test-snprintf-posix.c: Include float.h.
64661         * tests/test-sprintf-posix.c: Likewise.
64662         * tests/test-vsnprintf-posix.c: Likewise.
64663         * tests/test-vsprintf-posix.c: Likewise.
64664
64665 2007-06-05  Bruno Haible  <bruno@clisp.org>
64666
64667         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
64668         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
64669         non-IEEE numbers on i386, x86_64, ia64.
64670         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
64671         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
64672         * tests/test-isnanl.h: Include float.h.
64673         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
64674
64675 2007-06-05  Bruno Haible  <bruno@clisp.org>
64676
64677         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
64678         also the %a / %A. Handle the %a / %A code before this extra handling.
64679
64680 2007-06-05  Bruno Haible  <bruno@clisp.org>
64681
64682         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
64683         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
64684
64685 2007-06-05  Bruno Haible  <bruno@clisp.org>
64686
64687         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
64688         typo in variable name.
64689
64690 2007-06-05  Eric Blake  <ebb9@byu.net>
64691
64692         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
64693         Reported by Simon Josefsson.
64694
64695 2007-06-04  Bruno Haible  <bruno@clisp.org>
64696
64697         Avoid test failures on some PowerPC platforms.
64698         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
64699         Define differently for PowerPC.
64700         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
64701         Reported by Gary V. Vaughan <gary@gnu.org>.
64702
64703 2007-06-02  Bruno Haible  <bruno@clisp.org>
64704
64705         Fix test-stdint failure on FreeBSD/ia64.
64706         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
64707         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
64708         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
64709         * doc/headers/stdint.texi: Update.
64710
64711 2007-06-01  Bruno Haible  <bruno@clisp.org>
64712
64713         * tests/test-binary-io.c (main): Pass a third argument to open().
64714         Reported by Gary V. Vaughan <gary@gnu.org>.
64715
64716 2007-06-01  Bruno Haible  <bruno@clisp.org>
64717
64718         * doc/functions/frexpl.texi: Update for mingw.
64719
64720 2007-06-01  Bruno Haible  <bruno@clisp.org>
64721
64722         * tests/test-lseek.c (main): Disable test of errno for invalid third
64723         argument.
64724         * doc/functions/lseek.texi: Update.
64725         Reported by Gary V. Vaughan <gary@gnu.org>.
64726
64727 2007-05-28  Bruno Haible  <bruno@clisp.org>
64728
64729         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
64730
64731 2007-05-31  Eric Blake  <ebb9@byu.net>
64732
64733         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
64734         cross compiling.
64735
64736 2007-05-30  Eric Blake  <ebb9@byu.net>
64737         and Bruno Haible  <bruno@clisp.org>
64738
64739         Work around mingw test failures exposed by m4-1.4.9b.
64740         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
64741         * tests/test-unistd.c: Disable uid_t and git_t tests for the
64742         moment.
64743
64744 2007-05-30  Bruno Haible  <bruno@clisp.org>
64745
64746         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
64747         assuming that they are closed. Needed on HP-UX 11.
64748
64749 2007-05-29  Bruno Haible  <bruno@clisp.org>
64750
64751         Fix a problem with #include_next.
64752         * lib/dirent_.h: Split the double-inclusion guard.
64753         * lib/fcntl_.h: Likewise.
64754         * lib/float_.h: Likewise.
64755         * lib/iconv_.h: Likewise.
64756         * lib/inttypes_.h: Likewise.
64757         * lib/locale_.h: Likewise.
64758         * lib/math_.h: Likewise.
64759         * lib/netinet_in_.h: Likewise.
64760         * lib/search_.h: Likewise.
64761         * lib/signal_.h: Likewise.
64762         * lib/stdint_.h: Likewise.
64763         * lib/stdio_.h: Likewise.
64764         * lib/stdlib_.h: Likewise.
64765         * lib/string_.h: Likewise.
64766         * lib/sys_select_.h: Likewise.
64767         * lib/sys_socket_.h: Likewise.
64768         * lib/sys_stat_.h: Likewise.
64769         * lib/sys_time_.h: Likewise.
64770         * lib/sysexits_.h: Likewise.
64771         * lib/time_.h: Likewise.
64772         * lib/unistd_.h: Likewise.
64773         * lib/wchar_.h: Likewise.
64774         * lib/wctype_.h: Likewise.
64775
64776 2007-05-29  Bruno Haible  <bruno@clisp.org>
64777
64778         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
64779         for the moment.
64780
64781 2007-05-29  Bruno Haible  <bruno@clisp.org>
64782
64783         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
64784         invocation.
64785         Reported by Eric Blake.
64786
64787 2007-05-29  Bruno Haible  <bruno@clisp.org>
64788
64789         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
64790         compiling case.
64791
64792 2007-05-29  Eric Blake  <ebb9@byu.net>
64793             Bruno Haible  <bruno@clisp.org>
64794
64795         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
64796         cross compiles.
64797
64798 2007-05-28  Eric Blake  <ebb9@byu.net>
64799
64800         * modules/closein-tests (test_closein_LDADD): Support test on
64801         cygwin with libtool.
64802
64803 2007-05-28  Bruno Haible  <bruno@clisp.org>
64804
64805         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
64806         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64807         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64808         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64809         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64810         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64811         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64812         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64813         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64814
64815 2007-05-28  Eric Blake  <ebb9@byu.net>
64816
64817         Unconditionally include <config.h> in unit tests.
64818         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
64819         * tests/test-allocsa.c, tests/test-arcfour.c,
64820         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
64821         tests/test-array_list.c, tests/test-array_oset.c,
64822         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
64823         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
64824         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
64825         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
64826         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
64827         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
64828         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
64829         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
64830         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
64831         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
64832         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
64833         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
64834         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
64835         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
64836         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
64837         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
64838         test-md5.c, test-memmem.c, test-printf-posix.c,
64839         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
64840         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
64841         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
64842         test-strcasestr.c, test-striconv.c, test-striconveh.c,
64843         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
64844         test-vasnprintf-posix2.c, test-vasnprintf.c,
64845         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
64846         test-vfprintf-posix.c, test-vprintf-posix.c,
64847         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
64848         test-xvasprintf.c: Likewise.
64849
64850 2007-05-28  Bruno Haible  <bruno@clisp.org>
64851
64852         * gnulib-tool (func_import): Remember the --with-tests command-line
64853         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
64854         Reported by Eric Blake.
64855
64856 2007-05-28  Bruno Haible  <bruno@clisp.org>
64857
64858         * modules/ftell-tests: New file.
64859         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
64860         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
64861
64862         * lib/ftell.c: New file.
64863         * modules/ftell: New file.
64864         * m4/ftell.m4: New file.
64865         * doc/functions/ftell.texi: Update.
64866         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
64867         REPLACE_FTELL.
64868         * lib/stdio_.h (rpl_ftell): New declaration.
64869         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
64870         REPLACE_FTELL.
64871
64872 2007-05-28  Eric Blake  <ebb9@byu.net>
64873
64874         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
64875
64876 2007-05-28  Bruno Haible  <bruno@clisp.org>
64877
64878         * modules/fseek-tests: New file.
64879         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
64880         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
64881
64882         * lib/fseek.c: New file.
64883         * modules/fseek: New file.
64884         * m4/fseek.m4: New file.
64885         * doc/functions/fseek.texi: Update.
64886         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
64887         REPLACE_FSEEK.
64888         * lib/stdio_.h (rpl_fseek): New declaration.
64889         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
64890         REPLACE_FSEEK.
64891
64892 2007-05-28  Bruno Haible  <bruno@clisp.org>
64893
64894         * lib/stdio_.h (fflush): More comments.
64895
64896 2007-05-28  Bruno Haible  <bruno@clisp.org>
64897
64898         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
64899         runtime test.
64900
64901 2007-05-28  Eric Blake  <ebb9@byu.net>
64902
64903         Improve lseek module.
64904         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
64905         * lib/unistd_.h (lseek): Scale back link warning message.
64906         * tests/test-lseek.c: Beef up test.
64907         * tests/test-lseek.sh: Exercise more facets of lseek.
64908         Reported by Bruno Haible.
64909
64910 2007-05-28  Bruno Haible  <bruno@clisp.org>
64911
64912         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
64913         to define.
64914
64915 2007-05-27  Bruno Haible  <bruno@clisp.org>
64916
64917         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
64918
64919 2007-05-27  Bruno Haible  <bruno@clisp.org>
64920
64921         * modules/openmp: New file.
64922         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
64923         Noah Misch.
64924
64925 2007-05-26  Bruno Haible  <bruno@clisp.org>
64926
64927         * modules/chdir-long (Depends-on): Add fchdir.
64928         * modules/chdir-safer (Depends-on): Likewise.
64929         * modules/fts (Depends-on): Likewise.
64930         * modules/fts-lgpl (Depends-on): Likewise.
64931         * modules/openat (Depends-on): Likewise.
64932         * modules/savewd (Depends-on): Likewise.
64933
64934 2007-05-24  Eric Blake  <ebb9@byu.net>
64935
64936         Fix lseek on mingw.
64937         * modules/lseek: New module.
64938         * m4/lseek.m4: New file.
64939         * lib/lseek.c: New file.
64940         * modules/lseek-tests: New file.
64941         * tests/test-lseek.c: New file.
64942         * tests/test-lseek.sh: New file.
64943         * MODULES.html.sh: Document lseek module.
64944         * modules/fflush (Depends-on): Add lseek, fseeko.
64945         * modules/fseeko (Depends-on): Likewise.
64946         * modules/ftello (Depends-on): Likewise.
64947         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
64948         broken.
64949         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
64950         broken.
64951         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
64952         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
64953         * lib/ftello.c (rpl_ftello): Likewise.
64954         * tests/test-fseeko.c (main): Test this.
64955         * tests/test-fseeko.sh: Likewise.
64956         * tests/test-ftello.c (main): Likewise.
64957         * tests/test-ftello.sh: Likewise.
64958         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
64959         implies replacing fseek.
64960         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
64961         HAVE_FTELLO.
64962         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
64963         * modules/unistd (Makefile.am): Likewise.
64964         * lib/unistd_.h (lseek): Declare a replacement.
64965         * doc/functions/lseek.texi (lseek): Document this fix.
64966         * doc/functions/fseek.texi (fseek): Likewise.
64967         * doc/functions/ftell.texi (ftell): Likewise.
64968
64969 2007-05-24  Bruno Haible  <bruno@clisp.org>
64970
64971         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
64972         in the printed representation of a NaN.
64973         * tests/test-vasprintf-posix.c (test_function): Likewise.
64974         * tests/test-snprintf-posix.h (test_function): Likewise.
64975         * tests/test-sprintf-posix.h (test_function): Likewise.
64976         Reported by Eric Blake.
64977
64978 2007-05-23  Eric Blake  <ebb9@byu.net>
64979
64980         Fix fseeko/ftello on cygwin 1.5.24.
64981         * doc/functions/fseeko.texi (fseeko): Document the fix.
64982         * doc/functions/ftello.texi (ftello): Document the fix.
64983         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
64984         * doc/functions/stdout.text (stdout): New file.
64985         * doc/functions/stderr.text (stderr): New file.
64986         * doc/gnulib.texi (Function Substitutes): Use new files.
64987         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
64988         prior to 1.7.0.
64989         * tests/test-ftello.c (main): Likewise for ftello.
64990         * tests/test-fseeko.sh: New file.
64991         * tests/test-ftello.sh: New file.
64992         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
64993         with seekable stdin.
64994         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
64995         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
64996         (gl_REPLACE_FSEEKO): New macro.
64997         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
64998         * modules/fseeko (Files): Distribute fseeko.c.
64999         * modules/ftello (Files): Distribute ftello.c.
65000         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
65001         mode.
65002         * lib/ftello.c (rpl_ftello): New file.
65003         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
65004         fseeko, ftello.
65005         (gl_STDIN_LARGE_OFFSET): New macro.
65006         * modules/stdio (Makefile.am): Perform the replacement.
65007         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
65008
65009 2007-05-23  Bruno Haible  <bruno@clisp.org>
65010
65011         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
65012         GNULIB_POSIXCHECK is defined.
65013
65014 2007-05-21  Bruno Haible  <bruno@clisp.org>
65015
65016         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
65017         Check also the output for NaN arguments. When cross-compiling, guess
65018         no on IRIX.
65019         * lib/vasnprintf.c: Update comments.
65020         * tests/test-vasnprintf-posix.c (strisnan): New function.
65021         (test_function): Use it.
65022         * tests/test-vasprintf-posix.c (strisnan): New function.
65023         (test_function): Use it.
65024         * tests/test-snprintf-posix.h (strisnan): New function.
65025         (test_function): Use it.
65026         * tests/test-sprintf-posix.h (strisnan): New function.
65027         (test_function): Use it.
65028         Reported by Eric Blake.
65029
65030 2007-05-20  Bruno Haible  <bruno@clisp.org>
65031
65032         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
65033         numbers that fails on BeOS.
65034         * doc/functions/frexpl.texi: Update.
65035
65036 2007-05-20  Jim Meyering  <jim@meyering.net>
65037
65038         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
65039         forced upon us by glibc-2.6.
65040
65041 2007-05-20  Bruno Haible  <bruno@clisp.org>
65042
65043         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
65044         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
65045         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
65046         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
65047         NEED_PRINTF_INFINITE.
65048         (is_infinitel): New function.
65049         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
65050         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
65051         gl_PREREQ_VASNPRINTF_INFINITE.
65052         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
65053         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65054         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
65055         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
65056         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
65057         gl_PREREQ_VASNPRINTF_INFINITE.
65058         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65059         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65060         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65061         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65062         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65063         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65064         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65065         * doc/functions/fprintf.texi: Update.
65066         * doc/functions/printf.texi: Update.
65067         * doc/functions/snprintf.texi: Update.
65068         * doc/functions/sprintf.texi: Update.
65069         * doc/functions/vfprintf.texi: Update.
65070         * doc/functions/vprintf.texi: Update.
65071         * doc/functions/vsnprintf.texi: Update.
65072         * doc/functions/vsprintf.texi: Update.
65073
65074 2007-05-20  Bruno Haible  <bruno@clisp.org>
65075
65076         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
65077         was not found in libc.
65078         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65079
65080 2007-05-20  Bruno Haible  <bruno@clisp.org>
65081
65082         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65083         printed as "-nan" instead of "nan".
65084         * tests/test-vasprintf-posix.c (test_function): Likewise.
65085         * tests/test-snprintf-posix.h (test_function): Likewise.
65086         * tests/test-sprintf-posix.h (test_function): Likewise.
65087         Needed for HP-UX 11.
65088
65089 2007-05-20  Jim Meyering  <jim@meyering.net>
65090
65091         Fix buggy test for the fchownat-deref bug.
65092         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
65093         symlink required for the run-test.  Without it, this test would
65094         always declare that fchownat doesn't work, and client code would
65095         unnecessarily use the replacement function with fixed libc.
65096         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
65097         Reported by Greg Schafer.
65098
65099 2007-05-19  Bruno Haible  <bruno@clisp.org>
65100
65101         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
65102         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
65103         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
65104         Needed for IRIX 6.5 and Solaris 2.5.1.
65105
65106 2007-05-19  Bruno Haible  <bruno@clisp.org>
65107
65108         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
65109         (test_function): Skip tests involving -0.0 on platforms where
65110         -0.0 = 0.0.
65111         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
65112         (test_function): Skip tests involving -0.0 on platforms where
65113         -0.0 = 0.0.
65114         * tests/test-snprintf-posix.h (have_minus_zero): New function.
65115         (test_function): Skip tests involving -0.0 on platforms where
65116         -0.0 = 0.0.
65117         * tests/test-sprintf-posix.h (have_minus_zero): New function.
65118         (test_function): Skip tests involving -0.0 on platforms where
65119         -0.0 = 0.0.
65120         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
65121         tests.
65122         * tests/test-printf-posix.h (test_function): Likewise.
65123         * tests/test-printf-posix.output: Remove all -0.0 related results.
65124         Needed for IRIX 6.5.
65125
65126 2007-05-19  Bruno Haible  <bruno@clisp.org>
65127
65128         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65129         printed as "nan0x7fffffff" instead of "nan".
65130         * tests/test-vasprintf-posix.c (test_function): Likewise.
65131         * tests/test-snprintf-posix.h (test_function): Likewise.
65132         * tests/test-sprintf-posix.h (test_function): Likewise.
65133         * tests/test-fprintf-posix.h (NaN): Remove macro.
65134         (test_function): Remove all NaN related tests.
65135         * tests/test-printf-posix.h (NaN): Remove macro.
65136         (test_function): Remove all NaN related tests.
65137         * tests/test-printf-posix.output: Remove all NaN related results.
65138         Needed for IRIX 6.5.
65139
65140 2007-05-19  Bruno Haible  <bruno@clisp.org>
65141
65142         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
65143         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
65144
65145 2007-05-19  Bruno Haible  <bruno@clisp.org>
65146
65147         * lib/float_.h: New file.
65148         * m4/float_h.m4: New file.
65149         * modules/float: New file.
65150         * modules/isnanl (Dependencies): Add float.
65151         * modules/isnanl-nolibm (Dependencies): Likewise.
65152         * modules/mathl (Dependencies): Likewise.
65153         * modules/printf-frexpl (Dependencies): Likewise.
65154         * modules/signbit (Dependencies): Likewise.
65155         * modules/vasnprintf (Dependencies): Likewise.
65156         * doc/headers/float.texi: Update.
65157
65158 2007-05-19  Jim Meyering  <jim@meyering.net>
65159
65160         * lib/utimens.c (gl_futimens): Rename from futimens,
65161         now that glibc-2.6 declares futimens.
65162         * lib/utimens.h: Likewise.
65163
65164 2007-05-19  Bruno Haible  <bruno@clisp.org>
65165
65166         Avoid test failures on mingw.
65167         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
65168         * tests/test-printf-posix.sh: Likewise.
65169         * tests/test-vfprintf-posix.sh: Likewise.
65170         * tests/test-vprintf-posix.sh: Likewise.
65171
65172 2007-05-19  Bruno Haible  <bruno@clisp.org>
65173
65174         Fix *printf result for NaN, Inf, -0.0 on mingw.
65175         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
65176         * lib/vasnprintf.c: Include math.h and isnan.h.
65177         (is_infinite_or_zero): New function.
65178         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
65179         values in the %f, %F, %e, %E, %g, %G directives.
65180         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
65181         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65182         gl_PRINTF_INFINITE and test its result. Invoke
65183         gl_PREREQ_VASNPRINTF_INFINITE.
65184         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65185         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65186         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65187         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65188         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65189         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65190         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65191         * doc/functions/fprintf.texi: Update.
65192         * doc/functions/printf.texi: Update.
65193         * doc/functions/snprintf.texi: Update.
65194         * doc/functions/sprintf.texi: Update.
65195         * doc/functions/vfprintf.texi: Update.
65196         * doc/functions/vprintf.texi: Update.
65197         * doc/functions/vsnprintf.texi: Update.
65198         * doc/functions/vsprintf.texi: Update.
65199
65200 2007-05-19  Bruno Haible  <bruno@clisp.org>
65201
65202         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
65203         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
65204         Instead of multiplying with 10^k, set extra_zeroes to k.
65205         (scale10_round_long_double): Remove function.
65206
65207 2007-05-18  Bruno Haible  <bruno@clisp.org>
65208
65209         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
65210         introduced on 2007-05-06.
65211
65212 2007-05-18  Bruno Haible  <bruno@clisp.org>
65213
65214         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
65215         %g directives.
65216         * tests/test-vasprintf-posix.c (test_function): Likewise.
65217         * tests/test-snprintf-posix.h (test_function): Likewise.
65218         * tests/test-sprintf-posix.h (test_function): Likewise.
65219
65220 2007-05-18  Bruno Haible  <bruno@clisp.org>
65221
65222         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
65223         (strmatch): New function.
65224         (test_function): Test the %f directive on numbers of various exponents.
65225         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
65226         (strmatch): New function.
65227         (test_function): Test the %f directive on numbers of various exponents.
65228         * tests/test-snprintf-posix.h (strmatch): New function.
65229         (test_function): Test the %f directive on numbers of various exponents.
65230         * tests/test-sprintf-posix.h (strmatch): New function.
65231         (test_function): Test the %f directive on numbers of various exponents.
65232         * tests/test-snprintf-posix.c (SIZEOF): New macro.
65233         * tests/test-sprintf-posix.c (SIZEOF): New macro.
65234         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
65235         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
65236
65237 2007-05-18  Bruno Haible  <bruno@clisp.org>
65238
65239         Add support for 'long double' number output.
65240         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
65241         * lib/vasnprintf.c: Include math.h and float+.h.
65242         (mp_limb_t): New type.
65243         (GMP_LIMB_BITS): New macro.
65244         (mp_twolimb_t): New type.
65245         (GMP_TWOLIMB_BITS): New macro.
65246         (mpn_t): New type.
65247         (multiply, divide, convert_to_decimal, decode_long_double,
65248         scale10_round_long_double, scale10_round_decimal_long_double,
65249         floorlog10l): New functions.
65250         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
65251         for the %f, %F, %e, %E, %g, %G directives.
65252         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
65253         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65254         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
65255         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
65256         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65257         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65258         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65259         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65260         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65261         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65262         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65263         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
65264         * modules/snprintf-posix (Depends-on): Likewise.
65265         * modules/sprintf-posix (Depends-on): Likewise.
65266         * modules/vasnprintf-posix (Depends-on): Likewise.
65267         * modules/vasprintf-posix (Depends-on): Likewise.
65268         * modules/vfprintf-posix (Depends-on): Likewise.
65269         * modules/vsnprintf-posix (Depends-on): Likewise.
65270         * modules/vsprintf-posix (Depends-on): Likewise.
65271         * modules/vasnprintf (Files): Add lib/float+.h.
65272         * doc/functions/fprintf.texi: Update.
65273         * doc/functions/printf.texi: Update.
65274         * doc/functions/snprintf.texi: Update.
65275         * doc/functions/sprintf.texi: Update.
65276         * doc/functions/vfprintf.texi: Update.
65277         * doc/functions/vprintf.texi: Update.
65278         * doc/functions/vsnprintf.texi: Update.
65279         * doc/functions/vsprintf.texi: Update.
65280
65281 2007-05-18  Bruno Haible  <bruno@clisp.org>
65282
65283         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
65284
65285 2007-05-18  Bruno Haible  <bruno@clisp.org>
65286
65287         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
65288         for printing 64-bit integers. Needed for mingw.
65289
65290 2007-05-18  Bruno Haible  <bruno@clisp.org>
65291
65292         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65293         gl_FUNC_FREXPL_WORKS.
65294         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
65295
65296 2007-05-18  Bruno Haible  <bruno@clisp.org>
65297
65298         * modules/frexpl-nolibm-tests: New file.
65299
65300         * modules/frexpl-nolibm: New file.
65301         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
65302
65303 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65304
65305         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
65306         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65307         GCC 4.2, which otherwise issues a lot of warnings.
65308         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
65309         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
65310         Likewise.
65311         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
65312         * modules/iconv_open (iconv.h): Likewise.
65313         * modules/locale (locale.h): Likewise.
65314         * modules/netinet_in (netinet/in.h): Likewise.
65315         * modules/sys_select (sys_select.h): Likewise.
65316         * modules/sys_socket (sys/socket.h): Likewise.
65317         * modules/sys_stat (sys/stat.h): Likewise.
65318         * modules/sysexits (sysexits.h): Likewise.
65319         * modules/unistd (unistd.h): Likewise.
65320
65321 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65322
65323         * modules/closein-tests (Makefile.am): Distribute
65324         `test-closein.sh'.
65325
65326 2007-05-17  Bruno Haible  <bruno@clisp.org>
65327
65328         * tests/test-printf-posix.output: Renamed from
65329         tests/test-fprintf-posix.out.
65330         * modules/fprintf-posix-tests: Update.
65331         * modules/printf-posix-tests: Update.
65332         * modules/vfprintf-posix-tests: Update.
65333         * modules/vprintf-posix-tests: Update.
65334         * tests/test-fprintf-posix.sh: Update.
65335         * tests/test-printf-posix.sh: Update.
65336         * tests/test-vfprintf-posix.sh: Update.
65337         * tests/test-vprintf-posix.sh: Update.
65338         Reported by Ralf Wildenhues.
65339
65340 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65341
65342         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
65343         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65344         GCC 4.2, which otherwise issues a lot of warnings.
65345         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
65346         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
65347         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
65348         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
65349         it should no longer be needed.
65350         * lib/string_.h: Likewise.
65351         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
65352         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
65353         * modules/inttypes (inttypes.h): Likewise.
65354         * modules/math (math.h): Likewise.
65355         * modules/search (search.h): Likewise.
65356         * modules/signal (signal.h): Likewise.
65357         * modules/stdint (stdint.h): Likewise.
65358         * modules/stdio (stdio.h): Likewise.
65359         * modules/stdlib (stdlib.h): Likewise.
65360         * modules/string (string.h): Likewise.
65361         * modules/sys_time (sys/time.h): Likewise.
65362         * modules/time (time.h): Likewise.
65363         * modules/wchar (wchar.h): Likewise.
65364         * modules/wctype (wtype.h): Likewise.
65365
65366 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
65367
65368         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
65369
65370 2007-05-13  Bruno Haible  <bruno@clisp.org>
65371
65372         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
65373         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65374         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
65375         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65376         (gl_PREREQ_STRTOK_R): Don't require it here.
65377
65378 2007-05-13  Bruno Haible  <bruno@clisp.org>
65379
65380         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
65381         when used in C++ mode.
65382
65383 2007-05-12  Bruno Haible  <bruno@clisp.org>
65384
65385         * lib/linebuffer.h: Tweak doc.
65386         * lib/linebuffer.c: Likewise.
65387
65388 2007-05-12  James Youngman  <jay@gnu.org>
65389
65390         * lib/linebuffer.c (readlinebuffer_delim): New function,
65391         like readlinebuffer, but use a caller-specified delimiter.
65392         (readlinebuffer): Just call readlinebuffer_delim with '\n'
65393         as the delimiter.
65394         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
65395
65396 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65397
65398         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
65399         * modules/openat (Files): Remove openat-die.c.
65400         (Depends-on): Add openat-die.
65401         * modules/openat-die: New module.
65402
65403 2007-05-06  Bruno Haible  <bruno@clisp.org>
65404
65405         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
65406         Update with info about Cygwin.
65407         * doc/functions/fprintf.texi: Update.
65408         * doc/functions/printf.texi: Update.
65409         * doc/functions/snprintf.texi: Update.
65410         * doc/functions/sprintf.texi: Update.
65411         * doc/functions/vfprintf.texi: Update.
65412         * doc/functions/vprintf.texi: Update.
65413         * doc/functions/vsnprintf.texi: Update.
65414         * doc/functions/vsprintf.texi: Update.
65415         Reported by Eric Blake.
65416
65417 2007-05-06  Bruno Haible  <bruno@clisp.org>
65418
65419         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
65420         padding ourselves for the floating-point directives.
65421         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
65422         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
65423         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65424         gl_PRINTF_FLAG_ZERO and test its result. Invoke
65425         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
65426         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65427         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65428         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65429         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65430         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65431         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65432         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65433         * tests/test-snprintf-posix.h (test_function): Also check the width
65434         and some flags in the %f directive.
65435         * tests/test-sprintf-posix.h (test_function): Likewise.
65436         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65437         * tests/test-vasprintf-posix.c (test_function): Likewise.
65438         * doc/functions/fprintf.texi: Update.
65439         * doc/functions/printf.texi: Update.
65440         * doc/functions/snprintf.texi: Update.
65441         * doc/functions/sprintf.texi: Update.
65442         * doc/functions/vfprintf.texi: Update.
65443         * doc/functions/vprintf.texi: Update.
65444         * doc/functions/vsnprintf.texi: Update.
65445         * doc/functions/vsprintf.texi: Update.
65446
65447 2007-05-06  Bruno Haible  <bruno@clisp.org>
65448
65449         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
65450         pass the ' flag character to sprintf or snprintf.
65451         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
65452         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
65453         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65454         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
65455         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
65456         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65457         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65458         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65459         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65460         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65461         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65462         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65463         * tests/test-snprintf-posix.h (test_function): Also check the grouping
65464         flag.
65465         * tests/test-sprintf-posix.h (test_function): Likewise.
65466         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65467         * tests/test-vasprintf-posix.c (test_function): Likewise.
65468         * doc/functions/fprintf.texi: Update.
65469         * doc/functions/printf.texi: Update.
65470         * doc/functions/snprintf.texi: Update.
65471         * doc/functions/sprintf.texi: Update.
65472         * doc/functions/vfprintf.texi: Update.
65473         * doc/functions/vprintf.texi: Update.
65474         * doc/functions/vsnprintf.texi: Update.
65475         * doc/functions/vsprintf.texi: Update.
65476
65477 2007-05-01  Bruno Haible  <bruno@clisp.org>
65478
65479         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
65480
65481 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
65482
65483         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
65484         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
65485
65486 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65487
65488         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
65489         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
65490         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
65491
65492 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
65493
65494         * lib/argp-help.c (struct hol_entry): New member `ord'.
65495         (HOL_ENTRY_PTRCMP): Use ord for comparison
65496         (hol_sort): Initialize ord.
65497
65498 2007-05-01  Bruno Haible  <bruno@clisp.org>
65499
65500         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
65501         Reported by Eric Blake.
65502         * doc/gnulib.texi (Function Substitutes): Update.
65503
65504 2007-05-01  Bruno Haible  <bruno@clisp.org>
65505
65506         * doc/functions.texi: Remove file, now redundant through
65507         doc/functions/*.texi.
65508
65509 2007-05-01  Bruno Haible  <bruno@clisp.org>
65510
65511         * modules/argp (Depends-on): Add sleep.
65512
65513 2007-05-01  Bruno Haible  <bruno@clisp.org>
65514
65515         * modules/sleep-tests: New file.
65516         * tests/test-sleep.c: New file.
65517
65518         * modules/sleep: New file.
65519         * lib/sleep.c: New file.
65520         * m4/sleep.m4: New file.
65521         * lib/unistd_.h (sleep): New declaration.
65522         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
65523         HAVE_SLEEP.
65524         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
65525         * doc/functions/sleep.texi: Document the sleep module.
65526
65527 2007-05-01  Bruno Haible  <bruno@clisp.org>
65528
65529         * lib/sigprocmask.h: Remove file.
65530         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
65531         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
65532         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
65533         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
65534         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
65535         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
65536         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
65537         HAVE_SIGSET_T as a shell variable.
65538         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
65539         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
65540         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
65541         (Depends-on): Add signal. Remove verify.
65542         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
65543         (Include): Mention <signal.h> instead of sigprocmask.h.
65544         * NEWS: Mention the change.
65545         * lib/fatal-signal.c: Don't include sigprocmask.h.
65546
65547 2007-05-01  Bruno Haible  <bruno@clisp.org>
65548
65549         * modules/signal: New file.
65550         * lib/signal_.h: New file.
65551         * m4/signal_h.m4: New file.
65552
65553 2007-05-01  Bruno Haible  <bruno@clisp.org>
65554
65555         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
65556         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
65557         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
65558         HAVE_WCTYPE_CTMP_BUG into wctype.h.
65559
65560 2007-05-01  Bruno Haible  <bruno@clisp.org>
65561
65562         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
65563         configure time.
65564         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
65565         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
65566         * modules/sys_stat (Makefile.am): Substitute their values into
65567         sys/stat.h.
65568
65569 2007-05-01  Bruno Haible  <bruno@clisp.org>
65570
65571         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
65572         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
65573         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
65574
65575 2007-05-01  Bruno Haible  <bruno@clisp.org>
65576
65577         * doc/header/assert.texi: Undo last change: don't mention the gnulib
65578         'assert' module here.
65579
65580 2007-05-01  Bruno Haible  <bruno@clisp.org>
65581
65582         * doc/functions/*.texi: New files.
65583         * doc/functions/google-ranking.txt: New file.
65584         * doc/gnulib.texi (Function Substitutes): New chapter.
65585         (ctime, inet_ntoa): Remove sections.
65586         * doc/ctime.texi: Remove file.
65587         * doc/inet_ntoa.texi: Remove file.
65588         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
65589         dependencies.
65590         (%.info): New rule, specifying a --reference-limit.
65591
65592 2007-05-01  Bruno Haible  <bruno@clisp.org>
65593
65594         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
65595
65596 2007-05-01  Bruno Haible  <bruno@clisp.org>
65597
65598         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
65599         the portability of 'mkdir' to mingw systems.
65600
65601 2007-05-01  Bruno Haible  <bruno@clisp.org>
65602
65603         * doc/headers/google-ranking.txt: New file.
65604
65605 2007-04-30  Eric Blake  <ebb9@byu.net>
65606
65607         Prefer fseeko to fseek.
65608         * modules/getpass (Depends-on): Add fseeko.
65609         * lib/getpass.c (getpass): Use fseeko, not fseek.
65610
65611 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
65612
65613         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
65614         assumes the sorting is stable, while most qsort implementations
65615         are not.  Use argument addresses to ensure they never compare as
65616         equal.
65617
65618         * tests/test-argp-2.sh (usage-indent test): Fix output
65619         (func_compare): Restore diff options
65620         * tests/test-argp.c: Restore #include "progname.h"
65621
65622 2007-04-29  Bruno Haible  <bruno@clisp.org>
65623
65624         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
65625         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65626         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
65627         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65628         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
65629         (configure.ac): Define CHECK_SNPRINTF_POSIX.
65630         (TESTS, check_PROGRAMS): Add test-snprintf.
65631         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
65632         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
65633         (TESTS, check_PROGRAMS): Add test-vsnprintf.
65634         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
65635         assertions that fail on HP-UX, OSF/1, or IRIX.
65636         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
65637
65638 2007-04-29  Bruno Haible  <bruno@clisp.org>
65639
65640         * MODULES.html.sh (posix_functions): Remove 'contents'.
65641
65642 2007-04-29  Karl Berry  <karl@gnu.org>
65643
65644         * config/srclist.txt (gendocs_template_min): new entry.
65645
65646 2007-04-29  Bruno Haible  <bruno@clisp.org>
65647
65648         Work around fpurge bug on BSD systems.
65649         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
65650         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
65651         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
65652         fpurge to rpl_fpurge if the system already has this function.
65653         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
65654         the case where the system already has this function. Correct invariants
65655         on BSD systems.
65656         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
65657         BSD systems.
65658
65659 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
65660
65661         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
65662         proposed by Sven Verdoolaege.
65663
65664         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
65665         options.
65666         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
65667         (usage and help tests): Update
65668
65669 2007-04-29  Bruno Haible  <bruno@clisp.org>
65670
65671         * tests/test-fflush.c (main): Use a file of size 17, not 10.
65672         Print more information in case of failure. Disable a test on BeOS.
65673
65674 2007-04-29  Bruno Haible  <bruno@clisp.org>
65675
65676         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
65677         This helps debugging on systems on which no gdb is available.
65678
65679 2007-04-29  Bruno Haible  <bruno@clisp.org>
65680
65681         * lib/freading.h: Improve comments.
65682         * lib/fwriting.h: Likewise.
65683         * tests/test-freading.c (main): Don't check freading immediately after
65684         repositioning. Needed for glibc.
65685
65686 2007-04-29  Bruno Haible  <bruno@clisp.org>
65687
65688         * lib/freading.c (freading): Trivial simplification.
65689
65690 2007-04-28  Bruno Haible  <bruno@clisp.org>
65691
65692         * tests/test-fwriting.c (main): Also test the interaction between
65693         fflush and fwriting.
65694         * modules/fwriting-tests (Depends-on): Add fflush.
65695
65696         * tests/test-freading.c (main): Also test the interaction between
65697         fflush and freading.
65698         * modules/freading-tests (Depends-on): Add fflush.
65699
65700 2007-04-28  Bruno Haible  <bruno@clisp.org>
65701
65702         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
65703         fseeko and ftello.
65704         Suggested by Eric Blake.
65705
65706 2007-04-28  Jim Meyering  <jim@meyering.net>
65707
65708         Avoid false-negative in gl_STDINT_H's C99 conformance test.
65709         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
65710         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
65711
65712 2007-04-27  Eric Blake  <ebb9@byu.net>
65713
65714         * doc/headers/assert.texi (assert.h): Document assert module use.
65715
65716 2007-04-27  Bruno Haible  <bruno@clisp.org>
65717
65718         * doc/headers/*.texi: New files.
65719         * doc/gnulib.texi (Header File Substitutes): New chapter.
65720         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
65721         dependencies.
65722         (standards.info ,standards.html, standards.dvi): Update dependencies.
65723         (mostlyclean, clean): New targets.
65724
65725 2007-04-27  Bruno Haible  <bruno@clisp.org>
65726
65727         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
65728         * modules/sysexits (Files, Makefile.am): Update.
65729
65730         * lib/sys_socket_.h: Renamed from lib/socket_.h.
65731         * modules/sys_socket (Files, Makefile.am): Update.
65732
65733         * lib/sys_stat_.h: Renamed from lib/stat_.h.
65734         * modules/sys_stat (Files, Makefile.am): Update.
65735
65736 2007-04-27  Eric Blake  <ebb9@byu.net>
65737
65738         * lib/freading.h: Improve comments.
65739         * lib/fwriting.h: Likewise.
65740         * lib/fflush.c: Likewise.
65741
65742         Fix closein for mingw.
65743         * modules/closein-tests: Add tests for closein.
65744         * tests/test-closein.c: New file.
65745         * tests/test-closein.sh: Likewise.
65746         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
65747         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
65748
65749 2007-04-27  Bruno Haible  <bruno@clisp.org>
65750
65751         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
65752         version is < 6.
65753         * lib/math_.h [__DECC]: Likewise.
65754         * lib/stdio_.h [__DECC]: Likewise.
65755         * lib/stdlib_.h [__DECC]: Likewise.
65756         * lib/string_.h [__DECC]: Likewise.
65757         * lib/time_.h [__DECC]: Likewise.
65758         * lib/wchar_.h [__DECC]: Likewise.
65759         * lib/wctype_.h [__DECC]: Likewise.
65760
65761 2007-04-27  Bruno Haible  <bruno@clisp.org>
65762
65763         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
65764
65765 2007-04-27  Bruno Haible  <bruno@clisp.org>
65766
65767         * lib/fflush.c: Add comments.
65768         * modules/fpurge-tests (Depends-on): Add fflush.
65769         * modules/freadable-tests (Depends-on): Likewise.
65770         * modules/fwritable-tests (Depends-on): Likewise.
65771
65772 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
65773
65774         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
65775         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
65776         Report by Bruno Haible <bruno@clisp.org>.
65777
65778 2007-04-26  Eric Blake  <ebb9@byu.net>
65779
65780         Fix fflush on mingw.
65781         * modules/fflush (Depends-on): Add freading.
65782         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
65783         but unread data.
65784
65785 2007-04-26  Eric Blake  <ebb9@byu.net>
65786         and Bruno Haible  <bruno@clisp.org>
65787
65788         Implement freading and fwriting.
65789         * lib/freading.c: New file.
65790         * lib/freading.h: Likewise.
65791         * m4/freading.m4: Likewise.
65792         * modules/freading: Likewise.
65793         * modules/freading-tests: Likewise.
65794         * tests/test-freading.c: Likewise.
65795         * lib/fwriting.c: New file.
65796         * lib/fwriting.h: Likewise.
65797         * m4/fwriting.m4: Likewise.
65798         * modules/fwriting: Likewise.
65799         * modules/fwriting-tests: Likewise.
65800         * tests/test-fwriting.c: Likewise.
65801         * MODULES.html.sh (File stream based Input/Output): Mention them.
65802
65803 2007-04-26  Bruno Haible  <bruno@clisp.org>
65804
65805         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
65806         'long' when we assume it.
65807         Suggested by Eric Blake.
65808
65809 2007-04-26  Bruno Haible  <bruno@clisp.org>
65810
65811         Ensure fseeko, ftello are declared on glibc systems.
65812         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
65813         * modules/fseeko (configure.ac-early): Likewise.
65814         * modules/ftello (configure.ac-early): Likewise.
65815         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
65816         AC_FUNC_FSEEKO for this.
65817         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
65818         (gl_CHECK_FSEEKO): Remove macro.
65819
65820 2007-04-26  Bruno Haible  <bruno@clisp.org>
65821
65822         * tests/test-fflush.c (main): Also check the ftell result after
65823         fflush and fseek/fseeko.
65824         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
65825         file descriptor position cache in the stream.
65826         * lib/fseeko.c (rpl_fseeko): Likewise.
65827
65828 2007-04-26  Bruno Haible  <bruno@clisp.org>
65829
65830         * modules/fflush-tests (Depends-on): Add fseeko.
65831
65832 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
65833             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65834
65835         * lib/argz_.h: ensure error_t definition is obtained in same
65836         mechanism system argz.h would have.
65837         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
65838         argz facilities are known bad.  Err on the side of caution if
65839         cross-compiling.
65840
65841 2007-04-25  Eric Blake  <ebb9@byu.net>
65842
65843         * lib/fpurge.c (includes): Use stdlib.h for free.
65844         * tests/test-fflush.c (main): Also test fflush-fseeko.
65845
65846 2007-04-25  Bruno Haible  <bruno@clisp.org>
65847
65848         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
65849         * lib/fseeko.c: New file.
65850         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
65851         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
65852         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
65853         gl_FUNC_FSEEKO.
65854         (gl_FUNC_FSEEKO): Invoke it.
65855         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
65856         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
65857         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
65858
65859 2007-04-25  Bruno Haible  <bruno@clisp.org>
65860
65861         * modules/fflush (Depends-on): Add ftello.
65862
65863 2007-04-25  Bruno Haible  <bruno@clisp.org>
65864
65865         * modules/ftello-tests: New file.
65866         * tests/test-ftello.c: New file.
65867
65868         * modules/ftello: New file.
65869         * m4/ftello.m4: New file.
65870         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
65871         HAVE_FTELLO.
65872         * lib/stdio_.h (ftello): New declaration.
65873         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
65874         HAVE_FTELLO.
65875
65876 2007-04-25  Bruno Haible  <bruno@clisp.org>
65877
65878         * modules/fseeko-tests: New file.
65879         * tests/test-fseeko.c: New file.
65880
65881         * modules/fseeko: New file.
65882         * m4/fseeko.m4: New file.
65883         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
65884         HAVE_FSEEKO.
65885         * lib/stdio_.h (fseeko): New declaration.
65886         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
65887         HAVE_FSEEKO.
65888
65889 2007-04-25  Bruno Haible  <bruno@clisp.org>
65890
65891         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
65892
65893 2007-04-25  Bruno Haible  <bruno@clisp.org>
65894
65895         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
65896         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
65897         * tests/test-unistd.c: Likewise.
65898         * tests/test-fcntl.c: Likewise.
65899
65900 2007-04-23  Eric Blake  <ebb9@byu.net>
65901
65902         * lib/fflush.c: Fix missing include.
65903         Reported by Bruno Haible.
65904
65905 2007-04-23  Bruno Haible  <bruno@clisp.org>
65906
65907         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
65908         Reported by Eric Blake.
65909
65910 2007-04-23  Bruno Haible  <bruno@clisp.org>
65911
65912         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
65913
65914 2007-04-23  Bruno Haible  <bruno@clisp.org>
65915
65916         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
65917
65918 2007-04-23  Bruno Haible  <bruno@clisp.org>
65919
65920         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
65921         Needed on HP-UX 11.
65922
65923 2007-04-16  Eric Blake  <ebb9@byu.net>
65924
65925         Make fflush rely on fpurge.
65926         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
65927         open coding all variants.
65928         * modules/fflush (Depends-on): Add fpurge and unistd.
65929         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
65930         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
65931
65932         Fix --with-tests compilation on cygwin.
65933         * modules/argmatch-tests (Makefile.am): List gnulib library first
65934         in LDADD.
65935         * modules/argp-tests (Makefile.am): Likewise.
65936         * modules/array-list-tests (Makefile.am): Likewise.
65937         * modules/array-oset-tests (Makefile.am): Likewise.
65938         * modules/avltree-list-tests (Makefile.am): Likewise.
65939         * modules/avltree-oset-tests (Makefile.am): Likewise.
65940         * modules/avltreehash-list-tests (Makefile.am): Likewise.
65941         * modules/carray-list-tests (Makefile.am): Likewise.
65942         * modules/dirname-tests (Makefile.am): Likewise.
65943         * modules/frexp-tests (Makefile.am): Likewise.
65944         * modules/isnanl-tests (Makefile.am): Likewise.
65945         * modules/linked-list-tests (Makefile.am): Likewise.
65946         * modules/linkedhash-list-tests (Makefile.am): Likewise.
65947         * modules/lock-tests (Makefile.am): Likewise.
65948         * modules/rbtree-list-tests (Makefile.am): Likewise.
65949         * modules/rbtree-oset-tests (Makefile.am): Likewise.
65950         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
65951         * modules/tls-tests (Makefile.am): Likewise.
65952         * modules/tsearch-tests (Makefile.am): Likewise.
65953         * modules/xvasprintf-tests (Makefile.am): Likewise.
65954
65955         Fix fpurge for cygwin.
65956         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
65957         value.
65958         * modules/fpurge-tests (Depends-on): Clean up trash.
65959
65960 2007-04-16  Simon Josefsson  <simon@josefsson.org>
65961
65962         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
65963
65964         * m4/autobuild.m4: Re-indent.
65965
65966 2007-04-13  Bruno Haible  <bruno@clisp.org>
65967
65968         * modules/fpurge-tests: New file.
65969         * tests/test-fpurge.c: New file.
65970
65971         * modules/fpurge: New file.
65972         * lib/fpurge.h: New file.
65973         * lib/fpurge.c: New file.
65974         * m4/fpurge.m4: New file.
65975
65976 2007-04-13  Bruno Haible  <bruno@clisp.org>
65977
65978         * modules/fbufmode-tests: New file.
65979         * tests/test-fbufmode.c: New file.
65980
65981         * modules/fbufmode: New file.
65982         * lib/fbufmode.h: New file.
65983         * lib/fbufmode.c: New file.
65984         * m4/fbufmode.m4: New file.
65985
65986 2007-04-13  Bruno Haible  <bruno@clisp.org>
65987
65988         * modules/fwritable-tests: New file.
65989         * tests/test-fwritable.c: New file.
65990
65991         * modules/fwritable: New file.
65992         * lib/fwritable.h: New file.
65993         * lib/fwritable.c: New file.
65994         * m4/fwritable.m4: New file.
65995
65996 2007-04-13  Bruno Haible  <bruno@clisp.org>
65997
65998         * modules/freadable-tests: New file.
65999         * tests/test-freadable.c: New file.
66000
66001         * modules/freadable: New file.
66002         * lib/freadable.h: New file.
66003         * lib/freadable.c: New file.
66004         * m4/freadable.m4: New file.
66005
66006 2007-04-13  Bruno Haible  <bruno@clisp.org>
66007
66008         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
66009         MOSTLYCLEANFILES.
66010
66011 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66012
66013         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
66014         gzip bootstrap.conf to avoid dragging in i18n machinery.
66015         (gnulib_tool_option): Use it.
66016
66017 2007-04-13  Bruno Haible  <bruno@clisp.org>
66018
66019         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
66020         %F directives.
66021         * tests/test-vasprintf-posix.c (test_function): Likewise.
66022         * tests/test-snprintf-posix.h (test_function): Likewise.
66023         * tests/test-sprintf-posix.h (test_function): Likewise.
66024         * tests/test-fprintf-posix.h (test_function): Likewise.
66025         * tests/test-printf-posix.h (test_function): Likewise.
66026         * tests/test-fprintf-posix.out: Likewise.
66027
66028 2007-04-13  Bruno Haible  <bruno@clisp.org>
66029
66030         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
66031         * modules/tls-tests (configure.ac): Likewise.
66032         Reported by Arto C. Nirkko <anirkko@insel.ch>.
66033
66034 2007-04-13  Bruno Haible  <bruno@clisp.org>
66035
66036         * lib/tls.c (glthread_tls_get): Fix return type.
66037         Patch by Arto C. Nirkko <anirkko@insel.ch>.
66038
66039 2007-04-12  Eric Blake  <ebb9@byu.net>
66040
66041         * modules/gettime (Depends-on): Remove gettime.
66042         Reported by Dmitry V. Levin.
66043
66044 2007-04-12  Bruno Haible  <bruno@clisp.org>
66045
66046         * modules/fflush (Include): Mention <stdio.h>.
66047         * modules/strtoimax (Include): Mention <inttypes.h>.
66048         * modules/strtoumax (Include): Likewise.
66049
66050 2007-04-12  Eric Blake  <ebb9@byu.net>
66051
66052         * .cvsignore: New file.
66053         * .gitignore: Likewise.
66054
66055 2007-04-12  Bruno Haible  <bruno@clisp.org>
66056
66057         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
66058         not before, since $(LDADD) often contains libgnu.a.
66059         * modules/striconv-tests (test_striconv_LDADD): Likewise.
66060         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
66061         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
66062         Needed on Cygwin.
66063
66064 2007-04-12  Eric Blake  <ebb9@byu.net>
66065
66066         Work around glibc's failure to flush stdin on fclose.
66067         * lib/closein.c (close_stdin): Flush stdin before closing.
66068
66069         Work around glibc's failure to reset seekable stdin on exit.
66070         * modules/closein: New module.
66071         * lib/closein.c: New file.
66072         * lib/closein.h: Likewise.
66073         * m4/closein.m4: Likewise.
66074         * MODULES.html.sh (File stream based Input/Output): Document it.
66075
66076 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66077
66078         * gnulib-tool: Rename generated 'autobuild' script to
66079         'do-autobuild' in --create-megatestdir output.
66080
66081         * doc/gnulib.texi (Build robot for gnulib): Fix.
66082
66083 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66084
66085         * modules/sysexits (Depends-on): Add absolute-header.
66086
66087 2007-04-12  Eric Blake  <ebb9@byu.net>
66088
66089         No need to preserve errno on success.
66090         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
66091         Reported by Bruno Haible.
66092
66093 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66094
66095         * MODULES.html.sh (Support for maintaining and releasing
66096         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
66097
66098 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66099
66100         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
66101
66102 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66103
66104         * modules/autobuild: New module.
66105
66106         * m4/autobuild.m4: New file.
66107
66108 2007-04-11  Bruno Haible  <bruno@clisp.org>
66109
66110         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
66111         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
66112         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
66113         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
66114         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66115         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66116         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66117         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66118         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66119         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66120         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
66121         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66122         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66123         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
66124         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66125         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66126         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
66127         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66128         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66129         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
66130         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66131         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66132         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
66133         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66134         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66135         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
66136         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66137         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66138         Reported by Eric Blake.
66139
66140 2007-04-11  Bruno Haible  <bruno@clisp.org>
66141
66142         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
66143
66144 2007-04-10  Bruno Haible  <bruno@clisp.org>
66145
66146         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
66147         for NaN and Infinity. Needed on FreeBSD 6.1.
66148         * tests/test-vasnprintf-posix.c (test_function): Undo last change
66149         regarding results for "%010a" of Infinity and NaN.
66150         * tests/test-vasprintf-posix.c (test_function): Likewise.
66151         * tests/test-snprintf-posix.h (test_function): Likewise.
66152         * tests/test-sprintf-posix.h (test_function): Likewise.
66153         * tests/test-fprintf-posix.h (test_function): Likewise.
66154         * tests/test-printf-posix.h (test_function): Likewise.
66155         * tests/test-fprintf-posix.out: Likewise.
66156
66157 2007-04-10  Bruno Haible  <bruno@clisp.org>
66158
66159         * modules/locale-tests: New file.
66160         * tests/test-locale.c: New file.
66161
66162         * modules/locale: New file.
66163         * lib/locale_.h: New file.
66164         * m4/locale_h.m4: New file.
66165
66166 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
66167             Bruno Haible  <bruno@clisp.org>
66168
66169         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
66170         be determined, test for availability of the copysignf, copysign,
66171         copysignl functions.
66172         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
66173         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
66174         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
66175
66176 2007-04-09  Eric Blake  <ebb9@byu.net>
66177
66178         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
66179         * modules/stdio (Makefile.am): Support fflush.
66180         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
66181         * modules/fflush: New file.
66182         * lib/fflush.c: Likewise.
66183         * m4/fflush.m4: Likewise.
66184         * modules/fflush-tests: New test.
66185         * tests/test-fflush.c: Likewise.
66186         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
66187
66188 2007-04-06  Bruno Haible  <bruno@clisp.org>
66189
66190         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
66191         (VASNPRINTF): Use signbit for faster determination whether to print a
66192         minus sign.
66193         * modules/vasnprintf (Files): Remove lib/float+.h.
66194         * modules/fprintf-posix (Depends-on): Add signbit.
66195         * modules/snprintf-posix (Depends-on): Likewise.
66196         * modules/sprintf-posix (Depends-on): Likewise.
66197         * modules/vasnprintf-posix (Depends-on): Likewise.
66198         * modules/vasprintf-posix (Depends-on): Likewise.
66199         * modules/vfprintf-posix (Depends-on): Likewise.
66200         * modules/vsnprintf-posix (Depends-on): Likewise.
66201         * modules/vsprintf-posix (Depends-on): Likewise.
66202
66203 2007-04-06  Bruno Haible  <bruno@clisp.org>
66204
66205         * tests/test-frexp.c (main): Test also the sign bit of zero results.
66206         * tests/test-frexpl.c (main): Likewise.
66207         * tests/test-ldexpl.c (main): Likewise.
66208         * modules/frexp-tests (Depends-on): Add signbit.
66209         * modules/frexpl-tests (Depdends-on): Likewise.
66210         * modules/ldexpl-tests (Depdends-on): Likewise.
66211
66212 2007-04-06  Bruno Haible  <bruno@clisp.org>
66213
66214         * modules/signbit-tests: New file.
66215         * tests/test-signbit.c: New file.
66216
66217         * modules/signbit: New file.
66218         * lib/signbitf.c: New file.
66219         * lib/signbitd.c: New file.
66220         * lib/signbitl.c: New file.
66221         * m4/signbit.m4: New file.
66222         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
66223         (signbit): New macro.
66224         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
66225         REPLACE_SIGNBIT.
66226         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
66227         REPLACE_FREXPL into math.h.
66228
66229 2007-04-06  Bruno Haible  <bruno@clisp.org>
66230
66231         * modules/isnanf-nolibm-tests: New file.
66232         * tests/test-isnanf.c: New file.
66233
66234         * modules/isnanf-nolibm: New file.
66235         * lib/isnanf.h: New file.
66236         * lib/isnanf.c: New file.
66237         * lib/isnan.c: Consider the USE_FLOAT macro.
66238         * m4/isnanf.m4: New file.
66239
66240 2007-04-06  Bruno Haible  <bruno@clisp.org>
66241
66242         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
66243         (Link): New section.
66244
66245         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
66246
66247 2007-04-06  Bruno Haible  <bruno@clisp.org>
66248
66249         Assume the 'long double' type.
66250         * m4/longdouble.m4: Remove file.
66251         * config/srclist.txt: Don't mention longdouble.m4.
66252         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
66253         * lib/float+.h: Likewise.
66254         * lib/frexp.c: Likewise.
66255         * lib/printf-args.h: Likewise.
66256         * lib/printf-args.c: Likewise.
66257         * lib/printf-frexp.c: Likewise.
66258         * lib/printf-parse.c: Likewise.
66259         * lib/vasnprintf.c: Likewise.
66260         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
66261         * m4/intl.m4: Likewise.
66262         * m4/isnanl.m4: Likewise.
66263         * m4/printf.m4: Likewise.
66264         * m4/printf-frexpl.m4: Likewise.
66265         * m4/vasnprintf.m4: Likewise.
66266         * modules/allocsa (Files): Remove m4/longdouble.m4.
66267         * modules/gettext (Files): Likewise.
66268         * modules/relocatable-prog-wrapper (Files): Likewise.
66269         * modules/vasnprintf (Files): Likewise.
66270         * modules/isnanl (Files): Likewise.
66271         (Include): Simplify.
66272         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
66273         (Include): Simplify.
66274         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
66275         (Include): Simplify.
66276         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
66277         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66278         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
66279         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66280         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66281         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66282         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
66283         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66284         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66285         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66286         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
66287         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66288         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
66289         * tests/test-isnanl.c: Likewise.
66290         * tests/test-snprintf-posix.h: Likewise.
66291         * tests/test-sprintf-posix.h: Likewise.
66292         * tests/test-vasnprintf-posix.c: Likewise.
66293         * tests/test-vasnprintf-posix2.c: Likewise.
66294         * tests/test-vasprintf-posix.c: Likewise.
66295
66296 2007-04-06  Bruno Haible  <bruno@clisp.org>
66297
66298         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
66299         * lib/math_.h [__DECC]: Include the overridden include file through
66300         #include_next, outside the double-inclusion guard.
66301         * lib/stdio_.h [__DECC]: Likewise.
66302         * lib/stdlib_.h [__DECC]: Likewise.
66303         * lib/string_.h [__DECC]: Likewise.
66304         * lib/time_.h [__DECC]: Likewise.
66305         * lib/wchar_.h [__DECC]: Likewise.
66306         * lib/wctype_.h [__DECC]: Likewise.
66307         * lib/inttypes_.h [__DECC]: Likewise.
66308         Reported by Albert Chin <china@thewrittenword.com> in
66309         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
66310
66311 2007-04-04  Eric Blake  <ebb9@byu.net>
66312
66313         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
66314         1.5.x.
66315
66316 2007-04-04  Bruno Haible  <bruno@clisp.org>
66317
66318         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
66319         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
66320
66321 2007-04-04  Bruno Haible  <bruno@clisp.org>
66322
66323         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
66324         results for "%010a" of Infinity and NaN.
66325         * tests/test-vasprintf-posix.c (test_function): Likewise.
66326         * tests/test-snprintf-posix.h (test_function): Likewise.
66327         * tests/test-sprintf-posix.h (test_function): Likewise.
66328         * tests/test-fprintf-posix.h (test_function): Remove these tests.
66329         * tests/test-printf-posix.h (test_function): Likewise.
66330         * tests/test-fprintf-posix.out: Update.
66331         Needed for FreeBSD 6.1.
66332
66333 2007-04-04  Bruno Haible  <bruno@clisp.org>
66334
66335         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
66336         directly used by the gnulib modules nor by gnulib-tool.
66337
66338 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
66339
66340         * DEPENDENCIES: Give overall description of version dependency
66341         desirability.  Use more-typical names for apps.
66342         Add shell, coreutils, diffutils, grep, tar, gzip.
66343
66344 2007-04-04  Simon Josefsson  <simon@josefsson.org>
66345
66346         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
66347
66348 2007-04-04  Karl Berry  <karl@gnu.org>
66349
66350         * MODULES.html.sh (func_module): missing '.
66351
66352 2007-04-03  Bruno Haible  <bruno@clisp.org>
66353
66354         * modules/argmatch-tests (Makefile.am): New variable
66355         test_argmatch_LDADD.
66356         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
66357         * modules/array-list-tests (Makefile.am): New variable
66358         test_array_list_LDADD.
66359         * modules/array-oset-tests (Makefile.am): New variable
66360         test_array_oset_LDADD.
66361         * modules/avltree-list-tests (Makefile.am): New variable
66362         test_avltree_list_LDADD.
66363         * modules/avltree-oset-tests (Makefile.am): New variable
66364         test_avltree_oset_LDADD.
66365         * modules/avltreehash-list-tests (Makefile.am): New variable
66366         test_avltreehash_list_LDADD.
66367         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
66368         test_canonicalize_lgpl_LDADD.
66369         * modules/carray-list-tests (Makefile.am): New variable
66370         test_carray_list_LDADD.
66371         * modules/dirname-tests (Makefile.am): New variable
66372         test_dirname_LDADD.
66373         * modules/linked-list-tests (Makefile.am): New variable
66374         test_linked_list_LDADD.
66375         * modules/linkedhash-list-tests (Makefile.am): New variable
66376         test_linkedhash_list_LDADD.
66377         * modules/rbtree-list-tests (Makefile.am): New variable
66378         test_rbtree_list_LDADD.
66379         * modules/rbtree-oset-tests (Makefile.am): New variable
66380         test_rbtree_oset_LDADD.
66381         * modules/rbtreehash-list-tests (Makefile.am): New variable
66382         test_rbtreehash_list_LDADD.
66383         * modules/xvasprintf-tests (Makefile.am): New variable
66384         test_xvasprintf_LDADD.
66385         Reported by Eric Blake.
66386
66387 2007-04-03  Eric Blake  <ebb9@byu.net>
66388
66389         * DEPENDENCIES: Weaken m4 requirements.
66390
66391 2007-04-03  Bruno Haible  <bruno@clisp.org>
66392
66393         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
66394         * modules/isnanl-tests (configure.ac): Likewise.
66395
66396 2007-04-03  Ben Pfaff  <blp@gnu.org>
66397
66398         * modules/iconv_open: Add $(srcdir)/ to source directory
66399         references in Makefile fragments that call gperf, to fix VPATH
66400         builds.
66401
66402 2007-04-03  Bruno Haible  <bruno@clisp.org>
66403
66404         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
66405         * lib/ldexpl.c: Undo last change.
66406
66407 2007-04-03  Bruno Haible  <bruno@clisp.org>
66408
66409         * modules/printf-frexpl (Depends-on): Undo last change.
66410         (Files): Add m4/ldexpl.m4.
66411
66412 2007-04-03  Bruno Haible  <bruno@clisp.org>
66413
66414         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
66415         * modules/isnanl (Link): New section.
66416
66417         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
66418         * modules/frexp (Link): New section.
66419
66420         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
66421         * modules/frexpl (Link): New section.
66422
66423         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
66424         * modules/ldexpl (Link): New section.
66425
66426 2007-04-03  Bruno Haible  <bruno@clisp.org>
66427
66428         * modules/TEMPLATE-EXTENDED: New file.
66429         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
66430
66431 2007-04-03  Bruno Haible  <bruno@clisp.org>
66432
66433         * DEPENDENCIES: New file.
66434         Suggested by Simon Josefsson.
66435
66436 2007-04-03  Bruno Haible  <bruno@clisp.org>
66437
66438         * doc/gnulib.texi: Escape @.
66439
66440 2007-04-03  James Youngman  <jay@gnu.org>
66441         and Paul Eggert  <eggert@cs.ucla.edu>
66442
66443         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
66444         birthtime on all systems that have birthtime, not just those which
66445         use st_birthtimensec rather than st_birthtim.  Putting zero in
66446         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
66447         that the birth time is not available for files on an NFS mount.
66448
66449 2007-04-03  Simon Josefsson  <simon@josefsson.org>
66450
66451         * modules/memxor: Move back from crypto/, suggested by Bruno.
66452         * modules/crypto/hmac-sha1: Fix memxor dependency.
66453
66454         * modules/crypto/gc: Moved from ../.
66455
66456 2007-04-02  Eric Blake  <ebb9@byu.net>
66457
66458         * lib/ldexpl.c (includes): Avoid libm.
66459
66460         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
66461
66462 2007-04-02  Bruno Haible  <bruno@clisp.org>
66463
66464         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
66465         on IRIX.
66466
66467 2007-04-02  Bruno Haible  <bruno@clisp.org>
66468
66469         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
66470         x86 or x86_64 platforms running MacOS X.
66471         Reported by Ryan Schmidt <@ryandesign.com>.
66472
66473 2007-04-02  Bruno Haible  <bruno@clisp.org>
66474
66475         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
66476         i386.
66477
66478 2007-04-01  Simon Josefsson  <simon@josefsson.org>
66479
66480         * modules/crypto/arcfour: Moved from ../.
66481         * modules/crypto/arcfour-tests: Moved from ../.
66482         * modules/crypto/arctwo: Moved from ../.
66483         * modules/crypto/arctwo-tests: Moved from ../.
66484         * modules/crypto/des: Moved from ../.
66485         * modules/crypto/des-tests: Moved from ../.
66486         * modules/crypto/gc-arcfour: Moved from ../.
66487         * modules/crypto/gc-arcfour-tests: Moved from ../.
66488         * modules/crypto/gc-arctwo: Moved from ../.
66489         * modules/crypto/gc-arctwo-tests: Moved from ../.
66490         * modules/crypto/gc-des: Moved from ../.
66491         * modules/crypto/gc-des-tests: Moved from ../.
66492         * modules/crypto/gc-hmac-md5: Moved from ../.
66493         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
66494         * modules/crypto/gc-hmac-sha1: Moved from ../.
66495         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
66496         * modules/crypto/gc-md2: Moved from ../.
66497         * modules/crypto/gc-md2-tests: Moved from ../.
66498         * modules/crypto/gc-md4: Moved from ../.
66499         * modules/crypto/gc-md4-tests: Moved from ../.
66500         * modules/crypto/gc-md5: Moved from ../.
66501         * modules/crypto/gc-md5-tests: Moved from ../.
66502         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
66503         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
66504         * modules/crypto/gc-random: Moved from ../.
66505         * modules/crypto/gc-rijndael: Moved from ../.
66506         * modules/crypto/gc-rijndael-tests: Moved from ../.
66507         * modules/crypto/gc-sha1: Moved from ../.
66508         * modules/crypto/gc-sha1-tests: Moved from ../.
66509         * modules/crypto/gc-tests: Moved from ../.
66510         * modules/crypto/hmac-md5: Moved from ../.
66511         * modules/crypto/hmac-md5-tests: Moved from ../.
66512         * modules/crypto/hmac-sha1: Moved from ../.
66513         * modules/crypto/hmac-sha1-tests: Moved from ../.
66514         * modules/crypto/md2: Moved from ../.
66515         * modules/crypto/md2-tests: Moved from ../.
66516         * modules/crypto/md4: Moved from ../.
66517         * modules/crypto/md4-tests: Moved from ../.
66518         * modules/crypto/md5: Moved from ../.
66519         * modules/crypto/md5-tests: Moved from ../.
66520         * modules/crypto/memxor: Moved from ../.
66521         * modules/crypto/rijndael: Moved from ../.
66522         * modules/crypto/rijndael-tests: Moved from ../.
66523         * modules/crypto/sha1: Moved from ../.
66524
66525 2007-03-30  James Youngman  <jay@gnu.org>
66526
66527         * tests/test-stat-time.c (prepare_test): use chmod() rather than
66528         rename() to change the ctime of a file (because ctime is unaffected
66529         by rename on jfs2 on AIX 5.1).
66530         (main): Start by doing cleanup, in case a previous run failed leaving
66531         test files behind.
66532
66533 2007-03-31  Bruno Haible  <bruno@clisp.org>
66534
66535         Support old proprietary implementations of iconv.
66536         * modules/iconv_open: New file.
66537         * lib/iconv_.h: New file.
66538         * m4/iconv_h.m4: New file.
66539         * lib/iconv_open.c: New file.
66540         * lib/iconv_open-aix.gperf: New file.
66541         * lib/iconv_open-hpux.gperf: New file.
66542         * lib/iconv_open-irix.gperf: New file.
66543         * lib/iconv_open-osf.gperf: New file.
66544         * m4/iconv_open.m4: New file.
66545         * modules/linebreak (Depends-on): Add iconv_open.
66546         * modules/striconv (Depends-on): Likewise.
66547         * modules/striconveh (Depends-on): Likewise.
66548         * modules/unicodeio (Depends-on): Likewise.
66549         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
66550         (iconv_t)(-1).
66551         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
66552         conversion if cd is (iconv_t)(-1).
66553         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
66554         is not possible.
66555
66556 2007-03-31  Bruno Haible  <bruno@clisp.org>
66557
66558         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66559         work on Solaris either. Protect also second use of "autodetect_jp".
66560
66561 2007-03-31  Bruno Haible  <bruno@clisp.org>
66562
66563         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
66564         the function is not present.
66565
66566 2007-03-31  Bruno Haible  <bruno@clisp.org>
66567
66568         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
66569         the function is not present.
66570
66571 2007-03-31  Bruno Haible  <bruno@clisp.org>
66572
66573         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
66574         a bug in HP-UX iconv_open().
66575
66576 2007-03-31  Bruno Haible  <bruno@clisp.org>
66577
66578         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
66579         (Mathematics <math.h>): New section, add fpieee.
66580         (Input/output <stdio.h>): Add fseterr.
66581         (Mathematics <math.h>): New section, add printf-frexp.
66582         (Container data structures): Add sublist.
66583         (Core language properties): Add fpucw, inline.
66584         (Functions for greatest-width integer types <inttypes.h>): Add
66585         imaxabs, imaxdiv, inttypes.
66586         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
66587         isnanl-nolibm, ldexp.
66588         (Mathematics <math.h>): New section, add printf-frexpl.
66589         (Support for systems lacking POSIX:2001): Add fprintf-posix,
66590         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
66591         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
66592         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
66593         (Unicode string functions): Add unistr/u*-mbtoucr.
66594         (Java): Add javacomp-script, javaexec-script.
66595         (C#): Add csharpcomp-script, csharpexec-script.
66596         (Support for building libraries and executables): Add havelib,
66597         relocatable-*.
66598         (Support for maintaining and releasing projects): Renamed from
66599         'Support for maintaining and release projects'. Add announce-gen.
66600
66601 2007-03-31  Bruno Haible  <bruno@clisp.org>
66602
66603         * README: Talk primarily about git.
66604         (git and CVS): Renamed from CVS.
66605         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
66606         gnulib is available through git.
66607         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
66608
66609 2007-03-30  Bruno Haible  <bruno@clisp.org>
66610
66611         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
66612         * lib/poll_.h: Likewise.
66613         * lib/stat_.h: Likewise.
66614         * lib/sys_time_.h: Likewise.
66615         * lib/sysexit_.h: Likewise.
66616         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
66617         * lib/stdbool_.h: Likewise.
66618         * lib/byteswap_.h: Add double-inclusion guard.
66619
66620 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
66621
66622         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
66623
66624 2007-03-30  Karl Berry  <karl@gnu.org>
66625
66626         * config/srclist-update: double space after USA in the license
66627         substitution, since that's how it's usually (?) written.
66628
66629 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
66630
66631         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
66632         reported by Bruno Haible.
66633
66634 2007-03-29  Bruno Haible  <bruno@clisp.org>
66635
66636         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
66637         a bug in AIX iconv().
66638
66639 2007-03-29  Bruno Haible  <bruno@clisp.org>
66640
66641         * modules/ldexpl-tests: New file.
66642         * tests/test-ldexpl.c: New file.
66643
66644 2007-03-29  Bruno Haible  <bruno@clisp.org>
66645
66646         * lib/ldexpl.c: Include fpucw.h.
66647         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
66648         multiplication.
66649         * modules/ldexpl (Depends-on): Add fpucw.
66650
66651 2007-03-29  Bruno Haible  <bruno@clisp.org>
66652
66653         * modules/ldexpl: New file.
66654         * m4/ldexpl.m4: New file.
66655         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
66656         set.
66657         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
66658         REPLACE_LDEXPL.
66659         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
66660         REPLACE_LDEXPL.
66661         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66662         gl_FUNC_LDEXPL_WORKS.
66663         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
66664         * modules/mathl (Files): Remove lib/ldexpl.c.
66665         (Depends-on): Add ldexpl.
66666
66667 2007-03-29  Bruno Haible  <bruno@clisp.org>
66668
66669         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
66670
66671 2007-03-29  Bruno Haible  <bruno@clisp.org>
66672
66673         * tests/test-striconveh.c (main): Don't assume that a direct conversion
66674         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
66675         and possibly also HP-UX.
66676         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66677         work on AIX, IRIX, HP-UX, OSF/1.
66678         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
66679         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
66680         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
66681         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
66682         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
66683         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
66684
66685 2007-03-29  Bruno Haible  <bruno@clisp.org>
66686
66687         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
66688
66689 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66690
66691         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
66692         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
66693
66694 2007-03-29  Eric Blake  <ebb9@byu.net>
66695
66696         * lib/acl-internal.h: Remove redundant include.
66697         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
66698         Cygwin when a file is locked.
66699
66700 2007-03-29  Bruno Haible  <bruno@clisp.org>
66701
66702         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
66703         file.
66704         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
66705
66706 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66707
66708         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
66709         try to remove a parent directory if the child couldn't be removed
66710         (except for the first rmdir, which could fail because the child
66711         doesn't exist).  Problem reported by Jeff Blaine in
66712         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
66713
66714 2007-03-28  Bruno Haible  <bruno@clisp.org>
66715
66716         * lib/striconveh.c (utf8conv_carefully): New function.
66717         (mem_cd_iconveh_internal): Invoke it.
66718
66719 2007-03-28  Bruno Haible  <bruno@clisp.org>
66720
66721         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
66722         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
66723         input.
66724         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
66725         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
66726         unistr/u8-uctomb.
66727
66728 2007-03-28  Bruno Haible  <bruno@clisp.org>
66729
66730         * modules/unistr/u8-mbtoucr: New file.
66731         * lib/unistr/u8-mbtoucr.c: New file.
66732         * modules/unistr/u16-mbtoucr: New file.
66733         * lib/unistr/u16-mbtoucr.c: New file.
66734         * modules/unistr/u16-mbtoucr: New file.
66735         * lib/unistr/u16-mbtoucr.c: New file.
66736         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
66737
66738 2007-03-27  Simon Josefsson  <simon@josefsson.org>
66739             Bruno Haible  <bruno@clisp.org>
66740
66741         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
66742         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
66743         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
66744
66745         * m4/stdio_h.m4: Add stubs for vasprintf too.
66746
66747         * modules/stdio: Support vasprintf in sed command.
66748
66749         * modules/vasprintf: Depend on stdio for prototypes.  Remove
66750         vasprintf.h.  Add stdio module indicator.
66751
66752         * lib/stdio_.h: Declare asprintf and vasprintf, based on
66753         vasprintf.h.
66754
66755         * lib/vasprintf.h: File removed.
66756
66757         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
66758         * lib/vasprintf.c: Ditto.
66759         * lib/xvasprintf.c: Ditto.
66760         * tests/test-vasprintf-posix.c: Ditto.
66761         * tests/test-vasprintf.c: Ditto.
66762
66763 2007-03-27  Bruno Haible  <bruno@clisp.org>
66764
66765         Make vasnprintf multithread-safe.
66766         * lib/vasnprintf.c (decimal_point_char): New function.
66767         (VASNPRINTF): Use it.
66768         Suggested by Simon Josefsson.
66769
66770 2007-03-27  Eric Blake  <ebb9@byu.net>
66771
66772         Support sub-second birthtime on cygwin.
66773         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
66774         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
66775         (get_stat_birthtime): Also work with st_birthtim.
66776
66777 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
66778
66779         * lib/stat-time.h (USE_BIRTHTIME): Remove.
66780         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
66781         (get_stat_birthtime_ns): Do not try to use "spare" fields.
66782         (get_stat_birthtime_ns): Simplify compile-time tests.
66783         (get_stat_birthtime): Change the API to look like
66784         get_stat_mtime etc., except return a negative tv_nsec on error.
66785         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
66786         Don't check for "spare" fields.
66787         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
66788         or for struct stat.st_birthtime, as these tests aren't used.
66789         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
66790
66791 2007-03-27  Bruno Haible  <bruno@clisp.org>
66792
66793         * lib/stat-time.h: Include <sys/stat.h>.
66794
66795 2007-03-27  James Youngman  <jay@gnu.org>
66796
66797         * lib/stat-time.h (get_stat_birthtime): New function for
66798           retrieving st_birthtime as provided by UFS2 (hence *BSD).
66799         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
66800           and its variants.
66801         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
66802         * modules/stat-time-test: New file.
66803         * tests/test-stat-time.c: New test, devised by Bruno Haible.
66804
66805 2007-03-26  Bruno Haible  <bruno@clisp.org>
66806
66807         Better support of signalling NaNs.
66808         * lib/atanl.c: Include isnanl.h.
66809         (atanl): Perform test for NaN at the beginning of the function and
66810         through a call to isnanl.
66811         * lib/cosl.c: Include isnanl.h.
66812         (cosl): Perform test for NaN at the beginning of the function and
66813         through a call to isnanl.
66814         * lib/ldexpl.c: Include isnanl.h.
66815         (ldexpl): Perform test for NaN through a call to isnanl.
66816         * lib/logl.c: Include isnanl.h.
66817         (logl): Perform test for NaN at the beginning of the function and
66818         through a call to isnanl.
66819         * lib/sinl.c: Include isnanl.h.
66820         (sinl): Perform test for NaN at the beginning of the function and
66821         through a call to isnanl.
66822         * lib/sqrtl.c: Include isnanl.h.
66823         (sqrtl): Perform test for NaN at the beginning of the function and
66824         through a call to isnanl.
66825         * lib/tanl.c: Include isnanl.h.
66826         (tanl): Perform test for NaN at the beginning of the function and
66827         through a call to isnanl.
66828         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
66829         * modules/mathl (Depends-on): Add isnanl.
66830
66831 2007-03-26  Eric Blake  <ebb9@byu.net>
66832
66833         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
66834         regression in logic sense of previous patch.
66835
66836 2007-03-26  Bruno Haible  <bruno@clisp.org>
66837
66838         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
66839         unportable shell command "if ! ...".
66840         Reported by Ralf Wildenhues.
66841
66842 2007-03-25  Bruno Haible  <bruno@clisp.org>
66843
66844         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
66845         <sysexits.h> file, and only add EX_CONFIG.
66846         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
66847         absolute file name and whether it is sufficient. Substitute also
66848         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
66849         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
66850         ABSOLUTE_SYSEXITS_H into sysexits.h.
66851
66852 2007-03-25  Bruno Haible  <bruno@clisp.org>
66853
66854         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
66855         hints is NULL.
66856
66857 2007-03-25  Bruno Haible  <bruno@clisp.org>
66858
66859         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
66860         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
66861
66862 2007-03-25  Bruno Haible  <bruno@clisp.org>
66863
66864         * lib/vasnprintf.c: Include langinfo.h.
66865         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
66866         multithread-safe.
66867         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
66868         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
66869         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66870         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66871         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66872         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66873         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66874         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
66875         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66876         Reported by Simon Josefsson.
66877
66878 2007-03-25  Bruno Haible  <bruno@clisp.org>
66879
66880         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
66881         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
66882         * modules/vasnprintf (Depends-on): Add stdint.
66883
66884 2007-03-25  Bruno Haible  <bruno@clisp.org>
66885
66886         * modules/fpieee: New file.
66887         * m4/fpieee.m4: New file.
66888         * modules/isnan-nolibm (Depends-on): Add fpieee.
66889         * modules/isnanl-nolibm (Depends-on): Add fpieee.
66890         * modules/isnanl (Depends-on): Add fpieee.
66891
66892 2007-03-25  Bruno Haible  <bruno@clisp.org>
66893
66894         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
66895
66896 2007-03-25  Bruno Haible  <bruno@clisp.org>
66897
66898         Avoid test failures on IRIX 6.5.
66899         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
66900         (main): Use it.
66901         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
66902         macros.
66903         (main): Use them.
66904
66905 2007-03-25  Bruno Haible  <bruno@clisp.org>
66906
66907         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
66908         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
66909         exists but doesn't work.
66910         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
66911         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
66912         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
66913         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
66914         math.h.
66915
66916 2007-03-25  Bruno Haible  <bruno@clisp.org>
66917
66918         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
66919         returns inf. Needed on IRIX 6.5.
66920
66921 2007-03-25  Bruno Haible  <bruno@clisp.org>
66922
66923         * tests/test-frexpl.c: Include isnanl-nolibm.h.
66924         (main): Use isnanl instead of x != x idiom.
66925         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
66926
66927         * tests/test-frexp.c: Include isnan.h.
66928         (main): Use isnan instead of x != x idiom.
66929         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
66930
66931 2007-03-25  Bruno Haible  <bruno@clisp.org>
66932
66933         * tests/test-frexp.c (NaN): New function/macro.
66934         (main): Use it instead of 0.0 / 0.0.
66935         * tests/test-isnan.c (NaN): New function/macro.
66936         (main): Use it instead of 0.0 / 0.0.
66937         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
66938         (test_function): Use it instead of 0.0 / 0.0.
66939         * tests/test-vasprintf-posix.c (NaN): New function/macro.
66940         (test_function): Use it instead of 0.0 / 0.0.
66941         * tests/test-snprintf-posix.h (NaN): New function/macro.
66942         (test_function): Use it instead of 0.0 / 0.0.
66943         * tests/test-sprintf-posix.h (NaN): New function/macro.
66944         (test_function): Use it instead of 0.0 / 0.0.
66945         * tests/test-fprintf-posix.h (NaN): New function/macro.
66946         (test_function): Use it instead of 0.0 / 0.0.
66947         * tests/test-printf-posix.h (NaN): New function/macro.
66948         (test_function): Use it instead of 0.0 / 0.0.
66949
66950         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
66951
66952 2007-03-25  Bruno Haible  <bruno@clisp.org>
66953
66954         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
66955
66956 2007-03-25  Bruno Haible  <bruno@clisp.org>
66957
66958         * lib/regexec.c (merge_state_with_log): Make static.
66959
66960 2007-03-25  Bruno Haible  <bruno@clisp.org>
66961
66962         * lib/trigl.c (kernel_rem_pio2): Make static.
66963
66964 2007-03-25  Bruno Haible  <bruno@clisp.org>
66965
66966         * lib/sincosl.c (sincosl_table): Make static.
66967
66968 2007-03-25  Bruno Haible  <bruno@clisp.org>
66969
66970         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
66971         if the compiler does not support C99.
66972
66973 2007-03-25  Bruno Haible  <bruno@clisp.org>
66974
66975         * modules/time (Makefile.am): Ensure all rule action lines start with a
66976         tab.
66977
66978 2007-03-24  Bruno Haible  <bruno@clisp.org>
66979
66980         * modules/tsearch-tests: New file.
66981         * tests/test-tsearch.sh: New file.
66982         * tests/test-tsearch.c: New file, mostly copied from glibc.
66983
66984         * modules/search-tests: New file.
66985         * tests/test-search.c: New file.
66986
66987         * modules/search: New file.
66988         * lib/search_.h: New file, incorporating lib/tsearch.h.
66989         * m4/search_h.m4: New file.
66990         * lib/tsearch.h: Remove file.
66991         * lib/tsearch.c: Include search.h instead of tsearch.h.
66992         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
66993         HAVE_TSEARCH.
66994         * modules/tsearch (Files): Remove lib/tsearch.h.
66995         (Depends-on): Add search.
66996         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
66997         (Include): Change tsearch.h into search.h.
66998
66999 2007-03-24  Bruno Haible  <bruno@clisp.org>
67000
67001         * modules/fpucw: New file.
67002         * lib/fpucw.h: New file.
67003         * lib/frexp.c: Include fpucw.h.
67004         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67005         (FUNC): Use them.
67006         * lib/printf-frexp.c: Include fpucw.h.
67007         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67008         (FUNC): Use them.
67009         * lib/vasnprintf.c: Include fpucw.h.
67010         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
67011         'long double' calculations.
67012         * tests/test-frexpl.c: Include fpucw.h.
67013         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67014         * tests/test-printf-frexpl.c: Include fpucw.h.
67015         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67016         * modules/frexpl (Depends-on): Add fpucw.
67017         * modules/printf-frexpl (Depends-on): Likewise.
67018         * modules/fprintf-posix (Depends-on): Likewise.
67019         * modules/snprintf-posix (Depends-on): Likewise.
67020         * modules/sprintf-posix (Depends-on): Likewise.
67021         * modules/vasnprintf-posix (Depends-on): Likewise.
67022         * modules/vasprintf-posix (Depends-on): Likewise.
67023         * modules/vfprintf-posix (Depends-on): Likewise.
67024         * modules/vsnprintf-posix (Depends-on): Likewise.
67025         * modules/vsprintf-posix (Depends-on): Likewise.
67026         * modules/frexpl-tests (Depends-on): Likewise.
67027         * modules/printf-frexpl-tests (Depends-on): Likewise.
67028
67029 2007-03-24  Bruno Haible  <bruno@clisp.org>
67030
67031         * lib/float+.h: New file.
67032         * lib/isnan.c: Include float+.h.
67033         (SIZE): New macro.
67034         (FUNC): Compare only SIZE bytes of the value.
67035         * lib/vasnprintf.c: Include float+.h.
67036         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
67037         SIZEOF_LDBL or SIZEOF_DBL bytes.
67038         * modules/isnan-nolibm (Files): Add lib/float+.h.
67039         * modules/isnanl-nolibm (Files): Add lib/float+.h.
67040         * modules/isnanl (Files): Add lib/float+.h.
67041         * modules/vasnprintf (Files): Add lib/float+.h.
67042
67043 2007-03-24  Bruno Haible  <bruno@clisp.org>
67044
67045         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
67046         include isnanl-nolibm.h.
67047
67048 2007-03-24  Bruno Haible  <bruno@clisp.org>
67049
67050         * tests/test-read-file.c (main): Don't produce spurious output for
67051         expected situations. Make the test fail if it encountered unexpected
67052         results.
67053
67054 2007-03-24  Bruno Haible  <bruno@clisp.org>
67055
67056         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
67057         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
67058
67059 2007-03-24  Bruno Haible  <bruno@clisp.org>
67060
67061         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
67062
67063 2007-03-24  Bruno Haible  <bruno@clisp.org>
67064
67065         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
67066         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
67067
67068         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
67069         * modules/utf8-ucs4: Turn into a symbolic link to module
67070         unistr/u8-mbtouc.
67071
67072         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
67073         utf8-ucs4-unsafe.
67074         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
67075         unistr/u8-mbtouc-unsafe.
67076
67077         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
67078         * modules/utf16-ucs4: Turn into a symbolic link to module
67079         unistr/u16-mbtouc.
67080
67081         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
67082         utf16-ucs4-unsafe.
67083         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
67084         unistr/u16-mbtouc-unsafe.
67085
67086         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
67087         * modules/ucs4-utf8: Turn into a symbolic link to module
67088         unistr/u8-ubtomb.
67089
67090         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
67091         * modules/ucs4-utf16: Turn into a symbolic link to module
67092         unistr/u16-ubtomb.
67093
67094 2007-03-24  Bruno Haible  <bruno@clisp.org>
67095
67096         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
67097         Enable the function only if HAVE_INLINE.
67098         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
67099         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67100         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
67101         Enable the function only if HAVE_INLINE.
67102         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
67103         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67104         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
67105         Enable the function only if HAVE_INLINE.
67106         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
67107         Enable the function only if HAVE_INLINE.
67108         * modules/utf8-ucs4: Update.
67109         * modules/utf8-ucs4-unsafe: Update.
67110         * modules/utf16-ucs4: Update.
67111         * modules/utf16-ucs4-unsafe: Update.
67112         * modules/ucs4-utf8: Update.
67113         * modules/ucs4-utf16: Update.
67114
67115 2007-03-24  Bruno Haible  <bruno@clisp.org>
67116
67117         * lib/utf8-ucs4.h: Remove file.
67118         * lib/utf8-ucs4-unsafe.h: Remove file.
67119         * lib/utf16-ucs4.h: Remove file.
67120         * lib/utf16-ucs4-unsafe.h: Remove file.
67121         * lib/ucs4-utf8.h: Remove file.
67122         * lib/ucs4-utf16.h: Remove file.
67123         * lib/unistr.h: Include their previous contents.
67124         * m4/utf-ucs4.m4: Remove file.
67125         * m4/ucs4-utf.m4: Remove file.
67126         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.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/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.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 (Files): Remove lib/utf16-ucs4.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/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
67142         (Depends-on): Add unistr/base.
67143         (configure.ac): Remove gl_UTF_UCS4.
67144         (Makefile.am): Update.
67145         (Include): Change to unistr.h.
67146         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.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         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
67152         (Depends-on): Add unistr/base.
67153         (configure.ac): Remove gl_UCS4_UTF.
67154         (Makefile.am): Update.
67155         (Include): Change to unistr.h.
67156         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
67157         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
67158         utf8-ucs4-unsafe.h.
67159         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
67160         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
67161         utf16-ucs4-unsafe.h.
67162         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
67163         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
67164         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
67165         * lib/unistr/u8-strchr.c: Likewise.
67166         * lib/unistr/u8-strrchr.c: Likewise.
67167         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
67168         * lib/unistr/u16-strchr.c: Likewise.
67169         * lib/unistr/u16-strrchr.c: Likewise.
67170         * lib/striconveh.c: Update.
67171         * lib/linebreak.c: Update.
67172
67173 2007-03-24  Bruno Haible  <bruno@clisp.org>
67174
67175         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
67176         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
67177
67178 2007-03-22  Bruno Haible  <bruno@clisp.org>
67179
67180         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
67181
67182 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
67183
67184         * MODULES.html.sh (File system functions): New module write-any-file.
67185         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
67186         * m4/write-any-file.m4: New files.
67187
67188 2007-03-23  Eric Blake  <ebb9@byu.net>
67189
67190         * gnulib-tool: Rearrange space-tab sequences, since some editors
67191         like to eat them.
67192
67193 2007-03-23  Eric Blake  <ebb9@byu.net>
67194
67195         * lib/version-etc.c (version_etc_va): Update license wording to
67196         be more concise.  Recommended by Richard Stallman.
67197
67198 2007-03-22  Bruno Haible  <bruno@clisp.org>
67199
67200         * lib/poll.c (MSG_PEEK): New fallback definition.
67201
67202 2007-03-22  Bruno Haible  <bruno@clisp.org>
67203
67204         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
67205         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
67206         (main): Update.
67207         Fixes a compilation error on BeOS.
67208
67209 2007-03-22  Bruno Haible  <bruno@clisp.org>
67210
67211         * modules/frexpl-tests: New file.
67212         * tests/test-frexpl.c: New file.
67213
67214         * modules/frexpl: New file.
67215         * m4/frexpl.m4: New file.
67216         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
67217         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
67218         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
67219         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
67220         (Depends-on): Add frexpl. Remove isnanl-nolibm.
67221         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
67222
67223 2007-03-22  Bruno Haible  <bruno@clisp.org>
67224
67225         * lib/frexpl.c: Share code with lib/frexp.c.
67226         * modules/mathl (Files): Add lib/frexp.c.
67227         (Depends-on): Add isnanl-nolibm.
67228
67229 2007-03-22  Bruno Haible  <bruno@clisp.org>
67230
67231         * modules/printf-frexp (Files): Add m4/frexp.m4.
67232         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
67233         only if the found frexp function actually works.
67234
67235 2007-03-22  Bruno Haible  <bruno@clisp.org>
67236
67237         * lib/frexp.c: Remove older implementation that uses divisions.
67238
67239 2007-03-21  Bruno Haible  <bruno@clisp.org>
67240
67241         * modules/frexp-tests: New file.
67242         * tests/test-frexp.c: New file.
67243
67244         * modules/frexp: New file.
67245         * lib/frexp.c: New file.
67246         * m4/frexp.m4: New file.
67247         * lib/math_.h (frexp): New declaration.
67248         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
67249         REPLACE_FREXP.
67250         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
67251
67252 2007-03-21  Bruno Haible  <bruno@clisp.org>
67253
67254         * modules/isnanl-tests: New file.
67255         * tests/test-isnanl.c: New file.
67256
67257         * modules/isnanl: New file.
67258         * lib/isnanl.h: New file.
67259         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
67260         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
67261         gl_FUNC_ISNANL_WORKS.
67262         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
67263         New macros.
67264
67265 2007-03-21  Bruno Haible  <bruno@clisp.org>
67266
67267         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
67268         lib/isnanl.h.
67269         (Include): Update.
67270         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
67271         * lib/vasnprintf.c: Update.
67272         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
67273         tests/test-isnanl.h, remove tests/test-isnanl.c.
67274         (Makefile.am): Update.
67275         * tests/test-isnanl-nolibm.c: New file.
67276         * tests/test-isnanl.h: New file.
67277         * tests/test-isnanl.c: Remove file.
67278
67279 2007-03-21  Jim Meyering  <jim@meyering.net>
67280
67281         When trying to open ".", treat ESTALE like EACCES.
67282         * lib/savewd.c (savewd_save): Resort to forking not just upon
67283         failure with EACCES, but also when errno is ESTALE.
67284
67285 2007-03-20  Bruno Haible  <bruno@clisp.org>
67286
67287         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
67288         Needed on AIX 5.1. Reported by Matthew Woehlke.
67289
67290 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67291
67292         Suggestions by Bruno Haible:
67293         * lib/acl-internal.h: Include "gettext.h" rather than rolling
67294         our own.
67295         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
67296         * modules/acl (Depends-on): Add gettext.
67297
67298 2007-03-19  Bruno Haible  <bruno@clisp.org>
67299
67300         * modules/iconvme: Remove file.
67301         * lib/iconvme.h: Remove file.
67302         * lib/iconvme.c: Remove file.
67303         * m4/iconvme.m4: Remove file.
67304
67305 2007-03-19  Bruno Haible  <bruno@clisp.org>
67306
67307         * doc/relocatable-maint.texi: Break long shell script line.
67308         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67309
67310 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67311
67312         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
67313         handle file_has_acl.
67314         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
67315         * lib/acl.c: Move header inclusions and related macro defns into
67316         lib/acl-internal.h.
67317         (S_ISLNK): Remove defn, since that's now done for us.
67318         (file_has_acl): Move to lib/file-has-acl.c.
67319         Call acl_trivial if available.  This is the crucial part of the fix.
67320         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
67321         shared within the library.  Rewrite a bit, partly to make it compatible
67322         with the GNU coding style.
67323         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
67324         Remove unnecessary double-quotes.
67325         Don't test for acl_to_text; the build will catch that.
67326         Replace acl_entries if it doesn't exist and it is needed.
67327         Check for -lsec and acl_trivial (as used on Solaris 10).
67328         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
67329         lib/file-has-acl.c.
67330         (Depends-on): Add sys_stat, for S_ISLNK.
67331
67332 2007-03-19  Ben Pfaff  <blp@gnu.org>
67333
67334         * doc/gnulib.texi: Fix typos.
67335         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67336
67337 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67338
67339         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
67340         If size is zero here, buf must be zero.
67341
67342 2007-03-19  Simon Josefsson  <simon@josefsson.org>
67343
67344         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
67345         <bruno@clisp.org>.
67346
67347 2007-03-18  Bruno Haible  <bruno@clisp.org>
67348
67349         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
67350         Suggested by Eric Blake.
67351
67352 2007-03-18  Ben Pfaff  <blp@gnu.org>
67353
67354         * doc/relocatable.texi: Recommend using as prefix a directory
67355         that does not exist and will never be created.  Based on
67356         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
67357         and others.
67358
67359 2007-03-17  Bruno Haible  <bruno@clisp.org>
67360
67361         * lib/fchownat.c: Include lchown.h.
67362
67363 2007-03-17  Bruno Haible  <bruno@clisp.org>
67364
67365         Fix endless loop when the given allocated size was > INT_MAX.
67366         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
67367         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
67368         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
67369         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
67370         * lib/sprintf.c (sprintf): Likewise.
67371
67372 2007-03-17  Bruno Haible  <bruno@clisp.org>
67373
67374         * tests/test-argp-2.sh (func_compare): Output a context diff.
67375
67376 2007-03-17  Bruno Haible  <bruno@clisp.org>
67377
67378         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
67379         locale's decimal-point character.
67380
67381 2007-03-17  Bruno Haible  <bruno@clisp.org>
67382
67383         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
67384         before comparing it. Needed because on some platforms (e.g. x86) a
67385         'long double' occupies less bytes than sizeof (long double).
67386
67387 2007-03-17  Bruno Haible  <bruno@clisp.org>
67388
67389         * tests/test-crc.c (main): Make printf statements 64-bit clean.
67390         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
67391         * tests/test-getaddrinfo.c (simple): Likewise.
67392         * tests/test-read-file.c (main): Likewise.
67393
67394 2007-03-17  Bruno Haible  <bruno@clisp.org>
67395
67396         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
67397
67398 2007-03-17  Bruno Haible  <bruno@clisp.org>
67399
67400         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
67401         unused variable.
67402
67403 2007-03-17  Bruno Haible  <bruno@clisp.org>
67404
67405         * tests/test-c-strcasecmp.c: Include c-strcase.h.
67406         * tests/test-c-strncasecmp.c: Likewise.
67407
67408 2007-03-17  Bruno Haible  <bruno@clisp.org>
67409
67410         * modules/stdlib (Depends-on): Add unistd.
67411         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
67412         Needed for MacOS X 10.3.
67413
67414 2007-03-17  Bruno Haible  <bruno@clisp.org>
67415
67416         * lib/unistr/u-strdup.h: Include <stdlib.h>.
67417
67418 2007-03-17  Bruno Haible  <bruno@clisp.org>
67419
67420         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
67421
67422 2007-03-17  Bruno Haible  <bruno@clisp.org>
67423
67424         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
67425         to reflect files copied from gnulib (with or without modifications).
67426         Suggested by Jim Meyering.
67427
67428 2007-03-17  Eric Blake  <ebb9@byu.net>
67429
67430         * NEWS: Document stdlib change from 2007-02-18.
67431
67432 2007-03-17  Jim Meyering  <jim@meyering.net>
67433
67434         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
67435         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
67436         someone uses a name containing shell meta-characters.
67437         Reported by Alfred M. Szmidt.
67438
67439         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
67440
67441 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67442
67443         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
67444         and copy gettext configuration files only if configure.ac contains
67445         a use of AM_GNU_GETTEXT_VERSION.
67446
67447 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67448
67449         * build-aux/bootstrap (gnulib_name): New variable.
67450         (gnulib_tool_options): Use it.
67451
67452 2007-03-13  Simon Josefsson  <simon@josefsson.org>
67453
67454         * tests/test-des.c: Use new namespace.
67455
67456 2007-03-15  Bruno Haible  <bruno@clisp.org>
67457
67458         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
67459         Reported by James Youngman <jay@gnu.org>.
67460
67461 2007-03-15  Bruno Haible  <bruno@clisp.org>
67462
67463         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
67464         declared prototype. Needed with cc on OSF/1 5.1.
67465
67466 2007-03-15  Bruno Haible  <bruno@clisp.org>
67467
67468         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
67469         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
67470         (struct gl_list_implementation): Add dispose_fn argument to the
67471         'create_empty', 'create' methods.
67472         (struct gl_list_impl_base): Add field 'dispose_fn'.
67473         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
67474         argument.
67475         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
67476         dispose_fn argument.
67477         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
67478         dispose_fn on the dropped values.
67479         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
67480         dispose_fn argument.
67481         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
67482         dropped values.
67483         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
67484         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67485         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
67486         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67487         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
67488         argument.
67489         (gl_tree_list_free): Call dispose_fn on the dropped values.
67490         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
67491         the dropped values.
67492         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67493         Add dispose_fn argument.
67494         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
67495         Call dispose_fn on the dropped values.
67496         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
67497         Add dispose_fn argument.
67498         (gl_sublist_create): Initialize the 'dispose_fn' field.
67499         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
67500         * tests/test-array_list.c (main): Update.
67501         * tests/test-carray_list.c (main): Update.
67502         * tests/test-avltree_list.c (main): Update.
67503         * tests/test-rbtree_list.c (main): Update.
67504         * tests/test-avltreehash_list.c (main): Update.
67505         * tests/test-rbtreehash_list.c (main): Update.
67506         * tests/test-linked_list.c (main): Update.
67507         * tests/test-linkedhash_list.c (main): Update.
67508         * tests/test-array_oset.c (main): Update.
67509
67510 2007-03-15  Bruno Haible  <bruno@clisp.org>
67511
67512         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
67513         (gl_oset_create_empty): Add dispose_fn argument.
67514         (struct gl_oset_implementation): Add dispose_fn argument to
67515         'create_empty' method.
67516         (struct gl_oset_impl_base): Add dispose_fn field.
67517         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
67518         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
67519         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
67520         values.
67521         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
67522         (gl_tree_oset_free): Call dispose_fn on the dropped values.
67523         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67524         dropped value.
67525         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67526         dropped value.
67527         * tests/test-array_oset.c (main): Update.
67528         * tests/test-avltree_oset.c (main): Update.
67529         * tests/test-rbtree_oset.c (main): Update.
67530         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
67531
67532 2007-03-13  Bruno Haible  <bruno@clisp.org>
67533
67534         * tests/test-stdbool.c (i): Update after last patch.
67535
67536 2007-03-12  Bruno Haible  <bruno@clisp.org>
67537
67538         * lib/quotearg.c: Include <wctype.h> early, before the definition of
67539         the iswprint macro. Needed on Solaris 2.5.1.
67540
67541 2007-03-12  Bruno Haible  <bruno@clisp.org>
67542
67543         * tests/test-printf-frexp.c (main): Declare x as volatile.
67544
67545 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67546
67547         * doc/gnulib.texi (Build robot for gnulib): New section.
67548
67549 2007-03-12  Jim Meyering  <jim@meyering.net>
67550
67551         * build-aux/bootstrap: New file.
67552         * build-aux/bootstrap.conf: New file, from coreutils.
67553
67554 2007-03-11  Bruno Haible  <bruno@clisp.org>
67555
67556         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
67557
67558 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67559
67560         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
67561         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
67562         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
67563
67564 2007-03-11  Bruno Haible  <bruno@clisp.org>
67565
67566         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
67567         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
67568
67569 2007-03-11  Bruno Haible  <bruno@clisp.org>
67570
67571         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
67572         formula. Needed for SunPRO C 5.0.
67573
67574 2007-03-11  Bruno Haible  <bruno@clisp.org>
67575
67576         * modules/long-options (Depends-on): Add getopt.
67577
67578 2007-03-11  Bruno Haible  <bruno@clisp.org>
67579
67580         * modules/modechange (Depends-on): Add stdbool.
67581
67582 2007-03-11  Bruno Haible  <bruno@clisp.org>
67583
67584         * modules/i-ring (Depends-on): Add stdbool.
67585
67586 2007-03-11  Bruno Haible  <bruno@clisp.org>
67587
67588         * modules/gc-des (Depends-on): Add stdbool.
67589
67590 2007-03-11  Bruno Haible  <bruno@clisp.org>
67591
67592         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
67593
67594 2007-03-11  Bruno Haible  <bruno@clisp.org>
67595
67596         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
67597
67598 2007-03-11  Bruno Haible  <bruno@clisp.org>
67599
67600         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
67601
67602 2007-03-11  Bruno Haible  <bruno@clisp.org>
67603
67604         * lib/vasnprintf.c (sprintf): Undefine.
67605
67606 2007-03-11  Bruno Haible  <bruno@clisp.org>
67607
67608         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
67609         initializers in SunPRO C and Compaq C compilers.
67610
67611 2007-03-11  Bruno Haible  <bruno@clisp.org>
67612
67613         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
67614         decrementing code ANSI C compliant.
67615
67616 2007-03-11  Bruno Haible  <bruno@clisp.org>
67617
67618         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
67619         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
67620
67621 2007-03-11  Bruno Haible  <bruno@clisp.org>
67622
67623         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
67624         <stdbool.h> substitute doesn't pass.
67625
67626 2007-03-11  Bruno Haible  <bruno@clisp.org>
67627
67628         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
67629
67630 2007-03-11  Bruno Haible  <bruno@clisp.org>
67631
67632         * gnulib-tool (func_create_megatestdir): Create also an autobuild
67633         script, for submission to autobuild.josefsson.org.
67634
67635 2007-03-10  Bruno Haible  <bruno@clisp.org>
67636
67637         * modules/canonicalize-lgpl-tests: New file.
67638         * tests/test-canonicalize-lgpl.sh: New file.
67639         * tests/test-canonicalize-lgpl.c: New file.
67640
67641         * modules/c-strcase-tests: New file.
67642         * tests/test-c-strcase.sh: New file.
67643         * tests/test-c-strcasecmp.c: New file.
67644         * tests/test-c-strncasecmp.c: New file.
67645
67646         * modules/atexit-tests: New file.
67647         * tests/test-atexit.sh: New file.
67648         * tests/test-atexit.c: New file.
67649
67650 2007-03-10  Bruno Haible  <bruno@clisp.org>
67651
67652         * tests/test-binary-io.sh: Use temporary filenames that are not so
67653         likely to clash with those of other tests (in a parallel make).
67654         * tests/test-binary-io.c: Likewise.
67655
67656 2007-03-10  Bruno Haible  <bruno@clisp.org>
67657
67658         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
67659         fallback; use #error instead.
67660         Suggested by Simon Josefsson.
67661
67662 2007-03-10  Bruno Haible  <bruno@clisp.org>
67663
67664         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
67665         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
67666         first and the last.
67667
67668 2007-03-10  Bruno Haible  <bruno@clisp.org>
67669
67670         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
67671
67672 2007-03-10  Bruno Haible  <bruno@clisp.org>
67673
67674         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
67675         "make distcheck".
67676         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
67677         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
67678         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
67679
67680 2007-03-10  Bruno Haible  <bruno@clisp.org>
67681
67682         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
67683         variable.
67684         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
67685         variable.
67686
67687 2007-03-09  Eric Blake  <ebb9@byu.net>
67688         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
67689
67690         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
67691         types are not being provided by gnulib.
67692         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
67693         types are supported.
67694
67695 2007-03-10  Bruno Haible  <bruno@clisp.org>
67696
67697         * lib/stdio_.h (__attribute__): New macro.
67698         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
67699         vsprintf): Specify __attribute__ __format__ for GCC.
67700         Suggested by Eric Blake.
67701
67702 2007-03-09  Bruno Haible  <bruno@clisp.org>
67703
67704         * modules/printf-posix-tests: New file.
67705         * tests/test-printf-posix.sh: New file.
67706         * tests/test-printf-posix.c: New file.
67707
67708         * modules/printf-posix: New file.
67709         * lib/printf.c: New file.
67710         * m4/printf-posix-rpl.m4: New file.
67711         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
67712         REPLACE_PRINTF.
67713         * lib/stdio_.h (printf): New declaration.
67714         (format, __format__, ____printf____, ____scanf____, ____strftime____,
67715         ____strfmon____): New macros.
67716         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
67717         REPLACE_PRINTF.
67718
67719 2007-03-09  Bruno Haible  <bruno@clisp.org>
67720
67721         * tests/test-vasnprintf-posix2.sh: New file.
67722         * tests/test-vasnprintf-posix2.c: New file.
67723         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
67724         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
67725         (Makefile.am): Activate test-vasnprintf-posix2.sh.
67726
67727         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
67728         a locale dependent decimal point, rather than always '.'.
67729
67730 2007-03-09  Eric Blake  <ebb9@byu.net>
67731
67732         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
67733         spite of platforms like Tandem/NSK that define it to -1.
67734
67735 2007-03-08  Bruno Haible  <bruno@clisp.org>
67736
67737         * modules/vprintf-posix-tests: New file.
67738         * tests/test-vprintf-posix.sh: New file.
67739         * tests/test-vprintf-posix.c: New file.
67740         * tests/test-printf-posix.h: New file.
67741
67742         * modules/vprintf-posix: New file.
67743         * lib/vprintf.c: New file.
67744         * m4/vprintf-posix.m4: New file.
67745         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
67746         REPLACE_VPRINTF.
67747         * lib/stdio_.h (vprintf): New declaration.
67748         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
67749         REPLACE_VPRINTF.
67750
67751 2007-03-08  Bruno Haible  <bruno@clisp.org>
67752
67753         * modules/fprintf-posix-tests: New file.
67754         * tests/test-fprintf-posix.sh: New file.
67755         * tests/test-fprintf-posix.c: New file.
67756
67757         * modules/fprintf-posix: New file.
67758         * lib/fprintf.c: New file.
67759         * m4/fprintf-posix.m4: New file.
67760         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
67761         REPLACE_FPRINTF.
67762         * lib/stdio_.h (fprintf): New declaration.
67763         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
67764         REPLACE_FPRINTF.
67765
67766 2007-03-08  Bruno Haible  <bruno@clisp.org>
67767
67768         * modules/vfprintf-posix-tests: New file.
67769         * tests/test-vfprintf-posix.sh: New file.
67770         * tests/test-vfprintf-posix.c: New file.
67771         * tests/test-fprintf-posix.h: New file.
67772         * tests/test-fprintf-posix.out: New file.
67773
67774         * modules/vfprintf-posix: New file.
67775         * lib/vfprintf.c: New file.
67776         * m4/vfprintf-posix.m4: New file.
67777         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
67778         REPLACE_VFPRINTF.
67779         * lib/stdio_.h (vfprintf): New declaration.
67780         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
67781         REPLACE_VFPRINTF.
67782
67783 2007-03-08  Bruno Haible  <bruno@clisp.org>
67784
67785         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
67786
67787 2007-03-08  Bruno Haible  <bruno@clisp.org>
67788
67789         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
67790         instead of 'expr' invocations.
67791         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67792         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67793         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67794         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67795         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67796         Suggested by Paul Eggert.
67797
67798 2007-03-08  Bruno Haible  <bruno@clisp.org>
67799
67800         * modules/fseterr-tests: New file.
67801         * tests/test-fseterr.c: New file.
67802
67803         * modules/fseterr: New file.
67804         * lib/fseterr.h: New file.
67805         * lib/fseterr.c: New file.
67806
67807 2007-03-08  Bruno Haible  <bruno@clisp.org>
67808
67809         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
67810         * lib/getopt_.h: Likewise.
67811         * lib/mbswidth.h: Likewise.
67812         * lib/setenv.h: Likewise.
67813         * lib/vasnprintf.h: Likewise.
67814         * lib/vasprintf.h: Likewise.
67815         * lib/verror.h: Likewise.
67816         * lib/xsetenv.h: Likewise.
67817         * lib/xvasprintf.h: Likewise.
67818
67819 2007-03-08  Jim Meyering  <jim@meyering.net>
67820
67821         * users.txt: Add parted.
67822
67823         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
67824
67825 2007-03-07  Bruno Haible  <bruno@clisp.org>
67826
67827         * m4/printf.m4: Make the shell script snippets copy&pastable.
67828
67829 2007-03-02  Bruno Haible  <bruno@clisp.org>
67830
67831         * lib/netinet_in_.h: New file.
67832         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
67833         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
67834         * modules/netinet_in (Files): Add lib/netinet_in_.h.
67835         (Depends-on): Add absolute-header.
67836         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
67837         into netinet/in.h.
67838
67839 2007-03-03  Bruno Haible  <bruno@clisp.org>
67840
67841         * lib/sys_select_.h: New file.
67842         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
67843         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
67844         * modules/sys_select (Files): Add lib/sys_select_.h.
67845         (Depends-on): Add absolute-header.
67846         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
67847         into sys/select.h.
67848
67849 2007-03-02  Bruno Haible  <bruno@clisp.org>
67850
67851         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
67852         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
67853         values.
67854         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
67855         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
67856         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
67857         * modules/sys_socket (Depends-on): Add absolute-header.
67858         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
67859         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
67860         (Include): Remove requirement of inclusion of <sys/types.h>.
67861
67862 2007-03-02  Bruno Haible  <bruno@clisp.org>
67863
67864         * lib/byteswap_.h (bswap_32): Fix formula.
67865
67866 2007-03-06  Bruno Haible  <bruno@clisp.org>
67867
67868         * modules/sprintf-posix-tests: New file.
67869         * tests/test-sprintf-posix.c: New file.
67870
67871         * modules/sprintf-posix: New file.
67872         * lib/sprintf.c: New file.
67873         * m4/sprintf-posix.m4: New file.
67874         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
67875         REPLACE_SPRINTF.
67876         * lib/stdio_.h (sprintf): New declaration.
67877         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
67878         REPLACE_SPRINTF.
67879
67880 2007-03-06  Bruno Haible  <bruno@clisp.org>
67881
67882         * modules/vsprintf-posix-tests: New file.
67883         * tests/test-vsprintf-posix.c: New file.
67884         * tests/test-sprintf-posix.h: New file.
67885
67886         * modules/vsprintf-posix: New file.
67887         * lib/vsprintf.c: New file.
67888         * m4/vsprintf-posix.m4: New file.
67889         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
67890         REPLACE_VSPRINTF.
67891         * lib/stdio_.h (vsprintf): New declaration.
67892         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
67893         REPLACE_VSPRINTF.
67894
67895 2007-03-06  Bruno Haible  <bruno@clisp.org>
67896
67897         * modules/vsnprintf (Depend-on): Remove minmax.
67898
67899 2007-03-06  Bruno Haible  <bruno@clisp.org>
67900
67901         * modules/snprintf-posix-tests: New file.
67902         * tests/test-snprintf-posix.c: New file.
67903
67904         * modules/snprintf-posix: New file.
67905         * m4/snprintf-posix.m4: New file.
67906         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
67907         gl_FUNC_SNPRINTF.
67908         (gl_FUNC_SNPRINTF): Invoke it.
67909         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
67910         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
67911         is set.
67912         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
67913
67914 2007-03-06  Bruno Haible  <bruno@clisp.org>
67915
67916         * modules/vsnprintf-posix-tests: New file.
67917         * tests/test-vsnprintf-posix.c: New file.
67918         * tests/test-snprintf-posix.h: New file.
67919
67920         * modules/vsnprintf-posix: New file.
67921         * m4/vsnprintf-posix.m4: New file.
67922         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
67923         gl_FUNC_VSNPRINTF.
67924         (gl_FUNC_VSNPRINTF): Invoke it.
67925         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
67926         * lib/stdio_.h (vsnprintf): Define as a replacement if
67927         REPLACE_VSNPRINTF is set.
67928         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
67929
67930 2007-03-06  Bruno Haible  <bruno@clisp.org>
67931
67932         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
67933         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
67934
67935 2007-03-06  Bruno Haible  <bruno@clisp.org>
67936
67937         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
67938         (asinl): Declare also if HAVE_DECL_ASINL is set.
67939         (atanl): Declare also if HAVE_DECL_ATANL is set.
67940         (ceill): Declare also if HAVE_DECL_CEILL is set.
67941         (cosl): Declare also if HAVE_DECL_COSL is set.
67942         (expl): Declare also if HAVE_DECL_EXPL is set.
67943         (floorl): Declare also if HAVE_DECL_FLOORL is set.
67944         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
67945         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
67946         (logl): Declare also if HAVE_DECL_LOGL is set.
67947         (sinl): Declare also if HAVE_DECL_SINL is set.
67948         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
67949         (tanl): Declare also if HAVE_DECL_TANL is set.
67950         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
67951         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
67952         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
67953         declaration of frexpl, ldexpl.
67954         * modules/printf-frexpl (Depends-on): Add math.
67955         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
67956
67957 2007-03-05  Bruno Haible  <bruno@clisp.org>
67958
67959         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
67960         frexpl and ldexpl are declared.
67961         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
67962
67963 2007-03-05  Bruno Haible  <bruno@clisp.org>
67964
67965         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
67966         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
67967
67968 2007-03-05  Bruno Haible  <bruno@clisp.org>
67969
67970         * lib/stdio_.h: Include <stddef.h>.
67971
67972 2007-03-05  Bruno Haible  <bruno@clisp.org>
67973
67974         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
67975
67976 2007-03-05  Bruno Haible  <bruno@clisp.org>
67977
67978         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
67979         NetBSD 4, from Ralf Wildenhues.
67980
67981 2007-03-04  Bruno Haible  <bruno@clisp.org>
67982
67983         * lib/vasprintf.h: Update #if logic for the case when the functions
67984         exist but are overridden.
67985
67986 2007-03-04  Bruno Haible  <bruno@clisp.org>
67987
67988         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
67989         implementations: glibc-2.4 and MacOS X 10.3.
67990         * tests/test-vasnprintf-posix.c (test_function): Test also the case
67991         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
67992         * tests/test-vasprintf-posix.c (test_function): Likewise.
67993
67994 2007-03-04  Bruno Haible  <bruno@clisp.org>
67995
67996         * modules/vasprintf-posix-tests: New file.
67997         * tests/test-vasprintf-posix.c: New file.
67998
67999         * modules/vasprintf-posix: New file.
68000         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
68001         defined.
68002         * m4/vasprintf-posix.m4: New file.
68003         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
68004         gl_FUNC_VASPRINTF.
68005         (gl_FUNC_VASPRINTF): Invoke it.
68006         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
68007         here.
68008         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
68009
68010 2007-03-04  Bruno Haible  <bruno@clisp.org>
68011
68012         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
68013         REPLACE_GETTIMEOFDAY.
68014         * modules/sys_time (Makefile.am): Likewise.
68015         * m4/sys_time_h.m4: Likewise.
68016         * m4/gettimeofday.m4: Likewise.
68017
68018 2007-03-04  Bruno Haible  <bruno@clisp.org>
68019
68020         * modules/vasnprintf-posix-tests: New file.
68021         * tests/test-vasnprintf-posix.c: New file.
68022
68023         * modules/vasnprintf-posix: New file.
68024         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
68025         printf-frexpl.h.
68026         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
68027         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
68028         REPLACE_VASNPRINTF is defined.
68029         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
68030         gl_FUNC_VASNPRINTF.
68031         (gl_FUNC_VASNPRINTF): Invoke it.
68032         * m4/vasnprintf-posix.m4: New file.
68033         * m4/printf.m4: New file.
68034
68035 2007-03-04  Bruno Haible  <bruno@clisp.org>
68036
68037         Compile progreloc.c only if --enable-relocatable is specified.
68038         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
68039         if --enable-relocatable was specified.
68040         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
68041         lib_SOURCES.
68042
68043 2007-03-04  Jim Meyering  <jim@meyering.net>
68044
68045         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
68046         Use it consistently, rather than enumerating errno constants.
68047
68048 2007-03-04  Bruno Haible  <bruno@clisp.org>
68049
68050         * modules/xvasprintf-tests: New file.
68051         * tests/test-xvasprintf.c: New file.
68052
68053         * modules/vasprintf-tests: New file.
68054         * tests/test-vasprintf.c: New file.
68055
68056         * modules/vasnprintf-tests: New file.
68057         * tests/test-vasnprintf.c: New file.
68058
68059         * modules/vsnprintf-tests: New file.
68060         * tests/test-vsnprintf.c: New file.
68061
68062         * modules/snprintf-tests: New file.
68063         * tests/test-snprintf.c: New file.
68064
68065 2007-03-04  Bruno Haible  <bruno@clisp.org>
68066
68067         Compile relocatable.c only if --enable-relocatable is specified.
68068         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
68069         gl_RELOCATABLE_LIBRARY.
68070         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
68071         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
68072         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
68073         gl_RELOCATABLE_LIBRARY.
68074         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
68075         (Makefile.am): Remove lib_SOURCES.
68076         * modules/relocatable-lib-lgpl (configure.ac): Invoke
68077         gl_RELOCATABLE_LIBRARY.
68078         (Makefile.am): Remove lib_SOURCES.
68079         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
68080         always.
68081         * modules/relocatable-prog-wrapper (configure.ac): Invoke
68082         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
68083
68084 2007-03-04  Bruno Haible  <bruno@clisp.org>
68085
68086         * modules/argmatch-tests: New file.
68087         * tests/test-argmatch.c: New file.
68088
68089         * tests/test-allocsa.c (main): Halve the number of loop runs.
68090
68091         * modules/alloca-opt-tests: New file.
68092         * tests/test-alloca-opt.c: New file.
68093
68094 2007-03-04  Jim Meyering  <jim@meyering.net>
68095
68096         Work around difference between Linux ACLs and Solaris 10 ZFS.
68097         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
68098         for EINVAL.
68099
68100 2007-03-03  Bruno Haible  <bruno@clisp.org>
68101
68102         * modules/relocatable-prog (Depends-on): Add back progreloc's
68103         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
68104
68105 2007-03-03  Bruno Haible  <bruno@clisp.org>
68106
68107         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
68108         * modules/relocatable-lib: New file.
68109
68110 2007-03-03  Bruno Haible  <bruno@clisp.org>
68111
68112         * modules/relocatable-prog: Renamed from modules/relocatable.
68113         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
68114
68115 2007-03-03  Bruno Haible  <bruno@clisp.org>
68116
68117         * modules/relocatable-script (Files): Add doc/relocatable.texi,
68118         m4/relocatable-lib.m4.
68119         (Depends-on): Remove 'relocatable'.
68120         (configure.ac): Add gl_RELOCATABLE_NOP.
68121
68122 2007-03-03  Bruno Haible  <bruno@clisp.org>
68123
68124         * modules/relocatable-prog-wrapper: New file.
68125         * modules/relocatable (Depends-on): Add it. Remove all other
68126         dependencies except progname.
68127         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
68128
68129         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
68130         (gl_FUNC_STRERROR): Nop.
68131         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
68132
68133         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
68134         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
68135
68136         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
68137         (gl_FUNC_READLINK): Update.
68138
68139         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
68140
68141 2007-03-03  Bruno Haible  <bruno@clisp.org>
68142
68143         * lib/xreadlink.c: Include <unistd.h> unconditionally.
68144         * modules/xreadlink (Depends-on): Add unistd.
68145         * modules/xreadlink-with-size (Depends-on): Likewise.
68146
68147 2007-03-03  Bruno Haible  <bruno@clisp.org>
68148
68149         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
68150         extracted from gt_FUNC_SETENV.
68151         (gt_FUNC_SETENV): Remove macro.
68152         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
68153         remove gt_FUNC_SETENV.
68154
68155 2007-03-03  Bruno Haible  <bruno@clisp.org>
68156
68157         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
68158         ENABLE_RELOCATABLE here.
68159         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
68160
68161 2007-03-03  Bruno Haible  <bruno@clisp.org>
68162
68163         * modules/rbtreehash-list-tests (Depends-on): Add progname.
68164         * tests/test-rbtreehash_list.c: Include progname.h.
68165         (main): Call set_program_name.
68166
68167         * modules/rbtree-oset-tests (Depends-on): Add progname.
68168         * tests/test-rbtree_oset.c: Include progname.h.
68169         (main): Call set_program_name.
68170
68171         * modules/rbtree-list-tests (Depends-on): Add progname.
68172         * tests/test-rbtree_list.c: Include progname.h.
68173         (main): Call set_program_name.
68174
68175         * modules/linked-list-tests (Depends-on): Add progname.
68176         * tests/test-linked_list.c: Include progname.h.
68177         (main): Call set_program_name.
68178
68179 2007-03-03  Bruno Haible  <bruno@clisp.org>
68180
68181         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
68182         All uses of __restrict changed to _Restrict_.
68183         * lib/glob_.h (__restrict): Remove macro.
68184
68185 2007-03-02  Bruno Haible  <bruno@clisp.org>
68186
68187         * modules/gettext (configure.ac): Require gettext infrastructure
68188         from version 0.16.1.
68189
68190 2007-03-02  Bruno Haible  <bruno@clisp.org>
68191
68192         * modules/linkedhash-list-tests (Depends-on): Add progname.
68193         * tests/test-linkedhash_list.c: Include progname.h.
68194         (main): Call set_program_name.
68195
68196         * modules/carray-list-tests (Depends-on): Add progname.
68197         * tests/test-carray_list.c: Include progname.h.
68198         (main): Call set_program_name.
68199
68200         * modules/avltreehash-list-tests (Depends-on): Add progname.
68201         * tests/test-avltreehash_list.c: Include progname.h.
68202         (main): Call set_program_name.
68203
68204         * modules/avltree-oset-tests (Depends-on): Add progname.
68205         * tests/test-avltree_oset.c: Include progname.h.
68206         (main): Call set_program_name.
68207
68208         * modules/avltree-list-tests (Depends-on): Add progname.
68209         * tests/test-avltree_list.c: Include progname.h.
68210         (main): Call set_program_name.
68211
68212         * modules/array-oset-tests (Depends-on): Add progname.
68213         * tests/test-array_oset.c: Include progname.h.
68214         (main): Call set_program_name.
68215
68216         * modules/array-list-tests (Depends-on): Add progname.
68217         * tests/test-array_list.c: Include progname.h.
68218         (main): Call set_program_name.
68219
68220         * modules/argp-tests (Depends-on): Add progname.
68221         * tests/test-argp.c: Include argp.h first. Include progname.h.
68222         (main): Call set_program_name.
68223
68224 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
68225
68226         * doc/gnulib-tool.texi (Initial import): Reword description of
68227         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
68228         limited effect even if defined after the first system include.
68229
68230 2007-03-01  Bruno Haible  <bruno@clisp.org>
68231
68232         * build-aux/config.libpath: Update to libtool-1.5.22.
68233         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68234
68235 2007-03-01  Bruno Haible  <bruno@clisp.org>
68236
68237         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
68238         foo_CFLAGS.
68239         Reported by Ralf Wildenhues.
68240
68241 2007-03-01  Bruno Haible  <bruno@clisp.org>
68242
68243         * build-aux/install-reloc: Remove object files left over by some
68244         compilers.
68245         Reported by Ralf Wildenhues.
68246
68247 2007-03-01  Bruno Haible  <bruno@clisp.org>
68248
68249         * build-aux/install-reloc: Break long lines.
68250
68251 2007-03-01  Bruno Haible  <bruno@clisp.org>
68252
68253         * doc/relocatable.texi: Document that it may not work on OpenBSD.
68254         Reported by Ralf Wildenhues.
68255
68256 2007-03-01  Bruno Haible  <bruno@clisp.org>
68257
68258         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
68259         include ordering constraints.
68260
68261 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68262
68263         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
68264         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
68265         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
68266         as another example.
68267         * lib/time_.h: Fix misspelling.
68268         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68269         Require gl_HEADER_TIME_H_DEFAULTS.
68270         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
68271         * m4/time_r.m4 (gl_TIME_R): Likewise.
68272         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
68273
68274 2007-03-01  Bruno Haible  <bruno@clisp.org>
68275
68276         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
68277         * m4/utimens.m4 (gl_UTIMENS): Likewise.
68278
68279 2007-03-01  Jim Meyering  <jim@meyering.net>
68280
68281         * modules/xreadlink (Maintainer): Add my name.
68282         * modules/xreadlink-with-size (Depends-on): Alphabetize.
68283
68284 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
68285             Bruno Haible  <bruno@clisp.org>
68286
68287         * build-aux/install-reloc: Compile also c-ctype.c.
68288         * build-aux/relocatable.sh.in: New file.
68289         * doc/relocatable.texi: New file.
68290         * doc/relocatable-maint.texi: New file.
68291         * doc/gnulib.texi: Include relocatable-maint.texi.
68292         * lib/progreloc.c: Include unistd.h unconditionally.
68293         * lib/relocwrapper.c: Include unistd.h unconditionally.
68294         Include c-ctype.h.
68295         (add_dotbin): Use c_tolower.
68296         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
68297         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
68298         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
68299         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
68300         to m4/relocatable-lib.m4.
68301         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
68302         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
68303         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
68304         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
68305         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
68306         * modules/relocatable: New file.
68307         * modules/relocatable-lib: New file.
68308         * modules/relocatable-script: New file.
68309
68310 2007-02-28  Bruno Haible  <bruno@clisp.org>
68311
68312         Import --enable-relocatable infrastructure.
68313         * build-aux/config.libpath: New file, from GNU gettext.
68314         * build-aux/install-reloc: New file, from GNU gettext.
68315         * build-aux/reloc-ldflags: New file, from GNU gettext.
68316         * lib/relocatable.h: New file, from GNU gettext.
68317         * lib/relocatable.c: New file, from GNU gettext.
68318         * lib/relocwrapper.c: New file, from GNU gettext.
68319         * m4/relocatable.m4: New file, from GNU gettext.
68320
68321 2007-02-28  Bruno Haible  <bruno@clisp.org>
68322
68323         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
68324
68325         * modules/xreadlink: New file, from GNU gettext with modifications.
68326         * lib/xreadlink.c: New file, from GNU gettext.
68327         * lib/xreadlink.h: Add comments.
68328         (xreadlink): New declaration.
68329
68330         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
68331         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
68332         lib/xreadlink-with-size.c.
68333         (configure.ac): Remove gl_XREADLINK invocation.
68334         (Makefile.am): Augment lib_SOURCES.
68335         * m4/xreadlink.m4: Remove file.
68336         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
68337         (xreadlink_with_size): Renamed from xreadink.
68338         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
68339         * modules/canonicalize (Depends-on): Replace xreadlink with
68340         xreadlink-with-size.
68341         * lib/canonicalize.c (canonicalize_filename_mode): Update.
68342
68343 2007-02-25  Jim Meyering  <jim@meyering.net>
68344
68345         * build-aux/announce-gen: When complaining about excess arguments,
68346         list them.
68347
68348 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68349
68350         * README: Document signed integer overflow situation more
68351         accurately.
68352
68353 2007-02-25  Bruno Haible  <bruno@clisp.org>
68354
68355         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
68356         'a' or 'A' conversion.
68357
68358 2007-02-25  Bruno Haible  <bruno@clisp.org>
68359
68360         * modules/filename: Renamed from modules/pathname.
68361         (Files): Replace lib/pathname.h with lib/filename.h. Replace
68362         lib/concatpath.c with lib/concat-filename.c.
68363         (Makefile.am): Update.
68364         (Include): Replace pathname.h with filename.h.
68365         * lib/filename.h: Renamed from lib/pathname.h.
68366         (concatenated_filename): Renamed from concatenated_pathname.
68367         * lib/concat-filename.c: Renamed from lib/concatpath.c.
68368         (concatenated_filename): Renamed from concatenated_pathname.
68369         * lib/findprog.c: Include filename.h instead of pathname.h.
68370         (find_in_path): Update.
68371         * lib/javacomp.c: Include filename.h instead of pathname.h.
68372         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
68373         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
68374         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
68375         is_oldgcj_14_13_usable, is_javac_usable): Update.
68376         * lib/javaexec.c: Include filename.h instead of pathname.h.
68377         (execute_java_class): Update.
68378         * modules/findprog: Update.
68379         * modules/javacomp: Update.
68380         * modules/javaexec: Update.
68381         * MODULES.html.sh (File system functions): Add 'filename', remove
68382         'pathname'.
68383
68384 2007-02-25  Bruno Haible  <bruno@clisp.org>
68385
68386         * modules/printf-frexpl-tests: New file.
68387         * tests/test-printf-frexpl.c: New file.
68388
68389         * modules/printf-frexpl: New file.
68390         * lib/printf-frexpl.h: New file.
68391         * lib/printf-frexpl.c: New file.
68392         * m4/printf-frexpl.m4: New file.
68393
68394 2007-02-25  Bruno Haible  <bruno@clisp.org>
68395
68396         * modules/printf-frexp-tests: New file.
68397         * tests/test-printf-frexp.c: New file.
68398
68399         * modules/printf-frexp: New file.
68400         * lib/printf-frexp.h: New file.
68401         * lib/printf-frexp.c: New file.
68402         * m4/printf-frexp.m4: New file.
68403
68404 2007-02-25  Bruno Haible  <bruno@clisp.org>
68405
68406         Assume automake >= 1.10 for the tests.
68407         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
68408         * modules/arctwo-tests: Likewise.
68409         * modules/argp-tests: Likewise.
68410         * modules/avltree-list-tests: Likewise.
68411         * modules/avltree-oset-tests: Likewise.
68412         * modules/avltreehash-list-tests: Likewise.
68413         * modules/carray-list-tests: Likewise.
68414         * modules/crc-tests: Likewise.
68415         * modules/des-tests: Likewise.
68416         * modules/gc-arcfour-tests: Likewise.
68417         * modules/gc-arctwo-tests: Likewise.
68418         * modules/gc-des-tests: Likewise.
68419         * modules/gc-hmac-md5-tests: Likewise.
68420         * modules/gc-hmac-sha1-tests: Likewise.
68421         * modules/gc-md2-tests: Likewise.
68422         * modules/gc-md4-tests: Likewise.
68423         * modules/gc-md5-tests: Likewise.
68424         * modules/gc-pbkdf2-sha1-tests: Likewise.
68425         * modules/gc-rijndael-tests: Likewise.
68426         * modules/gc-sha1-tests: Likewise.
68427         * modules/gc-tests: Likewise.
68428         * modules/getaddrinfo-tests: Likewise.
68429         * modules/hmac-md5-tests: Likewise.
68430         * modules/hmac-sha1-tests: Likewise.
68431         * modules/linked-list-tests: Likewise.
68432         * modules/linkedhash-list-tests: Likewise.
68433         * modules/lock-tests: Likewise.
68434         * modules/md2-tests: Likewise.
68435         * modules/md4-tests: Likewise.
68436         * modules/md5-tests: Likewise.
68437         * modules/rbtree-list-tests: Likewise.
68438         * modules/rbtree-oset-tests: Likewise.
68439         * modules/rbtreehash-list-tests: Likewise.
68440         * modules/read-file-tests: Likewise.
68441         * modules/rijndael-tests: Likewise.
68442         * modules/stdint-tests: Likewise.
68443         * modules/tls-tests: Likewise.
68444
68445 2007-02-24  Bruno Haible  <bruno@clisp.org>
68446
68447         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
68448         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
68449         function; instead check whether isnan with a double argument links.
68450         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
68451         function; instead check whether isnan with a 'long double' argument
68452         links.
68453         Reported by Eric Blake <ebb9@byu.net>.
68454
68455 2007-02-24  Bruno Haible  <bruno@clisp.org>
68456
68457         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
68458         defined.
68459         * lib/isnanl.c: Remove all code. Just include isnan.c.
68460         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
68461
68462 2007-02-25  Jim Meyering  <jim@meyering.net>
68463
68464         Avoid conflicting types for 'unsetenv' on FreeBSD.
68465         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
68466         conflicting with FreeBSD's (5.0 and 6.1) function declaration
68467         in stdlib.h.
68468
68469 2007-02-24  Bruno Haible  <bruno@clisp.org>
68470
68471         * modules/isnanl-nolibm-tests: New file.
68472         * tests/test-isnanl.c: New file.
68473
68474         * modules/isnanl-nolibm: New file.
68475         * lib/isnanl.h: New file.
68476         * lib/isnanl.c: New file.
68477         * m4/isnanl.m4: New file.
68478
68479 2007-02-24  Bruno Haible  <bruno@clisp.org>
68480
68481         * modules/isnan-nolibm-tests: New file.
68482         * tests/test-isnan.c: New file.
68483
68484         * modules/isnan-nolibm: New file.
68485         * lib/isnan.h: New file.
68486         * lib/isnan.c: New file.
68487         * m4/isnan.m4: New file.
68488
68489 2007-02-24  Bruno Haible  <bruno@clisp.org>
68490
68491         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
68492         assume that an exponent fits in 20 bits.
68493
68494 2007-02-24  Jim Meyering  <jim@meyering.net>
68495
68496         * m4/regex.m4: Update the description of the configure-time option,
68497         --without-included-regex, to state accurately what the defaults are,
68498         and perhaps to give people an idea why using this option is risky.
68499
68500 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68501
68502         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
68503         loops on small arguments.  This attempts to avoid the problem
68504         Bruno Haible reported for AIX 4.3.2 in
68505         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
68506
68507 2007-02-23  Bruno Haible  <bruno@clisp.org>
68508
68509         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
68510         Needed for help2man.
68511
68512 2007-02-23  Karl Berry  <karl@gnu.org>
68513
68514         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
68515         exists, foo.h should be cvs-ignored, not committed.
68516
68517 2007-02-23  Eric Blake  <ebb9@byu.net>
68518
68519         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
68520         * lib/stat-time.h (includes): Likewise.
68521         * lib/utimecmp.c (includes): Likewise.
68522         * lib/utimens.h (includes): Likewise.
68523         * lib/getdate.y (includes): Also include "timespec.h" for use
68524         internal to the module.
68525         * modules/utimens (Depends-on): Revert yesterday's patch.
68526         * modules/nanosleep (Depends-on): Add missing dependency.
68527
68528 2007-02-22  Bruno Haible  <bruno@clisp.org>
68529
68530         * lib/glob.c: Don't include getlogin_r.h.
68531
68532 2007-02-22  Jim Meyering  <jim@meyering.net>
68533
68534         * modules/utimens (Depends-on): Add timespec, required for
68535         utimens.h's inclusion of timespec.h.
68536
68537 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
68538
68539         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
68540         long unreadable paths in GNU/Linux.  Problem reported by Andreas
68541         Schwab in
68542         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
68543         I'll try to think of a better way to fix the Solaris problem.
68544
68545         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
68546         like glibc; on Solaris 10, it fails with errno == EINVAL.
68547         POSIX says the behavior is unspecified if the first argument is NULL,
68548         so play it safe and never pass NULL to the system getcwd.
68549
68550 2007-02-21  Jim Meyering  <jim@meyering.net>
68551
68552         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
68553         of gettimeofday.  It would conflict with the one now always
68554         provided via sys_time_.h.  Reported by Matthew Woehlke, as
68555         an IRIX 6.5 build failure.
68556
68557 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68558
68559         Minor fixups to port to Solaris 10 with Sun C 5.8.
68560         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
68561         * modules/getcwd (Depends-on): Add dirfd.
68562         * lib/putenv.c (putenv): #undef it.
68563         (rpl_putenv): New decl.
68564         (malloc, free): Include <stdlib.h> rather than prototyping separately.
68565
68566 2007-02-20  Bruno Haible  <bruno@clisp.org>
68567
68568         * modules/stdio-tests: New file.
68569         * tests/test-stdio.c: New file.
68570
68571         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
68572         (Depends-on): Add stdio.
68573         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68574         (Include): Use <stdio.h> instead of vsnprintf.h.
68575         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68576         HAVE_DECL_VSNPRINTF.
68577         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
68578
68579         * modules/snprintf (Files): Remove lib/snprintf.h.
68580         (Depends-on): Add stdio.
68581         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68582         (Include): Use <stdio.h> instead of snprintf.h.
68583         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68584         HAVE_DECL_SNPRINTF.
68585         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
68586         * lib/getaddrinfo.c: Likewise.
68587
68588         * modules/stdio: New file.
68589         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
68590         * lib/snprintf.h: Remove file.
68591         * lib/vsnprintf.h: Remove file.
68592         * lib/.cppi-disable: Remove snprintf.h.
68593         * m4/stdio_h.m4: New file.
68594         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
68595
68596 2007-02-20  Jim Meyering  <jim@meyering.net>
68597
68598         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
68599         used by e.g., mingw.  From Bruno Haible.
68600
68601 2007-02-19  Bruno Haible  <bruno@clisp.org>
68602
68603         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
68604         warnings.
68605         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68606
68607 2007-02-19  Bruno Haible  <bruno@clisp.org>
68608
68609         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
68610         from mingw users.
68611
68612 2007-02-19  Bruno Haible  <bruno@clisp.org>
68613
68614         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
68615         warnings.
68616         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
68617
68618 2007-02-19  Jim Meyering  <jim@meyering.net>
68619
68620         Don't use FD after a successful "fdopendir (fd)".
68621         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
68622         Reset it by calling dirfd on the just-obtained DIR*.
68623
68624         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
68625         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
68626
68627 2007-02-18  Bruno Haible  <bruno@clisp.org>
68628
68629         * lib/readlink.c: Include <unistd.h>.
68630         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
68631         HAVE_READLINK.
68632         * modules/readlink (Depends-on): Add unistd.
68633         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68634         (Include): Add <unistd.h>.
68635
68636         * lib/getlogin_r.h: Remove file.
68637         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
68638         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
68639         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
68640         HAVE_DECL_GETLOGIN_R.
68641         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
68642         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68643         (Include): Use <unistd.h> instead of getlogin_r.h.
68644
68645         * lib/getcwd.h: Remove file.
68646         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
68647         * lib/xgetcwd.c: Likewise.
68648         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
68649         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
68650         * modules/getcwd (Files): Remove lib/getcwd.h.
68651         (Depends-on): Add unistd.
68652         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68653         (Include): Use <unistd.h> instad of getcwd.h.
68654
68655         * lib/ftruncate.c: Include <unistd.h> first.
68656         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
68657         Set HAVE_FTRUNCATE.
68658         * modules/ftruncate (Depends-on): Add unistd.
68659         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68660
68661         * lib/fchdir.c: Include <unistd.h> first.
68662         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
68663         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
68664         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
68665         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68666         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
68667
68668         * lib/dup2.c: Include <unistd.h> first.
68669         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
68670         HAVE_DUP2.
68671         * modules/dup2 (Depends-on): Add unistd.
68672         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68673
68674         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
68675         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
68676         REPLACE_CHOWN. Don't define chown as a macro here.
68677         * modules/chown (Depends-on): Add unistd.
68678         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68679
68680         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
68681         Add definition for GL_LINK_WARNING.
68682         (chown, dup2): New declarations.
68683         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
68684         link warning.
68685         (ftruncate): New declaration.
68686         (getcwd): New declaration, taken from old getcwd.h.
68687         (getlogin_r): New declaration, taken from old getlogin_r.h.
68688         (readlink): New declaration.
68689         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
68690         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
68691         (gl_PREREQ_UNISTD): Remove macro.
68692         (gl_UNISTD_MODULE_INDICATOR): New macro.
68693         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
68694         many new variables. Don't set UNISTD_H.
68695         * modules/unistd (Description): Change.
68696         (Depends-on): Add link-warning.
68697         (configure.ac): Update.
68698         (Makefile.am): Create unistd.h always. Substitute many new variables
68699         into it.
68700
68701 2007-02-18  Bruno Haible  <bruno@clisp.org>
68702
68703         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
68704         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
68705         HAVE_GETSUBOPT.
68706         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
68707         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
68708         * lib/getsubopt.h: Remove file.
68709         * modules/getsubopt (Files): Remove lib/getsubopt.h.
68710         (Depends-on): Add stdlib.
68711         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68712         (Includes): Use <stdlib.h> instead of getsubopt.h.
68713         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
68714         Set HAVE_GETSUBOPT.
68715         * lib/getsubopt.c: Don't include getsubopt.h.
68716
68717 2007-02-18  Bruno Haible  <bruno@clisp.org>
68718
68719         * modules/fchdir (Depends-on): Add dup2.
68720
68721 2007-02-18  Bruno Haible  <bruno@clisp.org>
68722
68723         * lib/stdlib_.h: Handle glibc's special invocation convention
68724         specially.
68725
68726 2007-02-18  Bruno Haible  <bruno@clisp.org>
68727
68728         * modules/stdlib-tests: New file.
68729         * tests/test-stdlib.c: New file.
68730
68731         * modules/mkstemp (Files): Remove lib/mkstemp.h.
68732         (Depends-on): Add stdlib.
68733         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68734         (Includes): Use <stdlib.h> instead of mkstemp.h.
68735         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68736         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
68737         * lib/mkstemp.c: Don't include mkstemp.h.
68738         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
68739         * lib/stdlib--.h: Don't include mkstemp.h.
68740
68741         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
68742         (Depends-on): Add stdlib.
68743         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68744         (Includes): Use <stdlib.h> instead of mkdtemp.h.
68745         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68746         HAVE_MKDTEMP.
68747         * lib/mkdtemp.c: Don't include mkdtemp.h.
68748         * lib/clean-temp.c: Don't include mkdtemp.h.
68749
68750         * modules/exit (Files): Remove lib/exit.h.
68751         (Depends-on): Add stdlib.
68752         (Makefile.am): Remove lib_SOURCES.
68753         (Include): Use <stdlib.h> instead of exit.h.
68754         * lib/argmatch.c: Don't include exit.h.
68755         * lib/execute.c: Likewise.
68756         * lib/pagealign_alloc.c: Likewise.
68757         * lib/pipe.c: Likewise.
68758         * lib/wait-process.c: Likewise.
68759         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
68760         * lib/exitfail.c: Likewise.
68761         * lib/savewd.c: Likewise.
68762         * lib/xsetenv.c: Likewise.
68763
68764         * modules/stdlib: New file.
68765         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
68766         and extra comments about mkstemp().
68767         * lib/exit.h: Remove file.
68768         * lib/mkdtemp.h: Remove file.
68769         * lib/mkstemp.h: Remove file.
68770         * m4/stdlib_h.m4: New file.
68771         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
68772
68773 2007-02-18  Bruno Haible  <bruno@clisp.org>
68774
68775         * modules/math-tests: New file.
68776         * tests/test-math.c: New file.
68777
68778         * modules/math: New file.
68779         * modules/mathl (Files): Remove lib/mathl.h.
68780         (Depends-on): Add math.
68781         (Makefile.am): Don't mention mathl.h.
68782         (Include): Use <math.h> instead of mathl.h.
68783         * lib/math_.h: New file.
68784         * lib/mathl.h: Remove file.
68785         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
68786         mathl.h.
68787         * lib/asinl.c: Likewise.
68788         * lib/atanl.c: Likewise.
68789         * lib/ceill.c: Likewise.
68790         * lib/cosl.c: Likewise.
68791         * lib/expl.c: Likewise.
68792         * lib/floorl.c: Likewise.
68793         * lib/frexpl.c: Likewise.
68794         * lib/ldexpl.c: Likewise.
68795         * lib/logl.c: Likewise.
68796         * lib/sincosl.c: Likewise.
68797         * lib/sinl.c: Likewise.
68798         * lib/sqrtl.c: Likewise.
68799         * lib/tanl.c: Likewise.
68800         * lib/trigl.c: Likewise.
68801         * m4/math_h.m4: New file.
68802         * MODULES.html.sh (Mathematics): Add math.
68803
68804 2007-02-17  Bruno Haible  <bruno@clisp.org>
68805
68806         * modules/wctype-tests: New file.
68807         * tests/test-wctype.c: New file.
68808
68809         * modules/wchar-tests: New file.
68810         * tests/test-wchar.c: New file.
68811
68812         * modules/unistd-tests: New file.
68813         * tests/test-unistd.c: New file.
68814
68815         * modules/time-tests: New file.
68816         * tests/test-time.c: New file.
68817
68818         * modules/sysexits-tests: New file.
68819         * tests/test-sysexits.c: New file.
68820
68821         * modules/sys_time-tests: New file.
68822         * tests/test-sys_time.c: New file.
68823
68824         * modules/sys_stat-tests: New file.
68825         * tests/test-sys_stat.c: New file.
68826
68827         * modules/sys_socket-tests: New file.
68828         * tests/test-sys_socket.c: New file.
68829
68830         * modules/sys_select-tests: New file.
68831         * tests/test-sys_select.c: New file.
68832
68833         * modules/string-tests: New file.
68834         * tests/test-string.c: New file.
68835
68836         * modules/stdbool-tests: New file.
68837         * tests/test-stdbool.c: New file.
68838
68839         * modules/netinet_in-tests: New file.
68840         * tests/test-netinet_in.c: New file.
68841
68842         * modules/inttypes-tests: New file.
68843         * tests/test-inttypes.c: New file.
68844
68845         * modules/fcntl-tests: New file.
68846         * tests/test-fcntl.c: New file.
68847
68848         * modules/byteswap-tests: New file.
68849         * tests/test-byteswap.c: New file.
68850
68851         * modules/arpa_inet-tests: New file.
68852         * tests/test-arpa_inet.c: New file.
68853
68854 2007-02-17  Bruno Haible  <bruno@clisp.org>
68855
68856         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
68857         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
68858         if the corresponding module is not enabled. Emit link warnings if
68859         the function is used nevertheless.
68860         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
68861         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
68862         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
68863         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
68864         * modules/inttypes (Depends-on): Add link-warning.
68865         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68866         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
68867         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
68868         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
68869         * modules/imaxdiv (configure.ac): Likewise.
68870         * modules/strtoimax (configure.ac): Likewise.
68871         * modules/strtoumax (configure.ac): Likewise.
68872
68873 2007-02-17  Bruno Haible  <bruno@clisp.org>
68874
68875         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
68876         gl_STRING_MODULE_INDICATOR_DEFAULTS.
68877         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
68878         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
68879
68880 2007-02-17  Bruno Haible  <bruno@clisp.org>
68881
68882         * modules/link-warning: New file.
68883         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
68884         * lib/string_.h (GL_LINK_WARNING): Remove definition.
68885         * modules/string (Depends-on): Add link-warning.
68886         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68887         string.h.
68888         * MODULES.html.sh (Support for building libraries and executables): Add
68889         link-warning.
68890
68891 2007-02-17  Bruno Haible  <bruno@clisp.org>
68892
68893         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
68894         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
68895         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
68896         long lines.
68897
68898 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
68899             Bruno Haible  <bruno@clisp.org>
68900
68901         * modules/tmpfile: New file.
68902         * lib/tmpfile.c: New file.
68903         * m4/tmpfile.m4: New file.
68904         * MODULES.html.sh (func_all_modules): New section "Input/output".
68905
68906 2007-02-15  Bruno Haible  <bruno@clisp.org>
68907
68908         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
68909         (supports_delete_on_close): New function.
68910         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
68911
68912 2007-02-14  Bruno Haible  <bruno@clisp.org>
68913
68914         * modules/mbspcasecmp-tests: New file.
68915         * tests/test-mbspcasecmp.sh: New file.
68916         * tests/test-mbspcasecmp.c: New file.
68917
68918         New module mbspcasecmp.
68919         * modules/mbspcasecmp: New file.
68920         * lib/mbspcasecmp.c: New file.
68921         * lib/string_.h (strncasecmp): Change warning message.
68922         (mbspcasecmp): New declaration.
68923         * m4/mbspcasecmp.m4: New file.
68924         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68925         GNULIB_MBSPCASECMP.
68926         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
68927         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
68928
68929 2007-02-14  Bruno Haible  <bruno@clisp.org>
68930
68931         * modules/mbsncasecmp-tests: New file.
68932         * tests/test-mbsncasecmp.sh: New file.
68933         * tests/test-mbsncasecmp.c: New file.
68934
68935         New module mbsncasecmp.
68936         * modules/mbsncasecmp: New file.
68937         * lib/mbsncasecmp.c: New file.
68938         * lib/string_.h (mbsncasecmp): New declaration.
68939         * m4/mbsncasecmp.m4: New file.
68940         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68941         GNULIB_MBSNCASECMP.
68942         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
68943         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
68944
68945 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68946
68947         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
68948         Verify that it doesn't overlap with our flags.
68949         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
68950         do not have the desired effect in multibyte locales; instead, use
68951         mbscasecmp.
68952         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
68953         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
68954         we don't require GNU fnmatch ourselves (if our users require it, they
68955         should do so explicitly).
68956
68957         Fix regex code so it doesn't rely on strcasecmp.
68958         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
68959         Otherwise, include gnulib's langinfo.h.
68960         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
68961         undesirable behavior in non-C locales.  Instead, rely on localecharset.
68962         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
68963         * modules/regex (FILES): Remove m4/codeset.m4.
68964         (Depends-on): Add localcharset.  Remove strcase.
68965
68966 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68967
68968         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
68969         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
68970
68971 2007-02-13  Bruno Haible  <bruno@clisp.org>
68972
68973         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
68974         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68975
68976 2007-02-12  Bruno Haible  <bruno@clisp.org>
68977
68978         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68979         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
68980         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
68981         time warning rather than a link error.
68982
68983 2007-02-12  Bruno Haible  <bruno@clisp.org>
68984
68985         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
68986         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
68987         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68988
68989 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68990
68991         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
68992         args, not 2.
68993
68994 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68995
68996         New module 'time', so that apps can include <time.h> as per
68997         POSIX and GNU instead of separate include files like time_r.h
68998         and timegm.h.  This implementation tries out a simpler approach
68999         for replacing decls in standard include files (as compared to
69000         the string module), somewhat as an experiment.
69001
69002         * config/srclist.txt: Comment out mktime.c for now.
69003         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
69004         since it doesn't apply any more.  Use generic wording instead.
69005         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
69006         'time'.
69007         * lib/time_.h, m4/time_h.m4, modules/time: New files.
69008         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
69009         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
69010         Don't include <sys/types.h>; no longer needed since we assume C89.
69011         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
69012         * lib/strftime.c: Likewise.
69013         * lib/time_r.c: Likewise.
69014         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
69015         * lib/nanosleep.c: Include <time.h> first, to check interface.
69016         * lib/strptime.c: Likewise.
69017         * lib/time_r.c: Likewise.
69018         * lib/timegm.c: Likewise.
69019         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
69020         needed.
69021         * lib/timegm.c: Don't include timegm.h; no longer needed.
69022         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
69023         time.h now handles any problems in that area.
69024         (struct timespec, nanosleep): Remove; time.h now arranges for these.
69025         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
69026         that time.h defines struct timespec.
69027         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
69028         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
69029         handles that.
69030         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
69031         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
69032         needed.  Set REPLACE_LOCALTIME.
69033         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
69034         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
69035         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
69036         nanosleep; time_h.m4 now does that.  Don't require
69037         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
69038         module handles this now.
69039         * modules/getdate (Depends-on): Remove timespec.  Add time.
69040         * modules/nanosleep (Depends-on): Likewise.
69041         * modules/stat-time (Depends-on): Likewise.
69042         * modules/nanosleep (Include): Include time.h, not timespec.h.
69043         * modules/strptime (Files): Remove lib/strptime.h.
69044         (Depends-on): Add extensions, time.
69045         (Include): Include time.h, not strptime.h.
69046         * modules/time_r (Files): Remove lib/time_r.h.
69047         (Depends-on): Add time.
69048         (Include): Include time.h, not time_r.h.
69049         * modules/timegm: Likewise.
69050         * modules/timespec (Description): Now does timespec-related decls
69051         of our own, instead of struct timespec itself.
69052         (Depends-on): Add time; remove extensions.
69053         (Maintainer): Add self.
69054         * modules/utimecmp (Depends-on): Add time; remove timespec.
69055         * modules/utimens (Depends-on): Likewise.
69056         * modules/xnanosleep (Depends-on): Likewise.
69057
69058 2007-02-11  Bruno Haible  <bruno@clisp.org>
69059
69060         * lib/c-strstr.c: Include allocsa.h.
69061         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69062         * lib/c-strcasestr.c: Include allocsa.h.
69063         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69064         * lib/strcasestr.c: Include allocsa.h.
69065         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69066         * lib/mbsstr.c: Include allocsa.h.
69067         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69068         allocsa/freesa instead of malloc/free.
69069         * lib/mbscasestr.c: Include allocsa.h.
69070         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69071         allocsa/freesa instead of malloc/free.
69072         * modules/c-strstr (Depends-on): Add allocsa.
69073         * modules/c-strcasestr (Depends-on): Likewise.
69074         * modules/strcasestr (Depends-on): Likewise.
69075         * modules/mbsstr (Depends-on): Likewise.
69076         * modules/mbscasestr (Depends-on): Likewise.
69077
69078 2007-02-11  Bruno Haible  <bruno@clisp.org>
69079
69080         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
69081
69082         * modules/mbsspn-tests: New file.
69083         * tests/test-mbsspn.sh: New file.
69084         * tests/test-mbsspn.c: New file.
69085
69086 2007-02-11  Bruno Haible  <bruno@clisp.org>
69087
69088         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
69089
69090         * modules/mbspbrk-tests: New file.
69091         * tests/test-mbspbrk.sh: New file.
69092         * tests/test-mbspbrk.c: New file.
69093
69094 2007-02-11  Bruno Haible  <bruno@clisp.org>
69095
69096         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
69097         unneeded cast.
69098
69099         * modules/mbscspn-tests: New file.
69100         * tests/test-mbscspn.sh: New file.
69101         * tests/test-mbscspn.c: New file.
69102
69103 2007-02-11  Bruno Haible  <bruno@clisp.org>
69104
69105         * modules/mbscasecmp-tests: New file.
69106         * tests/test-mbscasecmp.sh: New file.
69107         * tests/test-mbscasecmp.c: New file.
69108
69109 2007-02-11  Bruno Haible  <bruno@clisp.org>
69110
69111         Ensure O(n) worst-case complexity of mbscasestr.
69112         * lib/mbscasestr.c: Include stdbool.h.
69113         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69114         functions.
69115         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
69116         the bookkeeping indicates that it's worth it.
69117         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
69118
69119         * modules/mbscasestr-tests: New file.
69120         * tests/test-mbscasestr1.c: New file.
69121         * tests/test-mbscasestr2.sh: New file.
69122         * tests/test-mbscasestr2.c: New file.
69123         * tests/test-mbscasestr3.sh: New file.
69124         * tests/test-mbscasestr3.c: New file.
69125         * tests/test-mbscasestr4.sh: New file.
69126         * tests/test-mbscasestr4.c: New file.
69127         * m4/locale-tr.m4: New file.
69128
69129 2007-02-11  Bruno Haible  <bruno@clisp.org>
69130
69131         Ensure O(n) worst-case complexity of mbsstr.
69132         * lib/mbsstr.c: Include stdbool.h.
69133         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69134         functions.
69135         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
69136         bookkeeping indicates that it's worth it.
69137         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
69138
69139         * modules/mbsstr-tests: New file.
69140         * tests/test-mbsstr1.c: New file.
69141         * tests/test-mbsstr2.sh: New file.
69142         * tests/test-mbsstr2.c: New file.
69143         * tests/test-mbsstr3.sh: New file.
69144         * tests/test-mbsstr3.c: New file.
69145         * m4/locale-fr.m4: New file.
69146
69147 2007-02-11  Bruno Haible  <bruno@clisp.org>
69148
69149         * lib/mbsrchr.c (mbsrchr): Fix bug.
69150
69151         * modules/mbsrchr-tests: New file.
69152         * tests/test-mbsrchr.sh: New file.
69153         * tests/test-mbsrchr.c: New file.
69154
69155 2007-02-11  Bruno Haible  <bruno@clisp.org>
69156
69157         * lib/mbschr.c (mbschr): Fix bug.
69158
69159         * modules/mbschr-tests: New file.
69160         * tests/test-mbschr.sh: New file.
69161         * tests/test-mbschr.c: New file.
69162         * m4/locale-zh.m4: New file.
69163
69164 2007-02-11  Bruno Haible  <bruno@clisp.org>
69165
69166         Support for copying multibyte string iterators.
69167         * lib/mbiter.h: Include <string.h>.
69168         (mbiter_multi_copy): New function.
69169         (mbi_copy): New macro.
69170         * lib/mbuiter.h: Include <string.h>.
69171         (mbuiter_multi_copy): New function.
69172         (mbui_copy): New macro.
69173
69174 2007-02-11  Bruno Haible  <bruno@clisp.org>
69175
69176         New module mbslen.
69177         * modules/mbslen: New file.
69178         * lib/mbslen.c: New file.
69179         * lib/string_.h (mbslen): New declaration.
69180         * m4/mbslen.m4: New file.
69181         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69182         GNULIB_MBSLEN.
69183         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
69184         * MODULES.html.sh (Internationalization functions): Add mbslen.
69185
69186 2007-02-11  Bruno Haible  <bruno@clisp.org>
69187
69188         Ensure O(n) worst-case complexity of strcasestr substitute.
69189         * lib/strcasestr.c: Include stdbool.h.
69190         (knuth_morris_pratt): New function.
69191         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69192         bookkeeping indicates that it's worth it.
69193         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
69194
69195         * modules/strcasestr-tests: New file.
69196         * tests/test-strcasestr.c: New file.
69197
69198 2007-02-11  Bruno Haible  <bruno@clisp.org>
69199
69200         Ensure O(n) worst-case complexity of c_strcasestr.
69201         * lib/c-strcasestr.c: Include stdbool.h, string.h.
69202         (knuth_morris_pratt): New function.
69203         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
69204         the bookkeeping indicates that it's worth it.
69205         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
69206
69207         * modules/c-strcasestr-tests: New file.
69208         * tests/test-c-strcasestr.c: New file.
69209
69210 2007-02-11  Bruno Haible  <bruno@clisp.org>
69211
69212         Ensure O(n) worst-case complexity of c_strstr.
69213         * lib/c-strstr.c: Include stdbool.h, string.h.
69214         (knuth_morris_pratt): New function.
69215         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69216         bookkeeping indicates that it's worth it.
69217         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
69218
69219         * lib/c-strstr.c: Complete rewrite for maintainability.
69220
69221         * modules/c-strstr-tests: New file.
69222         * tests/test-c-strstr.c: New file.
69223
69224 2007-02-11  Bruno Haible  <bruno@clisp.org>
69225
69226         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
69227         5.2.1 and earlier, whereby \055 was treated just like the range
69228         delimiter '-'.
69229         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
69230
69231 2007-02-08  Bruno Haible  <bruno@clisp.org>
69232
69233         * modules/regex (Depends-on): Add stdbool.
69234         Reported by Dalibor Topic <robilad@kaffe.org>.
69235
69236 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69237
69238         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
69239         Prefer returning from main to exiting from it.
69240         Remove unnecessary parens after sizeof.
69241
69242 2007-02-05  Bruno Haible  <bruno@clisp.org>
69243
69244         New module mbssep.
69245         * modules/mbssep: New file.
69246         * lib/mbssep.c: New file.
69247         * lib/string_.h (strsep): Add a conditional link warning.
69248         (mbssep): New declaration.
69249         * m4/mbssep.m4: New file.
69250         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69251         GNULIB_MBSSEP.
69252         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
69253         * MODULES.html.sh (Internationalization functions): Add mbssep.
69254
69255 2007-02-05  Bruno Haible  <bruno@clisp.org>
69256
69257         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
69258         Optimize search in case of 1 delimiter.
69259
69260 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69261
69262         * lib/acl.h: Include sys/types.h before sys/acl.h.
69263
69264 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69265
69266         Merge upstream fix for glibc bugzilla #3957:
69267
69268         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
69269
69270         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
69271         bit for RE_HAT_LISTS_NOT_NEWLINE.
69272         (build_charclass_op): Remove bogus comment.
69273
69274 2007-02-05  Simon Josefsson  <simon@josefsson.org>
69275
69276         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
69277
69278 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69279
69280         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
69281         * lib/memmem.c [!defined _LIBC]: Include config.h.
69282
69283 2007-02-04  Bruno Haible  <bruno@clisp.org>
69284
69285         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
69286         warning message.
69287
69288 2007-02-04  Bruno Haible  <bruno@clisp.org>
69289
69290         New module mbstok_r.
69291         * modules/mbstok_r: New file.
69292         * lib/mbstok_r.c: New file.
69293         * lib/string_.h (strtok_r): Change argument names to match the
69294         comments. Add a conditional link warning.
69295         (mbstok_r): New declaration.
69296         * m4/mbstok_r.m4: New file.
69297         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69298         GNULIB_MBSTOK_R.
69299         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
69300         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
69301
69302 2007-02-04  Bruno Haible  <bruno@clisp.org>
69303
69304         New module mbsspn.
69305         * modules/mbsspn: New file.
69306         * lib/mbsspn.c: New file.
69307         * lib/string_.h (strspn): Add a conditional link warning.
69308         (mbsspn): New declaration.
69309         * m4/mbsspn.m4: New file.
69310         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69311         GNULIB_MBSSPN.
69312         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
69313         * MODULES.html.sh (Internationalization functions): Add mbsspn.
69314
69315 2007-02-04  Bruno Haible  <bruno@clisp.org>
69316
69317         New module mbspbrk.
69318         * modules/mbspbrk: New file.
69319         * lib/mbspbrk.c: New file.
69320         * lib/string_.h (strpbrk): Add a conditional link warning.
69321         (mbspbrk): New declaration.
69322         * m4/mbspbrk.m4: New file.
69323         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69324         GNULIB_MBSPBRK.
69325         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
69326         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
69327
69328 2007-02-04  Bruno Haible  <bruno@clisp.org>
69329
69330         New module mbscspn.
69331         * modules/mbscspn: New file.
69332         * lib/mbscspn.c: New file.
69333         * lib/string_.h (strcspn): Add a conditional link warning.
69334         (mbscspn): New declaration.
69335         * m4/mbscspn.m4: New file.
69336         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69337         GNULIB_MBSCSPN.
69338         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
69339         * MODULES.html.sh (Internationalization functions): Add mbscspn.
69340
69341 2007-02-04  Bruno Haible  <bruno@clisp.org>
69342
69343         New module mbscasestr, reduced goal of strcasestr.
69344         * modules/mbscasestr: New file.
69345         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
69346         (mbscasestr): Renamed from strcasestr.
69347         * lib/strcasestr.c: Don't include mbuiter.h.
69348         (strcasestr): Remove support for multibyte locales.
69349         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
69350         Change the conditional link warning.
69351         (mbscasestr): New declaration.
69352         * m4/mbscasestr.m4: New file.
69353         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
69354         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
69355         REPLACE_STRCASESTR.
69356         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
69357         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69358         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69359         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
69360         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
69361         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69362         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
69363         (Depends-on): Remove mbuiter.
69364         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
69365
69366 2007-02-04  Bruno Haible  <bruno@clisp.org>
69367
69368         Simplify handling of strncasecmp.
69369         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
69370         the conditional link warning.
69371         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69372         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
69373         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
69374         * modules/strcase (configure.ac): Don't invoke
69375         gl_STRING_MODULE_INDICATOR.
69376         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
69377
69378 2007-02-04  Bruno Haible  <bruno@clisp.org>
69379
69380         New module mbscasecmp, reduced goal of strcasecmp.
69381         * modules/mbscasecmp: New file.
69382         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
69383         (mbscasecmp): Renamed from strcasecmp.
69384         * lib/strcasecmp.c: Don't include mbuiter.h.
69385         (strcasecmp): Remove support for multibyte locales.
69386         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
69387         Change the conditional link warning.
69388         (mbscasecmp): New declaration.
69389         * m4/mbscasecmp.m4: New file.
69390         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
69391         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
69392         REPLACE_STRCASECMP.
69393         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
69394         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69395         GNULIB_MBSCASECMP.
69396         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
69397         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
69398         * modules/strcase (Files): Remove m4/mbrtowc.m4.
69399         (Depends-on): Remove mbuiter.
69400         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
69401
69402 2007-02-04  Bruno Haible  <bruno@clisp.org>
69403
69404         New module mbsstr. Remove module strstr.
69405         * modules/mbsstr: New file.
69406         * modules/strstr: Remove file.
69407         * lib/mbsstr.c: Renamed from lib/strstr.c.
69408         (mbsstr): Renamed from strstr.
69409         * lib/string_.h (strstr): Remove declaration. Change the conditional
69410         link warning.
69411         (mbsstr): New declaration.
69412         * m4/mbsstr.m4: New file.
69413         * m4/strstr.m4: Remove file.
69414         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
69415         REPLACE_STRSTR.
69416         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
69417         Don't initialize GNULIB_STRSTR.
69418         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
69419         substitute GNULIB_STRSTR and REPLACE_STRSTR.
69420         * MODULES.html.sh (Internationalization functions): Add mbsstr.
69421         (Support for systems lacking ANSI C 89): Remove strstr.
69422
69423 2007-02-04  Bruno Haible  <bruno@clisp.org>
69424
69425         New module mbsrchr.
69426         * modules/mbsrchr: New file.
69427         * lib/mbsrchr.c: New file.
69428         * lib/string_.h (strrchr): Add a conditional link warning.
69429         (mbsrchr): New declaration.
69430         * m4/mbsrchr.m4: New file.
69431         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69432         GNULIB_MBSRCHR.
69433         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
69434         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
69435
69436 2007-02-04  Bruno Haible  <bruno@clisp.org>
69437
69438         New module mbschr.
69439         * modules/mbschr: New file.
69440         * lib/mbschr.c: New file.
69441         * lib/string_.h (strchr): Add a conditional link warning.
69442         (mbschr): New declaration.
69443         * m4/mbschr.m4: New file.
69444         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69445         GNULIB_MBSCHR.
69446         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
69447         * MODULES.html.sh (Internationalization functions): Add mbschr.
69448
69449 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69450
69451         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
69452
69453         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
69454
69455 2007-02-04  Bruno Haible  <bruno@clisp.org>
69456
69457         New module description section 'configure.ac-early'.
69458         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
69459         (func_get_autoconf_early_snippet): New function.
69460         (func_import, func_create_testdir): Use it. Remove special cases for
69461         modules 'extensions' and 'lock'.
69462         * modules/extensions (configure.ac-early): Require
69463         gl_USE_SYSTEM_EXTENSIONS.
69464         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
69465
69466 2007-02-04  Bruno Haible  <bruno@clisp.org>
69467
69468         Make use of gcj-4.3's -fsource and -ftarget option.
69469         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
69470         and if so try the options -fsource and -ftarget.
69471         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
69472         source_version, ftarget_option, target_version arguments.
69473         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
69474         (is_envjavac_oldgcj_14_14_usable): Renamed from
69475         is_envjavac_gcj_14_14_usable.
69476         (is_envjavac_oldgcj_14_13_usable): Renamed from
69477         is_envjavac_gcj_14_13_usable.
69478         (is_gcj_present): Update.
69479         (is_gcj_43, is_gcj43_usable): New functions.
69480         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
69481         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
69482         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
69483         try the options -fsource and -ftarget.
69484
69485 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69486
69487         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
69488         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
69489         larger value.
69490
69491 2007-02-03  Jim Meyering  <jim@meyering.net>
69492
69493         Give tools a better chance to allocate space for very large buffers.
69494         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
69495
69496         Make pwd and readlink work also when run with an unreadable parent dir
69497         on systems with openat support.
69498         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
69499         provided getcwd function, even when we have openat support.
69500         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
69501
69502 2007-02-02  Bruno Haible  <bruno@clisp.org>
69503
69504         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69505         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
69506         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
69507         portability problems if one of these functions is only used on specific
69508         platforms.
69509         Reported by Paul Eggert.
69510
69511 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
69512
69513         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
69514         is causing more trouble than it's curing.
69515         * lib/regex_internal.h (__mempcpy): Remove.
69516         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
69517         (and make the code a tad smaller to boot).
69518         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
69519
69520 2007-02-02  Jim Meyering  <jim@meyering.net>
69521
69522         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
69523         section, not in the Makefile.am: one.
69524
69525 2007-02-02  Eric Blake  <ebb9@byu.net>
69526
69527         * lib/strchrnul.c: Always include config.h first.
69528
69529         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
69530         gnulib strstr is not necessary here.
69531
69532 2007-02-02  Simon Josefsson  <simon@josefsson.org>
69533
69534         * m4/socklen.m4: Fix typo.
69535
69536 2007-02-02  Eric Blake  <ebb9@byu.net>
69537
69538         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
69539         * modules/netinet_in (Makefile.am): Likewise.
69540
69541 2007-02-01  Bruno Haible  <bruno@clisp.org>
69542
69543         * lib/string_.h (GL_LINK_WARNING): New macro.
69544         (strcasecmp, strstr, strcasestr): If provided by the system,
69545         conditionally define as a macro that leads to a warning instead of to
69546         an error.
69547         (strncasecmp): Conditionally define as a macro that leads to a warning.
69548
69549 2007-02-01  Karl Berry  <karl@gnu.org>
69550
69551         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
69552
69553 2007-02-01  Bruno Haible  <bruno@clisp.org>
69554
69555         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
69556         renamings.
69557
69558 2007-02-01  Eric Blake  <ebb9@byu.net>
69559
69560         * modules/regex (Depends-on): Revert dependence on mempcpy.
69561         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
69562         module's definition of mempcpy.
69563         Reported by Paul Eggert.
69564
69565 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69566
69567         * lib/string_.h: If the gnulib module XYZ is not present, undefine
69568         the symbol XYZ before redefining it.  This fixes a problem with
69569         programs that don't use XYZ, when compiled on systems that define
69570         XYZ to something else.
69571
69572 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
69573
69574         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
69575         occurs when "mkdir -m foo" creates a setgid directory that is (1)
69576         writeable to group or other and (2) is intended to have a special
69577         mode bit that is set or cleared.  In such a case, the directory
69578         should be neither group- nor other-writeable until the special
69579         mode bits are right.
69580
69581 2007-01-31  Eric Blake  <ebb9@byu.net>
69582
69583         * modules/mountlist (Depends-on): Add strstr.
69584
69585         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
69586         bug.
69587         * modules/string (Makefile.am): Remove redundant replacement.
69588         * modules/regex (Depends-on): Add mempcpy.
69589
69590 2007-01-31  Bruno Haible  <bruno@clisp.org>
69591
69592         New module description field 'Link'.
69593         * gnulib-tool (func_usage): Document --extract-link-directive.
69594         (sed_extract_prog): Recognize 'Link' directive.
69595         (func_get_link_directive): New function.
69596         (func_import): Show summary of link directives.
69597         Handle --extract-link-directive option.
69598         * modules/acl (Link): New section.
69599         * modules/clock-time (Link): New section.
69600         * modules/euidaccess (Link): New section.
69601         * modules/gettext (Link): New section.
69602         * modules/iconv (Link): New section.
69603         * modules/lock (Link): New section.
69604         * modules/nanosleep (Link): New section.
69605         * modules/readline (Link): New section.
69606
69607 2007-01-27  Bruno Haible  <bruno@clisp.org>
69608
69609         Enforce the use of gnulib modules for unportable <string.h> functions.
69610         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
69611         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
69612         (gl_HEADER_STRING_H_BODY): Require it.
69613         * lib/string_.h: If the gnulib module XYZ is not present, redefine
69614         the symbol XYZ to one that gives a link error.
69615         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
69616         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
69617         * modules/mempcpy (configure.ac): Likewise.
69618         * modules/memrchr (configure.ac): Likewise.
69619         * modules/stpcpy (configure.ac): Likewise.
69620         * modules/stpncpy (configure.ac): Likewise.
69621         * modules/strcase (configure.ac): Likewise.
69622         * modules/strcasestr (configure.ac): Likewise.
69623         * modules/strchrnul (configure.ac): Likewise.
69624         * modules/strdup (configure.ac): Likewise.
69625         * modules/strndup (configure.ac): Likewise.
69626         * modules/strnlen (configure.ac): Likewise.
69627         * modules/strpbrk (configure.ac): Likewise.
69628         * modules/strsep (configure.ac): Likewise.
69629         * modules/strstr (configure.ac): Likewise.
69630         * modules/strtok_r (configure.ac): Likewise.
69631
69632 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
69633
69634         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
69635
69636 2007-01-30  Jim Meyering  <jim@meyering.net>
69637
69638         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
69639
69640 2007-01-29  Bruno Haible  <bruno@clisp.org>
69641
69642         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
69643         * lib/execute.c: Likewise.
69644         * lib/pipe.c: Likewise.
69645         * lib/printf-args.h: Likewise.
69646         * lib/printf-args.c: Likewise.
69647         * lib/printf-parse.c: Likewise.
69648         * lib/vasnprintf.c: Likewise.
69649
69650 2007-01-29  Eric Blake  <ebb9@byu.net>
69651
69652         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
69653         declaration.
69654
69655 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
69656
69657         * lib/strptime.h (strptime): Use 'restrict' for args where
69658         POSIX requires this.
69659         * lib/strptime.c (strptime): Likewise.
69660         Change license notice from LGPL to GPL, since gnulib-tool will
69661         change this as needed.
69662         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
69663         defined.
69664         Include "strptime.h" first, to check interface.
69665         Do not #undef _LIBC and _NL_CURRENT.
69666         Do not include <stdlib.h>; no longer needed.
69667         Include "time_r.h" and declare ptime_locale_status
69668         only if _LIBC is not defined.
69669         (__P): Remove unused macro.
69670         (match_string): Bring back glibc version, but use it only if _LIBC
69671         is defined.
69672         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
69673         Remove unnecessary assertion and abort() call.
69674         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
69675         * m4/strptime.m4: Fix serial number comment.
69676         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
69677         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
69678         (Depends-on): Add time_r.
69679
69680 2007-01-29  Bruno Haible  <bruno@clisp.org>
69681
69682         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69683         strptime.
69684         * modules/strptime (Depends-on): Add stdbool.
69685         * lib/strptime.h: Include <time.h> always. Add comments.
69686
69687 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69688
69689         * modules/strptime: New file.
69690         * lib/strptime.h: New file.
69691         * lib/strptime.c: New file.
69692         * m4/strptime.m4: New file.
69693
69694 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69695
69696         * MODULES.html.sh: New module mpsort.
69697         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
69698
69699         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
69700         a circularity problem with HP-UX ia64 reported by Bob Proulx in
69701         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
69702         All uses changed.
69703         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
69704         All uses changed.
69705         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
69706         to _Restrict_.
69707         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
69708         the parameter matches the prototype.
69709
69710 2007-01-28  Jim Meyering  <jim@meyering.net>
69711
69712         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
69713         sys/time.h here, reverting that part of the previous patch:
69714         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
69715
69716 2007-01-28  Bruno Haible  <bruno@clisp.org>
69717
69718         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
69719         value of $(SYS_TIME_H).
69720         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
69721         remove it conditionally, too. [added by Jim Meyering]
69722         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
69723         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69724         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
69725         GETTIMEOFDAY_REPLACEMENT to 1.
69726
69727 2007-01-28  Bruno Haible  <bruno@clisp.org>
69728
69729         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
69730         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
69731         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
69732         Set UNISTD_H instead of UNISTD_H2.
69733         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
69734
69735 2007-01-28  Bruno Haible  <bruno@clisp.org>
69736
69737         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
69738         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
69739
69740 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69741
69742         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
69743         (func_create_testdir): Ensure C locale for `grep' and `tr'
69744         character ranges.
69745         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
69746         ACLOCAL_AMFLAGS parsing state machine.
69747
69748 2007-01-27  Bruno Haible  <bruno@clisp.org>
69749
69750         * modules/unistr/base: Update.
69751
69752 2007-01-27  Bruno Haible  <bruno@clisp.org>
69753
69754         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
69755         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
69756         * modules/unistr/u32-mbtouc-unsafe: Renamed from
69757         modules/unistr/u32-mbtouc.
69758         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
69759         * lib/unistr.h: Update.
69760         * lib/linebreak.c: Update.
69761         * modules/unistr/u32-mbtouc: Renamed from
69762         modules/unistr/u32-mbtouc-safe.
69763         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
69764         * lib/unistr.h: Update.
69765         * lib/unistr/u32-to-u8.c: Update.
69766         * lib/unistr/u32-to-u16.c: Update.
69767
69768 2007-01-27  Bruno Haible  <bruno@clisp.org>
69769
69770         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
69771         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
69772         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
69773         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
69774         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
69775         * modules/unistr/u16-mbtouc-unsafe: Renamed from
69776         modules/unistr/u16-mbtouc.
69777         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
69778         * lib/unistr.h: Update.
69779         * lib/linebreak.c: Update.
69780         * modules/linebreak: Update.
69781         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
69782         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
69783         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
69784         * modules/unistr/u16-mbtouc: Renamed from
69785         modules/unistr/u16-mbtouc-safe.
69786         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
69787         * lib/unistr.h: Update.
69788         * lib/unistr/u16-to-u8.c: Update.
69789         * modules/unistr/u16-to-u8: Update.
69790         * lib/unistr/u16-to-u32.c: Update.
69791         * modules/unistr/u16-to-u32: Update.
69792
69793 2007-01-27  Bruno Haible  <bruno@clisp.org>
69794
69795         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
69796         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
69797         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
69798         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
69799         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
69800         * modules/unistr/u8-mbtouc-unsafe: Renamed from
69801         modules/unistr/u8-mbtouc.
69802         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
69803         * lib/unistr.h: Update.
69804         * lib/striconveh.c: Update.
69805         * modules/striconveh: Update.
69806         * lib/linebreak.c: Update.
69807         * modules/linebreak: Update.
69808         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
69809         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
69810         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
69811         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
69812         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
69813         * lib/unistr.h: Update.
69814         * lib/striconveh.c: Update.
69815         * modules/striconveh: Update.
69816         * lib/unistr/u8-to-u16.c: Update.
69817         * modules/unistr/u8-to-u16: Update.
69818         * lib/unistr/u8-to-u32.c: Update.
69819         * modules/unistr/u8-to-u32: Update.
69820
69821 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69822
69823         Sync from Libtool.
69824         * lib/argz.c: Do not include strings.h nor memory.h, include
69825         string.h unconditionally.  Patch by Simon Josefsson.
69826
69827 2007-01-27  Bruno Haible  <bruno@clisp.org>
69828
69829         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
69830         from gl_HEADER_STRING_H_BODY.
69831         (gl_HEADER_STRING_H_BODY): Require it.
69832         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
69833         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
69834         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
69835         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
69836         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69837         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
69838         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
69839         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
69840         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
69841         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
69842         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
69843         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
69844         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
69845         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
69846         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69847
69848 2007-01-27  Bruno Haible  <bruno@clisp.org>
69849
69850         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
69851         check_PROGRAMS into noinst_PROGRAMS.
69852         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
69853         check_PROGRAMS in this case.
69854         (func_import): Set for_test to false.
69855         (func_create_testdir): Set for_test to true.
69856
69857 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
69858             Bruno Haible  <bruno@clisp.org>
69859
69860         * modules/strcasestr (Files): Remove lib/strcasestr.h.
69861         (Depends-on): Add string.
69862         (Includes): Use <string.h> instead of strcasestr.h.
69863         * modules/string (Makefile.am): Also substitute the value of
69864         REPLACE_STRCASESTR.
69865         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
69866         assume strcasestr is declared in <string.h> not <strings.h>. Also
69867         set REPLACE_STRCASESTR.
69868         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
69869         REPLACE_STRCASESTR.
69870         * lib/strcasestr.h: Remove file.
69871         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
69872         * lib/string_.h (strcasestr): New declaration.
69873
69874 2007-01-27  Bruno Haible  <bruno@clisp.org>
69875
69876         * lib/string_.h: Use 'extern'.
69877
69878 2007-01-27  Jim Meyering  <jim@meyering.net>
69879
69880         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
69881         of set-but-not-used local, "q".
69882
69883         * lib/mempcpy.c: Include <config.h> before <string.h>.
69884         This fixes a compilation error on HP-UX, due to the system's
69885         "restrict"-using mempcpy prototype.
69886
69887 2007-01-26  Bruno Haible  <bruno@clisp.org>
69888
69889         Small optimization.
69890         * lib/javacomp.c: Include c-strstr.h.
69891          (is_envjavac_gcj): Use c_strstr instead of strstr.
69892         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
69893
69894 2007-01-26  Bruno Haible  <bruno@clisp.org>
69895
69896         * MODULES.html.sh (Unicode string functions): Add the new modules.
69897
69898         * modules/uniconv/u32-strconv-to-locale: New file.
69899         * lib/uniconv/u32-strconv-to-locale.c: New file.
69900
69901         * modules/uniconv/u16-strconv-to-locale: New file.
69902         * lib/uniconv/u16-strconv-to-locale.c: New file.
69903
69904         * modules/uniconv/u8-strconv-to-locale: New file.
69905         * lib/uniconv/u8-strconv-to-locale.c: New file.
69906
69907         * modules/uniconv/u32-strconv-from-locale: New file.
69908         * lib/uniconv/u32-strconv-from-locale.c: New file.
69909
69910         * modules/uniconv/u16-strconv-from-locale: New file.
69911         * lib/uniconv/u16-strconv-from-locale.c: New file.
69912
69913         * modules/uniconv/u8-strconv-from-locale: New file.
69914         * lib/uniconv/u8-strconv-from-locale.c: New file.
69915
69916         * modules/uniconv/u32-strconv-to-enc: New file.
69917         * lib/uniconv/u32-strconv-to-enc.c: New file.
69918         * modules/uniconv/u32-strconv-to-enc-tests: New file.
69919         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
69920
69921         * modules/uniconv/u16-strconv-to-enc: New file.
69922         * lib/uniconv/u16-strconv-to-enc.c: New file.
69923         * lib/uniconv/u-strconv-to-enc.h: New file.
69924         * modules/uniconv/u16-strconv-to-enc-tests: New file.
69925         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
69926
69927         * modules/uniconv/u8-strconv-to-enc: New file.
69928         * lib/uniconv/u8-strconv-to-enc.c: New file.
69929         * modules/uniconv/u8-strconv-to-enc-tests: New file.
69930         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
69931
69932         * modules/uniconv/u32-strconv-from-enc: New file.
69933         * lib/uniconv/u32-strconv-from-enc.c: New file.
69934         * modules/uniconv/u32-strconv-from-enc-tests: New file.
69935         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
69936
69937         * modules/uniconv/u16-strconv-from-enc: New file.
69938         * lib/uniconv/u16-strconv-from-enc.c: New file.
69939         * modules/uniconv/u16-strconv-from-enc-tests: New file.
69940         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
69941
69942         * modules/uniconv/u8-strconv-from-enc: New file.
69943         * lib/uniconv/u8-strconv-from-enc.c: New file.
69944         * lib/uniconv/u-strconv-from-enc.h: New file.
69945         * modules/uniconv/u8-strconv-from-enc-tests: New file.
69946         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
69947
69948         * modules/uniconv/u32-conv-from-enc: New file.
69949         * lib/uniconv/u32-conv-from-enc.c: New file.
69950         * modules/uniconv/u32-conv-from-enc-tests: New file.
69951         * tests/uniconv/test-u32-conv-from-enc.c: New file.
69952
69953         * modules/uniconv/u16-conv-from-enc: New file.
69954         * lib/uniconv/u16-conv-from-enc.c: New file.
69955         * lib/uniconv/u-conv-from-enc.h: New file.
69956         * modules/uniconv/u16-conv-from-enc-tests: New file.
69957         * tests/uniconv/test-u16-conv-from-enc.c: New file.
69958
69959         * modules/uniconv/u8-conv-from-enc: New file.
69960         * lib/uniconv/u8-conv-from-enc.c: New file.
69961         * modules/uniconv/u8-conv-from-enc-tests: New file.
69962         * tests/uniconv/test-u8-conv-from-enc.c: New file.
69963
69964         * modules/uniconv/base: New file.
69965         * lib/uniconv.h: New file.
69966
69967 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69968
69969         * doc/gnulib-tool.texi (Initial import): Update to match current
69970         behavior with strdup module.
69971         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
69972         * lib/memmem.h: Remove; all uses removed.  This is now done
69973         by <string.h>.
69974         * lib/mempcpy.h: Likewise.
69975         * lib/memrchr.h: Likewise.
69976         * lib/stpcpy.h: Likewise.
69977         * lib/stpncpy.h: Likewise.
69978         * lib/strcase.h: Likewise.
69979         * lib/strchrnul.h: Likewise.
69980         * lib/strdup.h: Likewise.
69981         * lib/strndup.h: Likewise.
69982         * lib/strnlen.h: Likewise.
69983         * lib/strpbrk.h: Likewise.
69984         * lib/strsep.h: Likewise.
69985         * lib/strstr.h: Likewise.
69986         * lib/strtok_r.h: Likewise.
69987         * lib/string_.h: New file.
69988         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
69989         Rely on <string.h> instead.
69990         * lib/canon-host.c: Likewise.
69991         * lib/chdir-long.c: Likewise.
69992         * lib/concatpath.c: Likewise.
69993         * lib/exclude.c: Likewise.
69994         * lib/fchdir.c: Likewise.
69995         * lib/getaddrinfo.c: Likewise.
69996         * lib/getcwd.c: Likewise.
69997         * lib/getsubopt.c: Likewise.
69998         * lib/glob.c: Likewise.
69999         * lib/hard-locale.c: Likewise.
70000         * lib/iconvme.c: Likewise.
70001         * lib/javacomp.c: Likewise.
70002         * lib/mempcpy.c: Likewise.
70003         * lib/memrchr.c: Likewise.
70004         * lib/regex_internal.h: Likewise.
70005         * lib/stpncpy.c: Likewise.
70006         * lib/strcasecmp.c: Likewise.
70007         * lib/strchrnul.c: Likewise.
70008         * lib/strdup.c: Likewise.
70009         * lib/striconv.c: Likewise.
70010         * lib/striconveh.c: Likewise.
70011         * lib/striconveha.c: Likewise.
70012         * lib/strncasecmp.c: Likewise.
70013         * lib/strndup.c: Likewise.
70014         * lib/strnlen.c: Likewise.
70015         * lib/strsep.c: Likewise.
70016         * lib/strstr.c: Likewise.
70017         * lib/strtok_r.c: Likewise.
70018         * lib/userspec.c: Likewise.
70019         * lib/w32spawn.h: Likewise.
70020         * lib/xstrndup.c: Likewise.
70021         * lib/mountlist.c (strstr): Remove decl.
70022         * m4/string_h.m4: New file.
70023         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
70024         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
70025         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
70026         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
70027         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
70028         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
70029         Set REPLACE_STRCASECMP if necessary.
70030         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
70031         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
70032         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
70033         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
70034         HAVE_DECL_STRDUP if necessary.
70035         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
70036         since gl_FUNC_STRNDUP does that now.
70037         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
70038         Check for decl here...
70039         (gl_PREREQ_STRNLEN): ... not here.
70040         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
70041         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
70042         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
70043         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
70044         necessary.
70045         * modules/string: New file.
70046         * modules/memmem (Files): Remove special-purpose include file.
70047         (Depends-on): Add string.
70048         (Include): Include <string.h>, not the removed file.
70049         * modules/mempcpy: Likewise.
70050         * modules/memrchr: Likewise.
70051         * modules/stpcpy: Likewise.
70052         * modules/stpncpy: Likewise.
70053         * modules/strcase: Likewise.
70054         * modules/strchrnul: Likewise.
70055         * modules/strdup: Likewise.
70056         * modules/strndup: Likewise.
70057         * modules/strnlen: Likewise.
70058         * modules/strpbrk: Likewise.
70059         * modules/strsep: Likewise.
70060         * modules/strstr: Likewise.
70061         * modules/strtok_r: Likewise.
70062         * tests/test-dirname.c: Don't include "strdup.h", since
70063         <string.h> now suffices.
70064         * tests/test-memmem.c: Don't include "memmem.h", since
70065         <string.h> now suffices.
70066
70067 2007-01-25  Bruno Haible  <bruno@clisp.org>
70068
70069         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
70070         *resultp is 0.
70071
70072         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
70073         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
70074         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
70075         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
70076
70077         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
70078         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
70079         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
70080         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
70081         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
70082         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
70083
70084 2007-01-24  Bruno Haible  <bruno@clisp.org>
70085
70086         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
70087         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
70088         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
70089         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
70090         gl_FUNC_FTS_CORE.
70091         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
70092         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
70093         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70094         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
70095         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
70096         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
70097         gl_FUNC_FCHOWNAT.
70098         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
70099         gl_FUNC_STRFTIME.
70100         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
70101         Reported by Ralf Wildenhues.
70102
70103 2007-01-24  Bruno Haible  <bruno@clisp.org>
70104
70105         Drop AC_REQUIRE calls that are redundant with the module dependencies.
70106         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
70107         gl_GETADDRINFO.
70108         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
70109         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
70110         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
70111
70112 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
70113
70114         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
70115         Don't use 'exit'; just return from 'main'.
70116         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
70117
70118         * lib/fnmatch_.h: Readjust white space and comments to match
70119         glibc, to avoid spurious diffs.
70120
70121 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70122
70123         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
70124         2004-12-01 change by Jakub Jelinek, since this code won't compile
70125         if !LIBC.  Problem reported by Bob Proulx.
70126
70127 2007-01-23  Bruno Haible  <bruno@clisp.org>
70128
70129         * lib/striconveh.c: Include c-strcaseeq.h.
70130         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
70131         * modules/striconveh (Depends-on): Add c-strcaseeq.
70132
70133 2007-01-23  Bruno Haible  <bruno@clisp.org>
70134
70135         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
70136
70137         * modules/c-strcaseeq: New file.
70138         * lib/c-strcaseeq.h: New file.
70139
70140         * modules/streq: New file.
70141         * lib/streq.h: New file.
70142
70143 2007-01-23  Bruno Haible  <bruno@clisp.org>
70144
70145         * modules/striconveha-tests: New file.
70146         * tests/test-striconveha.c: New file.
70147
70148         * lib/striconveha.h: Include <stdbool.h>.
70149         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
70150         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
70151         (mem_iconveha_notranslit): Renamed from mem_iconveha.
70152         (mem_iconveha): New function.
70153         (str_iconveha_notranslit): Renamed from str_iconveha.
70154         (str_iconveha): New function.
70155         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
70156         c-strcase.
70157
70158 2007-01-23  Bruno Haible  <bruno@clisp.org>
70159
70160         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
70161         encodings without forgiving before trying any encoding with handler.
70162         (str_iconveha): Try all encodings without forgiving before trying any
70163         encoding with handler.
70164
70165 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70166
70167         Import the following changes from libc.
70168
70169         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
70170
70171         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
70172
70173         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
70174
70175         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
70176         normal_bracket label.
70177
70178         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
70179
70180         [BZ #361]
70181         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
70182         to normal_bracket after fetching the next character.
70183
70184 2007-01-22  Bruno Haible  <bruno@clisp.org>
70185
70186         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
70187         argument.
70188         * lib/striconveh.c (iconv_carefully_1): New function.
70189         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
70190         argument.
70191         (str_cd_iconveh): Update.
70192         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
70193         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
70194         * tests/test-striconveh.c (MAGIC): New macro.
70195         (new_offsets): New function.
70196         (main): Test call with and without offsets.
70197
70198 2007-01-22  Bruno Haible  <bruno@clisp.org>
70199
70200         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
70201         * modules/sys_select (Makefile.am): Likewise.
70202         * modules/sys_socket (Makefile.am): Likewise.
70203         * modules/sys_time (Makefile.am): Likewise.
70204
70205 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
70206
70207         * modules/gettimeofday (License): Change from GPL to LGPL, since
70208         gettimeofday is a library function.
70209
70210 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70211
70212         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
70213
70214 2007-01-21  Bruno Haible  <bruno@clisp.org>
70215
70216         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
70217
70218 2007-01-21  Bruno Haible  <bruno@clisp.org>
70219
70220         * modules/striconveha: New file.
70221         * lib/striconveha.h: New file.
70222         * lib/striconveha.c: New file.
70223         * MODULES.html.sh (Internationalization functions): Add striconveha.
70224         * lib/striconv.c (str_iconv): Optimize the case of an empty input
70225         string.
70226         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
70227
70228 2007-01-21  Bruno Haible  <bruno@clisp.org>
70229
70230         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
70231         * lib/striconveh.c (str_iconveh): Likewise.
70232
70233 2007-01-21  Bruno Haible  <bruno@clisp.org>
70234
70235         * lib/striconveh.h (mem_iconveh): New declaration.
70236         * lib/striconveh.c (mem_iconveh): New function.
70237         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
70238
70239 2007-01-21  Bruno Haible  <bruno@clisp.org>
70240
70241         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
70242
70243         * lib/striconveh.h (mem_cd_iconveh): Change specification.
70244         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
70245         original result buffer.
70246         (str_cd_iconveh): Update.
70247         * tests/test-striconveh.c (main): Update.
70248
70249         * lib/striconv.h (mem_cd_iconv): Change specification.
70250         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
70251         result buffer.
70252         (str_cd_iconv): Update.
70253         * tests/test-striconv.c (main): Update.
70254
70255 2007-01-21  Bruno Haible  <bruno@clisp.org>
70256
70257         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
70258
70259 2007-01-20  Jim Meyering  <jim@meyering.net>
70260
70261         * lib/userspec.c (parse_with_separator): If a user or group string
70262         starts with "+", skip the corresponding name-to-ID look-up, since
70263         such a look-up must fail: user and group names may not include "+".
70264
70265 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
70266
70267         * lib/poll.c: Include sys/time.h and time.h unconditionally,
70268         since we now assume the sys_time module.
70269         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
70270         check for sys/time.h; no longer needed.
70271         * modules/poll (Depends-on): Depend on sys_time.
70272
70273 2007-01-18  Bruno Haible  <bruno@clisp.org>
70274
70275         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
70276         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70277
70278         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
70279         gettimeofday.
70280
70281         * tests/test-gettimeofday.c: Include <time.h>.
70282         (dummy): Remove variable.
70283
70284         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
70285         gl_HEADER_SYS_TIME_H.
70286         (gl_HEADER_SYS_TIME_H): New macro.
70287
70288         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
70289         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70290         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
70291         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
70292         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70293         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
70294         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
70295         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70296         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
70297         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
70298         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70299
70300         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
70301         last change; it caused a compilation error when cross-compiling to
70302         Cygwin.
70303
70304 2007-01-18  Jim Meyering  <jim@meyering.net>
70305
70306         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
70307         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
70308         than the race-prone "test -d sys || mkdir sys".
70309         (configure.ac): Use AC_PROG_MKDIR_P.
70310         * modules/sys_select: Likewise.
70311         * modules/sys_socket: Likewise.
70312         * modules/sys_time: Likewise.
70313
70314 2007-01-18  Eric Blake  <ebb9@byu.net>
70315
70316         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
70317         replace gettimeofday.
70318         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
70319         name, to avoid infinite recursion.
70320
70321 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
70322
70323         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
70324         module sys_time.
70325         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
70326         assume timespec.h defines struct timeval.
70327         * lib/settime.c: Likewise.
70328         * lib/utimens.c: Likewise.
70329         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
70330         since we now assume the gettimeofday module.
70331         * lib/tempname.c (__gen_tempname): Likewise.
70332         * lib/gettimeofday.h: Remove.
70333         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
70334         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
70335         Include <time.h>, for 'time()'.
70336         (localtime_buffer_addr): Also use this workaround if
70337         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
70338         to simplify the uses.  All uses changed.
70339         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
70340         that #undef is inside {}, and 'const' follows type name consistently.
70341         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
70342         (gettimeofday): Do not use the maximum possible value for
70343         tv->tv_usec, since that might break usages other than ls.c.
70344         Instead, we'll leave ls.c alone.  This undoes today's patch
70345         by Bruno.  Add a compile-time warning for 1s-clock resolution;
70346         we've never observed the problem but might as well keep the
70347         canary.
70348         * lib/nanosleep.c: Include timespec.h first, for interface check.
70349         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
70350         now assume the sys_time module.
70351         * lib/tempname.c: Likewise.
70352         * lib/timespec.h: Likewise.
70353         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
70354         needed.
70355         * lib/strftime.c: Likewise.
70356         * lib/timespec.h: Likewise.
70357         * lib/posixtm.c: Include posixtm.h first, for interface check.
70358         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
70359         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
70360         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
70361         * lib/sys_time_.h: New file.
70362         * lib/timespec.h (struct timespec): Use long int, not long.
70363         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70364         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
70365         Remove obsolescent call to AC_HEADER_TIME.
70366         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
70367         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70368         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70369         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
70370         Likewise.
70371         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
70372         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
70373         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
70374         into the sys_time module.  Check for gettimeofday just once.
70375         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
70376         for gettimeofday signature to just check the signature.  Merely
70377         compile it, since linking doesn't test signature.  Improve test for
70378         whether gettimeofday.o is actually needed.
70379         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
70380         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
70381         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
70382         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70383         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
70384         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
70385         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
70386         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
70387         than worrying about sys/time.h.
70388         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70389         Don't bother worrying about TIME_WITH_SYS_TIME.
70390         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
70391         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
70392         * m4/sys_time_h.m4: New file.
70393         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
70394         Don't include sys/time.h.  Return from main rather than exiting.
70395         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
70396         all uses changed.
70397         * modules/gethrxtime (Depends-on): Add sys_time.
70398         * modules/gettime (Depends-on): Likewise.
70399         * modules/gettimeofday (Depends-on): Likewise.
70400         * modules/nanosleep (Depends-on): Likewise.
70401         * modules/settime (Depends-on): Likewise.
70402         * modules/tempname (Depends-on): Likewise.
70403         * modules/utimens (Depends-on): Likewise.
70404         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
70405         (Include): Change back to <sys/time.h>.
70406         (Maintainer): Add self.
70407         * modules/sys_time: New file.
70408         * modules/tempname (Depends-on): Add gettimeofday.
70409         * tests/test-gettimeofday.c: Include <sys/time.h>
70410         rather than gettimeofday.h.
70411
70412 2007-01-17  Bruno Haible  <bruno@clisp.org>
70413
70414         * gnulib-tool (func_get_license): Revert last patch. Instead, let
70415         the license default to GPL.
70416         (func_create_testdir): Don't complain if a module is LGPL and its
70417         tests module depends on GPLed modules.
70418
70419 2007-01-17  Bruno Haible  <bruno@clisp.org>
70420
70421         * lib/gettimeofday.c (gettimeofday): Add code for the case
70422         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
70423         maximum possible value for tv->tv_usec, rather than the minimum one.
70424
70425 2005-10-08  Martin Lambers  <marlam@marlam.de>
70426 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
70427 2007-01-16  Bruno Haible  <bruno@clisp.org>
70428
70429         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
70430         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
70431         gl_FUNC_GETTIMEOFDAY.
70432         (Include): Add gettimeofday.h.
70433         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
70434         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
70435         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
70436         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
70437         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
70438         * lib/gettimeofday.h: New file.
70439         * lib/gettimeofday.c: Include <sys/timeb.h>.
70440         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
70441         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70442         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
70443         fall back on time().
70444
70445         * tests/test-gettimeofday.c: New file.
70446         * modules/gettimeofday-tests: New file.
70447
70448 2007-01-16  Eric Blake  <ebb9@byu.net>
70449
70450         * modules/fnmatch (Depends-on): Depend on wchar.
70451         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
70452         * m4/fnmatch.m4: Likewise.
70453         * modules/mbchar (Makefile.am): Assume <wchar.h>.
70454         * m4/mbchar.m4: Likewise.
70455         * modules/mbswidth (Depends-on): Depend on wchar.
70456         * lib/mbswidth.c: Assume <wchar.h>.
70457         * m4/mbswidth.m4: Likewise.
70458         * modules/quotearg (Depends-on): Depend on wchar.
70459         * lib/quotearg.c: Assume <wchar.h>.
70460         * m4/quotearg.m4: Likewise.
70461         * modules/regex (Depends-on): Depend on wchar.
70462         * lib/regex_internal.h: Assume <wchar.h>.
70463         * m4/regex.m4: Likewise.
70464         * modules/stdint (Depends-on): Depend on wchar.
70465         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
70466         * m4/stdint.m4: Likewise.
70467         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
70468         * modules/strftime (Depends-on): Depend on wchar.
70469         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
70470         * modules/strtol (Depends-on): Depend on wchar.
70471         * lib/strtol.c: Assume <wchar.h>.
70472         * modules/wcwidth (Depends-on): Depend on wchar.
70473         * lib/wcwidth.h: Assume <wchar.h>.
70474         * m4/wcwidth.m4: Likewise.
70475
70476 2007-01-16  Bruno Haible  <bruno@clisp.org>
70477
70478         * modules/csharpexec-script: New, created from...
70479         * modules/csharpexec: ... this.
70480
70481 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
70482
70483         * modules/javaexec-script: New, created from...
70484         * modules/javaexec: ... this.
70485
70486 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70487
70488         * modules/poll (Dependencies): Add sys_select.
70489
70490 2007-01-15  Jim Meyering  <jim@meyering.net>
70491
70492         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
70493         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
70494         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
70495         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
70496
70497 2007-01-15  Bruno Haible  <bruno@clisp.org>
70498
70499         * modules/striconveh: New file.
70500         * lib/striconveh.h: New file.
70501         * lib/striconveh.c: New file.
70502         * MODULES.html.sh (Internationalization functions): Add striconveh.
70503
70504         * modules/striconveh-tests: New file.
70505         * tests/test-striconveh.c: New file.
70506
70507 2007-01-15  Bruno Haible  <bruno@clisp.org>
70508
70509         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
70510         not from GNU libiconv or GNU libc.
70511
70512 2007-01-15  Bruno Haible  <bruno@clisp.org>
70513
70514         * doc/gnulib-intro.texi (Copyright): Explain the different license
70515         terms for module descriptions, autoconf macros, tests, documentation.
70516
70517 2007-01-14  Bruno Haible  <bruno@clisp.org>
70518
70519         * modules/striconv-tests: New file.
70520         * tests/test-striconv.c: New file.
70521
70522 2007-01-14  Bruno Haible  <bruno@clisp.org>
70523
70524         * modules/iconv-tests: New file.
70525         * tests/test-iconv.c: New file.
70526
70527 2007-01-14  Bruno Haible  <bruno@clisp.org>
70528
70529         * gnulib-tool (func_get_license): For test modules, use the license of
70530         the main module.
70531
70532 2007-01-14  Bruno Haible  <bruno@clisp.org>
70533
70534         * modules/iconv (Include): Clarify that <iconv.h> can only be included
70535         if iconv is found to exist.
70536
70537 2007-01-14  Bruno Haible  <bruno@clisp.org>
70538
70539         * modules/c-ctype-tests: New file.
70540         * tests/test-c-ctype.c: New file.
70541
70542 2007-01-14  Bruno Haible  <bruno@clisp.org>
70543
70544         * modules/binary-io-tests: New file.
70545         * tests/test-binary-io.sh: New file.
70546         * tests/test-binary-io.c: New file.
70547
70548 2007-01-14  Bruno Haible  <bruno@clisp.org>
70549
70550         * modules/array-oset-tests: New file.
70551         * tests/test-array_oset.c: New file.
70552
70553 2007-01-14  Bruno Haible  <bruno@clisp.org>
70554
70555         * modules/array-list-tests: New file.
70556         * tests/test-array_list.c: New file.
70557
70558 2007-01-14  Bruno Haible  <bruno@clisp.org>
70559
70560         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
70561         and make.
70562         Reported by Simon Josefsson in
70563         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
70564
70565 2007-01-14  Bruno Haible  <bruno@clisp.org>
70566
70567         * modules/allocsa-tests: New file.
70568         * tests/test-allocsa.c: New file.
70569
70570 2007-01-14  Bruno Haible  <bruno@clisp.org>
70571
70572         * modules/fchdir (Depends-on): Add absolute-header.
70573         * modules/unistd (Depends-on): Likewise.
70574
70575 2006-12-30  Bruno Haible  <bruno@clisp.org>
70576
70577         * modules/fchdir: New file.
70578         * modules/unistd (Files): Add lib/unistd_.h.
70579         (Makefile.am): Generate unistd.h from unistd_.h.
70580         * lib/fchdir.c: New file.
70581         * lib/dirent_.h: New file.
70582         * lib/unistd_.h: New file.
70583         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
70584         * m4/fchdir.m4: New file.
70585         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
70586         (gl_HEADER_UNISTD): Invoke it.
70587         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
70588         function.
70589         * lib/backupfile.c (opendir, closedir): Undefine.
70590         * lib/chown.c (open, close): Undefine.
70591         * lib/clean-temp.c (open, close): Undefine.
70592         * lib/copy-file.c (open, close): Undefine.
70593         * lib/execute.c (open, close): Undefine.
70594         * lib/fsusage.c (open, close): Undefine.
70595         * lib/gc-gnulib.c (open, close): Undefine.
70596         * lib/getcwd.c (opendir, closedir): Undefine.
70597         * lib/glob.c (opendir, closedir): Undefine.
70598         * lib/javacomp.c (open, close): Undefine.
70599         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
70600         * lib/openat-proc.c (open, close): Undefine.
70601         * lib/pagealign_alloc.c (open, close): Undefine.
70602         * lib/pipe.c (open, close): Undefine.
70603         * lib/progreloc.c (open, close): Undefine.
70604         * lib/savedir.c (opendir, closedir): Undefine.
70605         * lib/utime.c (open, close): Undefine.
70606         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
70607
70608 2007-01-10  Bruno Haible  <bruno@clisp.org>
70609
70610         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
70611
70612 2007-01-12  Eric Blake  <ebb9@byu.net>
70613
70614         Provide a robust <wchar.h>.  Further simplifications are now
70615         possible in other modules, but not included here.
70616         * modules/wchar: New module.
70617         * m4/wchar.m4: New file.
70618         * lib/wchar_.h: Likewise.
70619         * modules/mbchar (Depends-on): Depend on wchar, as the first use
70620         of the new module.
70621         * MODULES.html.sh (Extended multibyte and wide character utilities):
70622         New section.
70623
70624 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
70625
70626         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
70627         to a reasonable default for memory allocation.
70628         (xreadlink): Don't allocate a huge buffer, to work around a buggy
70629         file system that reports garbage st_size values for symlinks.
70630         Problem reported by Liyang Hu.
70631
70632 2007-01-11  Simon Josefsson  <simon@josefsson.org>
70633
70634         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
70635         Emacs .#* auto-save files).
70636
70637 2007-01-11  Bruno Haible  <bruno@clisp.org>
70638
70639         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
70640         directory.
70641
70642 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70643
70644         Use @...@ consistently in lib/wctype_.h.
70645         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
70646         on it being set to 1 or 0.
70647         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
70648         go back to AC_SUBSTing it.
70649         * modules/wctype (Makefile.am): Undo previous change.
70650
70651 2007-01-10  Eric Blake  <ebb9@byu.net>
70652
70653         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
70654         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
70655         * modules/wctype (Makefile.am): Likewise.
70656         Reported by Chris McGuire.
70657
70658 2007-01-10  Jim Meyering  <jim@meyering.net>
70659
70660         fts.c: a small readability/maintainability improvement
70661         * lib/fts.c (fts_read): Make this code slightly more readable and
70662         maintainable by hoisting the "sp->fts_cur = p" assignments to
70663         immediately follow the statements that set P.  Derived from
70664         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
70665
70666 2007-01-10  Eric Blake  <ebb9@byu.net>
70667
70668         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
70669         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
70670         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70671         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
70672         Reported by Chris McGuire.
70673
70674 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70675
70676         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
70677         in sed script.
70678
70679 2007-01-09  Bruno Haible  <bruno@clisp.org>
70680
70681         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
70682         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
70683         variables.
70684         (func_module): Use them.
70685
70686 2007-01-09  Bruno Haible  <bruno@clisp.org>
70687
70688         * modules/unistr/base: New file.
70689         * lib/unistr.h: New file.
70690
70691         * modules/unistr/u8-to-u16: New file.
70692         * lib/unistr/u8-to-u16.c: New file.
70693
70694         * modules/unistr/u8-to-u32: New file.
70695         * lib/unistr/u8-to-u32.c: New file.
70696
70697         * modules/unistr/u16-to-u8: New file.
70698         * lib/unistr/u16-to-u8.c: New file.
70699
70700         * modules/unistr/u16-to-u32: New file.
70701         * lib/unistr/u16-to-u32.c: New file.
70702
70703         * modules/unistr/u32-to-u8: New file.
70704         * lib/unistr/u32-to-u8.c: New file.
70705
70706         * modules/unistr/u32-to-u16: New file.
70707         * lib/unistr/u32-to-u16.c: New file.
70708
70709         * modules/unistr/u8-check: New file.
70710         * modules/unistr/u16-check: New file.
70711         * modules/unistr/u32-check: New file.
70712         * lib/unistr/u8-check.c: New file.
70713         * lib/unistr/u16-check.c: New file.
70714         * lib/unistr/u32-check.c: New file.
70715
70716         * modules/unistr/u8-chr: New file.
70717         * modules/unistr/u16-chr: New file.
70718         * modules/unistr/u32-chr: New file.
70719         * lib/unistr/u8-chr.c: New file.
70720         * lib/unistr/u16-chr.c: New file.
70721         * lib/unistr/u32-chr.c: New file.
70722
70723         * modules/unistr/u8-cmp: New file.
70724         * modules/unistr/u16-cmp: New file.
70725         * modules/unistr/u32-cmp: New file.
70726         * lib/unistr/u8-cmp.c: New file.
70727         * lib/unistr/u16-cmp.c: New file.
70728         * lib/unistr/u32-cmp.c: New file.
70729
70730         * modules/unistr/u8-cpy: New file.
70731         * modules/unistr/u16-cpy: New file.
70732         * modules/unistr/u32-cpy: New file.
70733         * lib/unistr/u8-cpy.c: New file.
70734         * lib/unistr/u16-cpy.c: New file.
70735         * lib/unistr/u32-cpy.c: New file.
70736         * lib/unistr/u-cpy.h: New file.
70737
70738         * modules/unistr/u8-cpy-alloc: New file.
70739         * modules/unistr/u16-cpy-alloc: New file.
70740         * modules/unistr/u32-cpy-alloc: New file.
70741         * lib/unistr/u8-cpy-alloc.c: New file.
70742         * lib/unistr/u16-cpy-alloc.c: New file.
70743         * lib/unistr/u32-cpy-alloc.c: New file.
70744         * lib/unistr/u-cpy-alloc.h: New file.
70745
70746         * modules/unistr/u8-endswith: New file.
70747         * modules/unistr/u16-endswith: New file.
70748         * modules/unistr/u32-endswith: New file.
70749         * lib/unistr/u8-endswith.c: New file.
70750         * lib/unistr/u16-endswith.c: New file.
70751         * lib/unistr/u32-endswith.c: New file.
70752         * lib/unistr/u-endswith.h: New file.
70753
70754         * modules/unistr/u8-mblen: New file.
70755         * modules/unistr/u16-mblen: New file.
70756         * modules/unistr/u32-mblen: New file.
70757         * lib/unistr/u8-mblen.c: New file.
70758         * lib/unistr/u16-mblen.c: New file.
70759         * lib/unistr/u32-mblen.c: New file.
70760
70761         * modules/unistr/u8-mbtouc: New file.
70762         * modules/unistr/u16-mbtouc: New file.
70763         * modules/unistr/u32-mbtouc: New file.
70764         * lib/unistr/u8-mbtouc.c: New file.
70765         * lib/unistr/u16-mbtouc.c: New file.
70766         * lib/unistr/u32-mbtouc.c: New file.
70767
70768         * modules/unistr/u8-mbtouc-safe: New file.
70769         * modules/unistr/u16-mbtouc-safe: New file.
70770         * modules/unistr/u32-mbtouc-safe: New file.
70771         * lib/unistr/u8-mbtouc-safe.c: New file.
70772         * lib/unistr/u16-mbtouc-safe.c: New file.
70773         * lib/unistr/u32-mbtouc-safe.c: New file.
70774
70775         * modules/unistr/u8-move: New file.
70776         * modules/unistr/u16-move: New file.
70777         * modules/unistr/u32-move: New file.
70778         * lib/unistr/u8-move.c: New file.
70779         * lib/unistr/u16-move.c: New file.
70780         * lib/unistr/u32-move.c: New file.
70781         * lib/unistr/u-move.h: New file.
70782
70783         * modules/unistr/u8-next: New file.
70784         * modules/unistr/u16-next: New file.
70785         * modules/unistr/u32-next: New file.
70786         * lib/unistr/u8-next.c: New file.
70787         * lib/unistr/u16-next.c: New file.
70788         * lib/unistr/u32-next.c: New file.
70789
70790         * modules/unistr/u8-prev: New file.
70791         * modules/unistr/u16-prev: New file.
70792         * modules/unistr/u32-prev: New file.
70793         * lib/unistr/u8-prev.c: New file.
70794         * lib/unistr/u16-prev.c: New file.
70795         * lib/unistr/u32-prev.c: New file.
70796
70797         * modules/unistr/u8-set: New file.
70798         * modules/unistr/u16-set: New file.
70799         * modules/unistr/u32-set: New file.
70800         * lib/unistr/u8-set.c: New file.
70801         * lib/unistr/u16-set.c: New file.
70802         * lib/unistr/u32-set.c: New file.
70803         * lib/unistr/u-set.h: New file.
70804
70805         * modules/unistr/u8-startswith: New file.
70806         * modules/unistr/u16-startswith: New file.
70807         * modules/unistr/u32-startswith: New file.
70808         * lib/unistr/u8-startswith.c: New file.
70809         * lib/unistr/u16-startswith.c: New file.
70810         * lib/unistr/u32-startswith.c: New file.
70811         * lib/unistr/u-startswith.h: New file.
70812
70813         * modules/unistr/u8-stpcpy: New file.
70814         * modules/unistr/u16-stpcpy: New file.
70815         * modules/unistr/u32-stpcpy: New file.
70816         * lib/unistr/u8-stpcpy.c: New file.
70817         * lib/unistr/u16-stpcpy.c: New file.
70818         * lib/unistr/u32-stpcpy.c: New file.
70819         * lib/unistr/u-stpcpy.h: New file.
70820
70821         * modules/unistr/u8-stpncpy: New file.
70822         * modules/unistr/u16-stpncpy: New file.
70823         * modules/unistr/u32-stpncpy: New file.
70824         * lib/unistr/u8-stpncpy.c: New file.
70825         * lib/unistr/u16-stpncpy.c: New file.
70826         * lib/unistr/u32-stpncpy.c: New file.
70827         * lib/unistr/u-stpncpy.h: New file.
70828
70829         * modules/unistr/u8-strcat: New file.
70830         * modules/unistr/u16-strcat: New file.
70831         * modules/unistr/u32-strcat: New file.
70832         * lib/unistr/u8-strcat.c: New file.
70833         * lib/unistr/u16-strcat.c: New file.
70834         * lib/unistr/u32-strcat.c: New file.
70835         * lib/unistr/u-strcat.h: New file.
70836
70837         * modules/unistr/u8-strchr: New file.
70838         * modules/unistr/u16-strchr: New file.
70839         * modules/unistr/u32-strchr: New file.
70840         * lib/unistr/u8-strchr.c: New file.
70841         * lib/unistr/u16-strchr.c: New file.
70842         * lib/unistr/u32-strchr.c: New file.
70843
70844         * modules/unistr/u8-strcmp: New file.
70845         * modules/unistr/u16-strcmp: New file.
70846         * modules/unistr/u32-strcmp: New file.
70847         * lib/unistr/u8-strcmp.c: New file.
70848         * lib/unistr/u16-strcmp.c: New file.
70849         * lib/unistr/u32-strcmp.c: New file.
70850
70851         * modules/unistr/u8-strcpy: New file.
70852         * modules/unistr/u16-strcpy: New file.
70853         * modules/unistr/u32-strcpy: New file.
70854         * lib/unistr/u8-strcpy.c: New file.
70855         * lib/unistr/u16-strcpy.c: New file.
70856         * lib/unistr/u32-strcpy.c: New file.
70857         * lib/unistr/u-strcpy.h: New file.
70858
70859         * modules/unistr/u8-strcspn: New file.
70860         * modules/unistr/u16-strcspn: New file.
70861         * modules/unistr/u32-strcspn: New file.
70862         * lib/unistr/u8-strcspn.c: New file.
70863         * lib/unistr/u16-strcspn.c: New file.
70864         * lib/unistr/u32-strcspn.c: New file.
70865         * lib/unistr/u-strcspn.h: New file.
70866
70867         * modules/unistr/u8-strdup: New file.
70868         * modules/unistr/u16-strdup: New file.
70869         * modules/unistr/u32-strdup: New file.
70870         * lib/unistr/u8-strdup.c: New file.
70871         * lib/unistr/u16-strdup.c: New file.
70872         * lib/unistr/u32-strdup.c: New file.
70873         * lib/unistr/u-strdup.h: New file.
70874
70875         * modules/unistr/u8-strlen: New file.
70876         * modules/unistr/u16-strlen: New file.
70877         * modules/unistr/u32-strlen: New file.
70878         * lib/unistr/u8-strlen.c: New file.
70879         * lib/unistr/u16-strlen.c: New file.
70880         * lib/unistr/u32-strlen.c: New file.
70881         * lib/unistr/u-strlen.h: New file.
70882
70883         * modules/unistr/u8-strmblen: New file.
70884         * modules/unistr/u16-strmblen: New file.
70885         * modules/unistr/u32-strmblen: New file.
70886         * lib/unistr/u8-strmblen.c: New file.
70887         * lib/unistr/u16-strmblen.c: New file.
70888         * lib/unistr/u32-strmblen.c: New file.
70889
70890         * modules/unistr/u8-strmbtouc: New file.
70891         * modules/unistr/u16-strmbtouc: New file.
70892         * modules/unistr/u32-strmbtouc: New file.
70893         * lib/unistr/u8-strmbtouc.c: New file.
70894         * lib/unistr/u16-strmbtouc.c: New file.
70895         * lib/unistr/u32-strmbtouc.c: New file.
70896
70897         * modules/unistr/u8-strncat: New file.
70898         * modules/unistr/u16-strncat: New file.
70899         * modules/unistr/u32-strncat: New file.
70900         * lib/unistr/u8-strncat.c: New file.
70901         * lib/unistr/u16-strncat.c: New file.
70902         * lib/unistr/u32-strncat.c: New file.
70903         * lib/unistr/u-strncat.h: New file.
70904
70905         * modules/unistr/u8-strncmp: New file.
70906         * modules/unistr/u16-strncmp: New file.
70907         * modules/unistr/u32-strncmp: New file.
70908         * lib/unistr/u8-strncmp.c: New file.
70909         * lib/unistr/u16-strncmp.c: New file.
70910         * lib/unistr/u32-strncmp.c: New file.
70911
70912         * modules/unistr/u8-strncpy: New file.
70913         * modules/unistr/u16-strncpy: New file.
70914         * modules/unistr/u32-strncpy: New file.
70915         * lib/unistr/u8-strncpy.c: New file.
70916         * lib/unistr/u16-strncpy.c: New file.
70917         * lib/unistr/u32-strncpy.c: New file.
70918         * lib/unistr/u-strncpy.h: New file.
70919
70920         * modules/unistr/u8-strnlen: New file.
70921         * modules/unistr/u16-strnlen: New file.
70922         * modules/unistr/u32-strnlen: New file.
70923         * lib/unistr/u8-strnlen.c: New file.
70924         * lib/unistr/u16-strnlen.c: New file.
70925         * lib/unistr/u32-strnlen.c: New file.
70926         * lib/unistr/u-strnlen.h: New file.
70927
70928         * modules/unistr/u8-strpbrk: New file.
70929         * modules/unistr/u16-strpbrk: New file.
70930         * modules/unistr/u32-strpbrk: New file.
70931         * lib/unistr/u8-strpbrk.c: New file.
70932         * lib/unistr/u16-strpbrk.c: New file.
70933         * lib/unistr/u32-strpbrk.c: New file.
70934         * lib/unistr/u-strpbrk.h: New file.
70935
70936         * modules/unistr/u8-strrchr: New file.
70937         * modules/unistr/u16-strrchr: New file.
70938         * modules/unistr/u32-strrchr: New file.
70939         * lib/unistr/u8-strrchr.c: New file.
70940         * lib/unistr/u16-strrchr.c: New file.
70941         * lib/unistr/u32-strrchr.c: New file.
70942
70943         * modules/unistr/u8-strspn: New file.
70944         * modules/unistr/u16-strspn: New file.
70945         * modules/unistr/u32-strspn: New file.
70946         * lib/unistr/u8-strspn.c: New file.
70947         * lib/unistr/u16-strspn.c: New file.
70948         * lib/unistr/u32-strspn.c: New file.
70949         * lib/unistr/u-strspn.h: New file.
70950
70951         * modules/unistr/u8-strstr: New file.
70952         * modules/unistr/u16-strstr: New file.
70953         * modules/unistr/u32-strstr: New file.
70954         * lib/unistr/u8-strstr.c: New file.
70955         * lib/unistr/u16-strstr.c: New file.
70956         * lib/unistr/u32-strstr.c: New file.
70957         * lib/unistr/u-strstr.h: New file.
70958
70959         * modules/unistr/u8-strtok: New file.
70960         * modules/unistr/u16-strtok: New file.
70961         * modules/unistr/u32-strtok: New file.
70962         * lib/unistr/u8-strtok.c: New file.
70963         * lib/unistr/u16-strtok.c: New file.
70964         * lib/unistr/u32-strtok.c: New file.
70965         * lib/unistr/u-strtok.h: New file.
70966
70967         * modules/unistr/u8-uctomb: New file.
70968         * modules/unistr/u16-uctomb: New file.
70969         * modules/unistr/u32-uctomb: New file.
70970         * lib/unistr/u8-uctomb.c: New file.
70971         * lib/unistr/u16-uctomb.c: New file.
70972         * lib/unistr/u32-uctomb.c: New file.
70973
70974         * MODULES.html.sh (Unicode string functions): Add the new modules.
70975
70976 2007-01-08  Bruno Haible  <bruno@clisp.org>
70977
70978         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
70979         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
70980         subdirectories.
70981
70982 2007-01-08  Karl Berry  <karl@gnu.org>
70983
70984         * doc/error.texi: mention that main() fns must set program_name
70985         when progname is used.
70986
70987 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
70988
70989         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
70990         WCTYPE_H is empty, for the benefit of builds from non-distclean
70991         directories.  Problem reported by Eric Blake in
70992         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
70993
70994 2007-01-08  Bruno Haible  <bruno@clisp.org>
70995
70996         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
70997         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
70998         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
70999         PROVIDE_CANONICALIZE_FILENAME_MODE.
71000         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
71001
71002 2007-01-08  Bruno Haible  <bruno@clisp.org>
71003
71004         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
71005         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
71006         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
71007         * lib/fts.c: Likewise.
71008         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
71009
71010 2006-12-25  Bruno Haible  <bruno@clisp.org>
71011
71012         * modules/utf8-ucs4-safe: New file.
71013         * lib/utf8-ucs4-safe.h: New file.
71014         * lib/unistr/utf8-ucs4-safe.c: New file.
71015
71016         * modules/utf16-ucs4-safe: New file.
71017         * lib/utf16-ucs4-safe.h: New file.
71018         * lib/unistr/utf16-ucs4-safe.c: New file.
71019
71020         * MODULES.html.sh (Unicode string functions): Add the new modules.
71021
71022 2007-01-08  Bruno Haible  <bruno@clisp.org>
71023
71024         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
71025         (Depends-on): Add unitypes.
71026         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71027         (u8_mbtouc_aux): Move out to separate file.
71028         (u8_mbtouc): Use ucs4_t, uint8_t types.
71029         * lib/unistr/utf8-ucs4.c: New file.
71030
71031         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
71032         (Depends-on): Add unitypes.
71033         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71034         (u16_mbtouc_aux): Move out to separate file.
71035         (u16_mbtouc): Use ucs4_t, uint16_t types.
71036         * lib/unistr/utf16-ucs4.c: New file.
71037
71038         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
71039         (Depends-on): Add unitypes.
71040         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
71041         (u8_uctomb_aux): Move out to separate file.
71042         (u8_uctomb): Use ucs4_t, uint8_t types.
71043         * lib/unistr/ucs4-utf8.c: New file.
71044
71045         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
71046         (Depends-on): Add unitypes.
71047         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
71048         (u16_uctomb_aux): Move out to separate file.
71049         (u16_uctomb): Use ucs4_t, uint16_t types.
71050         * lib/unistr/ucs4-utf16.c: New file.
71051
71052 2006-12-25  Bruno Haible  <bruno@clisp.org>
71053
71054         * modules/unitypes: New file.
71055         * lib/unitypes.h: New file.
71056         * MODULES.html.sh (func_all_modules): New section "Unicode string
71057         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
71058         this section. Add unitypes.
71059
71060 2007-01-08  Bruno Haible  <bruno@clisp.org>
71061
71062         Avoid variable names that conflict with those from libtool.
71063         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
71064         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
71065         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
71066         library_names_spec to acl_library_names_spec, hardcode_* to
71067         acl_hardcode_*.
71068         Reported by Ralf Wildenhues.
71069
71070 2007-01-08  Bruno Haible  <bruno@clisp.org>
71071
71072         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
71073         definition.
71074         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
71075         definition.
71076         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
71077         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
71078         definition.
71079         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
71080         definition.
71081         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
71082         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
71083         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
71084         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
71085         definition.
71086         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
71087         definition.
71088         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
71089         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
71090         GC_USE_<algorithm>.
71091         * lib/gc-libgcrypt.c: Likewise.
71092         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
71093         * modules/gc-arctwo (configure.ac): Likewise.
71094         * modules/gc-des (configure.ac): Likewise.
71095         * modules/gc-hmac-md5 (configure.ac): Likewise.
71096         * modules/gc-hmac-sha1 (configure.ac): Likewise.
71097         * modules/gc-md2 (configure.ac): Likewise.
71098         * modules/gc-md4 (configure.ac): Likewise.
71099         * modules/gc-md5 (configure.ac): Likewise.
71100         * modules/gc-random (configure.ac): Likewise.
71101         * modules/gc-rijndael (configure.ac): Likewise.
71102         * modules/gc-sha1 (configure.ac): Likewise.
71103
71104 2007-01-08  Bruno Haible  <bruno@clisp.org>
71105
71106         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
71107         macro definition.
71108         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
71109         definition.
71110         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
71111         definition.
71112         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
71113         * modules/fcntl-safer (configure.ac): Likewise.
71114         * modules/fopen-safer (configure.ac): Likewise.
71115         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
71116         GNULIB_FWRITEERROR macro definition.
71117
71118 2007-01-08  Bruno Haible  <bruno@clisp.org>
71119
71120         * m4/gnulib-common.m4: New file.
71121         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
71122         (func_get_filelist): Add m4/gnulib-common.m4.
71123
71124 2007-01-08  Bruno Haible  <bruno@clisp.org>
71125
71126         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
71127         command.
71128
71129 2007-01-08  Jim Meyering  <jim@meyering.net>
71130
71131         Use a more robust test for a "can't happen" condition.
71132         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
71133         narrowed the st_size value.  Presuming the "can't happen" condition
71134         is true, that narrowing could conceivably convert an invalid st_size
71135         value into a valid one.  Instead, use a change based on Matthew
71136         Woehlke's original patch.
71137
71138         Slight readability improvement: use an assert-like macro
71139         in place of literal "abort ()" uses.
71140         * lib/fts.c (fts_assert): Define.
71141         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
71142         Use this macro instead of a bare 'abort'.
71143
71144 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
71145
71146         Don't worry about using IRIX 5.3's wctype.h broken definitions;
71147         simply work around them.
71148         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
71149         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
71150         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
71151         declaring.
71152         Don't bother to define as macros, since the standard doesn't require it.
71153         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
71154         longer worry about IRIX 5.3.
71155         (HAVE_WCTYPE_CTMP_BUG): Remove.
71156
71157 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71158
71159         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
71160         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
71161         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
71162         Problems reported by Georg Schwarz for IRIX 5.3.
71163
71164         * gnulib-tool (autoconf_minversion): Take the maximum version number
71165         found, not the minimum.  Problem reported by James Youngman.
71166
71167 2007-01-03  Karl Berry  <karl@gnu.org>
71168
71169         * doc/error.texi: new file, explaining interaction with progname.
71170         * doc/gnulib.texi: include it.  Update copyright.
71171
71172 2007-01-03  Simon Josefsson  <simon@josefsson.org>
71173
71174         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
71175         AC_CANONICAL_HOST, to improve autobuild outputs.
71176
71177 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
71178             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
71179
71180         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
71181         sockets, server sockets, and other file descriptors.  Count errors
71182         to compute the return value.  Reorder the code a bit to be easier
71183         to follow.  Don't set event bits that were not requested (except
71184         POLLERR and POLLHUP).
71185
71186 2007-01-01  Bruno Haible  <bruno@clisp.org>
71187
71188         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
71189
71190 2007-01-03  Jim Meyering  <jim@meyering.net>
71191
71192         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
71193
71194 2007-01-02  Bruno Haible  <bruno@clisp.org>
71195
71196         * modules/settime (Include): Require timespec.h.
71197         * modules/nanosleep (Include): Likewise.
71198
71199 2007-01-01  Bruno Haible  <bruno@clisp.org>
71200
71201         * gnulib-tool (func_emit_copyright_notice): Bump year.
71202         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
71203
71204 2007-01-01  Bruno Haible  <bruno@clisp.org>
71205
71206         Improve support for OpenBSD.
71207         * build-aux/config.rpath (libname_spec): Export.
71208         (library_names_spec): New variable. Export.
71209         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
71210         library_names_spec from the config.rpath output. Locate shared library
71211         through the name pattern in library_names_spec.
71212
71213 2007-01-01  Eric Blake  <ebb9@byu.net>
71214
71215         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
71216
71217 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
71218
71219         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
71220         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
71221         assume the C locale, and avoid an "eval" that could cause trouble.
71222         Problem with SORT reported by Bob Proulx.
71223
71224         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
71225         Define.  Trivial patch from Henning Nielsen Lund, originally
71226         sent to bug-grep@gnu.org today.
71227
71228 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
71229
71230         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
71231         struct stat.  Problem reported by Henning Nielsen Lund.
71232         * lib/acl.c: Include acl.h first, to check interface.  Don't
71233         bother to include sys/types.h and sys/stat.h again.
71234
71235 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71236
71237         Import the following change from libc; problem reported by
71238         Sven Verdoolaege.
71239
71240         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
71241
71242         [BZ #1373]
71243         * lib/argp.h: Remove __NTH for __argp_usage inline function.
71244
71245 2006-12-28  Jim Meyering  <jim@meyering.net>
71246
71247         * build-aux/announce-gen: Do not assume that the package
71248         builds any of tar.gz, tar.bz2, and .xdelta files.
71249         Suggestion from Simon Josefsson.
71250
71251 2006-12-28  Simon Josefsson  <simon@josefsson.org>
71252
71253         * modules/announce-gen: New file.
71254
71255 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
71256
71257         * lib/mbchar.h: Just include <wctype.h>; the wctype module
71258         handles its gotchas now.
71259         * lib/mbswidth.c: Likewise.
71260         * lib/wcwidth.h: Likewise.
71261         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
71262         and iswcntrl; the wctype module does this stuff now.
71263         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
71264         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71265         * modules/mbchar (Depends-on): Add wctype.
71266         * modules/mbswidth (Depends-on): Likewise.
71267         * modules/wcwidth (Depends-on): Likewise.
71268
71269 2006-12-27  Eric Blake  <ebb9@byu.net>
71270
71271         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
71272         module uses more than what <wctype.h> is required to provide.
71273
71274 2006-12-26  Eric Blake  <ebb9@byu.net>
71275
71276         * gnulib-tool (sed_extract_prog): Avoid space-tab.
71277
71278 2006-12-26  Eric Blake  <ebb9@byu.net>
71279
71280         * modules/absolute-header: New module.
71281         * modules/fcntl (Depends-on): Depend on it.
71282         * modules/inttypes (Depends-on): Likewise.
71283         * modules/stdint (Depends-on): Likewise.
71284         * modules/sys_stat (Depends-on): Likewise.
71285         * modules/wctype (Depends-on): Likewise.
71286         * MODULES.html.sh (Support for building libraries and
71287         executables): Document it.
71288
71289 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
71290
71291         * gnulib-tool (SED): Remove, undoing previous change.
71292         The problem was that it broke coreutils on Solaris, because
71293         "sed --posix" leaked into a makefile.
71294         (sed): New alias, if 'alias' and GNU sed.
71295
71296 2006-12-24  Jim Meyering  <jim@meyering.net>
71297
71298         Work around an fchownat bug in glibc-2.4:
71299         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
71300         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
71301         in spite of the -P option.
71302         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
71303         New macros.
71304         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
71305         * modules/openat (Files): Add lib/fchownat.c.
71306         * lib/openat.c (fchownat): Don't define here.  Move to...
71307         * lib/fchownat.c: ...this new file.
71308
71309 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71310
71311         Fix bug reported by Bruno Haible in
71312         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
71313         where quotearg.c didn't compile on Mac OS X 10.2 because it
71314         lacks <wchar.h> and wint_t.
71315         * lib/wctype_.h (__wctype_wint_t): New type.
71316         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
71317         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
71318         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
71319         Arg is now of type __wctype_wint_t, not wint_t.
71320         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
71321         substitute HAVE_WINT_T.
71322         * modules/wctype (Files): Add m4/wint_t.m4.
71323         (wctype.h): Substitute HAVE_WINT_T.
71324
71325 2006-12-23  Bruno Haible  <bruno@clisp.org>
71326
71327         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
71328
71329 2006-12-23  Bruno Haible  <bruno@clisp.org>
71330
71331         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
71332         S_ISLNK.
71333         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
71334         mingw.
71335
71336 2006-12-22  Bruno Haible  <bruno@clisp.org>
71337
71338         * lib/copy-file.c: Include acl.h.
71339         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
71340         Close the file descriptors only after being done with copy_acl.
71341         * modules/copy-file (Depends-on): Add acl.
71342
71343 2006-12-22  Bruno Haible  <bruno@clisp.org>
71344
71345         * gnulib-tool (SED): New variable.
71346         Use $SED instead of sed everywhere.
71347
71348 2006-12-22  Bruno Haible  <bruno@clisp.org>
71349
71350         * modules/no-c++: New file.
71351         * m4/no-c++.m4: New file.
71352         * MODULES.html.sh (Support for building libraries and executables):
71353         Add no-c++.
71354
71355 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
71356
71357         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
71358         Include <limits.h>, and use its INT_MAX to rewrite the
71359         j loop so that it does not overflow 'int'.  Problem reported by
71360         Ralf Wildenhues in
71361         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
71362         Play it safe by shifting left by 1 rather than multiplying by 2,
71363         as GCC is less likely to optimize this away when the value
71364         is signed (when it assumes overflow leads to undefined behavior).
71365         Also, don't assume time_t uses two's complement.
71366
71367 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
71368
71369         * MODULES.html.sh: New module wctype.
71370         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
71371         * lib/fnmatch.c: Don't bother to include <wchar.h> before
71372         <wctype.h>, since the new wctype module should fix this.
71373         * lib/quotearg.c: Include <wctype.h> unconditionally, since
71374         the wctype module should arrange for it.
71375         * lib/regex_internal.h: Likewise.
71376         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
71377         since the wctype module should handle this now.
71378         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
71379         * modules/fnmatch (Depends-on): Add wctype.
71380         * modules/quotearg (Depends-on): Likewise.
71381         * modules/regex (Depends-on): Likewise.
71382
71383 2006-12-19  Bruno Haible  <bruno@clisp.org>
71384
71385         * lib/strdup.h [C++]: Wrap definitions in extern "C".
71386         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
71387
71388 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71389
71390         * modules/savewd (Depends-on): Fix dependency on fcntl.
71391
71392 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71393
71394         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
71395         conforms to C99, rather than relying on the user's environment
71396         setting of STDINT_H.
71397
71398 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71399         and Eric Blake  <ebb9@byu.net>
71400
71401         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
71402         This is more consistent with the other defines here.
71403         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
71404         Port to z/OS.  Problem reported by Paul Gilmartin.
71405         Change local vars to use gl_ prefix rather than ac_.
71406         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
71407         with other defines.
71408         * modules/double-slash-root: New module.
71409         * modules/dirname (Files): Remove m4/double-slash-root.m4.
71410         (Depends-on): Add double-slash-root.
71411         * MODULES.html.sh (File system functions): Mention new module.
71412
71413 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
71414
71415         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
71416         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
71417         This is for the benefit of gzip, which doesn't do i18n.
71418
71419 2006-12-12  Jim Meyering  <jim@meyering.net>
71420
71421         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
71422         Reported by Andreas Schwab <schwab@suse.de>.
71423
71424 2006-12-12  Bruno Haible  <bruno@clisp.org>
71425
71426         Merge these changes.
71427         2006-09-05  Bruno Haible  <bruno@clisp.org>
71428         * lib/iconvme.c (iconv_string): No need to save and restore errno when
71429         iconv_alloc succeeded.
71430         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
71431         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
71432         test for " && dest " at the end - dest is always != NULL there. Call
71433         iconv with 4xNULL arguments initially, to reset the state. Call iconv
71434         with 2xNULL arguments, also to flush the state storage. Handle the
71435         IRIX iconv behaviour. Realloc the final result, to throw away unused
71436         memory.
71437
71438 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
71439
71440         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
71441         and fchmodat unconditionally, since glibc 2.4 has them.
71442         Problem reported by Arkadiusz Miskiewicz.
71443
71444 2006-12-10  Bruno Haible  <bruno@clisp.org>
71445
71446         * gnulib-tool (func_import): Show the include files only for those
71447         modules that are copied and specified.
71448         Reported by Karl Berry.
71449
71450 2006-12-08  Jim Meyering  <jim@meyering.net>
71451
71452         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
71453         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
71454
71455         * build-aux/announce-gen: Add two new options, both optional:
71456         --bootstrap-tools=TOOL_LIST
71457               a comma-separated list of tools, e.g.,
71458               autoconf,automake,bison,gnulib
71459         --gnulib-snapshot-date=DATE
71460               if gnulib is in the bootstrap tool list,
71461               then report this as the snapshot date.
71462               If not specified, use the current date/time.
71463               If you specify a date here, be sure it's UTC.
71464
71465 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71466
71467         * tests/test-argp-2.sh: Fix test to match actual output.
71468         (func_compare): Fix sed script to be portable.
71469
71470 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
71471
71472         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
71473         workaround for this case.  It is not autoconfigured now; offhand
71474         it's hard to see how to autoconfigure it.
71475
71476 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
71477
71478         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
71479         a directory that is about to be chowned.  Such a directory's
71480         initial file permissions should permit the owner only and this
71481         should not be changed until after the chown, since the group and
71482         other bits would be incorrect if they granted permission before
71483         the chown.
71484
71485         Fix porting problem for iswctype reported by Georg Schwarz in:
71486         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
71487         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
71488         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
71489         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
71490         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
71491
71492 2006-12-03  Jim Meyering  <jim@meyering.net>
71493
71494         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
71495         p->fts_statp may not yet be defined.
71496         (fts_read): Instead, set it in the caller, once p->fts_statp is
71497         sure to be defined, and corresponds to a top-level directory.
71498         This bug made du -x fail.  Here's the coreutils test case:
71499         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
71500         Reported by Mike Frysinger.
71501
71502 2006-12-01  Jim Meyering  <jim@meyering.net>
71503
71504         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
71505         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
71506         Reported by Simon Josefsson.
71507
71508 2006-11-30  Jim Meyering  <jim@meyering.net>
71509
71510         * m4/warning.m4: Use the all-permissive copyright notice
71511         recommended by RMS (rather than LGPL).
71512         * m4/vararrays.m4: Likewise.
71513         * m4/flexmember.m4: Likewise.
71514
71515 2006-11-29  Bruno Haible  <bruno@clisp.org>
71516
71517         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71518         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
71519         using +=.
71520         Reported by Simon Josefsson <simon@josefsson.org>.
71521
71522 2006-11-28  James Youngman <jay@gnu.org>
71523
71524         * README: Advise users that they might find the bug-gnulib@gnu.org
71525         and autotools-announce@gnu.org mailing lists useful.
71526
71527 2006-11-28  Bruno Haible  <bruno@clisp.org>
71528
71529         * m4/ptrdiff_max.m4: Remove file.
71530
71531 2006-11-21  Bruno Haible  <bruno@clisp.org>
71532
71533         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
71534         _AC_COMPUTE_INT.
71535         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71536         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
71537         _AC_COMPUTE_INT.
71538         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71539         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
71540         _AC_COMPUTE_INT.
71541         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71542
71543 2006-11-28  Jim Meyering  <jim@meyering.net>
71544
71545         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
71546         warning from "gcc -Wshadow" about shadowing the builtin.
71547
71548 2006-11-27  Bruno Haible  <bruno@clisp.org>
71549
71550         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
71551         _AC_COMPUTE_INT.
71552         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71553
71554 2006-11-27  Bruno Haible  <bruno@clisp.org>
71555             Paul Eggert  <eggert@cs.ucla.edu>
71556
71557         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
71558
71559 2006-11-26  Bruno Haible  <bruno@clisp.org>
71560
71561         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71562         noinst_LTLIBRARIES.
71563
71564 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71565             Bruno Haible  <bruno@clisp.org>
71566
71567         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
71568         if compiling with "gcc -ansi".
71569
71570 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71571
71572         Fix some incompatibilities with gcc -ansi -pedantic.
71573         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
71574         if compiling pedantically with GCC, unless it's C99 or later.
71575         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
71576         it mishandles gcc -ansi -pedantic as well.
71577         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
71578         if gcc -pedantic.
71579         * lib/regexec.c (check_node_accept_bytes): Don't use auto
71580         initializers for struct if -pedantic, unless it's C99 or later.
71581
71582 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
71583
71584         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
71585         Don't close an fd more than once. Identical atimes indicate
71586         success, not failure.
71587
71588 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
71589
71590         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
71591
71592 2006-11-23  Jim Meyering  <jim@meyering.net>
71593
71594         * build-aux/announce-gen: New file.  From coreutils.
71595
71596 2006-11-22  Jim Meyering  <jim@meyering.net>
71597
71598         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
71599         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
71600         (fts_read): Use a temporary to narrow the overused st_size member
71601         before using it in a switch statement.  Reported by Matthew Woehlke.
71602
71603         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
71604         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
71605
71606 2006-11-20  Bruno Haible  <bruno@clisp.org>
71607
71608         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
71609         changequote instead of pairs of brackets.
71610         Reported by Andreas Schwab <schwab@suse.de>.
71611
71612 2006-11-21  Jim Meyering  <jim@meyering.net>
71613
71614         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
71615         so as to remain compatible with older compilers.
71616         Patch from Michael Deutschmann.
71617
71618 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71619
71620         * MODULES.html.sh (File system functions): Add openat.
71621
71622         * lib/openat.h (rpl_fstatat): New macro, if
71623         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
71624         (fstatat): Define to rpl_fstatat under the same conditions,
71625         unless COMPILING_FSTATAT.
71626         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
71627         seems to have the bug.
71628         * lib/fstatat.c: New file.
71629         * modules/openat (Files): Add it.
71630
71631 2006-11-20  Bruno Haible  <bruno@clisp.org>
71632
71633         * Makefile: New file.
71634
71635 2006-11-20  Jim Meyering  <jim@meyering.net>
71636
71637         The beginnings of syntax-related checks for gnulib.
71638         * lib/Makefile: New file.
71639         * lib/t-idcache: New script.  Ensure that the two halves of
71640         idcache.c stay in sync.
71641
71642         * lib/idcache.c: Adjust comments in user- and group- portions to
71643         be more accurate, and to be consistent with one another.
71644
71645 2006-11-20  Jim Meyering  <jim@meyering.net>
71646
71647         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
71648         continue using the flexible array member (thus, this module performs
71649         half as many malloc calls), with the addition that...
71650         (getgroup, getuser): Consistently record a non-match via an empty
71651         "name" string, and map an empty string match to a NULL return value.
71652         * modules/idcache (Depends-on): Re-add flexmember.
71653
71654         * lib/idcache.c (getuser): Remove all uses of the register keyword.
71655         (getuidbyname, getgroup, getgidbyname): Likewise.
71656
71657         Use cleaner syntax: NULL rather than 0.
71658         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
71659
71660 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71661
71662         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
71663         It mishandled the case where the group was missing.
71664         Problem reported by Greg Schafer.
71665         * modules/idcache: Likewise.
71666
71667 2006-11-18  Jim Meyering  <jim@meyering.net>
71668
71669         * check-module (%exempt_header): Add exception for some
71670         conditionally-included headers.
71671
71672         * modules/i-ring (Depends-on): Add verify.
71673         (License): Change to LGPL.
71674
71675 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71676
71677         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
71678         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
71679         and inttostr.h.  Use snprintf rather than uinttostr, so that
71680         LGPLed code doesn't depend on GPLed.
71681
71682 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71683
71684         * modules/inline (License): Change from GPL to LGPL.
71685
71686 2006-11-17  Jim Meyering  <jim@meyering.net>
71687
71688         * modules/d-type (License): Switch to LGPL.
71689
71690 2006-11-15  Bruno Haible  <bruno@clisp.org>
71691
71692         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
71693
71694 2006-11-15  Eric Blake  <ebb9@byu.net>
71695
71696         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
71697         the module dependency.
71698
71699 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71700             Bruno Haible  <bruno@clisp.org>
71701
71702         * gnulib-tool (func_create_testdir): Add license consistency check.
71703
71704 2006-11-15  Eric Blake  <ebb9@byu.net>
71705
71706         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
71707         random "(cached)" in configure output.
71708
71709 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71710
71711         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
71712         test for conforming inttypes.h is both announced and cached.
71713
71714         * MODULES.html.sh (seen_modules, seen_files): New variables.
71715         (func_module): Rewrite to use a few less gnulib-tool and sed
71716         invocations.  Avoid a couple of quadratic algorithms for ...
71717         (missed_modules, missed_files): ... these, with ...
71718         (func_append, func_tmpdir): ... these new functions, from
71719         gnulib-tool.  Analogously, install traps for cleanup.
71720
71721         * tests/test-gc.c (main): Remove unused variables.
71722         * tests/test-read-file.c: Include stdlib.h, for 'free'.
71723
71724 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
71725
71726         * modules/inttostr (License): Change to LGPL.
71727
71728 2006-11-14  Eric Blake  <ebb9@byu.net>
71729
71730         * modules/tempname (License): Change to LGPL.
71731
71732 2006-11-14  Eric Blake  <ebb9@byu.net>
71733
71734         * doc/functions.texi (Function Portability): *printf functions on
71735         Cygwin now understand all POSIX size specifiers.
71736
71737 2006-11-14  Bruno Haible  <bruno@clisp.org>
71738
71739         * modules/c-ctype (License): Change to LGPL.
71740
71741 2006-11-12  Bruno Haible  <bruno@clisp.org>
71742
71743         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
71744         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
71745         for GNOME libraries, for which the include files are installed in
71746         subdirectories of $prefix/include.
71747
71748 2006-11-12  Bruno Haible  <bruno@clisp.org>
71749
71750         * m4/lib-link.m4: Require at least autoconf-2.54.
71751         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
71752         name to underscores for the --with option.
71753
71754 2006-11-13  Bruno Haible  <bruno@clisp.org>
71755
71756         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
71757         the tests directory.
71758         Reported by Ralf Wildenhues.
71759
71760 2006-11-13  Bruno Haible  <bruno@clisp.org>
71761
71762         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
71763         (func_emit_initmacro_end): Undo the override here.
71764         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
71765         Works around the famous automake error in coreutils.
71766
71767 2006-11-13  Eric Blake  <ebb9@byu.net>
71768
71769         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
71770         element, not its node.
71771
71772 2006-11-12  Bruno Haible  <bruno@clisp.org>
71773
71774         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
71775         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
71776
71777 2006-11-12  Bruno Haible  <bruno@clisp.org>
71778
71779         * gnulib-tool: New option --local-symlink.
71780         (func_usage): Document it.
71781         (lsymbolic): New variable.
71782         (func_import, func_create_testdir): If --symlink was not specified,
71783         test whether --local-symlink was specified and the file comes from
71784         the local_gnulib_dir.
71785
71786 2006-11-12  Bruno Haible  <bruno@clisp.org>
71787
71788         * gnulib-tool (func_ln): New function.
71789         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
71790
71791 2006-11-12  Bruno Haible  <bruno@clisp.org>
71792
71793         Finish support for source files in subdirectories.
71794         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
71795         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
71796         AUTOMAKE_OPTIONS.
71797         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
71798
71799 2006-11-12  Bruno Haible  <bruno@clisp.org>
71800
71801         * gnulib-tool (func_get_automake_snippet): Synthesize also an
71802         EXTRA_lib_SOURCES augmentation.
71803         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
71804
71805 2006-11-12  Jim Meyering  <jim@meyering.net>
71806
71807         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
71808         file descriptors.  This also averts a failure on systems with
71809         native openat support when a traversed directory lacks "x" access.
71810         * lib/fts_.h: Include "i-ring.h"
71811         (struct FTS) [fts_fd_ring]: New member.
71812         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
71813         (FCHDIR): Add parentheses.
71814         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
71815         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
71816         When descending, rather than simply closing the previous
71817         fts_cwd_fd value, push that file descriptor onto the ring.
71818         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
71819         (fts_open): Initialize the new fd_ring member.
71820         (fts_close): Clear the ring.
71821         (fts_safe_changedir): When possible, use our new fd_ring to skip
71822         the diropen and fstat and dev/ino comparison that would normally
71823         accompany a virtual `chdir ("..")'.
71824
71825         * modules/fts (Depends-on): Add i-ring.
71826         * modules/i-ring: New module.
71827         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
71828         * m4/i-ring.m4: New file.
71829
71830 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71831
71832         * gnulib-tool (func_create_testdir): Fix replacement of
71833         `build-aux' in configure.ac.  Run autotools in gltests
71834         subdirectory.
71835         (func_create_testdir, func_create_megatestdir, test): There is
71836         no need for '--force' in most autotool invocations in a new
71837         tree.  Actually fail the whole test if any of the tools, or the
71838         configure or make stages fail.
71839
71840         Sync from Automake.
71841         * build-aux/gnupload: Revert last change.  Add pointer to upload
71842         instructions of the GNU Maintenance Instructions.
71843         Suggestion by Karl Berry.
71844
71845 2006-11-10  Jim Meyering  <jim@meyering.net>
71846
71847         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
71848
71849 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71850
71851         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
71852         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
71853         (bind_textdomain_codeset) [! ENABLE_NLS]:
71854         Evaluate all the arguments.  That way, callers get compatible behavior
71855         if the arguments have side effects.  Also, it avoids some GCC
71856         diagnostics in some cases; Joel E. Denny reported problems when Bison
71857         was configured with --enable-gcc-warnigs.
71858
71859 2006-11-10  Jim Meyering  <jim@meyering.net>
71860
71861         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
71862         relevant options in CFLAGS (like -O, -fno-inline) are taken into
71863         account.
71864
71865 2006-11-10  Jim Meyering  <jim@meyering.net>
71866
71867         * modules/inline: New file/module.
71868         * modules/xalloc (Files): Remove m4/inline.m4.
71869         (Depends-on): Add inline, instead.
71870         * modules/oset: Likewise.
71871         * modules/list: Likewise.
71872
71873 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71874
71875         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
71876         Problem reported by Matthew Woehlke.
71877
71878 2006-11-09  Bruno Haible  <bruno@clisp.org>
71879
71880         * lib/tempname.c (gen_tempname): Remove variant that invokes
71881         __gen_tempname.
71882         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
71883         __gen_tempname.
71884
71885 2006-11-08  Bruno Haible  <bruno@clisp.org>
71886
71887         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
71888         to 'yes' instead of 'cross-compiling'.
71889
71890 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
71891
71892         * lib/quotearg.h (quotearg_free): New decl.
71893         * lib/quotearg.c (quotearg_free): New function.
71894         (slot0, nslots, slotvec0, slotvec):
71895         Now file-scope so that quotearg_free can get at them.
71896
71897 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71898
71899         Sync from Automake.
71900         * build-aux/gnupload: Add missing 'gnu' to example URL.
71901         Report by Karl Berry.
71902
71903 2006-11-08  Bruno Haible  <bruno@clisp.org>
71904
71905         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
71906         Suggested by Paul Eggert.
71907
71908 2006-11-08  Jim Meyering  <jim@meyering.net>
71909
71910         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
71911         It's already included if !_LIBC.
71912         (fts_safe_changedir): Add a comment.
71913
71914 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71915
71916         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
71917         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
71918         Matthew Woehlke.
71919
71920         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
71921         definitions up, to avoid colliding with change below.
71922         (static_inline) [HAVE_INLINE]: New macro.
71923         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
71924         Provide extern decls when !HAVE_INLINE.  Do not define unless
71925         static_inline is defined, either by us or by xmalloc.c.  Use
71926         static_inline rather than static inline.
71927         (XCALLOC): Optimize sizeof(T) = 1 case.
71928         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
71929
71930 2006-11-07  Bruno Haible  <bruno@clisp.org>
71931
71932         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
71933         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
71934         AC_C_INLINE.
71935         * modules/xalloc (Files): Add m4/inline.m4.
71936
71937 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71938
71939         * README: Fix typo.
71940         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
71941         (Miscellanous Notes): ...from this.
71942
71943 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71944
71945         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
71946         Mention that offsetof should be used instead of sizeof.
71947         From Bruno Haible.
71948
71949 2006-11-07  Bruno Haible  <bruno@clisp.org>
71950
71951         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
71952
71953 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71954
71955         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71956         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
71957         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71958         (gl_tree_add_before, gl_tree_add_after):
71959         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
71960         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
71961         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71962         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
71963         (gl_linked_add_after, gl_linked_add_at): Likewise.
71964         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
71965         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71966         (gl_tree_add_before, gl_tree_add_after): Likewise.
71967         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
71968         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
71969         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
71970
71971 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71972
71973         * lib/gl_oset.h: Use C comment style, not C++ comment style.
71974
71975 2006-11-06  Bruno Haible  <bruno@clisp.org>
71976
71977         * m4/inline.m4: New file.
71978         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
71979         * modules/list (Files): Add m4/inline.m4.
71980         * modules/oset (Files): Likewise.
71981
71982 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71983
71984         * lib/idcache.c: Include <stddef.h>, for offsetof.
71985         (struct userid.name): Change from char * to a flexible array member.
71986         All uses changed.
71987         * modules/idcache (Depends-on): Add flexmember.
71988
71989         * MODULES.html.sh (Core language properties): New module flexmember.
71990         * modules/flexmember, m4/flexmember.m4: New files.
71991
71992         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
71993         inline functions that are identical with the old xnmalloc_inline,
71994         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
71995         that we can avoid some unnecessary integer multiplications and
71996         divisions in the common case where the element size is known at
71997         compile time.
71998         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
71999         needed.
72000         (xnboundedmalloc): Remove.
72001         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
72002         arguments, for consistency with rest of this header.
72003         (xcharalloc): Rewrite using XNMALLOC.
72004         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
72005         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
72006         versions have been moved to lib/xalloc.h and renamed to be the
72007         non-*_inline versions.
72008         (xmalloc, xrealloc): Implement without reference to the xnmalloc
72009         and xnrealloc functions, since those functions are now inline and
72010         now call us.
72011         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
72012         renaming described above.
72013         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
72014         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
72015         captures the dependency in AC_C_INLINE.
72016
72017         New module canonicalize-lgpl, proposed by Charles Wilson in
72018         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
72019         with a few small changes afterwards.
72020         * MODULES.html.sh (File system functions): New module
72021         canonicalize-lgpl.
72022         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
72023         and canonicalize_file_name.
72024         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
72025         * modules/canonicalize-lgpl: New files.
72026
72027 2006-11-05  Bruno Haible  <bruno@clisp.org>
72028
72029         * gnulib-tool (func_import, func_create_testdir): Create directories
72030         also for files in subdirectories of lib/.
72031
72032 2006-11-05  Bruno Haible  <bruno@clisp.org>
72033
72034         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
72035         ANSI C compliant.
72036
72037 2006-11-03  Bruno Haible  <bruno@clisp.org>
72038
72039         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72040         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
72041         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
72042         (xnboundedmalloc): New inline function.
72043         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
72044         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
72045         xmalloc.
72046         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
72047         xmalloc.
72048         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
72049         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
72050         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
72051         xmalloc.
72052         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72053         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
72054         xmalloc.
72055         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
72056         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72057         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
72058         xmalloc.
72059         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72060         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
72061         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72062         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
72063         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
72064         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
72065         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
72066
72067 2006-11-03  Bruno Haible  <bruno@clisp.org>
72068
72069         * lib/c-ctype.h [C++]: Define functions without name mangling.
72070         * lib/fwriteerror.h [C++]: Likewise.
72071         * lib/gcd.h [C++]: Likewise.
72072         * lib/linebreak.h [C++]: Likewise.
72073
72074 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
72075
72076         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
72077         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
72078         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
72079         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
72080         Check for functions and headers just once.
72081         Check for declaration of canonicalize_file_name.
72082         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
72083
72084 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72085
72086         * gnulib-tool (func_import): Fix typo in actioncmd.
72087
72088 2006-11-02  Bruno Haible  <bruno@clisp.org>
72089
72090         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
72091         newline sequence in the Makefile.am snippet as a space, like "make"
72092         does.
72093         Reported by Roger Persson <perrog@gmail.com>.
72094
72095 2006-11-01  Bruno Haible  <bruno@clisp.org>
72096
72097         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
72098         already declared in <string.h>.
72099         * lib/strcase.h (strncasecmp): Don't declare it if yes.
72100
72101 2006-11-01  Bruno Haible  <bruno@clisp.org>
72102
72103         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
72104         * lib/strcase.h: Include <string.h>.
72105         (strcasecmp): Define to rpl_strcasecmp here.
72106
72107 2006-11-01  Bruno Haible  <bruno@clisp.org>
72108
72109         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
72110
72111 2006-11-01  Eric Blake  <ebb9@byu.net>
72112
72113         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
72114
72115         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
72116
72117 2006-10-29  Bruno Haible  <bruno@clisp.org>
72118
72119         Make it compile in C++ mode.
72120         * lib/full-write.c (full_rw): Add a cast.
72121
72122 2006-11-01  Bruno Haible  <bruno@clisp.org>
72123
72124         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
72125         be POSIX compliant.
72126         Reported by Roger Persson <perrog@gmail.com>.
72127
72128 2006-11-01  Eric Blake  <ebb9@byu.net>
72129
72130         * lib/getopt_.h: Fix comments.
72131
72132 2006-10-31  Eric Blake  <ebb9@byu.net>
72133
72134         * modules/tmpdir (Depends-on): Add sys_stat.
72135         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
72136         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
72137         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
72138         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
72139         tempname.
72140
72141 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
72142
72143         Avoid some C++ diagnostics reported by Bruno Haible.
72144         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
72145         xmalloc.
72146         (quotearg_alloc): Use xcharalloc rather than xmalloc.
72147         (struct slotvec): Move to top level.
72148         (quotearg_n_options): Rewrite to avoid xmalloc.
72149         * lib/xalloc.h (xcharalloc): New function.
72150         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
72151         [defined __cplusplus]: Add function template that provides result
72152         type propagation.  This part of the change is from Bruno Haible.
72153
72154 2006-10-29  Bruno Haible  <bruno@clisp.org>
72155
72156         Make it compile in C++ mode.
72157         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
72158         * lib/strnlen1.c (strnlen1): Cast memchr result.
72159         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
72160         * lib/clean-temp.c (string_equals, string_hash): Add casts.
72161         (create_temp_dir): Rename local variable 'template'.
72162         (compile_csharp_using_sscli): Add cast.
72163         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
72164         * lib/findprog.c (find_in_path): Likewise.
72165         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
72166         * lib/wait-process.c (register_slave_subprocess): Likewise.
72167
72168 2006-10-22  Bruno Haible  <bruno@clisp.org>
72169
72170         * modules/tsearch: New file.
72171         * lib/tsearch.h: New file.
72172         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
72173         * m4/tsearch.m4: New file.
72174         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
72175
72176 2006-10-29  Eric Blake  <ebb9@byu.net>
72177
72178         * lib/arcfour.c: Assume config.h.
72179         * lib/arctwo.c: Likewise.
72180         * lib/base64.c: Likewise.
72181         * lib/check-version.c: Likewise.
72182         * lib/crc.c: Likewise.
72183         * lib/des.c: Likewise.
72184         * lib/gc-gnulib.c: Likewise.
72185         * lib/gc-libgcrypt.c: Likewise.
72186         * lib/gc-pbkdf2-sha1.c: Likewise.
72187         * lib/getaddrinfo.c: Likewise.
72188         * lib/getdelim.c: Likewise.
72189         * lib/getline.c: Likewise.
72190         * lib/hmac-md5.c: Likewise.
72191         * lib/hmac-sha1.c: Likewise.
72192         * lib/iconvme.c: Likewise.
72193         * lib/md2.c: Likewise.
72194         * lib/md4.c: Likewise.
72195         * lib/memxor.c: Likewise.
72196         * lib/read-file.c: Likewise.
72197         * lib/readline.c: Likewise.
72198         * lib/rijndael-alg-fst.c: Likewise.
72199         * lib/rijndael-api-fst.c: Likewise.
72200         * lib/xgetdomainname.c: Likewise.
72201
72202 2006-10-28  Eric Blake  <ebb9@byu.net>
72203
72204         * lib/xstrndup.c: Assume config.h.
72205
72206 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
72207
72208         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
72209         stat-macros.h is now for our own macros, whereas stat_h is for
72210         macros in the <sys/stat.h> name space.
72211         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
72212         (STAT_MACROS_H): Remove.
72213         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
72214         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
72215         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
72216         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
72217         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
72218         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
72219         Move these macros to ...
72220         * lib/stat_.h: here.  Don't include stat-macros.h.
72221         * lib/canonicalize.c: Don't include stat-macros.h.
72222         * lib/chown.c: Likewise.
72223         * lib/euidaccess.c: Likewise.
72224         * lib/file-type.c: Likewise.
72225         * lib/filemode.c: Likewise.
72226         * lib/glob.c: Likewise.
72227         * lib/isapipe.c: Likewise.
72228         * lib/lchown.c: Likewise.
72229         * lib/lstat.c: Likewise.
72230         * lib/mkdir-p.c: Likewise.
72231         * lib/rmdir.c: Likewise.
72232         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
72233         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
72234         unless mkdir isn't declared, to speed up 'configure'.
72235         Always create sys/stat.h, since it's unlikely any real sys/stat.h
72236         would define all the S_* symbols.
72237         * modules/canonicalize (Depends-on):
72238         Depend on sys_stat, not stat-macros.
72239         * modules/chown: Likewise.
72240         * modules/euidaccess: Likewise.
72241         * modules/filemode: Likewise.
72242         * modules/file-type: Likewise.
72243         * modules/glob: Likewise.
72244         * modules/isapipe: Likewise.
72245         * modules/lchown: Likewise.
72246         * modules/lstat: Likewise.
72247         * modules/mkancesdirs: Likewise.
72248         * modules/rmdir: Likewise.
72249         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
72250         * modules/modechange: Likewise.
72251         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
72252         (configure.ac): Remove gl_STAT_MACROS.
72253         * modules/sys_stat (Depends-on): Remove stat-macros.
72254
72255 2006-10-27  Bruno Haible  <bruno@clisp.org>
72256
72257         * m4/signed.m4: Remove file.
72258         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
72259         invocation.
72260         * modules/vasnprintf (Files): Remove m4/signed.m4.
72261
72262 2006-10-27  Bruno Haible  <bruno@clisp.org>
72263
72264         Update to GNU gettext 0.16.
72265         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
72266         m4/inttypes-h.m4, m4/signed.m4.
72267         * m4/gettext.m4: Update to GNU gettext 0.16.
72268         * m4/intl.m4: New file, from GNU gettext.
72269         * m4/intldir.m4: New file, from GNU gettext.
72270         * config/srclist.txt: Update
72271
72272 2006-10-27  Eric Blake  <ebb9@byu.net>
72273
72274         * MODULES.html.sh: Document tempname.
72275         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
72276         dependencies.
72277         (Files): Move lib/tempname.c...
72278         * modules/tempname: ...to this new module.
72279         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
72280         (gl_PREREQ_TEMPNAME): Move...
72281         * m4/tempname.m4: ...to this new file.
72282         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
72283         * modules/sys_stat (Depends-on): Add stat-macros.
72284         * lib/stat_.h (includes): Pick up stat macros.
72285         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
72286         if stat macros are broken.
72287         * lib/tempname.c (includes): No need to include "stat-macros.h".
72288         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
72289         (direxists, __path_search) [!_LIBC]: Don't compile these in
72290         gnulib; the tmpdir module covers that.
72291         * lib/tempname.h: New file.
72292
72293 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
72294
72295         * COPYING: Explain how gnulib-tool converts licence headers.
72296         Almost all wording by Eric Blake.
72297
72298 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
72299
72300         * lib/mbchar.h (is_basic_table): Make read-only.
72301         * lib/mbchar.c (is_basic_table): Likewise.
72302         Reported by John Darrington.
72303
72304 2006-10-25  Bruno Haible  <bruno@clisp.org>
72305
72306         * lib/progname.h (set_program_name): Undefine before defining.
72307
72308 2006-10-25  Bruno Haible  <bruno@clisp.org>
72309
72310         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
72311         false for non-gcc C++ compilers.
72312         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
72313
72314 2006-10-24  Bruno Haible  <bruno@clisp.org>
72315
72316         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
72317         iconv implementations like Irix iconv.
72318
72319 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72320
72321         * modules/vararrays: New file.
72322         * m4/vararrays.m4: New file, taken from diffutils.
72323         * MODULES.html.sh: New module vararrays.
72324
72325 2006-10-24  Karl Berry  <karl@gnu.org>
72326
72327         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
72328         Don't call GNU Unix.
72329
72330 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72331
72332         * users.txt: Add Libtool.
72333
72334         Sync from Libtool:
72335
72336         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72337
72338         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
72339         to gnulib's policy of including config.h unconditionally.
72340
72341 2006-10-24  Bruno Haible  <bruno@clisp.org>
72342
72343         * modules/wcwidth (Files): Add m4/wint_t.m4.
72344         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
72345         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
72346
72347 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72348
72349         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
72350         to pacify GCC with some -W flags enabled.  Problem reported by
72351         Bruno Haible.
72352
72353 2006-10-24  Jim Meyering  <jim@meyering.net>
72354
72355         * MODULES.html.sh: Remove uinttostr.  It's not a module.
72356         Reported by Karl Berry.
72357
72358 2006-10-23  Bruno Haible  <bruno@clisp.org>
72359
72360         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
72361
72362 2006-10-24  Bruno Haible  <bruno@clisp.org>
72363
72364         * lib/gl_list.h: Use C comment style, not C++ comment style.
72365
72366 2006-10-23  Eric Blake  <ebb9@byu.net>
72367
72368         * lib/getaddrinfo.c (includes): Add missing include.
72369
72370 2006-10-23  Bruno Haible  <bruno@clisp.org>
72371             Paul Eggert  <eggert@cs.ucla.edu>
72372
72373         Ability to rename obstack_free.
72374         * lib/obstack.h (__obstack_free): New macro. Declare instead of
72375         obstack_free.
72376         (obstack_free): Invoke the __obstack_free macro.
72377         * lib/obstack.c (obstack_free): Use __obstack_free macro.
72378
72379 2006-10-23  Bruno Haible  <bruno@clisp.org>
72380             Paul Eggert  <eggert@cs.ucla.edu>
72381
72382         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
72383         __argc, __argv from the declaration. (They are defined as macros on
72384         mingw.)
72385
72386 2006-10-22  Bruno Haible  <bruno@clisp.org>
72387
72388         * doc/gnulib-intro.texi: New file.
72389         * doc/gnulib.texi: Include it.
72390
72391 2006-10-21  Bruno Haible  <bruno@clisp.org>
72392
72393         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
72394         "Introduction", "Miscellanous Notes", "Particular Modules".
72395
72396 2006-10-21  Bruno Haible  <bruno@clisp.org>
72397
72398         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72399         Change mostlyclean-local rule to avoid sh syntax error from bash
72400         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
72401
72402 2006-10-23  Jim Meyering  <jim@meyering.net>
72403
72404         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
72405         in place of snprintf.
72406
72407         * modules/inttostr (Files): Add lib/uinttostr.c.
72408         * lib/uinttostr.c (inttostr): New file/function.
72409         * lib/inttostr.h (uinttostr): Declare.
72410         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
72411         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72412         Add uinttostr.
72413         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
72414
72415 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72416
72417         * lib/canonicalize.c (ELOOP): Define if not already defined.
72418         Problem reported by Bruno Haible in
72419         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
72420
72421 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72422
72423         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
72424         Problem reported by Perry Smith and Ville Laurikari.
72425
72426         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
72427         uses.
72428
72429 2006-10-19  Bruno Haible  <bruno@clisp.org>
72430
72431         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
72432         for mingw.
72433
72434 2006-10-19  Bruno Haible  <bruno@clisp.org>
72435
72436         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
72437         Needed for mingw.
72438
72439 2006-10-19  Bruno Haible  <bruno@clisp.org>
72440
72441         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
72442
72443 2006-10-19  Bruno Haible  <bruno@clisp.org>
72444
72445         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
72446         it.
72447
72448 2006-10-19  Bruno Haible  <bruno@clisp.org>
72449
72450         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
72451         invocation.
72452
72453 2006-10-19  Bruno Haible  <bruno@clisp.org>
72454
72455         * gnulib-tool (func_create_testdir): Don't include ftruncate and
72456         mountlist by default.
72457
72458 2006-10-16  Bruno Haible  <bruno@clisp.org>
72459
72460         * lib/c-strstr.c: Include c-strstr.h.
72461
72462 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72463
72464         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
72465         in a slash.
72466
72467 2006-10-18  Bruno Haible  <bruno@clisp.org>
72468
72469         * lib/lock.h [C++]: Wrap definitions in extern "C".
72470
72471 2006-10-18  Bruno Haible  <bruno@clisp.org>
72472
72473         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
72474         gl_LIBOBJS list.
72475
72476 2006-10-18  Bruno Haible  <bruno@clisp.org>
72477
72478         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
72479
72480 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
72481
72482         * lib/xstrtol.h: Include gettext.h.
72483         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
72484         Problem reported by Eric Blake.
72485         * modules/xstrtol (Depends-on): Add gettext-h.
72486
72487 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
72488
72489         * lib/strftime.c (advance): New macro.
72490         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
72491         incomplete type, so you can't add 0 to it.  Problem and patch
72492         reported by Eelco Dolstra for dietlibc.
72493
72494 2006-10-18  Jim Meyering  <jim@meyering.net>
72495
72496         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
72497         type for a local, and rename it: s/up/user_proc/.
72498
72499 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
72500
72501         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
72502         READ_UTMP_USER_PROCESS.
72503         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
72504
72505 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
72506
72507         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
72508         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
72509
72510 2006-10-17  Eric Blake  <ebb9@byu.net>
72511
72512         * lib/sigprocmask.c (sigprocmask): Fix typo.
72513
72514         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
72515
72516         * modules/clean-temp (Makefile.am): Don't add to make output...
72517         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
72518         config.h.
72519
72520 2006-10-17  Bruno Haible  <bruno@clisp.org>
72521
72522         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
72523         differently if DEFAULT_TEXT_DOMAIN is set.
72524
72525 2006-10-16  Bruno Haible  <bruno@clisp.org>
72526
72527         * lib/clean-temp.c: Include fwriteerror.h.
72528
72529 2006-10-16  Bruno Haible  <bruno@clisp.org>
72530
72531         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
72532
72533 2006-10-16  Bruno Haible  <bruno@clisp.org>
72534
72535         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
72536         * lib/sigprocmask.h: Include <sys/types.h>.
72537         (sigset_t): Use the system's definition if present.
72538
72539 2006-10-17  Eric Blake  <ebb9@byu.net>
72540
72541         * lib/xvasprintf.c (includes): Assume config.h.
72542         * lib/xasprintf.c (includes): Likewise.
72543
72544 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
72545
72546         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
72547         at least as wide as intmax_t.
72548
72549 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
72550
72551         (Imported from Automake.)
72552         * build-aux/gnupload: Update to version 1.1 of directive file.
72553
72554 2006-10-16  Eric Blake  <ebb9@byu.net>
72555
72556         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
72557         match Automake 1.10a.
72558
72559 2006-10-14  Bruno Haible  <bruno@clisp.org>
72560
72561         * modules/sigprocmask: New file.
72562         * lib/sigprocmask.h: New file.
72563         * lib/sigprocmask.c: New file.
72564         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
72565         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
72566         request sigprocmask.o.
72567         (gl_PREREQ_SIGPROCMASK): New macro.
72568         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
72569         (Depends-on): Add sigprocmask.
72570         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
72571         gt_SIGNALBLOCKING. Test for 'raise' only once.
72572         * lib/fatal-signal.c: Include sigprocmask.h.
72573         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
72574         unblock_fatal_signals): Define always.
72575         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72576         sigprocmask.
72577
72578 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72579
72580         Sync from Automake.
72581         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
72582         which incorrectly sets the mode of an existing destination
72583         directory.  In some cases the unpatched install-sh could do the
72584         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
72585         system.  We hope this is rare in practice, but it's clearly worth
72586         fixing.  Problem reported by Alex Unleashed in
72587         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
72588         Also, don't bother to check for -m bugs unless we're using -m;
72589         suggested by Stepan Kasal.
72590
72591 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72592
72593         Sync from Automake.
72594         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
72595         `-c' flag, so they appear at the same position as in %FASTDEP%
72596         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
72597         which ignores unknown options only after the first non-option.
72598         Bug report against M4 by Nelson H. F. Beebe.
72599
72600 2006-10-13  Jim Meyering  <jim@meyering.net>
72601
72602         Fix a bug in yesterday's change.
72603         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
72604         p->fts_statp->st_dev would be used uninitialized.
72605         Ensures that we always call fts_stat on the very first entry.
72606         Miklos Szeredi reported that find -xdev stopped working.
72607
72608 2006-10-12  Bruno Haible  <bruno@clisp.org>
72609
72610         * gnulib-tool (func_get_automake_snippet): Append an automatically
72611         computed EXTRA_DIST augmentation.
72612         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
72613         * modules/alloca-opt (Makefile.am): Likewise.
72614         * modules/allocsa (Makefile.am): Likewise.
72615         * modules/arcfour (Makefile.am): Likewise.
72616         * modules/arctwo (Makefile.am): Likewise.
72617         * modules/argmatch (Makefile.am): Likewise.
72618         * modules/argz (Makefile.am): Likewise.
72619         * modules/atexit (Makefile.am): Likewise.
72620         * modules/backupfile (Makefile.am): Likewise.
72621         * modules/byteswap (Makefile.am): Likewise.
72622         * modules/c-strtod (Makefile.am): Likewise.
72623         * modules/c-strtold (Makefile.am): Likewise.
72624         * modules/calloc (Makefile.am): Likewise.
72625         * modules/canon-host (Makefile.am): Likewise.
72626         * modules/canonicalize (Makefile.am): Likewise.
72627         * modules/chdir-long (Makefile.am): Likewise.
72628         * modules/chdir-safer (Makefile.am): Likewise.
72629         * modules/check-version (Makefile.am): Likewise.
72630         * modules/chown (Makefile.am): Likewise.
72631         * modules/cloexec (Makefile.am): Likewise.
72632         * modules/close-stream (Makefile.am): Likewise.
72633         * modules/closeout (Makefile.am): Likewise.
72634         * modules/crc (Makefile.am): Likewise.
72635         * modules/csharpexec (Makefile.am): Likewise.
72636         * modules/cycle-check (Makefile.am): Likewise.
72637         * modules/des (Makefile.am): Likewise.
72638         * modules/dev-ino (Makefile.am): Likewise.
72639         * modules/dirfd (Makefile.am): Likewise.
72640         * modules/dirname (Makefile.am): Likewise.
72641         * modules/dup2 (Makefile.am): Likewise.
72642         * modules/eealloc (Makefile.am): Likewise.
72643         * modules/error (Makefile.am): Likewise.
72644         * modules/euidaccess (Makefile.am): Likewise.
72645         * modules/exclude (Makefile.am): Likewise.
72646         * modules/exitfail (Makefile.am): Likewise.
72647         * modules/fcntl-safer (Makefile.am): Likewise.
72648         * modules/fcntl (Makefile.am): Likewise.
72649         * modules/file-type (Makefile.am): Likewise.
72650         * modules/fileblocks (Makefile.am): Likewise.
72651         * modules/filemode (Makefile.am): Likewise.
72652         * modules/filenamecat (Makefile.am): Likewise.
72653         * modules/fnmatch (Makefile.am): Likewise.
72654         * modules/fopen-safer (Makefile.am): Likewise.
72655         * modules/fpending (Makefile.am): Likewise.
72656         * modules/fprintftime (Makefile.am): Likewise.
72657         * modules/free (Makefile.am): Likewise.
72658         * modules/fsusage (Makefile.am): Likewise.
72659         * modules/ftruncate (Makefile.am): Likewise.
72660         * modules/fts (Makefile.am): Likewise.
72661         * modules/gc-arcfour (Makefile.am): Likewise.
72662         * modules/gc-des (Makefile.am): Likewise.
72663         * modules/gc-hmac-md5 (Makefile.am): Likewise.
72664         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
72665         * modules/gc-md4 (Makefile.am): Likewise.
72666         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72667         * modules/gc-sha1 (Makefile.am): Likewise.
72668         * modules/gc (Makefile.am): Likewise.
72669         * modules/getaddrinfo (Makefile.am): Likewise.
72670         * modules/getcwd (Makefile.am): Likewise.
72671         * modules/getdelim (Makefile.am): Likewise.
72672         * modules/getdomainname (Makefile.am): Likewise.
72673         * modules/getgroups (Makefile.am): Likewise.
72674         * modules/gethostname (Makefile.am): Likewise.
72675         * modules/gethrxtime (Makefile.am): Likewise.
72676         * modules/getline (Makefile.am): Likewise.
72677         * modules/getloadavg (Makefile.am): Likewise.
72678         * modules/getlogin_r (Makefile.am): Likewise.
72679         * modules/getndelim2 (Makefile.am): Likewise.
72680         * modules/getopt (Makefile.am): Likewise.
72681         * modules/getpagesize (Makefile.am): Likewise.
72682         * modules/getpass-gnu (Makefile.am): Likewise.
72683         * modules/getpass (Makefile.am): Likewise.
72684         * modules/getsubopt (Makefile.am): Likewise.
72685         * modules/gettime (Makefile.am): Likewise.
72686         * modules/gettimeofday (Makefile.am): Likewise.
72687         * modules/getugroups (Makefile.am): Likewise.
72688         * modules/getusershell (Makefile.am): Likewise.
72689         * modules/glob (Makefile.am): Likewise.
72690         * modules/group-member (Makefile.am): Likewise.
72691         * modules/hard-locale (Makefile.am): Likewise.
72692         * modules/hash (Makefile.am): Likewise.
72693         * modules/hmac-md5 (Makefile.am): Likewise.
72694         * modules/hmac-sha1 (Makefile.am): Likewise.
72695         * modules/human (Makefile.am): Likewise.
72696         * modules/idcache (Makefile.am): Likewise.
72697         * modules/imaxabs (Makefile.am): Likewise.
72698         * modules/imaxdiv (Makefile.am): Likewise.
72699         * modules/inet_ntop (Makefile.am): Likewise.
72700         * modules/inet_pton (Makefile.am): Likewise.
72701         * modules/intprops (Makefile.am): Likewise.
72702         * modules/inttostr (Makefile.am): Likewise.
72703         * modules/inttypes (Makefile.am): Likewise.
72704         * modules/isapipe (Makefile.am): Likewise.
72705         * modules/javaversion (Makefile.am): Likewise.
72706         * modules/lchmod (Makefile.am): Likewise.
72707         * modules/lchown (Makefile.am): Likewise.
72708         * modules/localcharset (Makefile.am): Likewise.
72709         * modules/long-options (Makefile.am): Likewise.
72710         * modules/lstat (Makefile.am): Likewise.
72711         * modules/malloc (Makefile.am): Likewise.
72712         * modules/mathl (Makefile.am): Likewise.
72713         * modules/mbchar (Makefile.am): Likewise.
72714         * modules/md2 (Makefile.am): Likewise.
72715         * modules/md4 (Makefile.am): Likewise.
72716         * modules/md5 (Makefile.am): Likewise.
72717         * modules/memcasecmp (Makefile.am): Likewise.
72718         * modules/memchr (Makefile.am): Likewise.
72719         * modules/memcmp (Makefile.am): Likewise.
72720         * modules/memcoll (Makefile.am): Likewise.
72721         * modules/memcpy (Makefile.am): Likewise.
72722         * modules/memmem (Makefile.am): Likewise.
72723         * modules/memmove (Makefile.am): Likewise.
72724         * modules/mempcpy (Makefile.am): Likewise.
72725         * modules/memrchr (Makefile.am): Likewise.
72726         * modules/memset (Makefile.am): Likewise.
72727         * modules/memxor (Makefile.am): Likewise.
72728         * modules/mkancesdirs (Makefile.am): Likewise.
72729         * modules/mkdir-p (Makefile.am): Likewise.
72730         * modules/mkdir (Makefile.am): Likewise.
72731         * modules/mkdtemp (Makefile.am): Likewise.
72732         * modules/mkstemp (Makefile.am): Likewise.
72733         * modules/mktime (Makefile.am): Likewise.
72734         * modules/modechange (Makefile.am): Likewise.
72735         * modules/mountlist (Makefile.am): Likewise.
72736         * modules/nanosleep (Makefile.am): Likewise.
72737         * modules/obstack (Makefile.am): Likewise.
72738         * modules/openat (Makefile.am): Likewise.
72739         * modules/pagealign_alloc (Makefile.am): Likewise.
72740         * modules/pathmax (Makefile.am): Likewise.
72741         * modules/physmem (Makefile.am): Likewise.
72742         * modules/poll (Makefile.am): Likewise.
72743         * modules/posixtm (Makefile.am): Likewise.
72744         * modules/posixver (Makefile.am): Likewise.
72745         * modules/putenv (Makefile.am): Likewise.
72746         * modules/quote (Makefile.am): Likewise.
72747         * modules/quotearg (Makefile.am): Likewise.
72748         * modules/raise (Makefile.am): Likewise.
72749         * modules/read-file (Makefile.am): Likewise.
72750         * modules/readline (Makefile.am): Likewise.
72751         * modules/readlink (Makefile.am): Likewise.
72752         * modules/readtokens (Makefile.am): Likewise.
72753         * modules/readutmp (Makefile.am): Likewise.
72754         * modules/realloc (Makefile.am): Likewise.
72755         * modules/regex (Makefile.am): Likewise.
72756         * modules/rename-dest-slash (Makefile.am): Likewise.
72757         * modules/rename (Makefile.am): Likewise.
72758         * modules/rijndael (Makefile.am): Likewise.
72759         * modules/rmdir (Makefile.am): Likewise.
72760         * modules/rpmatch (Makefile.am): Likewise.
72761         * modules/safe-read (Makefile.am): Likewise.
72762         * modules/safe-write (Makefile.am): Likewise.
72763         * modules/same-inode (Makefile.am): Likewise.
72764         * modules/same (Makefile.am): Likewise.
72765         * modules/save-cwd (Makefile.am): Likewise.
72766         * modules/savedir (Makefile.am): Likewise.
72767         * modules/setenv (Makefile.am): Likewise.
72768         * modules/settime (Makefile.am): Likewise.
72769         * modules/sha1 (Makefile.am): Likewise.
72770         * modules/sig2str (Makefile.am): Likewise.
72771         * modules/snprintf (Makefile.am): Likewise.
72772         * modules/stat-macros (Makefile.am): Likewise.
72773         * modules/stat-time (Makefile.am): Likewise.
72774         * modules/stdbool (Makefile.am): Likewise.
72775         * modules/stdint (Makefile.am): Likewise.
72776         * modules/stdlib-safer (Makefile.am): Likewise.
72777         * modules/stpcpy (Makefile.am): Likewise.
72778         * modules/stpncpy (Makefile.am): Likewise.
72779         * modules/strcase (Makefile.am): Likewise.
72780         * modules/strcasestr (Makefile.am): Likewise.
72781         * modules/strchrnul (Makefile.am): Likewise.
72782         * modules/strcspn (Makefile.am): Likewise.
72783         * modules/strdup (Makefile.am): Likewise.
72784         * modules/strerror (Makefile.am): Likewise.
72785         * modules/strftime (Makefile.am): Likewise.
72786         * modules/strndup (Makefile.am): Likewise.
72787         * modules/strnlen (Makefile.am): Likewise.
72788         * modules/strpbrk (Makefile.am): Likewise.
72789         * modules/strsep (Makefile.am): Likewise.
72790         * modules/strstr (Makefile.am): Likewise.
72791         * modules/strtod (Makefile.am): Likewise.
72792         * modules/strtoimax (Makefile.am): Likewise.
72793         * modules/strtok_r (Makefile.am): Likewise.
72794         * modules/strtol (Makefile.am): Likewise.
72795         * modules/strtoll (Makefile.am): Likewise.
72796         * modules/strtoul (Makefile.am): Likewise.
72797         * modules/strtoull (Makefile.am): Likewise.
72798         * modules/strtoumax (Makefile.am): Likewise.
72799         * modules/strverscmp (Makefile.am): Likewise.
72800         * modules/sys_socket (Makefile.am): Likewise.
72801         * modules/sys_stat (Makefile.am): Likewise.
72802         * modules/sysexits (Makefile.am): Likewise.
72803         * modules/time_r (Makefile.am): Likewise.
72804         * modules/timegm (Makefile.am): Likewise.
72805         * modules/timespec (Makefile.am): Likewise.
72806         * modules/tmpfile-safer (Makefile.am): Likewise.
72807         * modules/trim (Makefile.am): Likewise.
72808         * modules/unistd-safer (Makefile.am): Likewise.
72809         * modules/unlinkdir (Makefile.am): Likewise.
72810         * modules/unlocked-io (Makefile.am): Likewise.
72811         * modules/userspec (Makefile.am): Likewise.
72812         * modules/utime (Makefile.am): Likewise.
72813         * modules/utimecmp (Makefile.am): Likewise.
72814         * modules/utimens (Makefile.am): Likewise.
72815         * modules/vasnprintf (Makefile.am): Likewise.
72816         * modules/vasprintf (Makefile.am): Likewise.
72817         * modules/vsnprintf (Makefile.am): Likewise.
72818         * modules/xalloc (Makefile.am): Likewise.
72819         * modules/xgetcwd (Makefile.am): Likewise.
72820         * modules/xnanosleep (Makefile.am): Likewise.
72821         * modules/xreadlink (Makefile.am): Likewise.
72822         * modules/xstrtod (Makefile.am): Likewise.
72823         * modules/xstrtol (Makefile.am): Likewise.
72824         * modules/xstrtold (Makefile.am): Likewise.
72825         * modules/yesno (Makefile.am): Likewise.
72826         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
72827
72828 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72829
72830         * modules/error (Makefile.am): Distribute files through
72831         EXTRA_DIST, not lib_SOURCES.
72832
72833 2006-10-12  Eric Blake  <ebb9@byu.net>
72834
72835         * modules/error (Makefile.am): Distribute files in /lib.
72836         * modules/obstack (Makefile.am): Likewise.
72837
72838 2006-10-12  Bruno Haible  <bruno@clisp.org>
72839
72840         * modules/acl (Makefile.am): Distribute all files in lib/ through
72841         EXTRA_DIST.
72842         * modules/arcfour (Makefile.am): Likewise.
72843         * modules/arctwo (Makefile.am): Likewise.
72844         * modules/argmatch (Makefile.am): Likewise.
72845         * modules/argz (Makefile.am): Likewise.
72846         * modules/atexit (Makefile.am): Likewise.
72847         * modules/backupfile (Makefile.am): Likewise.
72848         * modules/c-strtod (Makefile.am): Likewise.
72849         * modules/c-strtold (Makefile.am): Likewise.
72850         * modules/calloc (Makefile.am): Likewise.
72851         * modules/canon-host (Makefile.am): Likewise.
72852         * modules/canonicalize (Makefile.am): Likewise.
72853         * modules/chdir-long (Makefile.am): Likewise.
72854         * modules/chdir-safer (Makefile.am): Likewise.
72855         * modules/check-version (Makefile.am): Likewise.
72856         * modules/chown (Makefile.am): Likewise.
72857         * modules/cloexec (Makefile.am): Likewise.
72858         * modules/close-stream (Makefile.am): Likewise.
72859         * modules/closeout (Makefile.am): Likewise.
72860         * modules/crc (Makefile.am): Likewise.
72861         * modules/cycle-check (Makefile.am): Likewise.
72862         * modules/des (Makefile.am): Likewise.
72863         * modules/dirfd (Makefile.am): Likewise.
72864         * modules/dirname (Makefile.am): Likewise.
72865         * modules/dup2 (Makefile.am): Likewise.
72866         * modules/euidaccess (Makefile.am): Likewise.
72867         * modules/exclude (Makefile.am): Likewise.
72868         * modules/exitfail (Makefile.am): Likewise.
72869         * modules/fcntl-safer (Makefile.am): Likewise.
72870         * modules/file-type (Makefile.am): Likewise.
72871         * modules/fileblocks (Makefile.am): Likewise.
72872         * modules/filemode (Makefile.am): Likewise.
72873         * modules/filenamecat (Makefile.am): Likewise.
72874         * modules/fnmatch (Makefile.am): Likewise.
72875         * modules/fopen-safer (Makefile.am): Likewise.
72876         * modules/fpending (Makefile.am): Likewise.
72877         * modules/fprintftime (Makefile.am): Likewise.
72878         * modules/free (Makefile.am): Likewise.
72879         * modules/fsusage (Makefile.am): Likewise.
72880         * modules/ftruncate (Makefile.am): Likewise.
72881         * modules/fts (Makefile.am): Likewise.
72882         * modules/gc (Makefile.am): Likewise.
72883         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72884         * modules/getaddrinfo (Makefile.am): Likewise.
72885         * modules/getcwd (Makefile.am): Likewise.
72886         * modules/getdelim (Makefile.am): Likewise.
72887         * modules/getdomainname (Makefile.am): Likewise.
72888         * modules/getgroups (Makefile.am): Likewise.
72889         * modules/gethostname (Makefile.am): Likewise.
72890         * modules/gethrxtime (Makefile.am): Likewise.
72891         * modules/getline (Makefile.am): Likewise.
72892         * modules/getloadavg (Makefile.am): Likewise.
72893         * modules/getlogin_r (Makefile.am): Likewise.
72894         * modules/getopt (Makefile.am): Likewise.
72895         * modules/getpass (Makefile.am): Likewise.
72896         * modules/getpass-gnu (Makefile.am): Likewise.
72897         * modules/getsubopt (Makefile.am): Likewise.
72898         * modules/gettime (Makefile.am): Likewise.
72899         * modules/gettimeofday (Makefile.am): Likewise.
72900         * modules/getugroups (Makefile.am): Likewise.
72901         * modules/getusershell (Makefile.am): Likewise.
72902         * modules/glob (Makefile.am): Likewise.
72903         * modules/group-member (Makefile.am): Likewise.
72904         * modules/hard-locale (Makefile.am): Likewise.
72905         * modules/hash (Makefile.am): Likewise.
72906         * modules/hmac-md5 (Makefile.am): Likewise.
72907         * modules/hmac-sha1 (Makefile.am): Likewise.
72908         * modules/human (Makefile.am): Likewise.
72909         * modules/idcache (Makefile.am): Likewise.
72910         * modules/imaxabs (Makefile.am): Likewise.
72911         * modules/imaxdiv (Makefile.am): Likewise.
72912         * modules/inet_ntop (Makefile.am): Likewise.
72913         * modules/inet_pton (Makefile.am): Likewise.
72914         * modules/inttostr (Makefile.am): Likewise.
72915         * modules/isapipe (Makefile.am): Likewise.
72916         * modules/lchown (Makefile.am): Likewise.
72917         * modules/long-options (Makefile.am): Likewise.
72918         * modules/lstat (Makefile.am): Likewise.
72919         * modules/malloc (Makefile.am): Likewise.
72920         * modules/mathl (Makefile.am): Likewise.
72921         * modules/mbchar (Makefile.am): Likewise.
72922         * modules/md2 (Makefile.am): Likewise.
72923         * modules/md4 (Makefile.am): Likewise.
72924         * modules/md5 (Makefile.am): Likewise.
72925         * modules/memcasecmp (Makefile.am): Likewise.
72926         * modules/memchr (Makefile.am): Likewise.
72927         * modules/memcmp (Makefile.am): Likewise.
72928         * modules/memcoll (Makefile.am): Likewise.
72929         * modules/memcpy (Makefile.am): Likewise.
72930         * modules/memmem (Makefile.am): Likewise.
72931         * modules/memmove (Makefile.am): Likewise.
72932         * modules/mempcpy (Makefile.am): Likewise.
72933         * modules/memrchr (Makefile.am): Likewise.
72934         * modules/memset (Makefile.am): Likewise.
72935         * modules/memxor (Makefile.am): Likewise.
72936         * modules/mkancesdirs (Makefile.am): Likewise.
72937         * modules/mkdir (Makefile.am): Likewise.
72938         * modules/mkdir-p (Makefile.am): Likewise.
72939         * modules/mkdtemp (Makefile.am): Likewise.
72940         * modules/mkstemp (Makefile.am): Likewise.
72941         * modules/mktime (Makefile.am): Likewise.
72942         * modules/modechange (Makefile.am): Likewise.
72943         * modules/mountlist (Makefile.am): Likewise.
72944         * modules/nanosleep (Makefile.am): Likewise.
72945         * modules/openat (Makefile.am): Likewise.
72946         * modules/pagealign_alloc (Makefile.am): Likewise.
72947         * modules/physmem (Makefile.am): Likewise.
72948         * modules/poll (Makefile.am): Likewise.
72949         * modules/posixtm (Makefile.am): Likewise.
72950         * modules/posixver (Makefile.am): Likewise.
72951         * modules/putenv (Makefile.am): Likewise.
72952         * modules/quote (Makefile.am): Likewise.
72953         * modules/quotearg (Makefile.am): Likewise.
72954         * modules/raise (Makefile.am): Likewise.
72955         * modules/read-file (Makefile.am): Likewise.
72956         * modules/readline (Makefile.am): Likewise.
72957         * modules/readlink (Makefile.am): Likewise.
72958         * modules/readtokens (Makefile.am): Likewise.
72959         * modules/readutmp (Makefile.am): Likewise.
72960         * modules/realloc (Makefile.am): Likewise.
72961         * modules/regex (Makefile.am): Likewise.
72962         * modules/rename (Makefile.am): Likewise.
72963         * modules/rename-dest-slash (Makefile.am): Likewise.
72964         * modules/rijndael (Makefile.am): Likewise.
72965         * modules/rmdir (Makefile.am): Likewise.
72966         * modules/rpmatch (Makefile.am): Likewise.
72967         * modules/safe-read (Makefile.am): Likewise.
72968         * modules/safe-write (Makefile.am): Likewise.
72969         * modules/same (Makefile.am): Likewise.
72970         * modules/save-cwd (Makefile.am): Likewise.
72971         * modules/savedir (Makefile.am): Likewise.
72972         * modules/setenv (Makefile.am): Likewise.
72973         * modules/settime (Makefile.am): Likewise.
72974         * modules/sha1 (Makefile.am): Likewise.
72975         * modules/sig2str (Makefile.am): Likewise.
72976         * modules/snprintf (Makefile.am): Likewise.
72977         * modules/stdlib-safer (Makefile.am): Likewise.
72978         * modules/stpcpy (Makefile.am): Likewise.
72979         * modules/stpncpy (Makefile.am): Likewise.
72980         * modules/strcase (Makefile.am): Likewise.
72981         * modules/strcasestr (Makefile.am): Likewise.
72982         * modules/strchrnul (Makefile.am): Likewise.
72983         * modules/strcspn (Makefile.am): Likewise.
72984         * modules/strdup (Makefile.am): Likewise.
72985         * modules/strerror (Makefile.am): Likewise.
72986         * modules/strftime (Makefile.am): Likewise.
72987         * modules/strndup (Makefile.am): Likewise.
72988         * modules/strnlen (Makefile.am): Likewise.
72989         * modules/strpbrk (Makefile.am): Likewise.
72990         * modules/strsep (Makefile.am): Likewise.
72991         * modules/strstr (Makefile.am): Likewise.
72992         * modules/strtod (Makefile.am): Likewise.
72993         * modules/strtoimax (Makefile.am): Likewise.
72994         * modules/strtok_r (Makefile.am): Likewise.
72995         * modules/strtol (Makefile.am): Likewise.
72996         * modules/strtoll (Makefile.am): Likewise.
72997         * modules/strtoul (Makefile.am): Likewise.
72998         * modules/strtoull (Makefile.am): Likewise.
72999         * modules/strtoumax (Makefile.am): Likewise.
73000         * modules/strverscmp (Makefile.am): Likewise.
73001         * modules/time_r (Makefile.am): Likewise.
73002         * modules/timegm (Makefile.am): Likewise.
73003         * modules/tmpfile-safer (Makefile.am): Likewise.
73004         * modules/unistd-safer (Makefile.am): Likewise.
73005         * modules/unlinkdir (Makefile.am): Likewise.
73006         * modules/userspec (Makefile.am): Likewise.
73007         * modules/utime (Makefile.am): Likewise.
73008         * modules/utimecmp (Makefile.am): Likewise.
73009         * modules/utimens (Makefile.am): Likewise.
73010         * modules/vasnprintf (Makefile.am): Likewise.
73011         * modules/vasprintf (Makefile.am): Likewise.
73012         * modules/vsnprintf (Makefile.am): Likewise.
73013         * modules/xalloc (Makefile.am): Likewise.
73014         * modules/xgetcwd (Makefile.am): Likewise.
73015         * modules/xnanosleep (Makefile.am): Likewise.
73016         * modules/xreadlink (Makefile.am): Likewise.
73017         * modules/xstrtod (Makefile.am): Likewise.
73018         * modules/xstrtol (Makefile.am): Likewise.
73019         * modules/xstrtold (Makefile.am): Likewise.
73020         * modules/yesno (Makefile.am): Likewise.
73021
73022 2006-10-12  Jim Meyering  <jim@meyering.net>
73023
73024         * m4/getloadavg.m4: Revert the change below.
73025
73026         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
73027         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
73028         fail with a symlink, which is what coreutils' ./bootstrap now
73029         creates by default.
73030
73031 2006-10-12  Bruno Haible  <bruno@clisp.org>
73032
73033         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
73034         mingw.
73035         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
73036         MSVC and mingw explicitly.
73037
73038 2006-10-11  Simon Josefsson  <jas@extundo.com>
73039             Bruno Haible  <bruno@clisp.org>
73040
73041         Add support for multiple gnulib-tool invocations in the scope of a
73042         single configure.ac file.
73043         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
73044         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
73045         with the same contents as the _LIBADD variable.
73046         (func_emit_initmacro_start, func_emit_initmacro_end,
73047         func_emit_initmacro_done): New functions.
73048         (func_import, func_create_testdir): Invoke them. Allow the identifiers
73049         gl_LIBOBJS and gl_LTLIBOBJS.
73050
73051 2006-10-11  Bruno Haible  <bruno@clisp.org>
73052
73053         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
73054         (func_create_testdir): Don't create po/Makefile.am, don't invoke
73055         autoreconf. Instead, invoke autopoint explicitly but move back the
73056         *.m4 files from gnulib.
73057
73058 2006-10-11  Bruno Haible  <bruno@clisp.org>
73059
73060         * gnulib-tool (func_usage): Make module names after --create-testdir
73061         optional.
73062         (func_create_testdir): If no module was specified, use nearly all
73063         modules.
73064
73065 2006-10-12  Jim Meyering  <jim@meyering.net>
73066
73067         Big performance improvement for fts-based tools that use FTS_NOSTAT.
73068         Avoid spurious inode-mismatch problems on non-POSIX file systems.
73069         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
73070         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
73071         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
73072         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
73073         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
73074         (fts_set_stat_required): New function.
73075         (fts_open): Defer the calls to fts_stat, if possible or requested.
73076         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
73077         into fts_stat itself.
73078         (fts_read): Perform any required (deferred) fts_stat call.
73079         (fts_build): Likewise, for the directory we're about to open and read.
73080         In the readdir loop, carefully decide whether each entry will require
73081         an eventual call to fts_stat, using dirent.d_type info if available.
73082         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
73083         a command line argument into this function.  Update all callers.
73084         Map a return value of FTS_DOT to FTS_D for a command line argument.
73085         * modules/fts (Depends-on): Add d-type.  Alphabetize.
73086         Thanks to Miklos Szeredi for his tenacity and for the initial
73087         bug report about "find" failing on a FUSE-based file system.
73088
73089         * lib/fts.c (fts_open): Use consistent indentation.
73090
73091 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73092
73093         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
73094         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
73095         reported by Jim Meyering.  All uses of cache variables renamed
73096         to match Autoconf's.
73097         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
73098         the other one.
73099
73100         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
73101         Fix misspelling in diagnostic.
73102
73103 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73104
73105         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
73106         defined.  Problem reported by Matthew Woehlke.
73107
73108         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
73109         Add support for Tandem NonStop R series.
73110         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
73111         Use new macro.
73112
73113         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
73114         (has_trailing_slash): Omit size arg; all callers changed.
73115         Omit 'inline', since it doesn't help performance and we'd
73116         need to configure it.
73117         Don't count //, ///, etc. as having a trailing slash.
73118         As a side effect, this removes a C99ism reported by Matthew Woehlke.
73119         (rpl_rename_dest_slash): On failure, use rename's errno rather
73120         than (in some cases) an incorrect or junk errno.
73121         Simplify code by removing need to compute length; this does
73122         cause it to make two passes instead of one over the file name,
73123         but it's worth it.
73124
73125         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
73126         change, since Autoconf's version may no longer be appropriate now
73127         that we are using CVS Autoconf's version.  Add support for Tandem.
73128
73129 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73130             Bruno Haible  <bruno@clisp.org>
73131
73132         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
73133         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
73134         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
73135         gl_AC_TYPE_LONG_LONG.
73136
73137         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
73138         instead of HAVE_LONG_LONG.
73139         * lib/printf-args.c (printf_fetchargs): Likewise.
73140         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
73141         * lib/vasnprintf.c (VASNPRINTF): Likewise.
73142         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
73143         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
73144         gl_AC_TYPE_LONG_LONG.
73145
73146 2006-10-11  Bruno Haible  <bruno@clisp.org>
73147
73148         * m4/longlong.m4: Add comments.
73149         * m4/ulonglong.m4: Likewise.
73150
73151 2006-10-10  Bruno Haible  <bruno@clisp.org>
73152
73153         Make it possible to #define stpcpy, strdup to aliases.
73154         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
73155         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
73156
73157 2006-10-10  Bruno Haible  <bruno@clisp.org>
73158
73159         Make it possible to #define gcd to an alias.
73160         * lib/gcd.c: Include config.h.
73161
73162 2006-10-10  Bruno Haible  <bruno@clisp.org>
73163
73164         Make it possible to #define c_isascii to an alias.
73165         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
73166         defined. Undefine the macros before defining them, to avoid gcc
73167         warnings.
73168         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
73169         define NO_C_CTYPE_MACROS early.
73170
73171 2006-10-10  Bruno Haible  <bruno@clisp.org>
73172
73173         Make it possible to #define set_program_name to an alias.
73174         * lib/progname.c: Don't undefine set_program_name; instead, undefine
73175         ENABLE_RELOCATABLE early.
73176
73177 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73178
73179         Port to Tandem NSK OSS, which has 64-bit signed int but at most
73180         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
73181         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
73182         More generally, don't assume that 64-bit signed int is available
73183         if unsigned int is, and vice versa.
73184         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
73185         unsigned symbols, not on their signed counterparts.
73186         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
73187         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
73188         (UINT64_C, UINTMAX_C):
73189         Likewise.
73190         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
73191         unsigned counterparts.
73192         (Have_long_long, Unsigned): New macros.
73193         (Int): Renamed from INT.
73194         (strtoimax): Use the new macros.
73195         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
73196         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
73197         * modules/inttypes (inttypes.h): Substitute
73198         HAVE_UNSIGNED_LONG_LONG_INT.
73199         * modules/stdint (stdint.h): Likewise.
73200         (Files): Add m4/ulonglong.m4.
73201
73202 2006-10-10  Bruno Haible  <bruno@clisp.org>
73203
73204         Fix a gcc -Wshadow warning.
73205         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
73206         to 'bucket'.
73207         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
73208         gl_linked_indexof_from_to): Likewise.
73209         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
73210         Likewise.
73211         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
73212         Likewise.
73213         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
73214         Reported by Eric Blake.
73215
73216 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
73217
73218         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
73219         for NetBSD.  Problem reported by Bruno Haible.
73220
73221 2006-10-09  Jim Meyering  <jim@meyering.net>
73222
73223         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
73224         Patch from Bruno Haible.
73225
73226 2006-10-09  Jim Meyering  <jim@meyering.net>
73227
73228         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
73229         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
73230         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
73231
73232 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73233
73234         Don't include <config.h> twice; this doesn't work in some cases,
73235         e.g., when config.h has "#define intmax_t long long int" and
73236         we include <config.h>, <inttypes.h>, <config.h> in that order.
73237         Problem reported by Matthew Woehlke in:
73238         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
73239         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
73240         * lib/fts-cycle.c: Don't include config.h.
73241         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
73242         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
73243         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
73244         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
73245         inttypes.h.
73246         * lib/xstrtoumax.c: Likewise.
73247         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
73248         __strtol and the like, so that this module is more like its siblings.
73249         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
73250         Remove; no longer needed now that we assume gnulib inttypes.h.
73251
73252 2006-10-08  Bruno Haible  <bruno@clisp.org>
73253
73254         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
73255         option.
73256
73257 2006-10-07  Jim Meyering  <jim@meyering.net>
73258
73259         * modules/inttypes (inttypes.h): Revert what seems to have been
73260         an inadvertent part of today's change: use "|", not "/" in the
73261         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
73262
73263 2006-10-07  Bruno Haible  <bruno@clisp.org>
73264
73265         * modules/sublist: New file.
73266
73267 2006-10-07  Bruno Haible  <bruno@clisp.org>
73268
73269         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
73270         * modules/argz (argz.h): Likewise.
73271         * modules/arpa_inet (arpa/inet.h): Likewise.
73272         * modules/byteswap (byteswap.h): Likewise.
73273         * modules/configmake (configmake.h): Likewise.
73274         * modules/fcntl (fcntl.h): Likewise.
73275         * modules/fnmatch (fnmatch.h): Likewise.
73276         * modules/getopt (getopt.h): Likewise.
73277         * modules/glob (glob.h): Likewise.
73278         * modules/inttypes (inttypes.h): Likewise.
73279         * modules/netinet_in (netinet/in.h): Likewise.
73280         * modules/poll (poll.h): Likewise.
73281         * modules/stdbool (stdbool.h): Likewise.
73282         * modules/stdint (stdint.h): Likewise.
73283         * modules/sys_select (sys/select.h): Likewise.
73284         * modules/sys_socket (sys/socket.h): Likewise.
73285         * modules/sys_stat (sys/stat.h): Likewise.
73286         * modules/sysexits (sysexits.h): Likewise.
73287         * modules/unistd (unistd.h): Likewise.
73288         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73289         Add a "DO NOT EDIT" comment to the generated file.
73290         (func_import): Likewise for gnulib-comp.m4.
73291
73292 2006-10-07  Bruno Haible  <bruno@clisp.org>
73293
73294         * lib/gl_sublist.h: New file.
73295         * lib/gl_sublist.c: New file.
73296
73297 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73298
73299         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
73300         name (relative to the original working directory) and the file
73301         name component (relative to the temporary working directory).  All
73302         callers changed.
73303         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
73304         * lib/mkdir-p.c (make_dir_parents): Likewise.
73305         * lib/mkdir-p.h (make_dir_parents): Likewise.
73306
73307 2006-10-06  Eric Blake  <ebb9@byu.net>
73308
73309         Define several macros for use by the clean-temp module.
73310         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
73311         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
73312         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
73313
73314         * lib/clean-temp.h (close_stream_temp): New declaration.
73315         * lib/clean-temp.c (includes): Pull in headers according to what
73316         other modules are in use.
73317         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
73318
73319 2006-10-06  Bruno Haible  <bruno@clisp.org>
73320
73321         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
73322         instead of fopen, fwriteerror.
73323
73324 2006-10-06  Bruno Haible  <bruno@clisp.org>
73325
73326         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
73327         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
73328         int.
73329         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
73330         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
73331         Return an error indicator.
73332         Suggested by Eric Blake.
73333
73334 2006-10-06  Bruno Haible  <bruno@clisp.org>
73335
73336         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
73337         Reported by Eric Blake.
73338
73339 2006-10-06  Bruno Haible  <bruno@clisp.org>
73340
73341         * modules/closeout (Description): Mention stderr too.
73342
73343 2006-10-06  Bruno Haible  <bruno@clisp.org>
73344         and Paul Eggert  <eggert@cs.ucla.edu>
73345
73346         * lib/closeout.c (close_stdout): Also close stderr.
73347         * lib/closeout.h: Update comment.
73348
73349 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73350
73351         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
73352         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
73353         * lib/dirchownmod.c: Include lchown.h.
73354         * lib/lchown.c: Don't include files that lchown.h now includes.
73355         Don't declare chown, since lchown.h now does that.
73356         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
73357         (lchown): Define to rpl_chown if lchown is declared but
73358         does not exist.  Declare using a prototype if lchown is not
73359         declared.  Add a copyright notice.
73360         * lib/mkstemp.h: Include <unistd.h>.
73361         * lib/openat.c: Include lchown.h.
73362
73363         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
73364         we now test for that separately.
73365         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
73366         rather than O_NOFOLLOW, when testing whether it's possible to
73367         avoid a race condition reliably.
73368         * lib/savewd.c (savewd_chdir): Likewise.
73369
73370         Remove macros that are no longer needed now that stdint.h is
73371         reliable.
73372         * lib/fsusage.c (UINTMAX_MAX): Remove.
73373         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
73374         * lib/utimecmp.c (SIZE_MAX): Remove.
73375
73376         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
73377
73378         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
73379         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
73380         O_NOATIME works.
73381
73382 2006-10-05  Bruno Haible  <bruno@clisp.org>
73383
73384         * lib/gl_list.h (gl_sortedlist_search_from_to,
73385         gl_sortedlist_indexof_from_to): New declarations.
73386         (gl_list_implementation): New fields sortedlist_search_from_to,
73387         sortedlist_indexof_from_to.
73388         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
73389         inline functions.
73390         * lib/gl_list.c (gl_sortedlist_search_from_to,
73391         gl_sortedlist_indexof_from_to): New functions.
73392         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
73393         function.
73394         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
73395         (gl_array_sortedlist_search_from_to): New function.
73396         (gl_array_list_implementation): Update.
73397         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
73398         function.
73399         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
73400         (gl_carray_sortedlist_search_from_to): New function.
73401         (gl_carray_list_implementation): Update.
73402         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
73403         gl_linked_sortedlist_indexof_from_to): New functions.
73404         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73405         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73406         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
73407         gl_tree_sortedlist_indexof_from_to): New functions.
73408         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73409         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73410         Update.
73411         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73412         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
73413         Update.
73414
73415 2006-10-05  Bruno Haible  <bruno@clisp.org>
73416
73417         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
73418         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
73419         (struct gl_list_implementation): Add fields search_from_to,
73420         indexof_from_to. Remove fields search, indexof.
73421         (gl_list_search): Use the search_from_to method.
73422         (gl_list_search_from, gl_list_search_from_to): New functions.
73423         (gl_list_indexof): Use the indexof_from_to method.
73424         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73425         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
73426         (gl_list_search_from, gl_list_search_from_to): New functions.
73427         (gl_list_indexof): Use the indexof_from_to method.
73428         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73429         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
73430         gl_array_indexof. Add start_index, end_index arguments.
73431         (gl_array_search_from_to): Renamed from gl_array_search. Add
73432         start_index, end_index arguments.
73433         (gl_array_remove, gl_array_list_implementation): Update.
73434         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
73435         gl_carray_indexof. Add start_index, end_index arguments.
73436         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
73437         start_index, end_index arguments.
73438         (gl_carray_remove, gl_carray_list_implementation): Update.
73439         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
73440         gl_linked_search. Add start_index, end_index arguments.
73441         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
73442         start_index, end_index arguments.
73443         (gl_linked_remove): Update.
73444         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73445         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73446         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
73447         field to 'size_t'.
73448         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
73449         gl_tree_search. Add start_index, end_index arguments.
73450         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73451         start_index, end_index arguments.
73452         (gl_tree_remove): Update.
73453         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73454         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73455         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
73456         function.
73457         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
73458         gl_tree_search. Add start_index, end_index arguments.
73459         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73460         start_index, end_index arguments.
73461         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73462         Update.
73463         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
73464
73465 2006-10-05  Bruno Haible  <bruno@clisp.org>
73466
73467         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
73468
73469         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
73470         fwriteerror_temp): New declarations.
73471         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
73472         (descriptors): New variable.
73473         (cleanup): First, close the descriptors.
73474         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
73475         fclose_temp, fwriteerror_temp): New functions.
73476
73477 2006-10-04  Jim Meyering  <jim@meyering.net>
73478
73479         * lib/fts.c (fts_open): Tiny comment change.
73480
73481 2006-10-04  Bruno Haible  <bruno@clisp.org>
73482
73483         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
73484         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
73485         gl_LOCK_BODY.
73486         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
73487         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
73488         gl_LOCK_EARLY_BODY.
73489         (gl_LOCK): Require gl_LOCK_BODY.
73490
73491 2006-10-04  Bruno Haible  <bruno@clisp.org>
73492
73493         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
73494         (gl_oset_search_atleast): New declaration.
73495         (struct gl_oset_implementation): Add field 'search_atleast'.
73496         (gl_oset_search_atleast): New inline function.
73497         * lib/gl_oset.c (gl_oset_search_atleast): New function.
73498         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
73499         (gl_array_oset_implementation): Update.
73500         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
73501         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
73502         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
73503
73504 2006-10-04  Bruno Haible  <bruno@clisp.org>
73505
73506         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
73507
73508 2006-10-03  Bruno Haible  <bruno@clisp.org>
73509
73510         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
73511         from gl_avltreehash_list_implementation.
73512
73513 2006-10-03  Bruno Haible  <bruno@clisp.org>
73514
73515         * lib/gl_oset.c (gl_oset_add): Fix return type.
73516
73517 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
73518
73519         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
73520
73521 2006-10-02  Eric Blake  <ebb9@byu.net>
73522
73523         * modules/strnlen (Depends-on): Add extensions.
73524
73525 2006-10-02  Eric Blake  <ebb9@byu.net>
73526
73527         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
73528         definition in 2.60+.
73529
73530 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
73531
73532         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
73533         checks.
73534
73535 2006-10-02  Bruno Haible  <bruno@clisp.org>
73536
73537         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
73538         to the AUTOMAKE_OPTIONS.
73539         Reported by Jim Meyering.
73540
73541 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73542
73543         Work around bug in Solaris 10 /proc file system:
73544         /proc/self/fd/NNN/.. isn't the parent directory of
73545         the directory whose file descriptor is NNN.  This needs to
73546         be worked around at run time, not compile time, since a
73547         program might be built on Solaris 8, where things work, and
73548         run on Solaris 10.
73549         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
73550         to use the following interface instead:
73551         (OPENAT_BUFFER_SIZE): New macro.
73552         (openat_proc_name): New function.
73553         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
73554         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
73555         Likewise.
73556         * lib/openat-proc.c: New file.
73557         * modules/openat (Files): Add lib/openat-proc.c.
73558         (Depends-on): Add same-inode, stdbool.
73559         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
73560
73561 2006-09-29  Bruno Haible  <bruno@clisp.org>
73562
73563         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
73564         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
73565         argument. Set stdout_closed before testing for ferror, not after.
73566         (fwriteerror, fwriteerror_no_ebadf): New functions.
73567
73568 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73569
73570         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
73571
73572 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
73573
73574         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
73575         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
73576
73577 2006-09-28  Jim Meyering  <jim@meyering.net>
73578
73579         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
73580         Include <unistd.h>.
73581
73582 2006-09-28  Bruno Haible  <bruno@clisp.org>
73583
73584         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
73585         * modules/linkedhash-list (Depends-on): Likewise.
73586         * modules/rbtreehash-list (Depends-on): Likewise.
73587
73588 2006-09-28  Bruno Haible  <bruno@clisp.org>
73589
73590         * lib/strndup.h: Simplify the redefinition of strndup.
73591         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
73592         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
73593
73594 2006-09-28  Bruno Haible  <bruno@clisp.org>
73595
73596         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
73597         * lib/gl_linkedhash_list.c: Likewise.
73598         * lib/gl_rbtreehash_list.c: Likewise.
73599
73600 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73601
73602         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
73603         getaddrinfo.
73604
73605         * lib/__fpending.h: Don't include <stdio_ext.h> unless
73606         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
73607         it causes <stdio_ext.h> to cause a compile-time error.
73608         Problem reported by Nelson H. F. Beebe.
73609         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
73610         of HAVE_DECL___PENDING.
73611
73612         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
73613         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
73614         declaration.
73615
73616 2006-09-27  Jim Meyering  <jim@meyering.net>
73617
73618         This file could end up with a definition for a function
73619         named __strndup, rather than rpl_strndup on a system with
73620         incomplete weak_alias support.
73621         * lib/strndup.c (strndup): Rename from __strndup.
73622         Remove #defines that used to map __strndup to strndup.
73623         Don't use K&R prototypes.
73624         Remove LIBC-related code, since this file is not sync'd with glibc.
73625         * lib/strndup.h: Revamp, accordingly.
73626         * m4/strndup.m4: Modernize.
73627
73628 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73629
73630         * modules/savewd (Depends-on): Add 'raise'.
73631         * lib/savewd.c: Include <signal.h>, for 'raise'.
73632
73633 2006-09-26  Jim Meyering  <jim@meyering.net>
73634
73635         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
73636         when we detect Darwin 8.7.0's acl_get_file bug.
73637         Rearrange to perform the new (below) run-test while $LIBS
73638         contains any acl-related library.  Set USE_ACL at the end.
73639         (gl_ACL_GET_FILE): New function.
73640
73641 2006-09-26  Eric Blake  <ebb9@byu.net>
73642
73643         * lib/verror.c: Include <config.h> unconditionally.
73644
73645 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
73646
73647         * modules/clock-time (Maintainer): Add self.
73648         * modules/getlogin_r (Depends-on): Add extensions.
73649
73650 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73651
73652         * modules/clock-time: New module.
73653         * modules/nanosleep (Depends-on): Add clock-time.
73654         * modules/gethrxtime (Depends-on): Likewise.
73655         * modules/gettime (Depends-on): Likewise.
73656         * modules/settime (Depends-on): Likewise.
73657
73658         * modules/fts-lgpl: Depend on openat.
73659         * modules/mkancesdirs: Depend on savewd.
73660         * modules/mkdir-p: Likewise.
73661
73662 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73663
73664         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
73665
73666         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
73667         `gl_have_arbitrary_file_name_length_limit' to
73668         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
73669         actually works between configure runs.
73670
73671 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73672             Bruno Haible  <bruno@clisp.org>
73673
73674         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
73675
73676 2006-09-25  Jim Meyering  <jim@meyering.net>
73677
73678         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
73679         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
73680
73681 2006-09-25  Eric Blake  <ebb9@byu.net>
73682
73683         * gnulib-tool (func_import, func_create_testdir): Fix typos in
73684         exec's in 2006-09-18 patch when shuffling fds.
73685
73686 2006-09-25  Bruno Haible  <bruno@clisp.org>
73687
73688         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
73689         Reported by Jim Meyering.
73690
73691 2006-09-24  Jim Meyering  <jim@meyering.net>
73692
73693         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
73694         compare a pointer against a literal "0".  That caused failures with
73695         at least HP-UX's hpcc.
73696
73697 2006-09-22  Simon Josefsson  <jas@extundo.com>
73698
73699         * modules/gc-sha1:
73700         * modules/gc-md4:
73701         * modules/gc-hmac-sha1:
73702         * modules/gc-hmac-md5:
73703         * modules/gc-des:
73704         * modules/gc-arcfour: Distribute more files.
73705
73706 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73707
73708         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
73709         (gl_linked_iterator_from_to): Initialize struct completely.
73710         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
73711         (gl_tree_iterator_from_to): Likewise
73712         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
73713         * lib/gl_array_list.c [lint] (gl_array_iterator)
73714         (gl_array_iterator_from_to): Likewise.
73715         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
73716         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
73717         (gl_carray_iterator_from_to): Likewise.
73718
73719         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
73720         * lib/md4.c (md4_process_block): Remove unused variable.
73721         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
73722         parentheses for clarity.
73723
73724 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73725
73726         * modules/bison-i18n (Depends-on): Add gettext.
73727
73728 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73729
73730         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
73731         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
73732         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
73733         also add missing comma that caused broken test.
73734         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
73735         stdlib.h, for `abort'.
73736         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
73737         variables.
73738         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
73739         include unistd.h if present, for `rmdir'.
73740         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
73741         variables.
73742         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
73743         in the process include standard headers for prototypes.
73744         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
73745         gets declared on GNU/Linux.
73746         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
73747         unistd.h, for `rmdir'.
73748         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
73749
73750         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
73751         always true.
73752         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
73753
73754         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
73755
73756 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73757
73758         * gnulib-tool (func_version): Create output all at once.  This
73759         may help avoid triggering unnecessary SIGPIPEs, and at any
73760         rate it doesn't hurt.
73761
73762 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73763             Bruno Haible  <bruno@clisp.org>
73764
73765         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
73766         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73767         * m4/signed.m4 (bh_C_SIGNED): Likewise.
73768
73769         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
73770         (gl_FUNC_VASPRINTF): Invoke it.
73771
73772 2006-09-22  Bruno Haible  <bruno@clisp.org>
73773
73774         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
73775         getloadavg.c as first argument.
73776
73777 2006-09-22  Bruno Haible  <bruno@clisp.org>
73778
73779         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
73780         at the beginning of the gl_INIT macro.
73781         * modules/getloadavg (configure.ac): Pass $gl_source_base to
73782         gl_GETLOADAVG.
73783
73784 2006-09-22  Bruno Haible  <bruno@clisp.org>
73785
73786         * gnulib-tool (func_create_megatestdir): Don't include the config-h
73787         module.
73788         Suggested by Ralf Wildenhues.
73789
73790 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73791
73792         Import this patch from libc:
73793
73794         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
73795
73796         * lib/regex_internal.c (re_string_reconstruct): Handle
73797         offset < pstr->valid_raw_len && pstr->offsets_needed case.
73798         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
73799         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
73800         re_string_context_at.
73801
73802         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
73803         now requires it.
73804         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
73805         gl_REGEX now does it for us.
73806         (gl_REGEX): Add test taken from
73807         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
73808
73809         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
73810         Check that large offsets work.  Modernize Autoconf usages.
73811         Prefer "yes" to mean a good thing rather than a bad.
73812         Don't put "#define mkstemp" in config.h, as this might interfere
73813         with standard system headers that "#define mkstemp mkstemp64".
73814
73815         * modules/mkstemp (Depends-on): Add extensions, so that
73816         mkstemp is visible on some platforms.
73817         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
73818         (Include): Change to "mkstemp.h" from <stdlib.h>.
73819         (Files): Add mkstemp.h.
73820
73821         * lib/mkstemp.h: New file, since some standard headers
73822         #define mkstemp.
73823         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
73824         Include "mkstemp.h".
73825         Make the _LIBC code resemble glibc original more,
73826         e.g., use K&R style.
73827         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
73828         (mkstemp): Remove, since mkstemp.h does this for us.
73829         * lib/stdlib--.h: Include mkstemp.h.
73830
73831         Import this patch from libc:
73832
73833         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73834
73835         * lib/tempname.c (__gen_tempname): Change attempts_min
73836         into a macro.  Use preprocessor to decide how to initialize
73837         attempts [Coverity CID 67].
73838
73839 2006-09-20  Bruno Haible  <bruno@clisp.org>
73840
73841         * lib/mkdtemp.c: Import from libc.
73842         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73843                 * sysdeps/posix/tempname.c (__gen_tempname): Change
73844                 attempts_min into a macro.  Use preprocessor to decide how to
73845                 initialize attempts [Coverity CID 67].
73846         2001-11-27  Paul Eggert  <eggert@twinsun.com>
73847                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
73848                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
73849
73850 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73851
73852         * gnulib-tool (func_exit): New function, to allow to pass the
73853         exit status portably through the trap.  Use everywhere.
73854         (--help, --version): Signal a write error.
73855         (trap): catch SIGPIPE, for write errors.
73856         Exit at the end of the trap, with the correct exit status.
73857
73858 2006-09-19  Karl Berry  <karl@gnu.org>
73859
73860         * doc/gnulib.texi: note about the license texinfo files.
73861
73862 2006-09-19  Eric Blake  <ebb9@byu.net>
73863
73864         * gnulib-tool: Avoid space-tab.
73865
73866 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73867
73868         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
73869         that prevented coreutils 6.1 from building.  Problem reported
73870         by Petter Reinholdtsen.
73871
73872 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73873
73874         * gnulib-tool (avoidlist): Fix typo that broke options like
73875         --avoid=lock that are used by coreutils bootstrap.
73876
73877 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
73878
73879         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
73880         more systematically.
73881
73882 2006-09-18  Jim Meyering  <jim@meyering.net>
73883
73884         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
73885
73886 2006-09-18  Bruno Haible  <bruno@clisp.org>
73887
73888         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
73889
73890 2006-09-18  Bruno Haible  <bruno@clisp.org>
73891
73892         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
73893         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
73894         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
73895         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
73896         * m4/gettext.m4: Require autoconf >= 2.52.
73897         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
73898         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
73899         of gl_cv_header_inttypes_h.
73900
73901 2006-09-18  Bruno Haible  <bruno@clisp.org>
73902
73903         * lib/javaversion.c: Include configmake.h.
73904
73905 2006-09-18  Bruno Haible  <bruno@clisp.org>
73906
73907         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
73908         avoid that the while loops be executed in a subshell.
73909
73910 2006-09-18  Bruno Haible  <bruno@clisp.org>
73911
73912         * MODULES.html.sh (func_module): Break long lines.
73913         Suggested by Bruce Korb <bkorb@gnu.org>.
73914
73915 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73916
73917         Speed up by a factor of 1.12.
73918         * gnulib-tool (nl): New variable.
73919         (func_import): Rewrite include directive extraction to only read each
73920         directive once.
73921
73922 2006-09-17  Bruno Haible  <bruno@clisp.org>
73923
73924         * modules/javaversion (Makefile.am): Remove DEFS setting.
73925         (Depends-on): Add configmake, for PKGDATADIR definition.
73926
73927 2006-09-17  Bruno Haible  <bruno@clisp.org>
73928
73929         * gnulib-tool (func_create_testdir): Rewrite all files at once.
73930
73931 2006-09-17  Bruno Haible  <bruno@clisp.org>
73932
73933         * gnulib-tool (func_append): New function, stolen from libtool.m4.
73934         (func_modules_transitive_closure, func_modules_add_dummy,
73935         func_modules_to_filelist, func_import, func_create_testdir,
73936         func_create_megatestdir, ...): Use it wherever possible.
73937         Suggested by Ralf Wildenhues.
73938
73939 2006-09-16  Karl Berry  <karl@gnu.org>
73940
73941         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
73942         to avoid sectioning errors.
73943         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
73944         [ifinfo]: blank line after @center-ed titles.
73945         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
73946         Spell FSF address consistently with others.
73947         (These changes approved by rms.)
73948
73949 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73950
73951         Speed up by a factor of 1.61.
73952         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
73953         already checked module names again.
73954
73955 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73956
73957         Speed up by a factor of 1.13.
73958         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
73959         for new_files, and the input to func_add_or_update.
73960
73961 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73962
73963         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
73964         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
73965
73966 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73967
73968         * modules/mkancesdirs (Depends-on): Add fcntl.
73969         * modules/savewd: New file.
73970         * MODULES.html.sh (File system functions): Add savewd.
73971
73972         * modules/configmake (Makefile.am): Add support for the
73973         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
73974
73975 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73976
73977         * m4/savewd.m4: New file.
73978
73979 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73980
73981         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
73982         (dirchownmod): New arg FD.  All callers changed.
73983         Use FD rather than opening the directory ourself, as opening is
73984         now the caller's responsibility.
73985         * lib/dirchownmod.h: Likewise.
73986         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
73987         hosts that require <sys/types.h> before <sys/stat.h>.  Include
73988         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
73989         (test_dir): Remove.
73990         (mkancesdirs): Return length of prefix of FILE that has already
73991         been made, or -2 if there is a child doing the work.  Redo
73992         algorithm so that it is O(N) rather than O(N**2).  Optimize away
73993         ".", and treat ".." specially since it might stray back into
73994         already-created areas.  Use a subprocess if necessary.  New arg
73995         WD; all users changed.  MAKE_DIR function should now return 1
73996         if it creates a directory that is not readable.  Return -2 if
73997         a child process is spun off.
73998         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
73999         Adjust signature to match code.
74000         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
74001         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
74002         all users changed.
74003         * lib/savewd.c, lib/savewd.h: New files.
74004
74005 2006-09-15  Jim Meyering  <jim@meyering.net>
74006
74007         * modules/rename-dest-slash: New module.
74008         * MODULES.html.sh (posix_compat): Add it here.
74009
74010         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
74011
74012 2006-09-15  Jim Meyering  <jim@meyering.net>
74013
74014         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
74015         file.
74016
74017         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
74018
74019 2006-09-15  Jim Meyering  <jim@meyering.net>
74020
74021         * lib/rename-dest-slash.c (has_trailing_slash): Use
74022         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
74023         (rpl_rename_dest_slash): Perform the cheaper trailing slash
74024         test before testing whether SRC is a directory.
74025         Suggestions from Bruno Haible.
74026
74027         Avoid a warning about an unused variable.
74028         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
74029         into the #ifdef block where it's used.
74030
74031         * lib/rename-dest-slash.c: New file.
74032
74033 2006-09-14  Bruno Haible  <bruno@clisp.org>
74034
74035         * lib/allocsa.c: Include <config.h> unconditionally.
74036         * lib/asnprintf.c: Likewise.
74037         * lib/asprintf.c: Likewise.
74038         * lib/c-strcasecmp.c: Likewise.
74039         * lib/c-strcasestr.c: Likewise.
74040         * lib/c-strncasecmp.c: Likewise.
74041         * lib/c-strstr.c: Likewise.
74042         * lib/classpath.c: Likewise.
74043         * lib/clean-temp.c: Likewise.
74044         * lib/concatpath.c: Likewise.
74045         * lib/copy-file.c: Likewise.
74046         * lib/csharpcomp.c: Likewise.
74047         * lib/csharpexec.c: Likewise.
74048         * lib/execute.c: Likewise.
74049         * lib/fatal-signal.c: Likewise.
74050         * lib/findprog.c: Likewise.
74051         * lib/fwriteerror.c: Likewise.
74052         * lib/gl_array_list.c: Likewise.
74053         * lib/gl_array_oset.c: Likewise.
74054         * lib/gl_avltree_list.c: Likewise.
74055         * lib/gl_avltree_oset.c: Likewise.
74056         * lib/gl_avltreehash_list.c: Likewise.
74057         * lib/gl_carray_list.c: Likewise.
74058         * lib/gl_linked_list.c: Likewise.
74059         * lib/gl_linkedhash_list.c: Likewise.
74060         * lib/gl_list.c: Likewise.
74061         * lib/gl_oset.c: Likewise.
74062         * lib/gl_rbtree_list.c: Likewise.
74063         * lib/gl_rbtree_oset.c: Likewise.
74064         * lib/gl_rbtreehash_list.c: Likewise.
74065         * lib/imaxabs.c: Likewise.
74066         * lib/imaxdiv.c: Likewise.
74067         * lib/javacomp.c: Likewise.
74068         * lib/javaexec.c: Likewise.
74069         * lib/javaversion.c: Likewise.
74070         * lib/linebreak.c: Likewise.
74071         * lib/localcharset.c: Likewise.
74072         * lib/lock.c: Likewise.
74073         * lib/mbchar.c: Likewise.
74074         * lib/mbswidth.c: Likewise.
74075         * lib/mkdtemp.c: Likewise.
74076         * lib/pipe.c: Likewise.
74077         * lib/printf-args.c: Likewise.
74078         * lib/printf-parse.c: Likewise.
74079         * lib/progname.c: Likewise.
74080         * lib/progreloc.c: Likewise.
74081         * lib/readlink.c: Likewise.
74082         * lib/sh-quote.c: Likewise.
74083         * lib/stpcpy.c: Likewise.
74084         * lib/stpncpy.c: Likewise.
74085         * lib/strcasecmp.c: Likewise.
74086         * lib/strcasestr.c: Likewise.
74087         * lib/strcspn.c: Likewise.
74088         * lib/striconv.c: Likewise.
74089         * lib/strncasecmp.c: Likewise.
74090         * lib/strnlen1.c: Likewise.
74091         * lib/strstr.c: Likewise.
74092         * lib/strtok_r.c: Likewise.
74093         * lib/tls.c: Likewise.
74094         * lib/tmpdir.c: Likewise.
74095         * lib/unicodeio.c: Likewise.
74096         * lib/unsetenv.c: Likewise.
74097         * lib/vasnprintf.c: Likewise.
74098         * lib/vasprintf.c: Likewise.
74099         * lib/wait-process.c: Likewise.
74100         * lib/xallocsa.c: Likewise.
74101         * lib/xsetenv.c: Likewise.
74102         * lib/xstriconv.c: Likewise.
74103
74104 2006-09-13  Simon Josefsson  <jas@extundo.com>
74105
74106         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
74107         that internally, suggested by Ralf Wildenhues
74108         <Ralf.Wildenhues@gmx.de>.
74109
74110 2006-09-13  Simon Josefsson  <jas@extundo.com>
74111
74112         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
74113         @LIBOBJS@.
74114         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74115
74116 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74117
74118         * lib/_fpending.c: Include <config.h> unconditionally, since we no
74119         longer worry about uses that don't define HAVE_CONFIG_H.
74120         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
74121         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
74122         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
74123         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
74124         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
74125         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
74126         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
74127         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
74128         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
74129         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
74130         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
74131         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
74132         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
74133         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
74134         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
74135         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
74136         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
74137         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
74138         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
74139         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
74140         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
74141         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
74142         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
74143         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
74144         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
74145         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
74146         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
74147         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
74148         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
74149         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
74150         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
74151         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
74152         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
74153         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
74154         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
74155         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
74156         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
74157         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
74158         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
74159         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
74160         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
74161         Likewise.
74162
74163 2006-09-13  Eric Blake  <ebb9@byu.net>
74164
74165         * lib/getopt.c: Fix typo in last commit.
74166
74167 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
74168
74169         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
74170         dgettext.
74171
74172 2006-09-12  Jim Meyering  <jim@meyering.net>
74173
74174         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
74175         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
74176         Reported by Nelson H. F. Beebe.
74177
74178 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74179
74180         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
74181         program_invocation_name and program_invocation_short_name are
74182         initialized.
74183         * lib/argp-namefrob.h: Move declarations of program_invocation_name
74184         and program_invocation_short_name to argp.h, so they are visible
74185         to user programs.
74186         * lib/argp.h: Likewise
74187
74188 2006-09-10  Bruno Haible  <bruno@clisp.org>
74189
74190         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74191         m4/inttypes_h.m4, m4/uintmax_t.m4.
74192
74193 2006-09-10  Bruno Haible  <bruno@clisp.org>
74194
74195         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
74196         gl_AC_TYPE_UINTMAX_T.
74197
74198 2006-09-10  Bruno Haible  <bruno@clisp.org>
74199
74200         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
74201
74202 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74203
74204         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
74205         convention.  Text proposed by Bruno Haible.
74206         (struct argp_option): Document the use of N_() wrappers.
74207
74208         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
74209         '\v', and translate the two parts separately, instead of feeding
74210         the whole string to gettext.  This allows to exclude
74211         '\v' from the strings visible to the translator by writing doc
74212         strings as N_("..") "\v" N_("..").
74213
74214 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
74215
74216         * config/srclist.txt: Undo latest change; the bug was fixed.
74217
74218 2006-09-09  Bruno Haible  <bruno@clisp.org>
74219
74220         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
74221         assignments if building a library without libtool.
74222         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
74223         in func_emit_lib_Makefile_am.
74224         (func_import): When building a static library libfoo.a, arrange to
74225         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
74226         (func_create_testdir): Likewise.
74227         * modules/gc (configure.ac, Makefile.am): If building statically,
74228         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
74229         * modules/iconvme (configure.ac, Makefile.am): Likewise.
74230         * modules/striconv (configure.ac, Makefile.am): Likewise.
74231         Based on a suggestion by Ralf Wildenhues.
74232
74233 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74234
74235         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74236         Check for unistd.h too, since Autoconf doesn't assume POSIX.
74237         Also:
74238
74239         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74240         Add year_2050_test to catch glibc bug 2821
74241         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74242
74243         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74244         Prefer #ifdef to #if.
74245
74246         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
74247         Return from 'main' instead of calling 'exit'.
74248
74249 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74250
74251         * lib/mktime.c (guess_time_tm): Fix bug where mktime
74252         returned the maximum time_t value rather than (time_t) -1.
74253         Problem originally reported by William Bardwell
74254         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74255
74256         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74257         Moved to here ...
74258         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74259         ... from here.
74260
74261 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74262
74263         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
74264         2821 is fixed.
74265
74266 2006-09-08  Jim Meyering  <jim@meyering.net>
74267
74268         Don't make generated files read-only.  That would bother too many
74269         people.  However, do retain the ability to work when targets are
74270         read-only: remove the destination and temporary files before writing
74271         them (when generated via sed or echo), or by using the -f option for
74272         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
74273         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74274         * modules/byteswap, modules/configmake, modules/fcntl:
74275         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74276         * modules/localcharset, modules/netinet_in, modules/poll:
74277         * modules/stdbool, modules/stdint, modules/sys_select:
74278         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74279
74280 2006-09-08  Jim Meyering  <jim@meyering.net>
74281
74282         Avoid new build failure on FreeBSD 6.0.
74283         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
74284         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
74285         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
74286
74287 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74288
74289         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
74290
74291 2006-09-07  Jim Meyering  <jim@meyering.net>
74292
74293         Fix global typo in last change: use chmod u-w, not chmod u-x.
74294         Spotted by Paul Eggert and Bruce Korb.
74295         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74296         * modules/byteswap, modules/configmake, modules/fcntl:
74297         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74298         * modules/localcharset, modules/netinet_in, modules/poll:
74299         * modules/stdbool, modules/stdint, modules/sys_select:
74300         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74301
74302 2006-09-06  Jim Meyering  <jim@meyering.net>
74303
74304         Make generated files be read-only.
74305         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
74306         Ensure that each generated file is now read-only.
74307         * modules/argz: Likewise.
74308         * modules/arpa_inet: Likewise.
74309         * modules/byteswap: Likewise.
74310         * modules/configmake: Likewise.
74311         * modules/fcntl: Likewise.
74312         * modules/fnmatch: Likewise.
74313         * modules/getopt: Likewise.
74314         * modules/glob: Likewise.
74315         * modules/inttypes: Likewise.
74316         * modules/netinet_in: Likewise.
74317         * modules/poll: Likewise.
74318         * modules/stdbool: Likewise.
74319         * modules/stdint: Likewise.
74320         * modules/sys_select: Likewise.
74321         * modules/sys_socket: Likewise.
74322         * modules/sys_stat: Likewise.
74323         * modules/sysexits: Likewise.
74324         * modules/localcharset: Same as above, but continue using temporary
74325         file named "t-$@" (why different?) rather than the "$@-t" used
74326         everywhere else.
74327
74328         * modules/sysexits (Makefile.am): Replace literal occurrences
74329         of "sysexit.h" more readable, and more consistent, "$@".
74330
74331 2006-09-06  Bruno Haible  <bruno@clisp.org>
74332
74333         * modules/striconv: New file.
74334         * modules/xstriconv: New file.
74335         * MODULES.html.sh (Internationalization functions): Add striconv,
74336         xstriconv.
74337
74338 2006-09-06  Bruno Haible  <bruno@clisp.org>
74339
74340         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
74341         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
74342         not using libtool correctly.
74343
74344 2006-09-06  Bruno Haible  <bruno@clisp.org>
74345
74346         * lib/striconv.h: New file.
74347         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
74348         iconvstring.c.
74349         * lib/xstriconv.h: New file.
74350         * lib/xstriconv.c: New file.
74351
74352 2006-09-06  Bruno Haible  <bruno@clisp.org>
74353
74354         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74355         lib_..._LDFLAGS.
74356
74357 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74358
74359         * lib/argz_.h: Sync from Libtool.
74360
74361         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
74362                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74363
74364         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
74365
74366 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74367
74368         * modules/trim: New file.
74369
74370 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74371
74372         * lib/trim.h: New file.
74373         * lib/trim.c: New file.
74374
74375 2006-09-05  Bruno Haible  <bruno@clisp.org>
74376
74377         * MODULES.html.sh (String handling): Add trim.
74378
74379 2006-09-04  Karl Berry  <karl@gnu.org>
74380
74381         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
74382         until next release.
74383
74384 2006-09-03  Bruno Haible  <bruno@clisp.org>
74385
74386         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
74387         correctly.
74388
74389 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74390
74391         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
74392         not gl_GETLOADAVG.  Omit unneeded semicolons.
74393         Problems reported by Ralf Wildenhues in
74394         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74395         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
74396         at the end, which is the usual gnulib style.
74397
74398         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
74399         of doing all the work ourselves.
74400         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
74401         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
74402
74403 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74404
74405         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
74406         Problem reported by Ralf Wildenhues in
74407         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74408
74409         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
74410         HAVE_STRUCT_STATFS_F_FSTYPENAME.
74411
74412 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74413
74414         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
74415         yesterday's patch by changing test -n to test -z.
74416
74417 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74418
74419         * modules/getloadavg (Files): Add m4/getloadavg.m4.
74420         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
74421         the former is now obsolescent.
74422
74423         * modules/chdir-long (Depends-on): Add fcntl.
74424
74425 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74426
74427         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
74428         obsolescent, and programs should use gnulib instead.
74429         * m4/getloadavg.m4: New file, with contents taken from Autoconf
74430         but with prefixes changed.
74431
74432 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74433
74434         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
74435         or stdbool.h, because they might not exist while configuring.
74436
74437         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
74438         Don't include unistd.h or limits.h; not needed, since chdir-long.h
74439         does that for us.
74440         (O_DIRECTORY): Remove.
74441
74442 2006-08-31  Eric Blake  <ebb9@byu.net>
74443
74444         * gnulib-tool: Don't let emacs change spaces to TAB.
74445
74446 2006-08-31  Bruno Haible  <bruno@clisp.org>
74447
74448         * gnulib-tool: When calling func_import more than once, do it in a
74449         subshell.
74450         Reported by Eric Blake <ebb9@byu.net>.
74451
74452 2006-08-31  Bruno Haible  <bruno@clisp.org>
74453
74454         * gnulib-tool (nl): Remove variable.
74455         (sed_transform_lib_file): Use more robust test for config-h module.
74456         (func_import): Fix typo in 2006-08-25 patch.
74457
74458 2006-08-31  Bruno Haible  <bruno@clisp.org>
74459
74460         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
74461         specified, augment Makefile.am variables instead of assigning them.
74462
74463 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74464
74465         Work around a bug in both the Linux and SunOS 64-bit kernels:
74466         nanosleep mishandles sleeps for longer than 2**31 seconds.
74467         Problem reported by Frank v Waveren in
74468         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74469         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
74470         Check for nanosleep bug.
74471         (LIB_NANOSLEEP): Append clock_gettime library if needed.
74472
74473 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74474
74475         Work around a bug in both the Linux and SunOS 64-bit kernels:
74476         nanosleep mishandles sleeps for longer than 2**31 seconds.
74477         Problem reported by Frank v Waveren in
74478         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74479         * lib/nanosleep.c (BILLION): New constant.
74480         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
74481         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
74482         implementation.
74483
74484 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74485
74486         * modules/nanosleep (Depends-on): Add gettime.
74487
74488 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74489         and Simon Josefsson  <jas@extundo.com>
74490         and Oskar Liljeblad  <oskar@osk.mine.nu>
74491
74492         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
74493         * gnulib-tool (func_import): New license type 'unmodifiable license
74494         text'.
74495         * modules/fdl: Use it.  Longer description.
74496         * module/gpl, module/lgpl: New files.
74497
74498 2006-08-30  Jim Meyering  <jim@meyering.net>
74499
74500         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
74501         shadowing the parameter.
74502
74503 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74504
74505         Sync from Libtool:
74506
74507         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74508
74509         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
74510         sharing with gnulib.  Report by Eric Blake.
74511
74512 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74513
74514         * modules/isapipe: New file.
74515         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
74516
74517 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74518
74519         * modules/configmake (Makefile.am): Add a comment, and omit
74520         the CONFIGMAKE_ prefix from generated macro names.  Suggested
74521         by Bruno Haible.
74522
74523 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74524
74525         * m4/isapipe.m4: New file.
74526
74527 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74528
74529         * lib/isapipe.c, lib/isapipe.h: New files.
74530
74531 2006-08-29  Jim Meyering  <jim@meyering.net>
74532
74533         * modules/configmake (Makefile.am): Make configmake.h depend on
74534         Makefile.  Otherwise, a stale configmake.h could hang around.
74535
74536 2006-08-29  Eric Blake  <ebb9@byu.net>
74537
74538         * lib/error.c (error_at_line, print_errno_message): Match libc, after
74539         resolution of upstream bug 3044.
74540
74541 2006-08-29  Bruno Haible  <bruno@clisp.org>
74542
74543         * modules/localcharset (Depends-on): Add configmake.
74544         (Makefile.am): Remove setting of LIBDIR through DEFS.
74545
74546 2006-08-29  Bruno Haible  <bruno@clisp.org>
74547
74548         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
74549         defined.
74550
74551 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74552
74553         * modules/fcntl: New file.
74554         * modules/chdir-safer (Depends-on): Add fcntl.
74555         * modules/fts: Likewise.
74556         * modules/mkdir-p: Likewise.
74557
74558         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
74559         This undoes the most recent change, since we're now addressing the
74560         problem in a different way.
74561
74562         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
74563         into output, since the output might be called Makefile.am even
74564         if $makefile_name is something different.
74565         (func_import): Use $makefile_am rather than
74566         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
74567         empty.
74568
74569         * modules/inttypes (Files): Add m4/inttypes-h.m4.
74570
74571 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74572
74573         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
74574         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
74575         recent change to stdint.m4, since we're now addressing the problem in a
74576         different way.
74577
74578 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74579
74580         * m4/fcntl_h.m4: New file.
74581
74582 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74583
74584         * lib/fcntl_.h: New file.
74585         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
74586         the fcntl module.
74587         * lib/dirchownmod.c: Likewise.
74588         * lib/fts.c: Likewise.
74589
74590         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
74591         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
74592         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
74593         just before including <inttypes.h>, to avoid circular inclusion.
74594
74595 2006-08-28  Jim Meyering  <jim@meyering.net>
74596
74597         * doc/visibility.texi: Actually read and correct the grammar of the
74598         sentence affected by yesterday's change.
74599
74600 2006-08-28  Eric Blake  <ebb9@byu.net>
74601
74602         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
74603         needs wrapper.
74604
74605 2006-08-28  Eric Blake  <ebb9@byu.net>
74606
74607         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
74608
74609 2006-08-28  Eric Blake  <ebb9@byu.net>
74610
74611         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
74612
74613 2006-08-28  Bruno Haible  <bruno@clisp.org>
74614
74615         * modules/c-strstr: New file, from GNU gettext.
74616         * MODULES.html.sh (String handling): Add c-strstr.
74617
74618 2006-08-28  Bruno Haible  <bruno@clisp.org>
74619
74620         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
74621         macros.
74622         Reported by Eric Blake.
74623
74624 2006-08-28  Bruno Haible  <bruno@clisp.org>
74625
74626         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
74627         (VASNPRINTF): Return a string of length > INT_MAX without failing.
74628         * lib/vasprintf.c: Include errno.h, limits.h.
74629         (EOVERFLOW): New fallback definition.
74630         (vasprintf): Test here whether the string length is > INT_MAX.
74631         * lib/vsnprintf.c: Include errno.h, limits.h.
74632         (EOVERFLOW): New fallback definition.
74633         (vsnprintf): Fix bug when generated string was too long for the buffer.
74634         Test here whether the string length is > INT_MAX.
74635
74636 2006-08-28  Bruno Haible  <bruno@clisp.org>
74637
74638         * lib/inttypes_.h (SCNX*): Remove definitions.
74639         Reported by Eric Blake.
74640
74641 2006-08-28  Bruno Haible  <bruno@clisp.org>
74642
74643         * lib/c-strstr.h: New file, from GNU gettext.
74644         * lib/c-strstr.c: New file, from GNU gettext.
74645
74646 2006-08-28  Bruno Haible  <bruno@clisp.org>
74647
74648         * gnulib-tool: Reorder some statements.
74649
74650 2006-08-28  Bruno Haible  <bruno@clisp.org>
74651
74652         * gnulib-tool: New option --makefile-name.
74653         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
74654         $makefile_name.
74655         (func_import): Write $makefile_name to the cache file, and read it from
74656         there unless explicitly specified. Use $makefile_name as file name
74657         instead of Makefile.am. Adjust the recommendations accordingly.
74658
74659 2006-08-28  Bruno Haible  <bruno@clisp.org>
74660
74661         * gnulib-tool (func_verify_module): Check against misapplying patch.
74662
74663 2006-08-28  Bruno Haible  <bruno@clisp.org>
74664
74665         * gnulib-tool (func_relativize, func_relconcat): New functions.
74666         Give an error if --local-dir is given with --update.
74667         Remove trailing slashes from $local_gnulib_dir.
74668         (func_import): Store the relativized $local_gnulib_dir in
74669         gnulib-cache.m4, and read it from there if not specified explicitly.
74670
74671 2006-08-28  Bruno Haible  <bruno@clisp.org>
74672
74673         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
74674         is the current directory. Respect also $local_gnulib_dir.
74675
74676 2006-08-28  Bruno Haible  <bruno@clisp.org>
74677             Simon Josefsson  <jas@extundo.com>
74678
74679         BeOS portability.
74680         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
74681
74682 2006-08-27  Jim Meyering  <jim@meyering.net>
74683
74684         * doc/visibility.texi: Remove duplicate word: "pointer".
74685
74686 2006-08-26  Bruno Haible  <bruno@clisp.org>
74687
74688         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
74689         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
74690         (Makefile.am): Create inttypes.h from inttypes_.h.
74691         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
74692
74693         * modules/imaxabs: New file.
74694
74695         * modules/imaxdiv: New file.
74696
74697 2006-08-26  Bruno Haible  <bruno@clisp.org>
74698
74699         * m4/inttypes.m4: New file.
74700         * m4/_inttypes_h.m4: Remove file.
74701         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
74702         PRI_MACROS_BROKEN.
74703         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
74704
74705         * m4/imaxabs.m4: New file.
74706
74707         * m4/imaxdiv.m4: New file.
74708
74709 2006-08-26  Bruno Haible  <bruno@clisp.org>
74710
74711         * lib/inttypes_.h: New file.
74712         * lib/inttypes.h: Remove file.
74713         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
74714
74715         * lib/imaxabs.c: New file.
74716
74717         * lib/imaxdiv.c: New file.
74718
74719 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74720
74721         New config-h module, so that "make" output needn't be cluttered
74722         by -DHAVE_CONFIG_H.
74723         * MODULES.html.sh (Support for building libraries and executables):
74724         Add config-h.
74725         * modules/config-h: New file.
74726         * gnulib-tool (nl, sed_transform_lib_file): New vars.
74727         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
74728         the config-h module is used.
74729
74730         New configmake module, so that "make" output needn't be cluttered
74731         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
74732         * MODULES.html.sh (Support for building libraries and executables):
74733         Add configmake.
74734         * modules/configmake: New file.
74735
74736 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74737
74738         * m4/config-h.m4: New file.
74739
74740 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74741
74742         * config/srclist.txt: Add elisp-comp.
74743
74744 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74745
74746         * MODULES.html.sh (Support for building libraries and executables):
74747         Add elisp-comp.
74748         * build-aux/elisp-comp: New file.
74749         * modules/elisp-comp: New file.
74750
74751 2006-08-24  Bruno Haible  <bruno@clisp.org>
74752
74753         * gnulib-tool (func_create_testdir): Use non-default values of
74754         sourcebase and m4base.
74755
74756 2006-08-24  Bruno Haible  <bruno@clisp.org>
74757
74758         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
74759         HTML structure.
74760
74761 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74762
74763         * modules/openat (Depends-on): Add lchown.
74764
74765 2006-08-23  Bruno Haible  <bruno@clisp.org>
74766
74767         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
74768         of gl_LOCK_EARLY instead of gl_LOCK.
74769
74770 2006-08-23  Bruno Haible  <bruno@clisp.org>
74771
74772         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
74773         on OSF/1 to no.
74774         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
74775
74776 2006-08-23  Bruno Haible  <bruno@clisp.org>
74777
74778         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
74779         as unusable.
74780
74781         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
74782         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
74783         (gl_LOCK): New macro.
74784
74785 2006-08-22  Simon Josefsson  <jas@extundo.com>
74786
74787         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
74788         to md5 module.
74789
74790 2006-08-22  Simon Josefsson  <jas@extundo.com>
74791
74792         * MODULES.html.sh: Add "Support for maintaining and release
74793         projects".
74794
74795         * build-aux/gnupload: New file, from coreutils.
74796
74797 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74798
74799         Avoid the need for AC_LIBSOURCES in m4 macros.
74800         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
74801         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
74802         * modules/check-version (EXTRA_DIST): Add check-version.h.
74803         * modules/crc (EXTRA_DIST): Add crc.h.
74804         * modules/des (EXTRA_DIST): Add des.h.
74805         * modules/gc (EXTRA_DIST): Add gc.h.
74806         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
74807         * modules/getline (EXTRA_DIST): Add getline.h.
74808         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
74809         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
74810         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
74811         * modules/md2 (EXTRA_DIST): Add md2.h.
74812         * modules/md4 (EXTRA_DIST): Add md4.h.
74813         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
74814         * modules/read-file (EXTRA_DIST): Add read-file.h.
74815         * modules/readline (EXTRA_DIST): Add readline.h.
74816         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
74817         rijndael-api-fst.h.
74818
74819 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74820
74821         * m4/rijndael.m4 (gl_ARCFOUR):
74822         * m4/arctwo.m4 (gl_ARCTWO):
74823         * m4/check-version.m4 (gl_CHECK_VERSION):
74824         * m4/crc.m4 (gl_CRC):
74825         * m4/des.m4 (gl_DES):
74826         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
74827         * m4/gc.m4 (gl_GC):
74828         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
74829         * m4/getline.m4 (gl_FUNC_GETLINE):
74830         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
74831         * m4/hmac-md5.m4 (gl_HMAC_MD5):
74832         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
74833         * m4/md2.m4 (gl_MD2):
74834         * m4/md4.m4 (gl_MD4):
74835         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
74836         * m4/read-file.m4 (gl_FUNC_READ_FILE):
74837         * m4/readline.m4 (gl_FUNC_READLINE):
74838         * m4/rijndael.m4 (gl_RIJNDAEL):
74839         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74840         to get the necessary .h files and whatnot.
74841
74842 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74843
74844         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
74845         gnulib rather than the other way around.
74846         * config/srclistvars.sh (COREUTILS): Remove.
74847
74848 2006-08-22  Jim Meyering  <jim@meyering.net>
74849
74850         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
74851
74852         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
74853
74854 2006-08-22  Eric Blake  <ebb9@byu.net>
74855
74856         * modules/regexprops-generic: New file.
74857         * MODULES.html.sh (Support for building documentation): List it.
74858
74859 2006-08-22  Eric Blake  <ebb9@byu.net>
74860
74861         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
74862         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
74863         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
74864         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
74865
74866 2006-08-22  Bruno Haible  <bruno@clisp.org>
74867
74868         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
74869         and lib_LTLIBRARIES like the other lib_* variables.
74870
74871 2006-08-22  Bruno Haible  <bruno@clisp.org>
74872
74873         * build-aux/x-to-1.in: New file, from GNU gettext.
74874
74875 2006-08-22  Bruno Haible  <bruno@clisp.org>
74876
74877         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
74878         <utmpx.h> exists.
74879
74880 2006-08-22  Bruno Haible  <bruno@clisp.org>
74881
74882         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
74883         <utmpx.h> exists.
74884
74885 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74886
74887         BeOS portability.
74888         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
74889         exist.
74890         Problem reported by Bruno Haible.
74891
74892 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74893
74894         Avoid the need for AC_LIBSOURCES in m4 macros.
74895         * modules/acl (EXTRA_DIST): Add acl.h.
74896         * modules/argmatch (Files): Add m4/argmatch.m4.
74897         (configure.ac): Add gl_ARGMATCH.
74898         (EXTRA_DIST): Renamed from lib_SOURCES, for
74899         consistency with the other modules.  Remove argmatch.c.
74900         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
74901         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
74902         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
74903         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
74904         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
74905         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
74906         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
74907         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
74908         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
74909         * modules/closeout (EXTRA_DIST): Add closeout.h.
74910         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
74911         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
74912         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
74913         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
74914         dirname.h; remove basename.c and stripslash.c.
74915         * modules/exclude (EXTRA_DIST): Add exclude.h.
74916         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
74917         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
74918         * modules/file-type (EXTRA_DIST): Add file-type.h.
74919         * modules/filemode (EXTRA_DIST): Add filemode.h.
74920         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
74921         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74922         * modules/fpending (EXTRA_DIST): Add __fpending.h.
74923         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
74924         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
74925         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
74926         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
74927         * modules/getdate (EXTRA_DIST): Add getdate.c.
74928         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
74929         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
74930         * modules/getpass (EXTRA_DIST): Add getpass.h.
74931         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
74932         * modules/group-member (EXTRA_DIST): Add group-member.h.
74933         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
74934         * modules/hash (EXTRA_DIST): Add hash.h.
74935         * modules/human (EXTRA_DIST): Add human.h.
74936         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
74937         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
74938         * modules/lchown (EXTRA_DIST): Add lchown.h.
74939         * modules/long-options (EXTRA_DIST): Add long-options.h.
74940         * modules/lstat (EXTRA_DIST): Add lstat.h.
74941         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
74942         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
74943         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
74944         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
74945         * modules/memxor (EXTRA_DIST): Add memxor.h.
74946         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
74947         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
74948         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
74949         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
74950         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
74951         * modules/physmem (EXTRA_DIST): Add physmem.h.
74952         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
74953         * modules/posixver (EXTRA_DIST): Add posixver.h.
74954         * modules/quote (EXTRA_DIST): Add quote.h.
74955         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
74956         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
74957         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
74958         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
74959         regex_internal.h regexec.c.
74960         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
74961         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
74962         * modules/same (EXTRA_DIST): Add same.h.
74963         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
74964         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
74965         * modules/savedir (EXTRA_DIST): Add savedir.h.
74966         * modules/sha1 (EXTRA_DIST): Add sha1.h.
74967         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
74968         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
74969         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
74970         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
74971         * modules/strdup (EXTRA_DIST): Add strdup.h.
74972         * modules/strftime (EXTRA_DIST): Add strftime.h.
74973         * modules/strndup (EXTRA_DIST): Add strndup.h.
74974         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
74975         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
74976         * modules/time_r (EXTRA_DIST): Add time_r.h.
74977         * modules/timespec (EXTRA_DIST): Add timespec.h.
74978         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74979         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
74980         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
74981         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
74982         * modules/userspec (EXTRA_DIST): Add userspec.h.
74983         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
74984         * modules/utimens (EXTRA_DIST): Add utimens.h.
74985         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
74986         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
74987         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
74988         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
74989         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
74990         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
74991         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
74992         * modules/yesno (EXTRA_DIST): Add yesno.h.
74993
74994 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74995
74996         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
74997
74998         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
74999         * m4/dev-ino.m4, same-inode.m4: Remove.
75000
75001         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
75002         * m4/acl.m4 (AC_FUNC_ACL):
75003         * m4/backupfile.m4 (gl_BACKUPFILE):
75004         * m4/c-strtod.m4 (gl_C99_STRTOLD):
75005         * m4/canon-host.m4 (gl_CANON_HOST):
75006         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75007         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
75008         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
75009         * m4/cloexec.m4 (gl_CLOEXEC):
75010         * m4/close-stream.m4 (gl_CLOSE_STREAM):
75011         * m4/closeout.m4 (gl_CLOSEOUT):
75012         * m4/dirfd.m4 (gl_FUNC_DIRFD):
75013         * m4/dirname.m4 (gl_DIRNAME):
75014         * m4/exclude.m4 (gl_EXCLUDE):
75015         * m4/exitfail.m4 (gl_EXITFAIL):
75016         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
75017         * m4/file-type.m4 (gl_FILE_TYPE):
75018         * m4/filemode.m4 (gl_FILEMODE):
75019         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
75020         * m4/fpending.m4 (gl_FUNC_FPENDING):
75021         * m4/fprintftime.m4 (gl_FPRINTFTIME):
75022         * m4/fts.m4 (gl_FUNC_FTS):
75023         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
75024         * m4/getdate.m4 (gl_GETDATE):
75025         * m4/gethrxtime.m4 (gl_GETHRXTIME):
75026         * m4/getpagesize.m4 (gl_GETPAGESIZE):
75027         * m4/getpass.m4 (gl_FUNC_GETPASS):
75028         * m4/gettime.m4 (gl_GETTIME):
75029         * m4/getugroups.m4 (gl_GETUGROUPS):
75030         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
75031         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
75032         * m4/hard-locale.m4 (gl_HARD_LOCALE):
75033         * m4/hash.m4 (gl_HASH):
75034         * m4/idcache.m4 (gl_IDCACHE):
75035         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
75036         * m4/lchown.m4 (gl_FUNC_LCHOWN):
75037         * m4/long-options.m4 (gl_LONG_OPTIONS):
75038         * m4/lstat.m4 (gl_FUNC_LSTAT):
75039         * m4/md5.m4 (gl_MD5):
75040         * m4/memcasecmp.m4 (gl_MEMCASECMP):
75041         * m4/memcoll.m4 (gl_MEMCOLL):
75042         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
75043         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
75044         * m4/memxor.m4 (gl_MEMXOR):
75045         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
75046         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
75047         * m4/modechange.m4 (gl_MODECHANGE):
75048         * m4/mountlist.m4 (gl_MOUNTLIST):
75049         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75050         * m4/openat.m4 (gl_FUNC_OPENAT):
75051         * m4/pathmax.m4 (gl_PATHMAX):
75052         * m4/physmem.m4 (gl_PHYSMEM):
75053         * m4/posixtm.m4 (gl_POSIXTM):
75054         * m4/posixver.m4 (gl_POSIXVER):
75055         * m4/quote.m4 (gl_QUOTE):
75056         * m4/quotearg.m4 (gl_QUOTEARG):
75057         * m4/readtokens.m4 (gl_READTOKENS):
75058         * m4/readutmp.m4 (gl_READUTMP):
75059         * m4/regex.m4 (gl_REGEX):
75060         * m4/safe-read.m4 (gl_SAFE_READ):
75061         * m4/safe-write.m4 (gl_SAFE_WRITE):
75062         * m4/same.m4 (gl_SAME):
75063         * m4/save-cwd.m4 (gl_SAVE_CWD):
75064         * m4/savedir.m4 (gl_SAVEDIR):
75065         * m4/settime.m4 (gl_SETTIME):
75066         * m4/sha1.m4 (gl_SHA1):
75067         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
75068         * m4/stat-macros.m4 (gl_STAT_MACROS):
75069         * m4/stat-time.m4 (gl_STAT_TIME):
75070         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
75071         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
75072         * m4/strdup.m4 (gl_FUNC_STRDUP):
75073         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
75074         * m4/strndup.m4 (gl_FUNC_STRNDUP):
75075         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
75076         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
75077         * m4/time_r.m4 (gl_TIME_R):
75078         * m4/timespec.m4 (gl_TIMESPEC):
75079         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
75080         * m4/unlinkdir.m4 (gl_UNLINKDIR):
75081         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
75082         * m4/userspec.m4 (gl_USERSPEC):
75083         * m4/utimecmp.m4 (gl_UTIMECMP):
75084         * m4/utimens.m4 (gl_UTIMENS):
75085         * m4/xalloc.m4 (gl_XALLOC):
75086         * m4/xgetcwd.m4 (gl_XGETCWD):
75087         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
75088         * m4/xreadlink.m4 (gl_XREADLINK):
75089         * m4/xstrtod.m4 (gl_XSTRTOD):
75090         * m4/yesno.m4 (gl_YESNO):
75091         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75092         to get the necessary .h files and whatnot.
75093
75094 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
75095             Bruno Haible  <bruno@clisp.org>
75096
75097         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
75098         /bin/sh understanding of '!' conditional negation.
75099
75100 2006-08-21  Jim Meyering  <jim@meyering.net>
75101
75102         * modules/openat (Depends-on): Really alphabetize.
75103
75104         * modules/acl (Depends-on): Add error and quote.
75105
75106         * check-module (find_included_lib_files): Add at-func.c to the
75107         ok-to-include-more-than-once white list.
75108
75109         * modules/openat (Depends-on): Add lstat.  Alphabetize.
75110
75111 2006-08-21  Bruno Haible  <bruno@clisp.org>
75112
75113         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75114         Emit a pkgdata_DATA variable only if some snippets add contents to it.
75115         Reported by Martin Lambers <marlam@marlam.de>.
75116
75117 2006-08-21  Bruno Haible  <bruno@clisp.org>
75118
75119         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
75120         specify an installation location, don't emit a noinst_LIBRARIES or
75121         noinst_LTLIBRARIES assignment.
75122
75123 2006-08-21  Bruno Haible  <bruno@clisp.org>
75124
75125         BeOS portability.
75126         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
75127         BeOS has mbrtowc() but no <wctype.h>.
75128
75129 2006-08-21  Bruno Haible  <bruno@clisp.org>
75130
75131         BeOS portability.
75132         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
75133         exist.
75134
75135 2006-08-21  Bruno Haible  <bruno@clisp.org>
75136
75137         BeOS portability.
75138         * lib/mbchar.h: Include <wctype.h> only if it exists.
75139
75140 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75141
75142         Remove files that are no longer needed by their respective modules.
75143         * m4/obstack.m4: Remove.
75144         * m4/strerror_r.m4: Remove.
75145         * m4/uint32_t.m4: Remove.
75146         * m4/uintptr_t.m4: Remove.
75147         * m4/ullong_max.m4: Remove.
75148         * m4/xstrtoimax.m4: Remove.
75149         * m4/xstrtoumax.m4: Remove.
75150
75151         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
75152         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
75153         dependencies now capture this.
75154
75155         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
75156         Do not use AC_LIBSOURCES, since gnulib modules now do this.
75157         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
75158         * m4/human.m4 (gl_HUMAN): Likewise.
75159         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
75160         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
75161
75162         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
75163
75164         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
75165         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
75166         stdint.
75167         * m4/human.m4 (gl_HUMAN): Likewise.
75168         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
75169         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
75170         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75171         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75172         * m4/xstrtol (gl_XSTRTOL): Likewise.
75173
75174         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
75175         AC_TYPE_LONG_LONG_INT.
75176         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75177         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
75178         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
75179         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75180
75181         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
75182         on stdbool.
75183
75184         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
75185         (gl_PREREQ_XSTRTOUL): Remove.
75186
75187         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
75188
75189         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
75190         mode.
75191
75192 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75193
75194         Add and change modules to make it easier for coreutils to use
75195         gnulib-tool.
75196         * modules/backupfile (Files): Remove m4/d-ino.m4.
75197         (Depends-on): Add d-ino.
75198         * modules/cycle-check (Depends-on): Add stdint.
75199         (lib_SOURCES): Add cycle-check.h.
75200         * modules/d-ino: New module.
75201         * modules/d-type: New module.
75202         * modules/error (Files): Remove m4/strerror_r.m4.
75203         * modules/filemode (Files): Add m4/st_dm_mode.m4.
75204         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75205         m4/inttypes_h.m4, m4/uintmax_t.m4.
75206         (Depends-on): Add stdint.
75207         (lib_SOURCES): Add fsusage.h.
75208         * modules/getcwd (Files): Remove d-ino.m4.
75209         (Depends-on): Add d-ino.
75210         * modules/getndelim2 (Depends-on): Add stdint.
75211         * modules/glob (Files): Remove m4/d-type.m4.
75212         (Depends-on): Add d-type.
75213         * modules/host-os: New module.
75214         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
75215         m4/inttypes_h.m4, m4/uintmax_t.m4.
75216         * Depends-on: Add stdint.
75217         (lib_SOURCES): Add human.h.
75218         * modules/inttostr (Files): Remove m4/intmax_t.m4,
75219         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
75220         m4/uintmax_t.m4, m4/ulonglong.m4.
75221         (Depends-on): Add stdint.
75222         (EXTRA_DIST): Add inttostr.h.
75223         * modules/lchmod: New module.
75224         * modules/link-follow: New module.
75225         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
75226         (Depends-on): Add lchmod.
75227         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
75228         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
75229         (Depends-on): Add stdint.
75230         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
75231         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
75232         (Depends-on): Add stdint.
75233         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
75234         * modules/perl: New module.
75235         * modules/regex (Depends-on): Add stdint.
75236         * modules/rmdir-errno: New module.
75237         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75238         m4/intmax_t.m4.
75239         (Depends-on): Add stdint.
75240         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75241         m4/uintmax_t.m4.
75242         (Depends-on): Add stdint.
75243         * modules/unlink-busy: New module.
75244         * modules/utimecmp (Depends-on): Add stdint.
75245         * modules/uptime: New module.
75246         * modules/winsz-ioctl: New module.
75247         * modules/winsz-termios: New module.
75248         * modules/xnanosleep (Depends-on): Add nanosleep.
75249         * modules/ullong_max: Remove.
75250         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
75251         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
75252         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
75253         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
75254         (Depends-on): Add inttypes.
75255         (lib_SOURCES): Add xstrtol.h.
75256         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
75257         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
75258         * MODULES.html.sh: Move 'assert' into the assert section.
75259         Move 'dummy' into the linking section.
75260         Remove ullong_max.
75261         Add section for compatibility checks for POSIX:2001 functions,
75262         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
75263         winsz-ioctl, and winsz-termios into it.
75264         Add lchmod.
75265         Add top-level Misc section and put host-os, perl, and uptime
75266         into it.
75267
75268 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75269
75270         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
75271         now assume the stdint module.  Do not include inttypes.h.
75272         * lib/fsusage.h: Likewise.
75273         * lib/getndelim2.c: Likewise.
75274         * lib/human.h: Likewise.
75275         * lib/inttostr.h: Likewise.
75276         * lib/obstack.c: Likewise.
75277         * lib/regex_internal.h: Likewise.
75278         * lib/tempname.c: Likewise.
75279         * lib/utimecmp.c: Likewise.
75280         * lib/xstrtol.h: Likewise.
75281
75282         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
75283
75284         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
75285         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
75286         * lib/xtime.h: Likewise.
75287
75288 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75289
75290         * modules/openat (Files): Add lib/fchmodat.c.
75291         Fixes problem reported by Jay Youngman.
75292
75293 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75294
75295         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
75296         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
75297
75298 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
75299             Bruno Haible  <bruno@clisp.org>
75300
75301         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
75302         and is a script that invokes bison. Tighten the code. Add comments.
75303
75304 2006-08-18  Jim Meyering  <jim@meyering.net>
75305
75306         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
75307         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
75308         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
75309         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
75310
75311 2006-08-18  Bruno Haible  <bruno@clisp.org>
75312
75313         * modules/bison-i18n: New file.
75314         * MODULES.html.sh (Internationalization functions): Add it.
75315
75316 2006-08-18  Bruno Haible  <bruno@clisp.org>
75317
75318         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
75319         sys/statvfs.h. When getmntinfo was found, check its declaration and
75320         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
75321
75322 2006-08-18  Bruno Haible  <bruno@clisp.org>
75323
75324         * m4/bison-i18n.m4: New file, from bison.
75325
75326 2006-08-18  Bruno Haible  <bruno@clisp.org>
75327
75328         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
75329         (ME_DUMMY): Treat "kernfs" as a dummy.
75330         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
75331
75332 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75333
75334         Update from coreutils.
75335
75336         2006-08-15  Jim Meyering  <jim@meyering.net>
75337
75338         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
75339
75340         2006-01-17  Jim Meyering  <jim@meyering.net>
75341
75342         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
75343
75344         2006-01-11  Jim Meyering  <jim@meyering.net>
75345
75346         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
75347         Check for the lchmod function.
75348
75349 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75350
75351         Update from coreutils.
75352
75353         * lib/__fpending.h: Add copyright notice.
75354         * lib/fprintftime.h: Likewise.
75355         * lib/savedir.c: Use (C) in copyright notice.
75356         * lib/savedir.h: Likewise.
75357
75358         2006-08-15  Jim Meyering  <jim@meyering.net>
75359
75360         * lib/at-func.c: New file, with the logic of all emulated at-functions.
75361         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
75362         in support of the EXPECTED_ERRNO macro.
75363         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
75364         definitions.  Instead, define the appropriate symbols and include
75365         "at-func.c".
75366         * lib/mkdirat.c (mkdirat): Likewise.
75367         * lib/fchmodat.c (fchmodat): Likewise.
75368         (ENOSYS): Remove definition.
75369         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
75370         it.  Don't include "unistd--.h" -- it wasn't ever used.
75371
75372         2006-01-17  Jim Meyering  <jim@meyering.net>
75373
75374         Rewrite fts.c not to change the current working directory,
75375         by using openat, fstatat, fdopendir, etc..
75376
75377         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
75378         (HAVE_OPENAT_SUPPORT): Define.
75379         [_LIBC] (fchdir): Don't undef or define; no longer used.
75380         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
75381         Now, this `function' always succeeds, and consumes its file descriptor
75382         parameter -- so callers must not close such FDs.  Update callers.
75383         (diropen_fd, opendirat, cwd_advance_fd): New functions.
75384         (diropen): Add parameter, SP.  Adjust all callers.
75385         Implement using diropen_fd, rather than open.
75386         (fts_open): Initialize new member, fts_cwd_fd.
75387         Remove fts_rft-setting code.
75388         (fts_close): Close fts_cwd_fd, if necessary.
75389         (__opendir2): Define in terms of opendir or opendirat,
75390         depending on whether the FST_NOCHDIR flag is set.
75391         (fts_build): Since fts_safe_changedir consumes its FD, and since
75392         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
75393         and close the dup'd file descriptor upon failure.
75394         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
75395         (fts_safe_changedir): Tweak semantics to reflect that this function
75396         now calls cwd_advance_fd and hence consumes its FD argument.
75397         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
75398         [struct FTS] (fts_rft): Remove now-unused member.
75399         [struct FTS] (fts_cycle.state): Improve comment.
75400
75401         * lib/openat.c (openat_needs_fchdir): New function.
75402         * lib/openat.h (openat_needs_fchdir): Declare it.
75403
75404 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75405
75406         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
75407         Problem and fix reported by Pádraig Brady in
75408         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
75409
75410 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75411
75412         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
75413
75414 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75415
75416         * lib/memcoll.c (memcoll): Optimize for the common case where the
75417         arguments are bytewise equal.
75418
75419 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75420
75421         * doc/regexprops-generic.texi: Add a copyright notice.
75422
75423 2006-08-15  Bruno Haible  <bruno@clisp.org>
75424
75425         * modules/tmpdir (License): Change to LGPL.
75426
75427 2006-08-15  Bruno Haible  <bruno@clisp.org>
75428
75429         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
75430         module.
75431
75432 2006-08-14  Simon Josefsson  <jas@extundo.com>
75433
75434         * config/srclist.txt: Add gnupload.
75435
75436 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75437
75438         Change copyright notice from LGPL 2 to GPL 2, since that's the
75439         standard form used in the gnulib repository.
75440         * tests/test-lock.c: Likewise.
75441         * tests/test-stdint.c: Likewise.
75442         * tests/test-tls.c: Likewise.
75443
75444         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
75445         prelude-manager.  User shorter URLs for GNU projects, without '?'.
75446         Add copyright notice.
75447
75448         * check-module: Add copyright notice.  Output a copyright
75449         notice if "--version" is specified.
75450         * modules/COPYING: New file.
75451         * tests/test-getaddrinfo.c: Add copyright notice.
75452         * tests/test-verify.c: Likewise.
75453
75454 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75455
75456         Change copyright notice from LGPL 2 to GPL 2, since that's the
75457         standard form used in the gnulib repository.
75458         * lib/lock.c: LGPL -> GPL.
75459         * lib/lock.h: Likewise.
75460         * lib/strnlen1.c: Likewise.
75461         * lib/strnlen1.h: Likewise.
75462         * lib/tls.c: Likewise.
75463         * lib/tls.h: Likewise.
75464         * lib/tmpdir.c: Likewise.
75465
75466         * lib/TODO: Remove; this belongs only in coreutils.
75467
75468 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75469
75470         Add copyright notices to long-enough files that lack them, since
75471         otherwise the files aren't clearly free.  Use the same notice that
75472         getdate.texi already uses.
75473         * doc/alloca-opt.texi: Add copyright notice.
75474         * doc/alloca.texi: Likewise.
75475         * doc/ctime.texi: Likewise.
75476         * doc/functions.texi: Likewise.
75477         * doc/gcd.texi: Likewise.
75478         * doc/gnulib-tool.texi: Likewise.
75479         * doc/inet_ntoa.texi: Likewise.
75480         * doc/visibility.texi: Likewise.
75481
75482         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
75483         * doc/quote.texi: Add copyright notice.
75484
75485         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
75486         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
75487         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
75488         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
75489         is now obsolete, and give a pointer to the Sun list.
75490         Add copyright notice.
75491
75492 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75493
75494         * config/srclistvars.sh: Add copyright notice.
75495
75496 2006-08-14  Eric Blake  <ebb9@byu.net>
75497
75498         Import the following change from libc:
75499
75500         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
75501
75502         Upstream bug 2997.
75503         * lib/misc/error.c: Add space between program name and message if file
75504         name is missing.
75505
75506 2006-08-12  Karl Berry  <karl@gnu.org>
75507
75508         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
75509         remove, these originate in gnulib now.
75510
75511 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75512
75513         * doc/Makefile (standards.info standards.html standards.dvi):
75514         Also depend on make-stds.texi.
75515
75516 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75517
75518         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
75519         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
75520
75521         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
75522         in wchar_t.  Problem reported by Eric Blake.
75523
75524         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
75525         LEN is smaller than SIZE.  Suggested by Bruno Haible.
75526         Also, help the compiler to keep LEN in a register.
75527
75528 2006-08-11  Eric Blake  <ebb9@byu.net>
75529
75530         * users.txt: Sort.  Add tar.
75531
75532 2006-08-11  Bruno Haible  <bruno@clisp.org>
75533
75534         * users.txt: New file.
75535
75536 2006-08-11  Bruno Haible  <bruno@clisp.org>
75537
75538         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
75539         before <wchar.h>. Needed for OSF/1 and BSD/OS.
75540
75541 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75542
75543         * modules/snprintf (Depends-on): Remove minmax.
75544         (Maintainer): Add self and Bruno.
75545
75546 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75547
75548         * lib/.cppi-disable: Add snprintf.h, socket_.h.
75549         * lib/snprintf.c: Include <errno.h> and <limits.h>.
75550         (EOVERFLOW): Define if the system does not.
75551         Do not include "minmax.h"; it wasn't used.
75552         (snprintf): Don't assume size_t promotes to an unsigned type.
75553         Fix bug when generated string was too long for the buffer: the
75554         buffer's contents are supposed to be the initial prefix of the
75555         output.  Don't assume vasnprintf returns EOVERFLOW if the size
75556         exceeds INT_MAX; do the check ourselves.
75557
75558         Import the following changes from libc:
75559
75560         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
75561
75562         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
75563         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
75564         set wc to the byte which couldn't be converted.
75565         (re_string_reconstruct): Don't clear valid_raw_len before calling
75566         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
75567         tip_context using re_string_context_at.
75568
75569         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
75570
75571         * lib/posix/regex.h: g++ still cannot handled [restrict].
75572
75573         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
75574
75575         * lib/posix/regex.h: Remove special handling for VMS.
75576
75577 2006-08-10  Jim Meyering  <jim@meyering.net>
75578
75579         * modules/same-inode: New module.
75580         * modules/dev-ino: New module.
75581         * modules/cycle-check: Depend on these modules, rather than simply
75582         including their .h files.
75583         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
75584         required via m4/cycle-check.m4.
75585         * modules/same: Depend on new same-inode module, rather than
75586         including same-inode.h.
75587         * modules/chdir-safer: New file.
75588
75589         * modules/chown (Depends-on): Add stat-macros.
75590
75591 2006-08-10  Jim Meyering  <jim@meyering.net>
75592
75593         * m4/cycle-check.m4: New file.
75594         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
75595         * m4/dev-ino.m4, m4/same-inode.m4: New files.
75596
75597 2006-08-10  Eric Blake  <ebb9@byu.net>
75598
75599         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
75600         in from original proposal.
75601
75602 2006-08-10  Eric Blake  <ebb9@byu.net>
75603         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75604
75605         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
75606         namespace.
75607
75608 2006-08-10  Bruno Haible  <bruno@clisp.org>
75609
75610         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
75611         as well.
75612
75613 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75614
75615         Sync from coreutils.
75616
75617         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
75618
75619         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
75620         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
75621
75622 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75623
75624         * modules/restrict: Remove; no longer needed now that we assume
75625         Autoconf 2.59 or later.
75626         * MODULES.html.sh: Remove 'restrict'.
75627         * modules/argp (Depends-on): Remove 'restrict'.
75628         * modules/base64 (Depends-on): Likewise.
75629         * modules/gc (Depends-on): Likewise.
75630         * modules/getaddrinfo (Depends-on): Likewise.
75631         * modules/glob (Depends-on): Likewise.
75632         * modules/inet_ntop (Depends-on): Likewise.
75633         * modules/inet_pton (Depends-on): Likewise.
75634         * modules/memxor (Depends-on): Likewise.
75635         * modules/regex (Depends-on): Likewise.
75636         * modules/strtok_r (Depends-on): Likewise.
75637         * modules/time_r (Depends-on): Likewise.
75638
75639 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75640
75641         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
75642         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
75643         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75644         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
75645         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
75646         * m4/memxor.m4 (gl_MEMXOR): Likewise.
75647         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
75648         gl_C_RESTRICT replaced by AC_C_RESTRICT.
75649
75650         Merge from coreutils.
75651         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
75652         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
75653         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75654         * m4/time_r.m4 (gl_TIME_R): Likewise.
75655
75656 2006-08-09  Karl Berry  <karl@gnu.org>
75657
75658         * config/srclist.txt: no more gettext-tools, per Bruno.
75659
75660 2006-08-08  Eric Blake  <ebb9@byu.net>
75661
75662         * modules/verror: New module.
75663         * MODULES.html.sh: Document it.
75664
75665 2006-08-08  Eric Blake  <ebb9@byu.net>
75666
75667         * lib/verror.h, lib/verror.c: New files.
75668
75669 2006-08-08  Eric Blake  <ebb9@byu.net>
75670
75671         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
75672         verror_at_line output complies with GNU Coding Standards even when
75673         file is NULL.
75674
75675 2006-08-07  Bruno Haible  <bruno@clisp.org>
75676
75677         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
75678         versions of AIX.
75679         Reported by Ralf Wildenhues.
75680
75681 2006-08-07  Bruno Haible  <bruno@clisp.org>
75682
75683         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
75684         in an AC_DEFUN. Needed so that the autoconf snippets can use
75685         AC_REQUIRE.
75686
75687 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75688
75689         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75690         Initialize pkgdata_DATA.
75691         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
75692         overriding it.
75693
75694 2006-08-06  Eric Blake  <ebb9@byu.net>
75695
75696         * lib/error.h: Fold in some upstream changes from glibc.
75697         * lib/error.c: Likewise.
75698
75699 2006-08-04  Bruno Haible  <bruno@clisp.org>
75700
75701         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75702         Make the mostlyclean-local rule depend on mostlyclean-generic.
75703         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
75704
75705 2006-07-31  Bruno Haible  <bruno@clisp.org>
75706
75707         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
75708         <stdlib.h>, <string.h>.
75709
75710 2006-07-30  Bruno Haible  <bruno@clisp.org>
75711
75712         * modules/readlink (License): Change to LGPL.
75713
75714 2006-07-30  Bruno Haible  <bruno@clisp.org>
75715
75716         * modules/javaversion (Makefile.am): Distribute javaversion.java and
75717         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
75718         set PKGDATADIR to point to it.
75719
75720 2006-07-30  Bruno Haible  <bruno@clisp.org>
75721
75722         * modules/csharpexec (configure.ac): Comment out macro invocation.
75723         * modules/javaexec (configure.ac): Likewise.
75724         * modules/javacomp-script (configure.ac): Likewise.
75725
75726         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
75727
75728 2006-07-30  Bruno Haible  <bruno@clisp.org>
75729
75730         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
75731         linked-list.
75732
75733 2006-07-30  Bruno Haible  <bruno@clisp.org>
75734
75735         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
75736
75737 2006-07-30  Bruno Haible  <bruno@clisp.org>
75738
75739         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75740         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
75741         get removed.
75742
75743 2006-07-29  Bruno Haible  <bruno@clisp.org>
75744
75745         Make it possible for gnulib-tool to work with locally modified or
75746         augmented gnulib repositories.
75747         * gnulib-tool (func_usage): Document --local-dir option.
75748         (local_gnulib_dir): New variable.
75749         Handle --local-dir option.
75750         (func_lookup_file): New function.
75751         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
75752         (func_get_description, func_get_filelist, func_get_description,
75753         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
75754         func_get_automake_snippet, func_get_include_directive,
75755         func_get_license, func_get_maintainer): Use func_lookup_file.
75756         (func_import, func_create_testdir): Use func_lookup_file.
75757
75758 2006-07-29  Bruno Haible  <bruno@clisp.org>
75759
75760         * modules/setenv (Depends-on): Add unistd.
75761
75762 2006-07-29  Bruno Haible  <bruno@clisp.org>
75763
75764         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
75765
75766 2006-07-29  Bruno Haible  <bruno@clisp.org>
75767
75768         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
75769
75770 2006-07-29  Bruno Haible  <bruno@clisp.org>
75771
75772         * gnulib-tool (import, update): If there is no Makefile.am, look at
75773         aclocal.m4, instead of bailing out.
75774
75775 2006-07-29  Bruno Haible  <bruno@clisp.org>
75776
75777         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
75778         Categorize the options by when they are useful.
75779
75780 2006-07-29  Bruno Haible  <bruno@clisp.org>
75781
75782         * gnulib-tool (func_usage): Document option --no-libtool.
75783         Handle option --no-libtool.
75784         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
75785         for changed semantics of $libtool variable.
75786         (func_import): Likewise. If libtool is not used, show this through
75787         an option --no-libtool.
75788         (func_create_testdir): Update.
75789
75790 2006-07-29  Bruno Haible  <bruno@clisp.org>
75791
75792         * gnulib-tool (func_import): Extend error message about missing
75793         --doc-base.
75794
75795 2006-07-29  Bruno Haible  <bruno@clisp.org>
75796
75797         * gnulib-tool (func_import): Don't create the $docbase directory if
75798         there is no file to store there.
75799
75800 2006-07-29  Bruno Haible  <bruno@clisp.org>
75801
75802         * gnulib-tool (autoconf_minversion): If a --dir option is given and
75803         relevant, look for configure.ac there, not in the current directory.
75804         Also use a simple search for AC_PREREQ, not "autoconf --trace".
75805
75806 2006-07-29  Bruno Haible  <bruno@clisp.org>
75807
75808         * gnulib-tool (SORT): New variable.
75809         (func_usage): Undocument --assume-autoconf option.
75810         Remove --assume-autoconf option handling.
75811         (autoconf_minversion): Determine from the contents of configure.ac.
75812         (func_import): Remove autoconf_minversion handling.
75813         Suggested by Eric Blake.
75814
75815 2006-07-29  Bruno Haible  <bruno@clisp.org>
75816
75817         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
75818
75819 2006-07-29  Bruno Haible  <bruno@clisp.org>
75820
75821         * config/srclist.txt (*setenv.[ch]): Remove rules.
75822
75823 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75824
75825         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
75826
75827 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75828
75829         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
75830         arpa/inet.h.
75831
75832 2006-07-28  Simon Josefsson  <jas@extundo.com>
75833
75834         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
75835         * modules/inet_pton (Depends-on): Likewise.
75836
75837 2006-07-28  Simon Josefsson  <jas@extundo.com>
75838
75839         * m4/netinet_in_h.m4: New file.
75840
75841 2006-07-28  Simon Josefsson  <jas@extundo.com>
75842
75843         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
75844         #include's.
75845
75846 2006-07-28  Simon Josefsson  <jas@extundo.com>
75847
75848         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
75849         #include's.
75850
75851 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
75852
75853         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
75854         setgid on directories only if they set these bits.
75855         * lib/modechange.h: Remove obsolete comment about masks.
75856
75857 2006-07-28  Eric Blake  <ebb9@byu.net>
75858
75859         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
75860         macro expansion.
75861
75862 2006-07-28  Bruno Haible  <bruno@clisp.org>
75863
75864         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
75865
75866 2006-07-28  Bruno Haible  <bruno@clisp.org>
75867
75868         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
75869
75870 2006-07-28  Bruno Haible  <bruno@clisp.org>
75871
75872         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
75873         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
75874         Define fallbacks.
75875         Avoids link error on FreeBSD 4.x.
75876         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75877
75878         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
75879         encoding.
75880         * lib/mbswidth.c (iswcntrl): Likewise.
75881
75882 2006-07-27  Bruno Haible  <bruno@clisp.org>
75883
75884         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
75885         test.
75886
75887 2006-07-27  Bruno Haible  <bruno@clisp.org>
75888
75889         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
75890         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
75891         defined.
75892
75893 2006-07-26  Eric Blake  <ebb9@byu.net>
75894
75895         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
75896
75897 2006-07-26  Eric Blake  <ebb9@byu.net>
75898
75899         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
75900         like mingw that lack mkstemp.
75901         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
75902         avoid compilation warning on mingw.
75903
75904 2006-07-26  Bruno Haible  <bruno@clisp.org>
75905
75906         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
75907         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
75908         INT_FAST*_MIN, INTPTR_MIN.
75909
75910 2006-07-25  Bruno Haible  <bruno@clisp.org>
75911
75912         * modules/version-etc (Depends-on): Add stdarg.
75913
75914 2006-07-25  Bruno Haible  <bruno@clisp.org>
75915
75916         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
75917         complex commands.
75918
75919 2006-07-25  Bruno Haible  <bruno@clisp.org>
75920
75921         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
75922         defined in <stdarg.h> or config.h.
75923
75924 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75925
75926         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
75927         (gl_STDIO_SAFER): Remove.
75928
75929 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75930
75931         * MODULES.html.sh (File stream based Input/Output):
75932         Add fopen-safer, tmpfile-safer; remove stdio-safer.
75933         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
75934         * modules/fopen-safer, modules/tmpfile-safer: New files.
75935         * modules/stdio-safer: Remove.
75936
75937 2006-07-24  Bruno Haible  <bruno@clisp.org>
75938
75939         * modules/tmpdir: New file.
75940         * MODULES.html.sh (File system functions): Add it.
75941
75942 2006-07-24  Bruno Haible  <bruno@clisp.org>
75943
75944         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
75945         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
75946
75947 2006-07-24  Bruno Haible  <bruno@clisp.org>
75948
75949         * modules/clean-temp: New file.
75950
75951 2006-07-24  Bruno Haible  <bruno@clisp.org>
75952
75953         * m4/tmpdir.m4: New file, from GNU gettext.
75954
75955 2006-07-24  Bruno Haible  <bruno@clisp.org>
75956
75957         * lib/tmpdir.h: New file, from GNU gettext.
75958         * lib/tmpdir.c: New file, from GNU gettext.
75959
75960 2006-07-24  Bruno Haible  <bruno@clisp.org>
75961
75962         * lib/clean-temp.h: New file, from GNU gettext.
75963         * lib/clean-temp.c: New file, from GNU gettext.
75964
75965 2006-07-23  Eric Blake  <ebb9@byu.net>
75966
75967         * modules/stdio-safer (Files): Add tmpfile-safer.c.
75968         (Depends-on): Add binary-io.
75969
75970 2006-07-23  Eric Blake  <ebb9@byu.net>
75971
75972         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
75973
75974 2006-07-23  Eric Blake  <ebb9@byu.net>
75975
75976         * lib/tmpfile-safer.c: New file.
75977         * lib/stdio-safer.h (fopen_safer): Add prototype.
75978         * lib/stdio--.h (tmpfile): Make safer.
75979
75980 2006-07-23  Bruno Haible  <bruno@clisp.org>
75981
75982         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
75983         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
75984         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
75985         gl_linked_remove_at): Use it.
75986
75987 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75988         and Simon Josefsson <jas@extundo.com>
75989
75990         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
75991
75992         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
75993
75994 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75995
75996         * modules/close-stream: New file.
75997         * modules/closeout (Description): Make it clear that it exits
75998         with a diagnostic on error.
75999         (Depends-on): Add close-stream.  Remove fpending, stdbool.
76000         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
76001
76002 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76003
76004         * m4/close-stream.m4: New file.
76005
76006 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76007
76008         * lib/close-stream.c, lib/close-stream.h: New files.
76009
76010 2006-07-22  Bruno Haible  <bruno@clisp.org>
76011
76012         Merge from GNU gettext 0.15.
76013
76014         2006-05-01  Bruno Haible  <bruno@clisp.org>
76015
76016                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
76017
76018         2006-07-22  Bruno Haible  <bruno@clisp.org>
76019
76020                 * modules/javaversion: New file.
76021                 * MODULES.html.sh (Java): Add javaversion.
76022
76023         2006-03-12  Bruno Haible  <bruno@clisp.org>
76024
76025                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
76026
76027         2005-12-04  Bruno Haible  <bruno@clisp.org>
76028
76029                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
76030                 (untested).
76031
76032         2006-06-21  Bruno Haible  <bruno@clisp.org>
76033
76034                 Avoid warnings from recent versions of mcs.
76035                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
76036                 -o, -L, -r any more. Use options documented since mcs-1.0
76037                 instead. Similarly for -g.
76038
76039         2005-12-04  Bruno Haible  <bruno@clisp.org>
76040
76041                 * build-aux/csharpcomp.sh.in: Suffix for resources is
76042                 .resources, not .resource.
76043
76044         2005-07-09  Bruno Haible  <bruno@clisp.org>
76045
76046                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
76047                 add a .dll suffix.
76048                 Reported by Mark Junker <mjscod@gmx.de>.
76049
76050         2006-07-22  Bruno Haible  <bruno@clisp.org>
76051
76052                 * modules/gettext: Upgrade to gettext-0.15.
76053                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
76054                 m4/visibility.m4.
76055                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
76056
76057 2006-07-22  Bruno Haible  <bruno@clisp.org>
76058
76059         Merge from GNU gettext 0.15.
76060
76061         2006-03-25  Bruno Haible  <bruno@clisp.org>
76062
76063                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
76064
76065         2006-07-21  Bruno Haible  <bruno@clisp.org>
76066
76067                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
76068                 "1.1".
76069
76070         2006-05-09  Bruno Haible  <bruno@clisp.org>
76071
76072                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
76073                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
76074                 for the conftestver execution.
76075
76076         2006-05-01  Bruno Haible  <bruno@clisp.org>
76077
76078                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
76079                 optional target-version argument. Verify that the compiler
76080                 groks source of the specified source-version, or add -source
76081                 option as necessary. Verify that the compiler produces
76082                 bytecode in the specified target-version, or add -target and
76083                 -source options as necessary. Make the result of the test
76084                 available as variable CONF_JAVAC. Also log error output in
76085                 config.log.
76086
76087         2006-03-11  Bruno Haible  <bruno@clisp.org>
76088
76089                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
76090
76091         2006-05-09  Bruno Haible  <bruno@clisp.org>
76092
76093                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
76094                 CLASSPATH_SEPARATOR to a semicolon.
76095
76096         2006-03-12  Bruno Haible  <bruno@clisp.org>
76097
76098                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
76099                 available as variable CONF_JAVA, for subsequent autoconf
76100                 tests. Also log error output in config.log.
76101
76102         2006-07-19  Bruno Haible  <bruno@clisp.org>
76103
76104                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
76105                 that getline works on glibc2 systems. Needed to avoid trouble
76106                 in relocatable.c.
76107                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
76108
76109         2005-12-04  Bruno Haible  <bruno@clisp.org>
76110
76111                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
76112                 launcher (untested).
76113
76114         2005-12-04  Bruno Haible  <bruno@clisp.org>
76115
76116                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
76117
76118         2006-07-22  Bruno Haible  <bruno@clisp.org>
76119
76120                 * gettext.m4: Update from GNU gettext-0.15.
76121                 * nls.m4: Likewise.
76122                 * po.m4: Likewise.
76123                 * inttypes-pri.m4: Likewise.
76124                 * inttypes-h.m4: Renamed from inttypes.m4.
76125                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
76126
76127 2006-07-22  Bruno Haible  <bruno@clisp.org>
76128
76129         Merge from GNU gettext 0.15.
76130
76131         2005-07-05  Bruno Haible  <bruno@clisp.org>
76132
76133                 * printf-args.c (printf_fetchargs): Work around broken
76134                 definition of wint_t on mingw.
76135
76136         2005-02-12  Bruno Haible  <bruno@clisp.org>
76137
76138                 * xallocsa.h: Add extern "C" for C++.
76139
76140         2006-05-17  Bruno Haible  <bruno@clisp.org>
76141
76142                 Cygwin portability.
76143                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
76144
76145         2006-04-30  Bruno Haible  <bruno@clisp.org>
76146
76147                 * progreloc.c: Include <mach-o/dyld.h> if available.
76148                 (find_executable): Use _NSGetExecutablePath when possible.
76149
76150         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76151
76152                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
76153                 function.
76154
76155         2005-12-29  Bruno Haible  <bruno@clisp.org>
76156
76157                 * progreloc.c (set_program_name_and_installdir): Fix
76158                 compilation error.
76159
76160         2005-12-04  Bruno Haible  <bruno@clisp.org>
76161
76162                 Cygwin portability.
76163                 * progreloc.c: Include <windows.h> also on Cygwin.
76164                 (find_executable): Add support for Cygwin.
76165                 (set_program_name_and_installdir): Handle also platforms with
76166                 nonempty EXEEXT.
76167
76168         2006-07-11  Bruno Haible  <bruno@clisp.org>
76169
76170                 * javacomp.c: Fix a comment.
76171                 Reported by Jim Meyering.
76172
76173         2006-04-30  Bruno Haible  <bruno@clisp.org>
76174
76175                 * javacomp.h (compile_java_class): Add source_version,
76176                 target_version arguments.
76177                 * javacomp.c: Rewritten to choose only a compiler that
76178                 respects the specified source_version and target_version.
76179
76180         2006-06-27  Bruno Haible  <bruno@clisp.org>
76181
76182                 Assume correct S_ISDIR macro.
76183                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
76184
76185         2006-07-22  Bruno Haible  <bruno@clisp.org>
76186
76187                 * javaversion.h: New file, from GNU gettext.
76188                 * javaversion.c: New file, from GNU gettext.
76189                 * javaversion.java: New file, from GNU gettext.
76190                 * javaversion.class: New file, from GNU gettext.
76191
76192         2006-05-17  Bruno Haible  <bruno@clisp.org>
76193
76194                 Cygwin portability.
76195                 * javaexec.c (execute_java_class): Test for jview program
76196                 also on Cygwin.
76197
76198         2006-04-09  Bruno Haible  <bruno@clisp.org>
76199
76200                 * fatal-signal.c: Don't include string.h.
76201                 (at_fatal_signal): Use a copying loop instead of memcpy.
76202
76203         2005-12-04  Bruno Haible  <bruno@clisp.org>
76204
76205                 * csharpexec.c: Add support for 'clix' launcher (untested).
76206                 (execute_csharp_using_sscli): New function.
76207                 (execute_csharp_program): Call it.
76208
76209         2006-06-21  Bruno Haible  <bruno@clisp.org>
76210
76211                 Avoid warnings from recent versions of mcs.
76212                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
76213                 -o, -L, -r any more. Use options documented since mcs-1.0
76214                 instead. Similarly for -g.
76215
76216         2005-07-09  Bruno Haible  <bruno@clisp.org>
76217
76218                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
76219                 add a .dll suffix.
76220                 Reported by Mark Junker <mjscod@gmx.de>.
76221
76222         2006-06-17  Bruno Haible  <bruno@clisp.org>
76223
76224                 * config.charset: Update for NetBSD 3.0.
76225
76226         2006-05-17  Bruno Haible  <bruno@clisp.org>
76227
76228                 Cygwin portability.
76229                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
76230
76231         2006-05-16  Bruno Haible  <bruno@clisp.org>
76232
76233                 * localcharset.c [CYGWIN]: Include <windows.h>.
76234                 (get_charset_aliases): For Cygwin, return the same CPxxx
76235                 aliases list as under WIN32.
76236                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
76237                 the environment variables. Fall back to GetACP().
76238
76239         2006-04-05  Bruno Haible  <bruno@clisp.org>
76240
76241                 * config.charset: Update Juan Manuel Guerrero's address.
76242
76243         2005-02-12  Bruno Haible  <bruno@clisp.org>
76244
76245                 * allocsa.h: Add extern "C" for C++.
76246
76247         2005-02-10  Bruno Haible  <bruno@clisp.org>
76248
76249                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
76250                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
76251
76252         2006-07-22  Bruno Haible  <bruno@clisp.org>
76253
76254                 * gettext.h: Update to GNU gettext-0.15.
76255
76256 2006-07-22  Bruno Haible  <bruno@clisp.org>
76257
76258         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
76259         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
76260         lib-prefix.m4, longdouble.m4, ssize_t.m4.
76261
76262 2006-07-21  Eric Blake  <ebb9@byu.net>
76263
76264         * modules/stdlib-safer: New file.
76265         * MODULES.html.sh (File stream based Input/Output): Add
76266         stdlib-safer.
76267
76268 2006-07-21  Eric Blake  <ebb9@byu.net>
76269
76270         * lib/stdlib-safer.h: New file from coreutils, required by
76271         stdlib--.h.
76272
76273 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
76274
76275         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
76276
76277 2006-07-20  Bruno Haible  <bruno@clisp.org>
76278
76279         * gnulib-tool: Recognize new option --assume-autoconf.
76280         (autoconf_minversion): New variable.
76281         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
76282
76283 2006-07-20  Bruno Haible  <bruno@clisp.org>
76284
76285         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
76286
76287 2006-07-19  Derek R. Price  <derek@ximbiot.com>
76288
76289         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
76290         Reindent and repaginate.
76291
76292 2006-07-19  Derek Price  <derek@ximbiot.com>
76293
76294         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
76295         Correct grammar.
76296
76297 2006-07-17  Bruno Haible  <bruno@clisp.org>
76298
76299         * modules/list: New file.
76300         * modules/array-list: New file.
76301         * modules/carray-list, modules/carray-list-tests: New files.
76302         * modules/linked-list, modules/linked-list-tests: New files.
76303         * modules/avltree-list, modules/avltree-list-tests: New files.
76304         * modules/rbtree-list, modules/rbtree-list-tests: New files.
76305         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
76306         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
76307         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
76308         * modules/oset: New file.
76309         * modules/array-oset: New file.
76310         * modules/avltree-oset, modules/avltree-oset-tests: New files.
76311         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
76312         * tests/test-carray_list.c: New file.
76313         * tests/test-linked_list.c: New file.
76314         * tests/test-avltree_list.c: New file.
76315         * tests/test-rbtree_list.c: New file.
76316         * tests/test-linkedhash_list.c: New file.
76317         * tests/test-avltreehash_list.c: New file.
76318         * tests/test-rbtreehash_list.c: New file.
76319         * tests/test-avltree_oset.c: New file.
76320         * tests/test-rbtree_oset.c: New file.
76321         * MODULES.html.sh (Container data structures): New section.
76322
76323 2006-07-17  Bruno Haible  <bruno@clisp.org>
76324
76325         * m4/gl_list.m4: New file.
76326
76327 2006-07-17  Bruno Haible  <bruno@clisp.org>
76328
76329         * lib/gl_list.h: New file.
76330         * lib/gl_list.c: New file.
76331         * lib/gl_array_list.h: New file.
76332         * lib/gl_array_list.c: New file.
76333         * lib/gl_carray_list.h: New file.
76334         * lib/gl_carray_list.c: New file.
76335         * lib/gl_linked_list.h: New file.
76336         * lib/gl_linked_list.c: New file.
76337         * lib/gl_anylinked_list1.h: New file.
76338         * lib/gl_anylinked_list2.h: New file.
76339         * lib/gl_avltree_list.h: New file.
76340         * lib/gl_avltree_list.c: New file.
76341         * lib/gl_anyavltree_list1.h: New file.
76342         * lib/gl_anyavltree_list2.h: New file.
76343         * lib/gl_rbtree_list.h: New file.
76344         * lib/gl_rbtree_list.c: New file.
76345         * lib/gl_anyrbtree_list1.h: New file.
76346         * lib/gl_anyrbtree_list2.h: New file.
76347         * lib/gl_anytree_list1.h: New file.
76348         * lib/gl_anytree_list2.h: New file.
76349         * lib/gl_linkedhash_list.h: New file.
76350         * lib/gl_linkedhash_list.c: New file.
76351         * lib/gl_anyhash_list1.h: New file.
76352         * lib/gl_anyhash_list2.h: New file.
76353         * lib/gl_avltreehash_list.h: New file.
76354         * lib/gl_avltreehash_list.c: New file.
76355         * lib/gl_rbtreehash_list.h: New file.
76356         * lib/gl_rbtreehash_list.c: New file.
76357         * lib/gl_anytreehash_list1.h: New file.
76358         * lib/gl_anytreehash_list2.h: New file.
76359
76360         * lib/gl_oset.h: New file.
76361         * lib/gl_oset.c: New file.
76362         * lib/gl_array_oset.h: New file.
76363         * lib/gl_array_oset.c: New file.
76364         * lib/gl_avltree_oset.h: New file.
76365         * lib/gl_avltree_oset.c: New file.
76366         * lib/gl_rbtree_oset.h: New file.
76367         * lib/gl_rbtree_oset.c: New file.
76368         * lib/gl_anytree_oset.h: New file.
76369
76370 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76371
76372         * m4/mkancesdirs.m4: New file.
76373         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
76374         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
76375         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
76376         it.
76377
76378 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76379
76380         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
76381         * lib/mkancesdirs.h: New files.
76382         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
76383         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
76384         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
76385         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
76386         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
76387         callers changed.  Revamp internals significantly, by not
76388         attempting to create directories that are temporarily more
76389         permissive than the final results.  Do not attempt to use
76390         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
76391         This removes some race conditions, fixes some bugs, and simplifies
76392         things.  Use new dirchownmod function to do owner and mode changes.
76393         * lib/mkdir-p.h: Likewise.
76394         * lib/modechange.c (octal_to_mode): New function.
76395         (struct mode_change): New member mentioned.
76396         (make_node_op_equals): New arg mentioned.  All callers changed.
76397         (mode_compile): Keep track of which mode bits the user has explicitly
76398         mentioned.
76399         (mode_adjust): New arg DIR, so that we implement the X op correctly.
76400         New arg PMODE_BITS, to keep track of which mode bits the user
76401         mentioned; it treats S_ISUID and S_ISGID speciall.
76402         All callers changed.
76403         * lib/modechange.h: Likewise.
76404
76405 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76406
76407         * MODULES.html.sh: Add mkancestors.
76408         * modules/mkancesdirs: New module.
76409         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
76410         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
76411         The chdir-safer and afs files are now orphans; I'll remove them
76412         unless someone speaks up.
76413         Add lib/dirchownmod.c, lib/dirchownmod.h.
76414         (Depends-on): Remove alloca, chown, save-cwd, dirname.
76415         Add lchown, mkancesdirs.
76416         (Maintainer): Add self.
76417
76418 2006-07-15  Karl Berry  <karl@gnu.org>
76419
76420         * gnulib-tool: help message wording/arrangement.
76421
76422 2006-07-14  Simon Josefsson  <jas@extundo.com>
76423
76424         * doc/gnulib.texi (Libtool and Windows): New section.
76425
76426 2006-07-12  Simon Josefsson  <jas@extundo.com>
76427
76428         * modules/gendocs (License): Fix license, approved by Karl.
76429
76430 2006-07-12  Eric Blake  <ebb9@byu.net>
76431
76432         * MODULES.html.sh: Add gendocs.
76433
76434 2006-07-11  Eric Blake  <ebb9@byu.net>
76435
76436         * modules/fdl: New module, to install doc/fdl.texi.
76437         * MODULES.html.sh: Add new section for documentation modules.
76438         * gnulib-tool: Avoid space-tab.
76439         (--doc-base): New option, to manage files from doc.
76440
76441 2006-07-11  Eric Blake  <ebb9@byu.net>
76442
76443         * m4/absolute-header.m4: Fix comments to match recent change.
76444
76445 2006-07-11  Eric Blake  <ebb9@byu.net>
76446
76447         * gnulib-tool: List --doc-base before --tests-base.
76448
76449 2006-07-11  Derek R. Price  <derek@ximbiot.com>
76450
76451         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
76452
76453 2006-07-11  Bruno Haible  <bruno@clisp.org>
76454
76455         * README: Mention where to put documentation.
76456
76457 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76458
76459         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
76460
76461 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76462
76463         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
76464         to stdint.m4.
76465
76466 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76467
76468         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
76469         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
76470         "no/such/file/stdint.h" when there is no such file, so that
76471         the resulting C code can be parsed by dodgy compilers.
76472         Problems reported by Bob Proulx.
76473
76474 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76475
76476         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
76477         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76478         macros into the GNU _D_EXACT_NAMLEN.
76479         * lib/savedir.c:  Likewise.
76480         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
76481
76482 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76483         and Paul Eggert  <eggert@cs.ucla.edu>
76484
76485         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
76486         * m4/savedir.m4:
76487         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76488         macros into the GNU _D_EXACT_NAMLEN.
76489
76490 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76491
76492         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
76493         around the absolute name, to work around a problem with the HP-UX
76494         11.23 native C compiler, reported by Bob Proulx.
76495
76496 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76497
76498         * doc/maintain.texi, make-stds.texi: Sync from
76499         <http://savannah.gnu.org/projects/gnustandards>.
76500
76501 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76502
76503         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
76504
76505 2006-07-09  Jim Meyering  <jim@meyering.net>
76506
76507         * m4/glob.m4: Remove a doubled word in a comment.
76508
76509 2006-07-09  Jim Meyering  <jim@meyering.net>
76510
76511         * lib/argp-pv.c: Remove a doubled word in a comment.
76512         * lib/check-version.c (check_version): Likewise.
76513         * lib/javacomp.c (compile_java_class): Likewise.
76514
76515 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76516
76517         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
76518         for the benefit of people using Autoconf 2.60.  If you want to
76519         support older Autoconf versions you can copy m4/onceonly_2_57.m4
76520         (or m4/onceonly.m4, if pre-2.57) manually.
76521
76522 2006-07-08  Jim Meyering  <jim@meyering.net>
76523
76524         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
76525         comment.
76526         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
76527         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
76528         comment.
76529
76530 2006-07-08  Jim Meyering  <jim@meyering.net>
76531
76532         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
76533
76534 2006-07-07  Simon Josefsson  <jas@extundo.com>
76535
76536         * tests/test-crc.c: Change expected crc value, the test vector
76537         were probably computed using the old broken crc.c?
76538
76539 2006-07-06  Simon Josefsson  <jas@extundo.com>
76540
76541         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
76542         now the canonical place for the M4 file).
76543
76544         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
76545         from the sys_socket dependency now.
76546
76547         * modules/inet_pton (Files): Ditto.
76548
76549         * modules/inet_ntop (Files): Ditto.
76550
76551 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76552
76553         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
76554         not gl_PREREQ_GETUSERSHELL.
76555
76556 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76557
76558         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
76559         with only one argument, for Autoconf 2.60.
76560         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
76561         expand to nothing, so add a shell command to avoid syntax error.
76562         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76563
76564 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76565
76566         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
76567
76568 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76569
76570         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
76571         no longer needed.  Check for isblank decl.
76572         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
76573         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
76574         of existence.
76575
76576 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76577
76578         * lib/getloadavg.c: Use __VMS, not VMS.
76579         * lib/getopt.c: Likewise.
76580         * lib/getpagesize.h: Likewise.
76581         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
76582         and probably does not work.
76583
76584 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76585
76586         * lib/.cppi-disable: Add wcwidth.
76587         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
76588         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
76589         (ISGRAPH): Remove.  All uses changed to isgraph.
76590         (FOLD) [!defined _LIBC]: Remove special case.
76591         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
76592         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
76593         HAVE_ISBLANK.
76594         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
76595         case.
76596
76597 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76598
76599         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
76600         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
76601         brackets.  Other minor changes to suppress some compiler
76602         warnings.
76603
76604 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76605         and Paul Eggert  <eggert@cs.ucla.edu>
76606
76607         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
76608         of invoking obsolescent AC_HEADER_DIRENT macro.
76609         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
76610         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
76611         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
76612         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
76613         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
76614         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76615         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
76616         * m4/readdir.m4: Remove; no longer needed.
76617
76618 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76619         and Paul Eggert  <eggert@cs.ucla.edu>
76620
76621         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
76622         Don't worry about this obsolete case any more.
76623         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
76624         directories.
76625         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
76626         worry about this obsolete case any more.
76627         * lib/fts.c: Likewise.
76628         * lib/getcwd.c: Likewise.
76629         * lib/glob.h: Likewise.
76630         * lib/savedir.c: Likewise.
76631
76632 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76633
76634         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
76635         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
76636         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
76637         needed.
76638         All uses removed.
76639         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76640         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76641         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
76642         needed.
76643         * m4/getdate.m4 (gl_GETDATE): Likewise.
76644         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76645         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76646         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76647         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76648         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76649         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76650         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
76651         needed.
76652
76653 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76654
76655         * lib/memcasecmp.c: Include <limits.h>.
76656         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
76657         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
76658         Don't assume isdigit succeeds only on '0' through '9'.
76659
76660 2006-07-05  Eric Blake  <ebb9@byu.net>
76661
76662         * modules/getaddrinfo (Depends-on): Add snprintf.
76663
76664 2006-07-05  Eric Blake  <ebb9@byu.net>
76665
76666         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
76667         to avoid 'header present but could not be compiled' on cygwin.
76668
76669 2006-07-05  Eric Blake  <ebb9@byu.net>
76670
76671         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
76672         missing from netdb.h.
76673         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
76674
76675 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76676
76677         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
76678         no longer needed.
76679         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
76680         * m4/getdate.m4 (gl_GETDATE): Likewise.
76681         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76682         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76683         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76684         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76685         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76686
76687 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76688
76689         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
76690         All uses of is_space replaced by isspace.
76691         * lib/exit.h: Don't talk about STDC_HEADERS.
76692         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
76693         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
76694         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
76695         replaced by isprint etc.
76696         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
76697         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76698         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
76699         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
76700         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
76701         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76702
76703 2006-07-05  Bruno Haible  <bruno@clisp.org>
76704
76705         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
76706         the function exists, before testing against AIX.
76707         Reported by Martin Lambers <marlam@marlam.de>.
76708
76709 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76710
76711         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
76712         From Mark D. Baushke.
76713
76714 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76715
76716         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
76717         to the absolute name, not just one, to bypass Sun C 5.8's
76718         "warning: #include of /usr/include/... may be non-portable".
76719
76720 2006-07-04  Eric Blake  <ebb9@byu.net>
76721
76722         * modules/dirname-tests: New test module.
76723         * tests/test-dirname.c: New file, replacing dirname.c
76724         TEST_DIRNAME section that was recently deleted.
76725
76726 2006-07-04  Bruno Haible  <bruno@clisp.org>
76727
76728         Assume ANSI C header files and <ctype.h> functions.
76729         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
76730         (mbsnwidth): Use isprint, iscntrl instead.
76731
76732 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76733
76734         Merge from coreutils.
76735         * MODULES.html.sh: Add xstrtold.
76736         * modules/xstrtold: New file.
76737         * modules/cycle-check (Files): Add lib/same-inode.h.
76738         * modules/dirname (Files): Add m4/double-slash-root.m4.
76739         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
76740         * modules/mkdir-p (Files): Add lib/same-inode.h.
76741         * modules/same (Files): Add lib/same-inode.h.
76742
76743 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76744
76745         * m4/absolute-header.m4: Renamed from full-header-path.m4.
76746         This is to keep the terminology clean; POSIX talks about
76747         "absolute pathnames", not "full pathnames", but the GNU
76748         Coding Standards say to use "path" for something else;
76749         so use "absolute" to keep both sides happy.
76750         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
76751         Set gl_absolute_header, not gl_full_header_path.
76752         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
76753         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
76754         All uses changed.
76755
76756         Merge from coreutils.
76757
76758         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76759
76760         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
76761         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
76762         want to require the building of c-strtod.o.
76763         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
76764         needs -lm directly.
76765         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
76766
76767         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76768
76769         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
76770         --as-needed option if available.  Problem reported by Albert Chin in
76771         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
76772         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
76773         cc merely issues a bunch of annoying warnings for --as-needed
76774         (this problem was reported by Bob Proulx).  Also, try linking with
76775         -lm to detect a bug in binutils 2.16 (this problem was reported
76776         by Ralf Wildenhues).
76777
76778         2006-06-18  Jim Meyering  <jim@meyering.net>
76779
76780         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
76781         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
76782         macro.
76783         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
76784         also check for glibc-2.4's abort-inducing bug.
76785
76786         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
76787         Low-probability clean-up should be to use rmdir to get rid of
76788         the just-created directory, not unlink.
76789
76790         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
76791         configure fail, and request a bug report to inform us about it.
76792         Add a comment that, barring reports to the contrary, in 2007 we'll
76793         assume ftruncate is universally available.
76794
76795         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76796
76797         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
76798
76799         2006-03-12  Jim Meyering  <jim@meyering.net>
76800
76801         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
76802         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
76803         * m4/same.m4 (gl_SAME): Likewise.
76804         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
76805
76806         2006-03-11  Eric Blake  <ebb9@byu.net>
76807
76808         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
76809         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
76810         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
76811         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
76812
76813 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76814
76815         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
76816         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
76817         reported by Mark D. Baushke, one in
76818         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
76819
76820         Merge from coreutils.
76821
76822         * lib/.cppi-disable: Add stdint_.h.
76823         * lib/.cvsignore: Add stdint.h.
76824
76825         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76826
76827         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
76828         both double and long double versions.
76829         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
76830         * lib/xstrtold.c: New file.
76831         * lib/xstrtod.h (xstrtold): New decl.
76832
76833         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76834
76835         * lib/filemode.c (setst): Remove.
76836         (strmode): Rewrite to avoid setst.  This makes the code shorter,
76837         (arguably) clearer, and the generated code is a bit smaller on my
76838         Debian GNU/Linux stable x86 host.
76839
76840         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76841
76842         * lib/filemode.c: Include "filemode.h" first, to test the interface.
76843         Assume that filemode.h includes sys/types.h and sys/stat.h.
76844         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
76845         (ftypelet): Reorder to put common cases first, for efficiency.
76846         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
76847         to do 'M'.
76848         (strmode): Renamed from mode_string, and now stores 12 bytes instead
76849         of 10, for compatibility with FreeBSD.  All callers changed.
76850         (filemodestring): Now stores 12 bytes instead of 10, and sets file
76851         types that can't be deduced solely from st_mode.  First arg is now a
76852         const pointer.
76853         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
76854         (strmode): Renamed from mode_string.
76855         (filemodestring): New decl.
76856         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
76857         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
76858         needed.
76859         (S_ISPORT, S_ISWHT): New macros, if not already defined.
76860
76861         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76862
76863         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
76864         fsusage.h now does that.  Include fsusage.h first, to test interface.
76865         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
76866         at most one method (the old code could have generated decls that
76867         didn't conform to C89, not that this was ever exercised).
76868         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
76869
76870         2006-03-19  Jim Meyering  <jim@meyering.net>
76871
76872         Work even in a chroot where d_ino values for entries in "/"
76873         don't match the stat.st_ino values for the same names.
76874         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
76875         number, iterate through all entries again, using lstat instead.
76876         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
76877         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
76878
76879         * lib/getcwd.c (__getcwd): Clarify a comment.
76880         Use memcpy in place of a call to strcpy.
76881
76882         2006-03-12  Jim Meyering  <jim@meyering.net>
76883
76884         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
76885         matches that of the current directory (which we're about to chdir ".."
76886         out of), then save the dev-ino of the parent, instead.
76887
76888         * lib/same-inode.h (SAME_INODE): New file/macro.
76889         * lib/chdir-safer.c (SAME_INODE): Remove definition.
76890         Include "same-inode.h", instead.
76891         * lib/same.c: Likewise.
76892         * lib/cycle-check.h: Include "same-inode.h".
76893         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
76894         * lib/cycle-check.c (SAME_INODE): Remove definition.
76895         * lib/root-dev-ino.h: Include "same-inode.h".
76896
76897         2006-03-11  Eric Blake  <ebb9@byu.net>
76898
76899         * lib/same.c (same_name): s/base_name/last_component/
76900         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
76901         * lib/filenamecat.c (file_name_concat): Likewise.
76902
76903         2006-03-11  Eric Blake  <ebb9@byu.net>,
76904                     Paul Eggert  <eggert@cs.ucla.edu>
76905
76906         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
76907         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
76908         drive prefix.
76909         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
76910         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
76911         (last_component): New method.
76912         * lib/dirname.c (dir_len): Determine when drive letters need a
76913         subsequent slash.  Preserve // when it is special.
76914         (dir_name): Don't append dot when drive letter is absolute.
76915         [TEST_DIRNAME]: Move into a full-blown gnulib test.
76916         * lib/basename.c (base_name): New semantics - malloc the result.
76917         Preserve // when it is special.  Preserve relative files that look
76918         like drive letters.
76919         (base_len): Preserve // when it is special.
76920         (last_component): New method, similar to old base_name semantics.
76921         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
76922         base_name.  Strip redundant slashes from ///.
76923
76924 2006-07-03  Jim Meyering  <jim@meyering.net>
76925
76926         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
76927         macro is used before the first cycle_check call.
76928
76929 2006-07-03  Eric Blake  <ebb9@byu.net>
76930
76931         * modules/dirname (Depends-on): Add xstrndup.
76932
76933 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76934
76935         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
76936         test cases, so that config.log is a bit easier to follow.
76937
76938 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76939
76940         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
76941         both are 64 bits, since this seems to be the tradition, and this
76942         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
76943         we ever run into a host that prefers long long to long in this
76944         case, we'll need another configure-time test.  Problem reported by
76945         Jim Meyering.
76946
76947 2006-07-02  Eric Blake  <ebb9@byu.net>
76948
76949         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
76950
76951 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76952
76953         * modules/inttypes (Depends-on): No longer depends on stdint.
76954         * modules/stdint (Description): Say more about assumptions.
76955         Say that the fast types might differ.  Say macros are used.
76956         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
76957         (Makefile.am): Revise list of substituted symbols to match
76958         new stdint.m4.
76959         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
76960         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
76961         * tests/test-stdint.c (verify_same_types)
76962         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
76963         the code conforms to C99/C89.
76964         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
76965         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
76966
76967 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76968
76969         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
76970         but fix a bug, by requiring at least 64 bits.
76971         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
76972         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
76973         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
76974         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76975
76976         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
76977         changes.  Make 2.59 a prerequisite.  Check and substitute for
76978         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
76979         inttypes.h.  Do not use special include files; just use the
76980         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
76981         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
76982         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
76983         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
76984         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
76985         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
76986         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
76987         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
76988         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
76989         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
76990         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
76991         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
76992         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
76993         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
76994         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
76995         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
76996         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
76997         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
76998         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
76999         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
77000         WINT_MAX.  Check for C99 conformance more strictly, by detecting
77001         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
77002         not check for things that C99 does not require, e.g., int8_t.  If
77003         a test isn't needed unless <stdint.h> isn't working, and is
77004         unlikely to be needed for any other reason, then don't do it
77005         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
77006         size_t, since we assume C89 freestanding at least.  Do not check
77007         for sig_atomic_t, wchar_t, or wint_t, since the code now does
77008         the right thing even if the types are not defined.  Instead use:
77009         (gl_STDINT_TYPE_PROPERTIES): New macro.
77010         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
77011         testing whether <sys/types.h> clashes, as Autoconf does this for
77012         us now.  All uses removed.
77013         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
77014         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
77015         (gl_CHECK_TYPE_SAME):
77016         Remove; no longer needed.
77017         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
77018         exists, since we'll return 0 anyway in that case.
77019         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
77020
77021 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77022
77023         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
77024         possible collision with system files.
77025         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
77026         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
77027         WCHAR_MIN and WCHAR_MAX in this case.
77028         (<stddef.h>): Do not include; no longer needed.
77029         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
77030         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
77031         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
77032         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
77033         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
77034         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
77035         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
77036         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
77037         !defined(__c99))]: Include in this case too, since it's harmless
77038         now.
77039         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
77040         dangerous to do so.
77041         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
77042         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
77043         (_STDINT_MIN, _STDINT_MAX): New macros.
77044         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
77045         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
77046         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
77047         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
77048         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
77049         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
77050         macros, not typedefs; this simplifies things quite a bit.
77051         Use long int for all types narrower than int64_t.
77052         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
77053         Define in terms of long long int or int64_t or long int,
77054         not int64_t or int32_t.  This saves some compile-time testing.
77055         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
77056         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
77057         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
77058         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
77059         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
77060         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
77061         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
77062         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
77063         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
77064         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
77065         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77066         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77067         undef any previous version and define our own version, for
77068         simplicity and consistency with the new macros for types.
77069         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77070         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77071         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
77072         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
77073         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
77074         @WINT_T_SUFFIX@ to keep things simple here.
77075         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
77076         Simplify by assuming typical 8/16/32/64 host, since we're
77077         already doing that elsewhere anyway.
77078         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
77079         and assume long long int is 64 bits if available.  This
77080         speeds up 'configure'.
77081
77082 2006-07-01  Eric Blake  <ebb9@byu.net>
77083
77084         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
77085         Reported by Andreas Buening.
77086
77087 2006-07-01  Eric Blake  <ebb9@byu.net>
77088
77089         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
77090
77091 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77092
77093         * lib/getaddrinfo.c: fixed typo
77094
77095 2006-06-29  Jim Meyering  <jim@meyering.net>
77096
77097         * modules/strftime (Maintainer): Add my name, since with the
77098         FPRINTFTIME changes strftime.c has forked from glibc.
77099
77100 2006-06-29  Eric Blake  <ebb9@byu.net>
77101
77102         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
77103
77104 2006-06-29  Eric Blake  <ebb9@byu.net>
77105
77106         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
77107
77108 2006-06-29  Eric Blake  <ebb9@byu.net>
77109
77110         * lib/stat_.h: New file.
77111
77112 2006-06-29  Eric Blake  <ebb9@byu.net>
77113
77114         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
77115         unused static function.
77116
77117 2006-06-29  Eric Blake  <ebb9@byu.net>
77118
77119         * doc/functions.texi (Function Portability): Document missing lstat
77120         on mingw.
77121
77122 2006-06-29  Eric Blake  <ebb9@byu.net>
77123
77124         * MODULES.html.sh: Add sys_stat.
77125         * modules/sys_stat: New module.
77126         * modules/mkstemp (Depends-on): Add sys_stat.
77127
77128 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77129
77130         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
77131
77132 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77133
77134         * m4/c-bs-a.m4: Removed.
77135
77136 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77137
77138         * lib/strftime.c: Assume strftime() exists.
77139
77140 2006-06-29  Derek Price  <derek@ximbiot.com>
77141
77142         * modules/c-bs-a: Removed - \a is C89.
77143         * MODULES.html.sh: Remove c-bs-a.
77144
77145 2006-06-29  Bruno Haible  <bruno@clisp.org>
77146
77147         * modules/wcwidth (License): Change to LGPL.
77148
77149 2006-06-28  Simon Josefsson  <jas@extundo.com>
77150
77151         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
77152         on _WIN32.
77153
77154         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
77155         getnameinfo.
77156
77157 2006-06-28  Simon Josefsson  <jas@extundo.com>
77158
77159         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
77160
77161 2006-06-28  Simon Josefsson  <jas@extundo.com>
77162
77163         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
77164         functions there.  It will succeed on Windows XP, but on Windows
77165         2000 and (presumably) earlier, it will fail, and use the internal
77166         re-implementation.
77167         (use_win32_p): New function.
77168         (getaddrinfo): Use strtoul on servname, to support numeric ports.
77169         Support AI_NUMERICSERV to disable getservbyname.
77170         (getnameinfo): New function, only supports
77171         NI_NUMERICHOST|NI_NUMERICSERV for now.
77172
77173         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
77174         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
77175         getnameinfo.
77176
77177 2006-06-28  Eric Blake  <ebb9@byu.net>
77178
77179         * modules/wcwidth: New file.
77180         * modules/mbchar (Depends-on): Add wcwidth.
77181         * modules/mbswidth (Depends-on): Add wcwidth.
77182         * MODULES.html.sh: Add wcwidth.
77183
77184 2006-06-28  Eric Blake  <ebb9@byu.net>
77185
77186         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
77187         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
77188
77189 2006-06-28  Eric Blake  <ebb9@byu.net>
77190
77191         * lib/xvasprintf.h: Fix comments.
77192
77193 2006-06-28  Eric Blake  <ebb9@byu.net>
77194
77195         * lib/mbchar.h (wcwidth): Include wcwidth.h.
77196         * lib/mbswidth.c (wcwidth): Move from here...
77197         * lib/wcwidth.h: ...to this new file.
77198
77199 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77200
77201         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
77202
77203         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
77204         it's obsolete.
77205         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
77206
77207 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77208
77209         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
77210         Autoconf 2.60 says this stuff was obsolete.
77211
77212 2006-06-28  Bruno Haible  <bruno@clisp.org>
77213
77214         * modules/wcwidth (Files): Add m4/wchar_t.m4.
77215
77216 2006-06-28  Bruno Haible  <bruno@clisp.org>
77217
77218         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
77219         gt_TYPE_WCHAR_T.
77220
77221 2006-06-28  Bruno Haible  <bruno@clisp.org>
77222
77223         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
77224         declaration for wcwidth.
77225         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
77226
77227 2006-06-28  Bruno Haible  <bruno@clisp.org>
77228
77229         * lib/mkdtemp.c [MINGW]: Include <io.h>.
77230         (mkdir): Define using _mkdir.
77231
77232 2006-06-28  Bruno Haible  <bruno@clisp.org>
77233
77234         * lib/getaddrinfo.h: Fix POSIX URL.
77235         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
77236         _WIN32.
77237         (use_win32_p): Make static.
77238         (getaddrinfo): Reject service name if it is empty or does not consist
77239         solely of decimal digits, or if its value is > 65535.
77240         (getnameinfo): Remove useless casts.
77241
77242 2006-06-27  Simon Josefsson  <jas@extundo.com>
77243
77244         * modules/sys_select: New file, suggested by Bruno Haible, Paul
77245         Eggert and Martin Lambers.
77246
77247 2006-06-27  Simon Josefsson  <jas@extundo.com>
77248
77249         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
77250         Eggert and Martin Lambers.
77251
77252 2006-06-27  Bruno Haible  <bruno@clisp.org>
77253
77254         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
77255         result to 0, not to empty.
77256         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
77257
77258 2006-06-27  Bruno Haible  <bruno@clisp.org>
77259
77260         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
77261
77262 2006-06-26  Simon Josefsson  <jas@extundo.com>
77263
77264         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
77265         present.
77266
77267 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
77268
77269         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
77270         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
77271         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
77272
77273 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
77274
77275         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
77276
77277 2006-06-26  Bruno Haible  <bruno@clisp.org>
77278
77279         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
77280
77281 2006-06-26  Bruno Haible  <bruno@clisp.org>
77282
77283         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
77284
77285 2006-06-26  Bruno Haible  <bruno@clisp.org>
77286
77287         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
77288         SGI C compiler in pre-C99 mode.
77289         Suggested by Mark D. Baushke and Larry Jones.
77290
77291 2006-06-26  Bruno Haible  <bruno@clisp.org>
77292
77293         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
77294         WCHAR_MAX.
77295         Reported by Mark D. Baushke and Larry Jones.
77296
77297 2006-06-26  Bruno Haible  <bruno@clisp.org>
77298
77299         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
77300         in pre-C99 mode.
77301         Suggested by Mark D. Baushke and Larry Jones.
77302
77303 2006-06-23  Simon Josefsson  <jas@extundo.com>
77304             Bruno Haible  <bruno@clisp.org>
77305
77306         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
77307         Emit mostlyclean-local rule.
77308         (func_emit_tests_Makefile_am): Likewise.
77309         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
77310
77311 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
77312
77313         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
77314
77315 2006-06-23  Bruno Haible  <bruno@clisp.org>
77316
77317         * tests/test-stdint.c: Update to match ISO C 99 Technical
77318         Corrigendum 1.
77319
77320 2006-06-23  Bruno Haible  <bruno@clisp.org>
77321
77322         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
77323
77324 2006-06-23  Bruno Haible  <bruno@clisp.org>
77325
77326         * lib/stdint_.h: Treat IRIX like OpenBSD.
77327
77328 2006-06-23  Bruno Haible  <bruno@clisp.org>
77329
77330         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
77331         ISO C 99 Technical Corrigendum 1.
77332
77333 2006-06-22  Simon Josefsson  <jas@extundo.com>
77334
77335         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
77336         MinGW.
77337
77338 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77339
77340         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
77341         needed.  Some compiler complained about some of them.  Problem reported
77342         by Larry Jones in
77343         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
77344
77345 2006-06-21  Simon Josefsson  <jas@extundo.com>
77346
77347         * tests/test-getaddrinfo.c: New file.
77348
77349         * modules/getaddrinfo-tests: New file.
77350
77351         * MODULES.html.sh: Add inet_pton.
77352
77353         * modules/inet_pton: New file.
77354
77355 2006-06-21  Simon Josefsson  <jas@extundo.com>
77356
77357         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
77358         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
77359         of using the (limited) gnulib implementation on Windows XP.
77360
77361         * m4/inet_pton.m4: New file.
77362
77363 2006-06-21  Simon Josefsson  <jas@extundo.com>
77364
77365         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
77366         variable.
77367
77368         * lib/socket_.h: Don't define WINVER.
77369
77370         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
77371         slightly modified to work in gnulib.
77372
77373 2006-06-21  Simon Josefsson  <jas@extundo.com>
77374
77375         * doc/gnulib.texi (Windows sockets): Add.
77376
77377 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
77378
77379         * lib/read-file.c (fread_file): Start with buffer allocation of
77380         0 bytes rather than 1 byte; this simplifies the code.
77381         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
77382         code to free buffer and save/restore errno.
77383         (internal_read_file): Remove unused local.
77384
77385 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
77386
77387         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
77388         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
77389         Problem reported by Denis Excoffier in
77390         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
77391
77392 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77393
77394         * modules/sys_socket, modules/socklen: Include sys/types since
77395         FreeBSD 4.x's sys/socket.h needs it.
77396
77397 2006-06-19  Simon Josefsson  <jas@extundo.com>
77398
77399         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
77400
77401 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77402
77403         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
77404
77405 2006-06-19  Bruno Haible  <bruno@clisp.org>
77406
77407         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
77408         and FULL_PATH_INTTYPES_H in angle brackets.
77409         Reported by Mark D. Baushke <mdb@gnu.org>.
77410
77411 2006-06-17  Eric Blake  <ebb9@byu.net>
77412
77413         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
77414         errno.
77415
77416 2006-06-17  Bruno Haible  <bruno@clisp.org>
77417
77418         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
77419         <sys/inttypes.h>.
77420
77421 2006-06-17  Bruno Haible  <bruno@clisp.org>
77422
77423         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
77424         whether errno is declared. Assume <errno.h> declares errno.
77425
77426 2006-06-17  Bruno Haible  <bruno@clisp.org>
77427
77428         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
77429
77430 2006-06-17  Bruno Haible  <bruno@clisp.org>
77431
77432         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
77433         problem on Solaris 2.5.1.
77434
77435 2006-06-16  Eric Blake  <ebb9@byu.net>
77436
77437         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
77438         * lib/unicodeio.c [!defined errno]: Likewise.
77439         * lib/strtol.c [!defined errno]: Likewise.
77440         * lib/strtod.c [!defined errno]: Likewise.
77441
77442 2006-06-15  Eric Blake  <ebb9@byu.net>
77443
77444         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
77445
77446 2006-06-15  Eric Blake  <ebb9@byu.net>
77447
77448         * config/srclist.txt (ssize_t.m4): Lose sync.
77449
77450 2006-06-15  Bruno Haible  <bruno@clisp.org>
77451
77452         * modules/stdint (Files): Include m4/full-header-path.m4,
77453         m4/size_max.m4, m4/wchar_t.m4.
77454         (Makefile.am): Many more substitutions.
77455         * modules/stdint-tests: New file.
77456         * tests/test-stdint.c: New file.
77457
77458 2006-06-15  Bruno Haible  <bruno@clisp.org>
77459
77460         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
77461         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
77462         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
77463         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
77464         gl_CHECK_TYPE_SAME): New macros.
77465
77466 2006-06-15  Bruno Haible  <bruno@clisp.org>
77467
77468         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
77469
77470 2006-06-15  Bruno Haible  <bruno@clisp.org>
77471
77472         * lib/stdint_.h: Rewritten to be fully auto-configured.
77473         Fixes bug on HP-UX/IA64.
77474
77475 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
77476
77477         * lib/getdate.y (__attribute__): Don't define if already defined.
77478         Problem reported by Larry Jones.
77479         * lib/utimens.c (__attribute__): Likewise.
77480
77481 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
77482
77483         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
77484         reported by Andreas Schwab.
77485
77486 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77487             Bruno Haible  <bruno@clisp.org>
77488
77489         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
77490         check for the declaration of strnlen and a run test that exposes the
77491         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
77492         rpl_strndup.
77493
77494 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77495             Bruno Haible  <bruno@clisp.org>
77496
77497         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
77498
77499 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77500
77501         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
77502         compile test, for Tru64 4.0D.
77503
77504 2006-05-28  Karl Berry  <karl@gnu.org>
77505
77506         * config/srclist.txt (printf-args.c): lose sync.
77507
77508 2006-05-26  Martin Lambers  <marlam@marlam.de>
77509
77510         * lib/getpass.c: Updates the test for the native W32 API, and adds
77511         missing includes, thus fixing compilation warnings.
77512
77513 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77514
77515         * lib/exclude.c (exclude_fnmatch): New function.
77516         (excluded_file_name): Call exclude_fnmatch.
77517         * lib/exclude.h (excluded_file_name): New prototype
77518
77519 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
77520
77521         * lib/tempname.c (small_open, large_open): New macros.
77522         (__open, __open64) [!_LIBC]: Remove.
77523         (__gen_tempname): Use small_open and large_open instead of __open
77524         and __open64.  This fixes a portability bug on HP-UX 11.11i
77525         reported by Simon Wing-Tang in
77526         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
77527
77528 2006-05-24  Bruno Haible  <bruno@clisp.org>
77529
77530         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
77531         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
77532         Reported by Thorsten Maerz <torte@netztorte.de> via
77533         Aaron Stone <aaron@serendipity.cx>.
77534
77535 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77536
77537         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
77538         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
77539         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
77540         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
77541         not really conditional on the cache.
77542         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
77543
77544 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77545
77546         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
77547         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
77548         (my_usleep): Don't mishandle maximum value.
77549
77550 2006-05-19  Jim Meyering  <jim@meyering.net>
77551
77552         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
77553
77554 2006-05-17  Bruno Haible  <bruno@clisp.org>
77555
77556         Cygwin portability.
77557         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
77558
77559 2006-05-17  Bruno Haible  <bruno@clisp.org>
77560
77561         * lib/stdint_.h: Fix recognition of Cygwin.
77562
77563 2006-05-15  Bruno Haible  <bruno@clisp.org>
77564
77565         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
77566         on libtool patch by Ralf Wildenhues.
77567
77568 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77569
77570         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
77571         test for C99 conformance; (bool) 0.5 is an integer constant
77572         expression, but (bool) -0.5 is not.  Problem reported by Fedor
77573         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
77574
77575 2006-05-11  Simon Josefsson  <jas@extundo.com>
77576
77577         * m4/xvasprintf.m4: Fix obvious typo.
77578
77579 2006-05-11  Jim Meyering  <jim@meyering.net>
77580
77581         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
77582         James Lemley.
77583
77584 2006-05-10  Simon Josefsson  <jas@extundo.com>
77585
77586         * lib/md4.c: Typo fix, update copyright years.
77587         (K1, K2): Don't use L because it turn computations into 64-bit on
77588         64-bit platforms.
77589
77590 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
77591
77592         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
77593         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
77594         unwanted sign propagation, e.g., on hosts with 64-bit int.
77595         There still are some problems with reeelly weird theoretical hosts
77596         (e.g., 33-bit int) but it's not worth worrying about now.
77597         * lib/sha1.c (rol): Likewise.
77598         (K1, K2, K3, K4): Remove unnecessary L suffix.
77599
77600 2006-05-10  Bruno Haible  <bruno@clisp.org>
77601
77602         * lib/des.c: Cast to avoid warnings.
77603
77604 2006-05-09  Bruno Haible  <bruno@clisp.org>
77605
77606         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
77607         (Depends-on): Depend also on xsize, stdarg.
77608         (configure.ac): Add gl_XVASPRINTF.
77609
77610 2006-05-09  Bruno Haible  <bruno@clisp.org>
77611
77612         * m4/xvasprintf.m4: New file.
77613
77614 2006-05-09  Bruno Haible  <bruno@clisp.org>
77615
77616         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
77617         (EOVERFLOW): Define fallback value.
77618         (xstrcat): New function.
77619         (xvasprintf): Recognize the special case of a string concatenation.
77620
77621 2006-05-08  Eric Blake  <ebb9@byu.net>
77622
77623         * gnulib-tool (func_version): Base copyright year on CVS date.
77624         (func_emit_copyright_notice): New function.
77625         (func_emit_lib_Makefile_am): Use it.
77626         (func_emit_tests_Makefile_am): Likewise.
77627         (func_import): Likewise.
77628
77629 2006-05-08  Bruno Haible  <bruno@clisp.org>
77630
77631         * modules/stdarg: New file.
77632         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
77633
77634 2006-05-08  Bruno Haible  <bruno@clisp.org>
77635
77636         * m4/stdarg.m4: New file, from GNU gettext.
77637
77638 2006-05-08  Bruno Haible  <bruno@clisp.org>
77639
77640         * config/srclist.txt (build-aux/config.rpath): different from latest
77641         release.
77642
77643 2006-05-08  Bruno Haible  <bruno@clisp.org>
77644
77645         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
77646
77647 2006-05-05  Jim Meyering  <jim@meyering.net>
77648
77649         * m4/warning.m4: New file, derived from bison's file by the same name.
77650
77651 2006-05-03  Bruno Haible  <bruno@clisp.org>
77652
77653         * lib/stdint_.h: Shorter URL.
77654         * lib/inttypes.h: Likewise.
77655
77656 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77657
77658         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
77659
77660 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77661
77662         * lib/verify.h: Document the internals better.  Most of this change
77663         was written by Bruno Haible.
77664
77665 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77666
77667         * doc/verify.texi: New file, partly based on a proposal by
77668         Bruno Haible.
77669
77670 2006-05-02  Bruno Haible  <bruno@clisp.org>
77671
77672         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
77673         test from here...
77674         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
77675
77676 2006-04-29  Bruno Haible  <bruno@clisp.org>
77677
77678         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
77679         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
77680
77681 2006-04-29  Bruno Haible  <bruno@clisp.org>
77682
77683         * gnulib-tool: Make --update option actually work.
77684
77685 2006-04-29  Bruno Haible  <bruno@clisp.org>
77686
77687         * doc/gcd.texi: New file.
77688         * doc/gnulib.texi: Include it.
77689
77690 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
77691
77692         * lib/getdate.y (get_date): When adding relative date, start with the
77693         initial time, not with the result of the first mktime call.
77694
77695 2006-04-25  Bruno Haible  <bruno@clisp.org>
77696
77697         * gnulib-tool (func_import): Output the include directives in three
77698         blocks, sorted separately.
77699         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77700
77701 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77702
77703         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
77704         to define main with arguments, for C++.  Reported by Eric Blake.
77705         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
77706         Prefer 'int main ()' to 'int main (void)', for C++.
77707         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
77708         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
77709         for 'main', for C99 and C++.
77710
77711 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77712
77713         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
77714         Don't assume that exit status -1 is valid.
77715         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77716         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
77717         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
77718         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
77719         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
77720         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
77721         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
77722         functions can be used without declaring them, or that you can
77723         exit with status -1.
77724         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
77725
77726 2006-04-24  Karl Berry  <karl@gnu.org>
77727
77728         * config/srclist.txt (longdouble.m4): sync lost.
77729
77730 2006-04-24  Eric Blake  <ebb9@byu.net>
77731
77732         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
77733
77734 2006-04-24  Bruno Haible  <bruno@clisp.org>
77735
77736         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
77737         poll() implementation in AIX.
77738         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77739
77740 2006-04-24  Bruno Haible  <bruno@clisp.org>
77741
77742         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
77743         assigned exactly once.
77744
77745 2006-04-23  Claudio Fontana  <claudio@gnu.org>
77746             Bruno Haible  <bruno@clisp.org>
77747
77748         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
77749         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
77750         for AM_CPPFLAGS.
77751
77752 2006-04-23  Bruno Haible  <bruno@clisp.org>
77753
77754         * modules/copy-file: Depend on unistd.
77755         * modules/execute: Likewise.
77756         * modules/fatal-signal: Likewise.
77757         * modules/findprog: Likewise.
77758         * modules/mkdtemp : Likewise.
77759         * modules/pipe: Likewise.
77760         * modules/wait-process: Likewise.
77761
77762 2006-04-23  Bruno Haible  <bruno@clisp.org>
77763
77764         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
77765         condition was already detected.
77766         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77767
77768 2006-04-23  Bruno Haible  <bruno@clisp.org>
77769
77770         * lib/copy-file.c: Include <unistd.h> unconditionally.
77771         * lib/execute.c: Likewise.
77772         * lib/fatal-signal.c: Likewise.
77773         * lib/findprog.c: Likewise.
77774         * lib/mkdtemp.c: Likewise.
77775         * lib/pipe.h: Likewise.
77776         * lib/pipe.c: Likewise.
77777         * lib/wait-process.h: Likewise.
77778
77779 2006-04-23  Bruno Haible  <bruno@clisp.org>
77780
77781         * gnulib-tool (func_usage): Fix --import description. Document
77782         --update.
77783         (func_import): Create temporary file in a temporary directory, if
77784         --dry-run is specified. Silence errors from 'grep' when there are no
77785         m4 files in $m4dir.
77786         (func_create_testdir): Silence errors from 'grep' when there are no
77787         m4 files in $m4dir.
77788         Reported by Karl Berry <karl@freefriends.org>.
77789
77790 2006-04-20  Bruno Haible  <bruno@clisp.org>
77791
77792         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
77793         one argument, so that the code will be portable to Autoconf 2.60.
77794         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
77795         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77796         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
77797
77798 2006-04-19  Derek Price  <derek@ximbiot.com>
77799             Eric Blake  <ebb9@byu.net>
77800
77801         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
77802         rather than "/full/path.h".  Update comment to match.  Shorten &
77803         generalize m4_translit call via AS_TR_CPP.
77804
77805 2006-04-19  Derek Price  <derek@ximbiot.com>
77806             Eric Blake  <ebb9@byu.net>
77807
77808         * lib/inttypes.h: Correct grammar in comment.
77809
77810 2006-04-18  Derek Price  <derek@ximbiot.com>
77811             Paul Eggert  <eggert@cs.ucla.edu>
77812
77813         * modules/inttypes: New file.
77814         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
77815
77816 2006-04-18  Derek Price  <derek@ximbiot.com>
77817             Paul Eggert  <eggert@cs.ucla.edu>
77818
77819         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
77820         New files.
77821
77822 2006-04-18  Derek Price  <derek@ximbiot.com>
77823             Paul Eggert  <eggert@cs.ucla.edu>
77824
77825         * lib/inttypes.h: New file.
77826         * lib/strtoimax.c: Assume <inttypes.h>.
77827
77828 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
77829
77830         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
77831         isn't mounted.  Problem reported by Kir Kolyshkin.
77832
77833 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77834
77835         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
77836         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
77837         Derek R. Price.
77838         * lib/regex.h (RE_DUP_MAX): Update comment to match current
77839         implementation.
77840
77841 2006-04-12  Eric Blake  <ebb9@byu.net>
77842
77843         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
77844         is now done automatically by the corresponding Autoconf macro.
77845
77846 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
77847
77848         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
77849         time_r.h.
77850
77851 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77852
77853         Merge regex changes from libc, removing some of our
77854         POSIX-conformance changes that were rejected and redoing them in a
77855         less-intrusive way.
77856
77857         * lib/regcomp.c (re_compile_internal, init_dfa):
77858         Length arg is now size_t, not Idx.  All uses changed.
77859         (peek_token): Forward decl now says internal_function.
77860         (__re_error_msgid, __re_error_msgid_idx):
77861         Now static rather than extern with attribute_hidden.
77862         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
77863         For some reason libc prefers K&R style defns for external functions.
77864         (regerror) [!defined _LIBC]: Likewise.
77865         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
77866         (seek_collating_symbol_entry, lookup_collation_sequence_value):
77867         (build_range_exp, build_collating_symbol):
77868         Use K&R-style defn.
77869         (re_compile_fastmap): Use '\0' to memset, not 0.
77870         (utf8_sb_map): Make the calculations more obvious.
77871         (init_dfa, parse_bracket_exp, build_charclass_op):
77872         Call calloc and cast result, as glibc does.
77873         (init_word_char, fetch_token, peek_token, peek_token_bracket):
77874         (build_range_exp, build_collating_symbol):
77875         Now internal functions.
77876
77877         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
77878
77879         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
77880         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
77881         Don't depend on VMS; depend on __VMS instead, for POSIX
77882         namespace cleanness.
77883         (regoff_t): Define to ssize_t, not long int.
77884
77885         Remove the REG_ macros named below.  Instead, make the old names
77886         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
77887         __USE_GNU_REGEX.
77888         (REG_BACKSLASH_ESCAPE_IN_LISTS):
77889         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
77890         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
77891         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
77892         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
77893         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
77894         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
77895         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
77896         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
77897         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
77898         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
77899         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
77900         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
77901         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
77902         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
77903         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
77904         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
77905         (REG_NREGS):
77906         Remove.  All uses replaced by the old RE_* names.
77907         (RE_BACKSLASH_ESCAPE_IN_LISTS):
77908         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
77909         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
77910         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
77911         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
77912         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
77913         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
77914         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
77915         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
77916         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
77917         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
77918         Don't bother having these macros be independent of each others'
77919         values, since they no longer exist in the POSIX name space.
77920
77921         Rename the following member names back to their old names,
77922         unless !__USE_GNU_REGEX.  All uses changed back.
77923         (buffer): Renamed from re_buffer.
77924         (allocated): Renamed from re_allocated.
77925         (used): Renamed from re_used.
77926         (syntax): Renamed from re_syntax.
77927         (fastmap): Renamed from re_fastmap.
77928         (translate): Renamed from re_translate.
77929         (can_be_null): Renamed from re_can_be_null.
77930         (regs_allocated): Renamed from re_regs_allocated.
77931         (fastmap_accurate): Renamed from re_fastmap_accurate.
77932         (no_sub): Renamed from re_no_sub.
77933         (not_bol): Renamed from re_not_bol.
77934         (not_eol): Renamed from re_not_eol.
77935         (newline_anchor): Renamed from re_newline_anchor.
77936         (num_regs): Renamed from rm_num_regs.
77937         (start): Renamed from rm_start.
77938         (end): Renamed from rm_end.
77939
77940         (free_state): Move up a bit.
77941
77942         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
77943         #define to be empty.
77944         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
77945         when that is what is intended.
77946         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
77947         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
77948         (MAX): New macro.
77949         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
77950         All uses changed back to re_malloc, etc.  It's now the caller's
77951         responsibility to check for overflow; all callers changed.
77952         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
77953         (re_x2nrealloc): Remove.
77954         (free_state): Remove decl.
77955
77956         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
77957         (re_set_registers, re_exec):
77958         Use K&R-style defn.
77959
77960         2006-01-31  Roland McGrath  <roland@redhat.com>
77961
77962         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
77963         Reported by Mike Frysinger <vapier@gentoo.org>.
77964
77965         2006-01-15  Andreas Jaeger  <aj@suse.de>
77966
77967         [BZ #1950]
77968         * lib/regex_internal.c (re_string_reconstruct): Adjust for
77969         build_wcs_upper_buffer change.
77970         (build_wcs_upper_buffer): Change return type.
77971
77972         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
77973
77974         * lib/regex_internal.h: Include <stdint.h> if available.
77975
77976         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
77977
77978         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
77979
77980         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
77981
77982         * lib/regcomp.c: Adjust for changed secondary hash function.
77983
77984         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
77985
77986         * lib/regex.h: Pretty printing.
77987         Clean up namespace a bit.
77988
77989         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
77990
77991         * lib/regexec.c (update_cur_sifted_state, check_arrival,
77992         check_arrival_add_next_nodes): Avoid using uninitialized variable.
77993
77994         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77995                     Ulrich Drepper  <drepper@redhat.com>
77996
77997         [BZ #1302]
77998         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
77999         changed.
78000         (bitset_word_t): Renamed from bitset_word.  All uses changed.
78001
78002         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
78003
78004         [BZ #281]
78005         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
78006         * lib/regcomp.c: Remove unnecessary uses of
78007         unsigned RE_TRANSLATE_TYPE.
78008         * lib/regex_internal.h: Likewise.
78009         * lib/regex_internal.c: Likewise.
78010         * lib/regexec.c: Likewise.
78011         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
78012
78013         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
78014
78015         * lib/regexec.c (find_recover_state): Remove unnecessary
78016         initialization.
78017         (transit_state_bkref): Make DFA a const pointer.
78018         (get_subexp): Likewise.
78019         (check_arrival): Likewise.
78020         (update_cur_sifted_state): Likewise.
78021         (re_search_internal): Likewise.
78022         (prune_impossible_nodes): Likewise.
78023         (acquire_init_state_context): Likewise.
78024         (proceed_next_node): Likewise.
78025         (set_regs): Likewise.
78026         (free_fail_stack_return): Likewise.
78027         (check_arrival_expand_ecl): Mark DFA parameter as const.
78028         (check_arrival_expand_ecl_sub): Likewise.
78029         (check_subexp_limits): Likewise.
78030         (sub_epsilon_src_nodes):  Likewise.
78031         (add_epsilon_src_nodes):  Likewise.
78032         (merge_state_array): Likewise.
78033         (update_regs): Likewise.
78034         (build_trtable): Likewise.
78035         (sift_states_backward): Mark MCTX parameter as const.
78036         (build_sifted_states): Likewise.
78037         (update_cur_sifted_state): Likewise.
78038         (sift_states_mkref): Likewise.
78039         (check_arrival_expand_ecl): Mark eclosure as const.
78040         (check_dst_limits_calc_pos_1): Likewise.
78041         * lib/regex_internal.h (re_match_context_t): Make dfa a const
78042         pointer.
78043
78044         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
78045
78046         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
78047         (transit_state_sb): Likewise.
78048         (transit_state_mb): Likewise.
78049         (sift_states_iter_mb): Likewise.
78050         (check_arrival_add_next_nodes): Likewise.
78051         (check_node_accept_bytes): Change first parameter to pointer-to-const.
78052         [_LIBC] (re_search_2_stub): Use mempcpy.
78053
78054         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
78055         mbrtowc for very simple UTF-8 case.
78056
78057         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
78058         a pointer-to-const.
78059         (re_acquire_state_context): Likewise.
78060         * lib/regex_internal.h: Adjust prototypes.
78061
78062         * lib/regex.c: Prevent using C++ compilers.
78063
78064         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
78065         (re_acquire_state_context): Likewise.
78066
78067 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78068
78069         * modules/regex (Depends-on): Add ssize_t.
78070
78071 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78072
78073         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
78074         translation table.
78075
78076 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78077
78078         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
78079
78080 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
78081             Bruno Haible  <bruno@clisp.org>
78082
78083         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
78084         <sys/types.h> and <inttypes.h>.
78085
78086 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78087
78088         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
78089         `__error_t_defined', so argp.h will not typedef the former.
78090
78091 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
78092
78093         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
78094         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
78095         glibc names.  Even if glibc is changed to conform to POSIX, the
78096         traditional names will be available anyway, since regex depends on
78097         the extensions module.  Also, fix a longstanding typo in the
78098         implementation of Spencer ERE test #75 from grep 2.3.  Problems
78099         reported by Emanuele Giaquinta.  Also, change sense of cached
78100         variable, so that the message makes sense.
78101
78102 2006-03-24  Simon Josefsson  <jas@extundo.com>
78103
78104         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
78105         including some doc fixes.
78106         (base64_encode_alloc): Fix +1 bug on allocation failures.
78107
78108 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78109
78110         * lib/base64.c (base64_encode): Do not read past end of array with
78111         unsanitized input on systems with CHAR_BIT > 8.
78112
78113 2006-03-24  Eric Blake  <ebb9@byu.net>
78114
78115         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
78116
78117 2006-03-22  Karl Berry  <karl@gnu.org>
78118
78119         * config/srclist.txt (*setenv.[ch]): get from coreutils.
78120         * config/srclistvars.sh (COREUTILS): new var.
78121
78122 2006-03-17  Jim Meyering  <jim@meyering.net>
78123
78124         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
78125         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
78126
78127 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78128
78129         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
78130         no longer needs it.  Instead, check that regoff_t is as least
78131         as wide as ptrdiff_t.
78132
78133         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
78134         so that our regex.h stays compatible with the installed regex.
78135         This is helpful for installers who configure --without-included-regex.
78136         Problem reported by Emanuele Giaquinta.
78137
78138 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78139
78140         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
78141         Typedef to long int, not to off_, as POSIX will likely change
78142         in that direction.
78143
78144 2006-03-15  Eric Blake  <ebb9@byu.net>
78145
78146         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
78147
78148 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78149
78150         * lib/argp-help.c (validate_uparams): Fix typo
78151         * lib/argp-parse.c (argp_default_options): Consistently begin help
78152         messages with a lowercase letter.
78153
78154 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
78155
78156         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
78157         overrun buffers and shouldn't be used (much as gets shouldn't be
78158         used).
78159         * lib/time_r.c (asctime_r, ctime_r): Likewise.
78160
78161 2006-03-08  Simon Josefsson  <jas@extundo.com>
78162
78163         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
78164         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78165
78166 2006-03-08  Simon Josefsson  <jas@extundo.com>
78167
78168         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
78169         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78170
78171 2006-03-08  Simon Josefsson  <jas@extundo.com>
78172
78173         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
78174         signal that configure disabled the device.
78175
78176 2006-03-08  Simon Josefsson  <jas@extundo.com>
78177
78178         * build-aux/maint.mk: Fix refresh-po, to handle no translated
78179         languages.
78180
78181 2006-03-07  Simon Josefsson  <jas@extundo.com>
78182
78183         * modules/getopt (Depends-on): Add unistd.
78184
78185         * modules/unistd: New file.
78186
78187 2006-03-07  Simon Josefsson  <jas@extundo.com>
78188
78189         * modules/gc-random: New file.
78190
78191 2006-03-07  Simon Josefsson  <jas@extundo.com>
78192
78193         * m4/unistd_h.m4: New file.
78194
78195 2006-03-07  Simon Josefsson  <jas@extundo.com>
78196
78197         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
78198         test to be side-effect free by storing the result in the cache
78199         variable gl_cv_lib_readline, and moving the assignment of
78200         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
78201         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78202
78203 2006-03-07  Simon Josefsson  <jas@extundo.com>
78204
78205         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
78206         error on missing devices (the functions will return an error).
78207
78208         * m4/gc.m4: Move random stuff to gc-random.m4
78209
78210 2006-03-07  Simon Josefsson  <jas@extundo.com>
78211
78212         * lib/unistd_.h: New file.
78213
78214 2006-03-07  Simon Josefsson  <jas@extundo.com>
78215
78216         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
78217
78218 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78219
78220         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
78221         Problem reported by Juan Manuel Guerrero.
78222
78223 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78224
78225         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
78226         the unistd module.
78227         * lib/getlogin_r.c: Likewise.
78228         * lib/getlogin_r.h: Likewise.
78229         * lib/glob.c: Likewise.
78230         * lib/pagealign_alloc.c: Likewise.
78231         * lib/unistd_.h: Remove; no longer needed.
78232
78233 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78234
78235         * MODULES.html.sh (Support for systems lacking POSIX:2001):
78236         Add unistd.
78237         * modules/c-stack (Depends-on): Add unistd.
78238         * modules/getlogin_r: Likewise.
78239         * modules/glob: Likewise.
78240         * modules/pagealign_alloc: Likewise.
78241         * modules/unistd (Files): Remove lib/unistd_.h.
78242         (EXTRA_DIST): Remove.
78243         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
78244         need unistd_.h.
78245         (MOSTLYCLEANFILES): Remove unistd.h-t.
78246
78247 2006-03-03  Simon Josefsson  <jas@extundo.com>
78248
78249         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
78250
78251 2006-03-03  Simon Josefsson  <jas@extundo.com>
78252
78253         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
78254         libidn and bison.
78255
78256 2006-03-03  Simon Josefsson  <jas@extundo.com>
78257
78258         * build-aux/maint.mk: Add indent target.
78259
78260 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
78261
78262         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
78263         our replacement poll.h in any case, to avoid a differing
78264         declaration from a system header.  Seen on AIX.
78265
78266 2006-03-01  Simon Josefsson  <jas@extundo.com>
78267
78268         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
78269         <kasal@ucw.cz>.
78270
78271 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78272
78273         * modules/gettime (Depends-on): Add extensions module.
78274         * modules/nanosleep (Depends-on): Likewise.
78275         * modules/settime (Depends-on): Likewise.
78276
78277 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78278
78279         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
78280         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
78281         pedantically.
78282         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78283         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
78284
78285         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
78286         not "==".  Reported by Ralf Wildenhues.
78287
78288 2006-03-01  Karl Berry  <karl@gnu.org>
78289
78290         * doc/Copyright/request-*: new files, synced from gnuorg.
78291
78292 2006-03-01  Karl Berry  <karl@gnu.org>
78293
78294         * config/srclist.txt (Copyright/*): new entries.
78295
78296 2006-02-28  Simon Josefsson  <jas@extundo.com>
78297
78298         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
78299
78300 2006-02-27  Simon Josefsson  <jas@extundo.com>
78301
78302         * lib/base64.h: Indent #define's.  From Jim Meyering
78303         <jim@meyering.net>.
78304
78305 2006-02-27  Jim Meyering  <jim@meyering.net>
78306
78307         Revert the change of 2006-02-24, so these files can continue
78308         to be sync'd from gettext.
78309         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
78310         of `config.h'.
78311
78312 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78313
78314         * modules/intprops: New file.
78315         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
78316         Add intprops.
78317         * modules/getloadavg (Files): Remove lib/intprops.h.
78318         (Depends-on): Add intprops.
78319         * modules/human: Likewise.
78320         * modules/inttostr: Likewise.
78321         * modules/openat: Likewise.
78322         * modules/sig2str: Likewise.
78323         * modules/userspec: Likewise.
78324         * modules/utimecmp: Likewise.
78325         * modules/xnanosleep: Likewise.
78326         * modules/xstrtol: Likewise.
78327
78328 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
78329
78330         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
78331         * modules/lock-tests (TESTS): Use $(EXEEXT).
78332         * modules/tls-tests: Likewise.
78333         * modules/argp-tests: Likewise.
78334         (check_PROGRAMS): New var, replacing...
78335         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
78336
78337 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78338
78339         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
78340         `config.h'.
78341
78342 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
78343
78344         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
78345
78346 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78347
78348         Sync from coreutils.
78349         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
78350         gl_CHDIR_SAFER.
78351
78352 2006-02-22  Jim Meyering  <jim@meyering.net>
78353
78354         Sync from coreutils.
78355         * m4/chdir-safer.m4: New file.
78356
78357 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
78358
78359         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
78360         AT_FDCWD exceeds INT_MAX.
78361         * lib/openat.h (AT_FDCWD): Likewise.
78362
78363 2006-02-17  Eric Blake  <address@hidden>
78364
78365         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
78366
78367 2006-02-16  Simon Josefsson  <jas@extundo.com>
78368
78369         * modules/getaddrinfo (Depends-on): Add sys_socket.
78370
78371 2006-02-15  Simon Josefsson  <jas@extundo.com>
78372
78373         * build-aux/maint.mk: Add dsyntax-check rule.
78374
78375 2006-02-15  Eric Blake  <ebb9@byu.net>
78376
78377         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
78378         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
78379         'present but cannot compile' warnings on cygwin.
78380         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
78381         use ws2tcpip.h if sys/socket.h works.
78382         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
78383         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
78384
78385 2006-02-14  Simon Josefsson  <jas@extundo.com>
78386
78387         * modules/maintainer-makefile (Files): Rename.
78388
78389         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
78390         and (the local) Makefile.cfg to maint-cfg.mk.
78391
78392         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
78393         to the latter.
78394
78395         * modules/maintainer-makefile: New module.
78396
78397         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
78398         severaly stripped to make it possible to build it up from scratch
78399         with reliable tests.
78400
78401         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
78402         fixes to permit overriding the default actions when configure and
78403         makefile are not available.
78404
78405 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
78406
78407         Sync from coreutils.
78408         * modules/lstat (Depends-on): Don't depend on xalloc.
78409         (License): Change from GPL to LGPL, since this is now simply a
78410         replacement for a libc function.
78411
78412 2006-02-14  Jim Meyering  <jim@meyering.net>
78413
78414         Sync from coreutils.
78415
78416         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
78417         failure on deficient systems, and simplify gnulib lgpl dependencies.
78418         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
78419         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
78420
78421         * lib/xalloc-die.c: Remove unused definition of N_.
78422
78423 2006-02-14  Jim Meyering  <jim@meyering.net>
78424
78425         Sync from coreutils.
78426         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
78427         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
78428         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
78429         double-quote uses of that variable, to accommodate the rare case in
78430         which getmntent is available in none of the libraries checked.  This
78431         happens at least on FreeBSD 5.0.
78432
78433 2006-02-13  Simon Josefsson  <jas@extundo.com>
78434
78435         * gnulib-tool (Usage): Fix --import, from
78436         karl@freefriends.org (Karl Berry).
78437
78438 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78439
78440         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
78441
78442 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
78443
78444         * lib/argp-namefrob.h: Restore changes accidentally lost during the
78445         "autoupdate" on 2005-12-12.
78446
78447 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78448
78449         * modules/closeout (Depends-on): Remove atexit.
78450
78451 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78452
78453         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
78454         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
78455
78456 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
78457
78458         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
78459         __EXTENSIONS__ if this causes compilation to fail.  Problem
78460         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
78461         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
78462
78463 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
78464
78465         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
78466         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
78467         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
78468         All uses changed.
78469
78470 2006-01-26  Simon Josefsson  <jas@extundo.com>
78471
78472         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
78473         prototype is visible on mingw32.
78474
78475         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
78476         for mingw32.
78477
78478         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
78479         mingw32).
78480
78481 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
78482
78483         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
78484         attempt to open for write; this always fails, at least on POSIX
78485         hosts.  This reinstates the 2006-01-09 change, which was
78486         inadvertently removed.
78487
78488 2006-01-26  Bruno Haible  <bruno@clisp.org>
78489
78490         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
78491         Reported by Paul Eggert.
78492
78493 2006-01-26  Bruno Haible  <bruno@clisp.org>
78494             Paul Eggert  <eggert@cs.ucla.edu>
78495
78496         * lib/stdbool_.h (_Bool)
78497         [(! (defined __cplusplus || defined __BEOS__)
78498           && !defined __GNUC__
78499           && !(defined __HP_cc || defined __xlc__
78500                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
78501                || defined __sgi))]:
78502         #define to signed char in these cases too; this simplifies
78503         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
78504         etc., separately) and makes it more conservative.
78505
78506 2006-01-25  Simon Josefsson  <jas@extundo.com>
78507
78508         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
78509         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
78510         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
78511
78512 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78513
78514         * lib/argp-namefrob.h: Bugfix. Remove stray #
78515
78516 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
78517
78518         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
78519         so that we test the test.
78520         Check for yet another HP-UX cc bug involving *bool |= bool.
78521
78522 2006-01-25  Karl Berry  <karl@gnu.org>
78523
78524         * config/srclist.txt (vasnprintf.c): sync lost.
78525
78526 2006-01-25  Jim Meyering  <jim@meyering.net>
78527
78528         Sync from the stable (b5) branch of coreutils:
78529
78530         * lib/fts.c (fts_children): Don't let close() clobber errno from
78531         failed fchdir().
78532
78533         * lib/fts.c (fts_stat): When following a symlink-to-directory,
78534         don't necessarily interpret stat-fails+lstat-succeeds as indicating
78535         a dangling symlink.  That can also happen at least for ELOOP.
78536         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
78537         FYI, this bug predates the inclusion of fts.c in coreutils.
78538
78539         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
78540         in their own block, so pre-c99 compilers don't object.
78541
78542         Avoid the double-free (first in fts_read, second in fts_close) that
78543         would occur when an `active' directory is made inaccessible (e.g.,
78544         via chmod a-x) during a traversal.
78545         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78546         before returning.  Reproduce this failure by
78547         mkdir -p a/b; cd a; chmod a-x . b
78548         Reported by Stavros Passas.
78549
78550 2006-01-25  Jim Meyering  <jim@meyering.net>
78551
78552         * lib/fileblocks.c: Remove more useless parentheses.
78553         * lib/readutmp.h: Likewise.
78554
78555 2006-01-25  Bruno Haible  <bruno@clisp.org>
78556
78557         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
78558         warnings.
78559         Reported by Paul Eggert.
78560
78561 2006-01-25  Bruno Haible  <bruno@clisp.org>
78562
78563         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
78564         rid of a trap command. For Solaris sh.
78565         Reported by Mark D. Baushke <mdb@gnu.org>.
78566
78567 2006-01-24  Simon Josefsson  <jas@extundo.com>
78568
78569         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
78570         Bruno.
78571
78572 2006-01-24  Karl Berry  <karl@gnu.org>
78573
78574         * config/srclist.txt (argp-namefrob.h): sync lost.
78575
78576 2006-01-24  Jim Meyering  <jim@meyering.net>
78577
78578         * modules/openat (Files): Add lib/intprops.h.
78579         From Mark D. Baushke.
78580
78581 2006-01-24  Jim Meyering  <jim@meyering.net>
78582
78583         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
78584         Reported by Mark D. Baushke.
78585
78586 2006-01-24  Jim Meyering  <jim@meyering.net>
78587
78588         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
78589
78590 2006-01-24  Bruno Haible  <bruno@clisp.org>
78591
78592         * modules/strnlen (Maintainer): Change from glibc to all.
78593
78594 2006-01-24  Bruno Haible  <bruno@clisp.org>
78595
78596         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
78597         Patch by Paul Eggert.
78598
78599 2006-01-24  Bruno Haible  <bruno@clisp.org>
78600
78601         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
78602         already has it.
78603         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
78604         2005-11-26.
78605
78606         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
78607         'signed char' to avoid problems with the built-in _Bool type.
78608         Reported by Paul Eggert on 2005-11-26.
78609
78610 2006-01-24  Bruno Haible  <bruno@clisp.org>
78611
78612         * gnulib-tool (func_import): Avoid constructing complicated sed
78613         expressions inside backquote.
78614         Report and solution by Mark D. Baushke <mdb@gnu.org>.
78615
78616 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
78617
78618         These changes imported from libc.
78619         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
78620         test and two separate function calls.
78621         * lib/strndup.c (__strndup): Add libc_hidden_def.
78622
78623 2006-01-23  Simon Josefsson  <jas@extundo.com>
78624
78625         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
78626         Remove the test_*_SOURCES variable: automake infers it by default.
78627         * modules/tls-tests: Likewise.
78628
78629 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78630
78631         Work around porting bugs reported by Dieter in
78632         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
78633         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
78634         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
78635         Include "getopt.h" first, to check interface.
78636         (getenv): Declare only if defined HAVE_DECL_GETENV &&
78637         !HAVE_DECL_GETENV.
78638         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
78639         (__strndup): Revert to K&R-style function dfns, the glibc style.
78640         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
78641         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
78642         Include strnlen.h first, to get prototype properly.
78643         (strnlen): Renamed from __strnlen.
78644         Remove weak alias.
78645
78646 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78647
78648         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
78649
78650 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78651
78652         * config/srclist.txt: Adjust to reflect glibc reorganization.
78653         This affects only comments.
78654
78655 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78656
78657          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
78658          Reported by Bruce Korb <bkorb@gnu.org>.
78659
78660 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
78661
78662         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
78663         to pacify gcc -Wswitch-default.
78664
78665 2006-01-22  Bruno Haible  <bruno@clisp.org>
78666
78667         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
78668         temporary buffer for sprintf, take into account the precision also
78669         for 'd', 'i', 'u', 'o', 'x', 'X'.
78670
78671 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78672
78673         * modules/argp-tests: New module
78674         * tests/test-argp.c: New file
78675         * tests/test-argp-2.sh: New file
78676
78677 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78678
78679         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
78680         (__argp_base_name): Removed
78681         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
78682         typo.
78683         (__argp_base_name): Provide macro definition or extern declaration
78684         depending on the configuration
78685
78686 2006-01-20  Simon Josefsson  <jas@extundo.com>
78687
78688         * modules/inet_ntop (Depends-on): Depend on sys_socket.
78689
78690 2006-01-20  Simon Josefsson  <jas@extundo.com>
78691
78692         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
78693
78694 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78695
78696         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
78697         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
78698         Suggested by Bruno Haible.
78699
78700 2006-01-20  Karl Berry  <karl@gnu.org>
78701
78702         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
78703         until changes propagate, I guess.
78704
78705 2006-01-19  Simon Josefsson  <jas@extundo.com>
78706
78707         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
78708
78709 2006-01-19  Simon Josefsson  <jas@extundo.com>
78710
78711         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
78712
78713 2006-01-19  Simon Josefsson  <jas@extundo.com>
78714
78715         * gnulib-tool: Set check_PROGRAMS.
78716
78717         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78718         modules/des-tests, modules/gc-arcfour-tests,
78719         modules/gc-arctwo-tests, modules/gc-des-tests,
78720         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78721         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78722         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78723         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78724         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78725         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
78726         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
78727         test_*_SOURCES.
78728
78729 2006-01-18  Simon Josefsson  <jas@extundo.com>
78730
78731         * modules/socklen (Depends-on): Depend on sys_socket.
78732
78733 2006-01-18  Simon Josefsson  <jas@extundo.com>
78734
78735         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78736         modules/des-tests, modules/gc-arcfour-tests,
78737         modules/gc-arctwo-tests, modules/gc-des-tests,
78738         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78739         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78740         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78741         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78742         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78743         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
78744         $(EXEEXT) to automake TESTS variable, for mingw32.
78745
78746 2006-01-17  Simon Josefsson  <jas@extundo.com>
78747
78748         * modules/socklen (Include): Need sys/socket.h.
78749
78750 2006-01-17  Bruno Haible  <bruno@clisp.org>
78751
78752         * modules/ssize_t (Include): Add <sys/types.h>.
78753
78754 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
78755
78756         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
78757         it's not portable and it doesn't work with cross-compiles.
78758         Problem reported by Bruno Haible.  Fix missing-$ typo in
78759         'test "gl_cv_ignore_unused_libraries" ...' that prevented
78760         -zignore from being used with Sun's C compiler.
78761
78762 2006-01-12  Simon Josefsson  <jas@extundo.com>
78763
78764         * lib/base64.c: Fix warning, reported by Bruno Haible
78765         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
78766
78767 2006-01-12  Bruno Haible  <bruno@clisp.org>
78768
78769         * modules/ldd: New file.
78770         * build-aux/ldd.sh.in: New file.
78771         * MODULES.html.sh (Support for building libraries and executables): Add
78772         ldd.
78773
78774 2006-01-12  Bruno Haible  <bruno@clisp.org>
78775
78776         * m4/ldd.m4: New file.
78777
78778 2006-01-12  Bruno Haible  <bruno@clisp.org>
78779
78780         * gnulib-tool (func_import, func_create_testdir): Don't go into an
78781         endless loop while replacing $auxdir with build-aux.
78782
78783 2006-01-11  Simon Josefsson  <jas@extundo.com>
78784
78785         * lib/stdint_.h (SIZE_MAX): Add missing (.
78786
78787 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
78788
78789         Sync from coreutils.
78790         * lib/md5.c: Fix commentary typos.
78791         (alignof, UNALIGNED_P): No need for a GCC-specific version.
78792         * lib/md5.h (__attribute__): Remove; unused.
78793         * lib/sha1.c: Fix commentary to match md5 better.
78794         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
78795         so that we don't need to worry about alignment.  All uses changed.
78796         This merges the 2005-10-28 md5 change into sha1.
78797
78798 2006-01-11  Jim Meyering  <jim@meyering.net>
78799
78800         Sync from coreutils.
78801         * lib/md5.c (OP): Fix spacing.
78802
78803 2006-01-11  Bruno Haible  <bruno@clisp.org>
78804
78805         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78806         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
78807         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
78808
78809 2006-01-11  Bruno Haible  <bruno@clisp.org>
78810
78811         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78812         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
78813         the "early" section as well.
78814
78815 2006-01-11  Bruno Haible  <bruno@clisp.org>
78816
78817         Avoid "ar: no archive members specified" error on MacOS X.
78818         * gnulib-tool (func_modules_add_dummy): New function.
78819         (func_import, func_create_testdir): Invoke it.
78820
78821 2006-01-11  Bruno Haible  <bruno@clisp.org>
78822
78823         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
78824         with $auxdir in AC_CONFIG_FILES statements.
78825
78826 2006-01-11  Bruno Haible  <bruno@clisp.org>
78827
78828         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78829         Initialize also noinst_HEADERS to empty.
78830
78831 2006-01-11  Bruno Haible  <bruno@clisp.org>
78832
78833         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
78834         variables.
78835         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
78836         autoreconf.
78837
78838 2006-01-11  Bruno Haible  <bruno@clisp.org>
78839
78840         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
78841         overridable by the user.
78842         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78843
78844 2006-01-10  Simon Josefsson  <jas@extundo.com>
78845
78846         * modules/sys_socket: New file.
78847
78848 2006-01-10  Simon Josefsson  <jas@extundo.com>
78849
78850         * m4/sys_socket_h.m4: New file.
78851
78852 2006-01-10  Simon Josefsson  <jas@extundo.com>
78853
78854         * lib/socket_.h: New file.
78855
78856 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78857
78858         * modules/readutmp (Maintainer): Add myself.
78859
78860 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78861
78862         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
78863         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
78864         People who are still concerned with buggy memcmp implementations
78865         can invoke gl_FUNC_MEMCMP themselves.
78866
78867 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78868
78869         * lib/regex_internal.h (BITSET_WORD_BITS):
78870         Work around a bug in 64-bit PGC (before version 6.1-2), where the
78871         preprocessor mishandles large unsigned values as if they were signed.
78872         Problem reported by Claudio Fontana in
78873         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
78874
78875 2006-01-10  Jim Meyering  <jim@meyering.net>
78876
78877         Avoid the double-free (first in fts_read, second in fts_close) that
78878         would occur when an `active' directory is made inaccessible (e.g.,
78879         via chmod a-x) during a traversal.
78880         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78881         before returning.  Reproduce this failure by
78882         mkdir -p a/b; cd a; chmod a-x . b
78883         Reported by Stavros Passas.
78884
78885         Sync from coreutils.
78886         * lib/sha1.c: Tweak grammar in a comment.
78887
78888 2006-01-10  Jim Meyering  <jim@meyering.net>
78889
78890         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
78891         Patch by Joerg Sonnenberger.
78892
78893 2006-01-10  Bruno Haible  <bruno@clisp.org>
78894
78895         * modules/readutmp: Depend on module free.
78896         * modules/strtok_r: Depend on module restrict.
78897
78898 2006-01-10  Bruno Haible  <bruno@clisp.org>
78899
78900         * modules/gettext (configure.ac): Add an invocation of
78901         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
78902
78903 2006-01-10  Bruno Haible  <bruno@clisp.org>
78904
78905         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
78906         Reported by Werner Lemberg <wl@gnu.org>.
78907
78908 2006-01-10  Bruno Haible  <bruno@clisp.org>
78909
78910         * lib/localcharset.c: Update from GNU gettext.
78911
78912 2006-01-10  Bruno Haible  <bruno@clisp.org>
78913
78914         * lib/argp.h (__const): Remove macro. Use const instead.
78915         * lib/argp-fmtstream.h (__const): Likewise.
78916         * lib/glob_.h (__const): Remove macro.
78917         * lib/glob-libc.h: Use const instead of __const.
78918
78919 2006-01-10  Bruno Haible  <bruno@clisp.org>
78920
78921         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
78922         variable.
78923         Needed to avoid an automake error regarding the 'gettext' module.
78924
78925 2006-01-09  Simon Josefsson  <jas@extundo.com>
78926
78927         * modules/inet_ntop (Depends-on): Add restrict.
78928
78929 2006-01-09  Simon Josefsson  <jas@extundo.com>
78930
78931         * modules/gc-rijndael-tests (License): Put under LGPL.
78932
78933         * modules/gc-des-tests (License): Likewise.
78934
78935         * modules/gc-arcfour-tests (License): Likewise.
78936
78937         * modules/gc-arctwo-tests (License): Likewise.
78938
78939         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
78940
78941         * modules/gc-hmac-sha1-tests (Files): Likewise.
78942
78943         * modules/gc-hmac-md5-tests (License): Likewise.
78944
78945         * modules/gc-sha1-tests (License): Likewise.
78946
78947         * modules/gc-md5-tests (License): Likewise.
78948
78949         * modules/gc-md4-tests (License): Likewise.
78950
78951         * modules/gc-md2-tests (License): Likewise.
78952
78953         * modules/gc-tests (License): Likewise.
78954
78955         * modules/des-tests (License): Likewise.
78956
78957         * modules/md4-tests (License): Likewise.
78958
78959         * modules/md2-tests (License): Likewise.
78960
78961 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78962
78963         Sync from coreutils:
78964
78965         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
78966         * modules/lib-ignore: New file.
78967         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
78968         chdir-safer.m4, lchmod.m4.
78969         * modules/openat: Add mkdirat.c, openat-priv.h.
78970
78971 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78972
78973         Sync from coreutils.
78974         * m4/lib-ignore.m4: New file.
78975         * m4/lchmod.m4: New file.
78976
78977 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78978
78979         Sync from coreutils.
78980         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
78981         for write access: POSIX says that must fail.
78982         * lib/fts.c (diropen): Likewise.
78983         * lib/save-cwd.c (save_cwd): Likewise.
78984         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
78985         well, for minor improvements on hosts that lack O_DIRECTORY.
78986         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
78987         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
78988         Fall back on chown if open failed with EACCES.
78989
78990         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
78991         Report an error at compile-time if only a 1-second nominal clock
78992         resolution is found.
78993
78994         * lib/lchmod.h: New file.
78995         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
78996         (make_dir_parents): Use lchown rather than chown, and
78997         lchmod rather than chmod.
78998
78999         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
79000         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
79001         "proc" reported by n0dalus.
79002
79003         * lib/mountlist.c: Include <limits.h>.
79004         (dev_from_mount_options)
79005         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
79006         New function.  It no longer assumes "dev=" has the System V meaning
79007         on Linux (since it doesn't).  It also parses "dev=" more carefully.
79008         (read_file_system_list)
79009         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
79010         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
79011         dev= in that case.
79012
79013         * lib/posixtm.h (PDS_PRE_2000): New macro.
79014         * lib/posixtm.c (year): Arg is now syntax_bits rather than
79015         allow_century.  All usages changed.  Reject dates outside the range
79016         1969-1999 if PDS_PRE_2000 is used.
79017
79018 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79019
79020         Sync from coreutils.
79021         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
79022         (Time of day items): Mention the possibility of leap seconds.
79023         Problem reported by Dr. David Alan Gilbert.
79024
79025 2006-01-09  Jim Meyering  <jim@meyering.net>
79026
79027         Sync from coreutils.
79028
79029         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
79030
79031         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
79032
79033         * lib/modechange.c (mode_compile): Reject an invalid mode string
79034         that starts with an octal digit.  From Andreas Gruenbacher.
79035
79036         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
79037         and dup to open_safer and dup_safer, respectively.
79038         (openat_permissive): Fix typo in comment.
79039
79040         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
79041         "gettext.h"; either no longer needed or are guaranteed by openat.h.
79042         (_): Remove; no longer needed.
79043         (openat): Renamed from rpl_openat; no need for rpl_openat
79044         since openat.h renames openat for us.
79045         Replace most of the body with a call to openat_permissive,
79046         to avoid duplicate code.
79047         Port to (probably hypothetical) environments were mode_t is
79048         wider than int.
79049         (openat_permissive): Require mode arg, so that we can check
79050         types better.  Put it just after flags.  Change cwd failure
79051         indicator from pointer-to-bool to pointer-to-errno-value.
79052         All callers changed.
79053         Invoke openat_save_fail and/or openat_restore_fail if
79054         cwd_errno is null, so that openat can call us.
79055         (openat_permissive, fdopendir, fstatat, unlinkat):
79056         Simplify errno handling to avoid some duplicate code,
79057         as it's OK to set errno on success.
79058         * lib/openat.h: Revamp code so that function macros depend on
79059         __OPENAT_PREFIX only, not also on AT_FDCWD.
79060         (openat_ro): Remove.  Caller changed to use openat_permissive.
79061         (openat_permissive): Now a macro, if not a function.
79062         (openat_restore_fail, openat_save_fail): Now always functions,
79063         since mkdirat needs them even if __OPENAT_PREFIX is defined.
79064
79065         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
79066         and openat.c.
79067         * lib/mkdirat.c: Include openat-priv.h.
79068         Remove definitions of macros defined therein.
79069         * lib/openat.c: Likewise.
79070
79071         * lib/mkdirat.c (mkdirat): New file and function.
79072         * lib/openat.h (mkdirat): Declare.
79073
79074         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
79075
79076         * lib/openat.h (openat_permissive): Declare.
79077         (openat_ro): Define.
79078
79079         * lib/openat.c (EXPECTED_ERRNO): New macro.
79080         (openat_permissive): New function -- used in remove.c rewrite.
79081         (all functions): Set errno just before returning, only if there
79082         was an actual failure.
79083         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
79084
79085         Emulate openat-family functions using Linux's procfs, if possible.
79086         Idea and some code based on Ulrich Drepper's glibc changes.
79087
79088         * lib/openat.c: (BUILD_PROC_NAME): New macro.
79089         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
79090         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
79091         before falling back on save_cwd and restore_cwd.
79092         (fdopendir, fstatat, unlinkat): Likewise.
79093
79094         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
79095         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
79096
79097         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
79098         as second argument to va_arg.  Otherwise, some versions of gcc
79099         warn that `if this code is reached, the program will abort'.
79100
79101 2006-01-09  Jim Meyering  <jim@meyering.net>
79102
79103         Sync from coreutils.
79104         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
79105         Require openat-priv.h.
79106
79107 2006-01-09  Bruno Haible  <bruno@clisp.org>
79108
79109         * modules/strnlen (Include): Use strnlen.h.
79110
79111 2006-01-09  Bruno Haible  <bruno@clisp.org>
79112
79113         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
79114
79115 2006-01-09  Bruno Haible  <bruno@clisp.org>
79116
79117         * lib/sysexit_.h (EX_OK): New macro.
79118         Suggested by Martin Lambers <marlam@marlam.de>.
79119
79120 2006-01-09  Bruno Haible  <bruno@clisp.org>
79121
79122         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
79123         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
79124
79125 2006-01-09  Bruno Haible  <bruno@clisp.org>
79126
79127         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
79128         numbers.
79129
79130 2006-01-09  Bruno Haible  <bruno@clisp.org>
79131
79132         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
79133         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
79134         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
79135         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
79136
79137 2006-01-09  Bruno Haible  <bruno@clisp.org>
79138
79139         * build-aux/javacomp.sh.in: New file, moved from lib/.
79140         * modules/javacomp-script (Files): Update.
79141         (configure.ac): Add AC_CONFIG_FILES invocation.
79142         (EXTRA_DIST): Remove variable.
79143
79144         * build-aux/javaexec.sh.in: New file, moved from lib/.
79145         * modules/javaexec (Files): Update.
79146         (configure.ac): Add AC_CONFIG_FILES invocation.
79147         (EXTRA_DIST): Remove javaexec.sh.in.
79148
79149         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
79150         * modules/csharpcomp-script (Files): Update.
79151         (configure.ac): Add AC_CONFIG_FILES invocation.
79152         (EXTRA_DIST): Remove variable.
79153
79154         * build-aux/csharpexec.sh.in: New file, moved from lib/.
79155         * modules/csharpexec (Files): Update.
79156         (configure.ac): Add AC_CONFIG_FILES invocation.
79157         (EXTRA_DIST): Remove csharpexec.sh.in.
79158
79159 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79160
79161         Sync from coreutils.
79162
79163         Add POSIX ACL support
79164         * lib/acl.h (copy_acl, set_acl): Add declarations.
79165         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
79166         systems other than Linux.
79167         (chmod_or_fchmod): New function: use fchmod when possible,
79168         and chmod otherwise.
79169         (file_has_acl): Add a POSIX ACL implementation, with a
79170         Linux-specific subcase.
79171         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
79172         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
79173         acls are unsupported.
79174         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
79175         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
79176         are unsupported.
79177
79178 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79179
79180         Sync from coreutils.
79181         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
79182
79183 2006-01-07  Bruno Haible  <bruno@clisp.org>
79184
79185         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
79186         gl_EARLY.
79187
79188 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79189
79190         * lib/strftime.c (tzname): Don't declare if it is already #defined.
79191         Problem reported for Mingw by Mark Junker.
79192
79193 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79194
79195         * README: Gnulib normally doesn't generate a tarball.
79196
79197 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
79198
79199         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
79200         long int, not int, for nanosecond counts, so that people who are
79201         used to POSIX struct timespec won't be surprised.  Reported by Jim
79202         Meyering.
79203
79204 2005-12-28  Bruno Haible  <bruno@clisp.org>
79205
79206         * build-aux/config.rpath: Update from GNU gettext.
79207
79208 2005-12-16  Jim Meyering  <jim@meyering.net>
79209
79210         * modules/fprintftime: New module.
79211         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
79212
79213 2005-12-16  Jim Meyering  <jim@meyering.net>
79214
79215         * m4/fprintftime.m4: New file.
79216
79217 2005-12-16  Jim Meyering  <jim@meyering.net>
79218
79219         * lib/fprintftime.c, lib/fprintftime.h: New files.
79220
79221 2005-12-15  Simon Josefsson  <jas@extundo.com>
79222
79223         * modules/socklen (configure.ac): Fix M4 macro name, to align with
79224         new m4/socklen.m4.
79225
79226 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79227
79228         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
79229         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
79230
79231 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79232
79233         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
79234         * lib/argp-help.c (fill_in_uparams): Check if the constructed
79235         struct uparams is valid. Fall back to the default values if it is
79236         not.
79237
79238 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79239
79240         * modules/argp (Files): Add argp-pin.c
79241         (Depends-on): dirname
79242         (lib_SOURCES): Add argp-pin.c
79243
79244 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79245
79246         * m4/argp.m4:  Check if program_invocation_name and
79247         program_invocation_short_name are declared and define appropriate
79248         macros if they are not.
79249
79250 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79251
79252         * lib/argp-help.c (__argp_base_name): New function
79253         (__argp_short_program_name): Rewrite using __argp_base_name
79254         * lib/argp-namefrob.h: Define program_invocation_name and
79255         program_invocation_short_name if requested
79256         (__argp_base_name): Add prototype
79257         * lib/argp-parse.c (argp_def): Use gettext wrappers
79258         (argp_default_parser): Use __argp_base_name
79259         * lib/argp-pin.c: New file. Defines program_invocation_name and
79260         program_invocation_short_name on systems that lack them.
79261
79262 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79263
79264         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
79265         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79266         porting problem reported by Georg Schwarz in
79267         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79268
79269 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79270
79271         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
79272         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79273         porting problem reported by Georg Schwarz in
79274         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79275
79276 2005-12-05  Bruno Haible  <bruno@clisp.org>
79277
79278         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
79279         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
79280         Reported by Mark Junker <mjscod@gmx.de>.
79281
79282 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
79283
79284         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
79285         Use implementation from Albert Chin, with some
79286         comments/corrections by Stepan Kasal and myself.
79287
79288 2005-12-02  Bruno Haible  <bruno@clisp.org>
79289
79290         * gnulib-tool (func_import): Accept GPLed build tool modules when
79291         --lgpl is given.
79292         * modules/csharpcomp-script: New file.
79293         * modules/csharpcomp: Depend on it.
79294         * modules/javacomp-script: New file.
79295         * modules/javacomp: Depend on it.
79296         Suggested by Simon Josefsson.
79297
79298 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
79299
79300         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
79301         statement, to work around an HP-UX 10.20 compiler bug reported by
79302         Peter O'Gorman.
79303
79304 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79305
79306         * modules/savedir (Depends-on): Add openat.
79307
79308 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79309
79310         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
79311         (uintmax_t) [defined uintmax_t]: Do not declare.
79312         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
79313         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
79314         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
79315         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
79316         sake of portability to weird hosts that C allows (though we don't
79317         know of any practical examples).
79318
79319         * lib/savedir.h (fdsavedir): New decl.
79320         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
79321         contains most of the former guts of savedir.
79322         (savedir): Use savedirstream.
79323         Include "openat.h".
79324
79325 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79326
79327         * modules/obstack (Files): Add m4/ulonglong.m4.
79328         Problem reported by Davide Angelocola.
79329
79330 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
79331
79332         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
79333         coreutils no longer futzes with rounding modes.
79334
79335 2005-11-14  Jim Meyering  <jim@meyering.net>
79336
79337         * lib/mkstemp-safer.c: Include <config.h>, required for possible
79338         replacement of mkstemp.
79339
79340 2005-11-10  Simon Josefsson  <jas@extundo.com>
79341
79342         * lib/readline.c: Remove EOL.
79343
79344 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79345
79346         * modules/gethrxtime (Depends-on): Add gettime.
79347
79348 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79349
79350         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
79351         or gettimeofday; no longer needed.
79352
79353 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79354
79355         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
79356         time business.
79357         (gethrxtime) [! (HAVE_NANOUPTIME
79358         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
79359         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
79360         our own approximation.
79361
79362 2005-11-08  Eric Blake  <ebb9@byu.net>
79363
79364         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79365
79366 2005-11-08  Eric Blake  <ebb9@byu.net>
79367
79368         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79369
79370 2005-11-04  Bruno Haible  <bruno@clisp.org>
79371
79372         * gnulib-tool: Implement --update mode.
79373
79374 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79375
79376         Fix porting problem reported by Theodoros V. Kalamatianos.
79377         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
79378         Don't assume that futimes failing means we must fail.
79379
79380 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79381
79382         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
79383         variables to suggest the intended function of the PATH_MAX check.
79384
79385 2005-10-30  Kean Johnston  <jkj@sco.com>
79386
79387         Trivial changes to support SCO systems.
79388         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
79389         as PATH_MAX.
79390         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
79391         where __ptr is null when no I/O is pending.
79392
79393 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79394
79395         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
79396         leave errno alone.  Problem reported by Dmitry V. Levin.
79397
79398 2005-10-28  Simon Josefsson  <jas@extundo.com>
79399
79400         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
79401         Test more.
79402
79403         * tests/test-gc-md2.c, tests/test-md2.c: New files.
79404
79405         * modules/md2, modules/md2-tests: New files.
79406
79407 2005-10-28  Simon Josefsson  <jas@extundo.com>
79408
79409         * m4/inet_ntop.m4: More tests.
79410
79411         * m4/gc-md2.m4, md2.m4: New file.
79412
79413 2005-10-28  Simon Josefsson  <jas@extundo.com>
79414
79415         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
79416         "restrict" keywords, as per POSIX.  Protect the function
79417         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
79418         Don't use K&R prototypes.  Check the sprintf return values.
79419         Re-define EAFNOSUPPORT if not present.  Indent.
79420
79421         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
79422         suggested by Bruno Haible <bruno@clisp.org>.
79423
79424         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
79425
79426         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
79427
79428         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
79429         libgcrypt).
79430
79431         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
79432
79433         * lib/md2.h, lib/md2.c: New files.
79434
79435 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
79436
79437         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
79438         errno alone.  Problem reported by Frederic Jolliton.
79439
79440 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
79441
79442         * modules/verify (License): Change from GPL to LGPL.  This is a
79443         tiny module and there are apparently near-equivalents that are
79444         under the BSD license.
79445
79446 2005-10-24  Simon Josefsson  <jas@extundo.com>
79447
79448         * modules/sha1: Relicense to LGPL.
79449
79450 2005-10-24  Simon Josefsson  <jas@extundo.com>
79451
79452         * lib/md4.h: Shrink buffer size, now that we changed the type.
79453
79454 2005-10-23  Simon Josefsson  <jas@extundo.com>
79455
79456         * gnulib-tool (func_import): Fix --tests-base.
79457
79458 2005-10-22  Simon Josefsson  <jas@extundo.com>
79459
79460         * modules/arcfour (Depends-on): Need stdint.
79461
79462 2005-10-22  Simon Josefsson  <jas@extundo.com>
79463
79464         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
79465         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
79466
79467 2005-10-22  Simon Josefsson  <jas@extundo.com>
79468
79469         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
79470         suggested by Bruno Haible <bruno@clisp.org>.
79471
79472 2005-10-22  Simon Josefsson  <jas@extundo.com>
79473
79474         * lib/crc.h: Include stddef.h, for size_t.
79475
79476 2005-10-22  Simon Josefsson  <jas@extundo.com>
79477
79478         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
79479         arcfour_context struct (simplify test vector testing in GNU
79480         Shishi).
79481
79482 2005-10-21  Simon Josefsson  <jas@extundo.com>
79483
79484         * modules/des, modules/des-tests: New files.
79485
79486         * modules/gc-des, modules/gc-des-tests: New files.
79487
79488         * tests/test-des.c, tests/test-gc-des.c: New file.
79489
79490 2005-10-21  Simon Josefsson  <jas@extundo.com>
79491
79492         * modules/arctwo, modules/arctwo-tests: New files.
79493
79494         * tests/test-arctwo.c: New file.
79495
79496         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
79497
79498         * tests/test-gc-arctwo.c: New file.
79499
79500 2005-10-21  Simon Josefsson  <jas@extundo.com>
79501
79502         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
79503         Bruno Haible <bruno@clisp.org>.
79504
79505         * m4/gc-des.m4: New file.
79506
79507 2005-10-21  Simon Josefsson  <jas@extundo.com>
79508
79509         * m4/arctwo.m4: New file.
79510
79511         * m4/gc-arctwo.m4: New file.
79512
79513 2005-10-21  Simon Josefsson  <jas@extundo.com>
79514
79515         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
79516         block.
79517
79518 2005-10-21  Simon Josefsson  <jas@extundo.com>
79519
79520         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
79521         <bruno@clisp.org>.
79522
79523         * lib/hmac-sha1.c (hmac_sha1): Likewise.
79524
79525         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
79526         Bruno Haible <bruno@clisp.org>.
79527
79528         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
79529         <bruno@clisp.org>.
79530
79531 2005-10-21  Simon Josefsson  <jas@extundo.com>
79532
79533         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
79534
79535 2005-10-21  Simon Josefsson  <jas@extundo.com>
79536
79537         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
79538
79539 2005-10-21  Simon Josefsson  <jas@extundo.com>
79540
79541         * lib/des.h, lib/des.c: New files.
79542
79543         * lib/gc-gnulib.c: Support DES.c
79544
79545 2005-10-21  Simon Josefsson  <jas@extundo.com>
79546
79547         * lib/arctwo.h, lib/arctwo.c: New files.
79548
79549         * lib/gc-gnulib.c: Support ARCTWO.
79550
79551 2005-10-21  Simon Josefsson  <jas@extundo.com>
79552
79553         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
79554         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79555
79556 2005-10-21  Simon Josefsson  <jas@extundo.com>
79557
79558         * gnulib-tool (func_import, func_create_testdir): Define automake
79559         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
79560         Makefile.am snippet),
79561         suggested by Bruno Haible <bruno@clisp.org>.
79562
79563         * modules/gc (Makefile.am): Use it.
79564
79565 2005-10-21  Bruno Haible  <bruno@clisp.org>
79566
79567         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
79568         patch.
79569
79570 2005-10-19  Simon Josefsson  <jas@extundo.com>
79571
79572         * tests/test-gc-rijndael.c: New file.
79573
79574         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
79575
79576 2005-10-19  Simon Josefsson  <jas@extundo.com>
79577
79578         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
79579         interface too.
79580
79581 2005-10-19  Simon Josefsson  <jas@extundo.com>
79582
79583         * tests/test-gc-arcfour.c: New file.
79584
79585         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
79586
79587 2005-10-19  Simon Josefsson  <jas@extundo.com>
79588
79589         * modules/gc-md4, modules/gc-md4-tests: New file.
79590
79591         * tests/test-gc-md4.c: New file.
79592
79593 2005-10-19  Simon Josefsson  <jas@extundo.com>
79594
79595         * m4/gc-md4.m4: New file.
79596
79597 2005-10-19  Simon Josefsson  <jas@extundo.com>
79598
79599         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
79600         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
79601         <kasal@ucw.cz>.
79602
79603 2005-10-19  Simon Josefsson  <jas@extundo.com>
79604
79605         * m4/gc-arcfour.m4: New file.
79606
79607         * m4/gc-rijndael.m4: New file.
79608
79609 2005-10-19  Simon Josefsson  <jas@extundo.com>
79610
79611         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
79612
79613 2005-10-19  Simon Josefsson  <jas@extundo.com>
79614
79615         * lib/gc-gnulib.c: Support ARCFOUR.
79616
79617 2005-10-19  Simon Josefsson  <jas@extundo.com>
79618
79619         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
79620         support.
79621
79622         * lib/gc.h: Add ECB enum type.
79623
79624         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
79625
79626 2005-10-18  Simon Josefsson  <jas@extundo.com>
79627
79628         * tests/test-md5.c: New file.
79629
79630         * modules/md5-tests: New file.
79631
79632 2005-10-18  Simon Josefsson  <jas@extundo.com>
79633
79634         * tests/test-md4.c: New file.
79635
79636         * modules/md4, modules/md4-tests: New files.
79637
79638 2005-10-18  Simon Josefsson  <jas@extundo.com>
79639
79640         * m4/md4.m4: New file.
79641
79642 2005-10-18  Simon Josefsson  <jas@extundo.com>
79643
79644         * lib/md4.h, lib/md4.c: New files, based on md5.?.
79645
79646 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
79647
79648         * gnulib-tool (func_create_testdir): Omit the second check whether
79649         BUILT_SOURCES in nonempty.
79650
79651 2005-10-17  Simon Josefsson  <jas@extundo.com>
79652
79653         * tests/test-rijndael.c: New file.
79654
79655 2005-10-17  Simon Josefsson  <jas@extundo.com>
79656
79657         * modules/sha1: Depend on stdint instead of md5.
79658
79659         * modules/md5: Depend on stdint, remove uint32_t.
79660
79661 2005-10-17  Simon Josefsson  <jas@extundo.com>
79662
79663         * modules/gc-sha1-tests: New file.
79664
79665         * tests/test-gc-sha1.c: New file.
79666
79667 2005-10-17  Simon Josefsson  <jas@extundo.com>
79668
79669         * m4/md5.m4: Remove call to uint32_t.m4.
79670
79671 2005-10-17  Simon Josefsson  <jas@extundo.com>
79672
79673         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
79674
79675         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
79676         md5.h.
79677
79678         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
79679
79680         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
79681
79682 2005-10-17  Simon Josefsson  <jas@extundo.com>
79683
79684         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
79685
79686 2005-10-17  Simon Josefsson  <jas@extundo.com>
79687
79688         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
79689
79690 2005-10-17  Simon Josefsson  <jas@extundo.com>
79691
79692         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
79693
79694         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
79695
79696 2005-10-17  Bruno Haible  <bruno@clisp.org>
79697
79698         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
79699         that it can also be used in a test.
79700
79701 2005-10-16  Bruno Haible  <bruno@clisp.org>
79702
79703         * gnulib-tool (func_emit_tests_Makefile_am): Also define
79704         TESTS_ENVIRONMENT, so that individual tests can augment it.
79705
79706         * gnulib-tool (func_create_testdir): Use an intermediate target for
79707         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
79708         macros, like $(ALLOCA_H), which cannot be passed through the command
79709         line.
79710
79711 2005-10-15  Simon Josefsson  <jas@extundo.com>
79712
79713         * modules/rijndael-tests: New file.
79714
79715         * modules/rijndael: New file.
79716
79717 2005-10-15  Simon Josefsson  <jas@extundo.com>
79718
79719         * m4/rijndael.m4: New file.
79720
79721 2005-10-15  Simon Josefsson  <jas@extundo.com>
79722
79723         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
79724
79725         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
79726
79727 2005-10-14  Simon Josefsson  <jas@extundo.com>
79728
79729         * tests/test-arcfour.c: New file.
79730
79731         * modules/arcfour, modules/arcfour-tests: New files.
79732
79733 2005-10-14  Simon Josefsson  <jas@extundo.com>
79734
79735         * m4/arcfour.m4: New file.
79736
79737 2005-10-14  Simon Josefsson  <jas@extundo.com>
79738
79739         * lib/arcfour.h, lib/arcfour.c: New files.
79740
79741 2005-10-14  Roland McGrath  <roland@redhat.com>
79742
79743         Import from libc.  [BZ #1331]
79744         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
79745         macro argument.
79746         Reported by Matej Vela <vela@debian.org>.
79747
79748 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79749
79750         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
79751         include <wchar.h>; no longer needed.
79752
79753 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79754
79755         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
79756
79757 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
79758         and  Ulrich Drepper  <drepper@redhat.com>
79759
79760         Import from libc.
79761         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
79762         instead of inline stream orientation test and two separate
79763         function calls.  Pay no attention to USE_IN_LIBIO.
79764
79765 2005-10-13  Simon Josefsson  <jas@extundo.com>
79766
79767         * modules/gc-hmac-md5-tests: New file.
79768
79769         * tests/test-gc-hmac-sha1.c: New file.
79770
79771         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
79772
79773         * modules/gc-hmac-md5-tests: New file.
79774
79775         * tests/test-gc-md5.c: New file.
79776
79777         * modules/gc-md5-tests: New file.
79778
79779 2005-10-13  Simon Josefsson  <jas@extundo.com>
79780
79781         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
79782         Move memory allocation outside of loop.
79783
79784 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
79785
79786         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
79787         intermediate directory is in a read-only file system.  Problem
79788         reported by Eric Blake.
79789
79790 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
79791
79792         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
79793
79794 2005-10-12  Simon Josefsson  <jas@extundo.com>
79795
79796         * tests/test-hmac-sha1.c: New file.
79797
79798         * modules/hmac-sha1-tests: New file.
79799
79800         * modules/hmac-sha1: New file.
79801
79802 2005-10-12  Simon Josefsson  <jas@extundo.com>
79803
79804         * modules/gc-sha1: New file.
79805
79806 2005-10-12  Simon Josefsson  <jas@extundo.com>
79807
79808         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
79809
79810         * tests/test-gc-pbkdf2-sha1.c: New file.
79811
79812 2005-10-12  Simon Josefsson  <jas@extundo.com>
79813
79814         * modules/gc-md5, modules/gc-hmac-md5: New files.
79815
79816         * modules/gc (Files): Remove md5, memxor and hmac files.
79817
79818 2005-10-12  Simon Josefsson  <jas@extundo.com>
79819
79820         * m4/gc-pbkdf2-sha1.m4: New file.
79821
79822         * m4/gc-hmac-sha1.m4: New file.
79823
79824         * m4/gc-sha1: New file.
79825
79826         * m4/hmac-sha1.m4: New file.
79827
79828 2005-10-12  Simon Josefsson  <jas@extundo.com>
79829
79830         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
79831
79832         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
79833
79834 2005-10-12  Simon Josefsson  <jas@extundo.com>
79835
79836         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
79837         suggested by Bruno Haible <bruno@clisp.org>.
79838
79839 2005-10-12  Simon Josefsson  <jas@extundo.com>
79840
79841         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
79842
79843 2005-10-12  Simon Josefsson  <jas@extundo.com>
79844
79845         * lib/gc-pbkdf2-sha1.c: New file.
79846
79847         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
79848
79849 2005-10-12  Simon Josefsson  <jas@extundo.com>
79850
79851         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
79852
79853         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
79854
79855 2005-10-12  Simon Josefsson  <jas@extundo.com>
79856
79857         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
79858         GC_USE_HMAC_MD5, respectively.
79859
79860         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
79861         (gc_md5): Fix typo.
79862
79863         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
79864
79865         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
79866
79867         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
79868
79869 2005-10-12  Bruno Haible  <bruno@clisp.org>
79870
79871         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
79872         Reported by Stepan Kasal <kasal@ucw.cz>.
79873
79874 2005-10-11  Simon Josefsson  <jas@extundo.com>
79875
79876         * tests/test-crc.c: New file.
79877
79878         * modules/crc, modules/crc-tests: New files.
79879
79880 2005-10-11  Simon Josefsson  <jas@extundo.com>
79881
79882         * m4/crc.m4: New file.
79883
79884 2005-10-11  Simon Josefsson  <jas@extundo.com>
79885
79886         * lib/gc.h: Add gc_hash and gc_hash_buffer.
79887
79888         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
79889
79890         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
79891
79892 2005-10-11  Simon Josefsson  <jas@extundo.com>
79893
79894         * lib/crc.h, lib/crc.c: New files.
79895
79896         * lib/gc.h (gc_hash_buffer): Add doc.
79897
79898 2005-10-11  Bruno Haible  <bruno@clisp.org>
79899
79900         * modules/c-strcasestr: New file.
79901         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
79902
79903 2005-10-11  Bruno Haible  <bruno@clisp.org>
79904
79905         * modules/c-strcase: New file.
79906         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
79907
79908 2005-10-11  Bruno Haible  <bruno@clisp.org>
79909
79910         * lib/strcasecmp.c: Include limits.h.
79911         (strcasecmp): Avoid integer overflow on exotic platforms.
79912         * lib/strncasecmp.c: Include limits.h.
79913         (strncasecmp): Avoid integer overflow on exotic platforms.
79914         Reported by Paul Eggert.
79915
79916 2005-10-11  Bruno Haible  <bruno@clisp.org>
79917
79918         * lib/c-strcasestr.h: New file, from GNU gettext.
79919         * lib/c-strcasestr.c: New file, from GNU gettext.
79920
79921 2005-10-11  Bruno Haible  <bruno@clisp.org>
79922
79923         * lib/c-strcase.h: New file, from GNU gettext.
79924         * lib/c-strcasecmp.c: New file, from GNU gettext.
79925         * lib/c-strncasecmp.c: New file, from GNU gettext.
79926
79927 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79928
79929         * modules/mempcpy (License): GPL -> LGPL.
79930         * modules/strchrnul (License): Likewise.
79931         * modules/sysexits (License): Likewise.
79932
79933 2005-10-08  Simon Josefsson  <jas@extundo.com>
79934
79935         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
79936
79937 2005-10-07  Simon Josefsson  <jas@extundo.com>
79938
79939         * m4/memxor.m4: Remove gl_C_RESTRICT call.
79940
79941 2005-10-06  Simon Josefsson  <jas@extundo.com>
79942
79943         * tests/test-hmac-md5.c: New file.
79944
79945         * modules/hmac-md5-tests: New file.
79946
79947         * modules/hmac-md5: New file.
79948
79949 2005-10-06  Simon Josefsson  <jas@extundo.com>
79950
79951         * m4/hmac-md5.m4: New file.
79952
79953         * m4/memxor.m4: Require gl_C_RESTRICT.
79954
79955 2005-10-06  Simon Josefsson  <jas@extundo.com>
79956
79957         * lib/memxor.c (memxor): Avoid casts and warnings.
79958
79959 2005-10-06  Simon Josefsson  <jas@extundo.com>
79960
79961         * lib/hmac-md5.c: New file.
79962
79963         * lib/hmac.h: New file.
79964
79965 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79966
79967         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
79968         promotes to int, not unsigned int, to catch the AIX 5.3
79969         compiler bug.
79970
79971 2005-10-05  Simon Josefsson  <jas@extundo.com>
79972
79973         * modules/memxor: New file.
79974
79975         * modules/iconv (Files): Move config.rpath to havelib, it is used
79976         there.
79977
79978         * modules/havelib (Files): Add config.rpath.
79979
79980 2005-10-05  Simon Josefsson  <jas@extundo.com>
79981
79982         * m4/memxor.m4: New file.
79983
79984 2005-10-05  Simon Josefsson  <jas@extundo.com>
79985
79986         * lib/memxor.c (memxor): Fix compiler error.
79987
79988         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
79989         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
79990
79991         * lib/memxor.h, lib/memxor.c: New files.
79992
79993         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
79994         we assume all systems have it, suggested by Jim Meyering
79995         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
79996         any systems lack sys/socket.h; mingw32 is known to lack it, but we
79997         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
79998         same reasons.
79999
80000 2005-10-05  Simon Josefsson  <jas@extundo.com>
80001
80002         * config/srclist.txt: Add glibc bug 1423 for md5.h.
80003
80004 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
80005
80006         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
80007         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
80008         needed, since the source code now assumes these .h files.
80009
80010 2005-10-05  Derek Price  <derek@ximbiot.com>
80011
80012         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
80013
80014 2005-10-05  Bruno Haible  <bruno@clisp.org>
80015
80016         * modules/stdint (License): Change to LGPL.
80017
80018 2005-10-04  Simon Josefsson  <jas@extundo.com>
80019
80020         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
80021         D. Baushke" <mdb@gnu.org>.
80022
80023 2005-10-04  Bruno Haible  <bruno@clisp.org>
80024
80025         * lib/verify.h (verify_true): Provide alternative definition for C++.
80026
80027 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
80028
80029         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
80030         (SSIZE_MAX): New macro, if not already defined.
80031         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
80032         than 2 GiB.
80033
80034 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80035
80036         Sync from coreutils.
80037         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
80038         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
80039         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
80040         ULLONG_MAX doesn't work with 2.7.2.1.
80041
80042 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80043
80044         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
80045         From Ben Pfaff.
80046
80047         * modules/exclude (Depends-on): Depend on verify.
80048         * modules/strtoimax (Depends-on): Likewise.
80049         * modules/utimecmp (Depends-on): Likewise.
80050
80051 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80052
80053         * lib/exclude.c: Include verify.h.
80054         (verify): Remove.  All callers changed to use verify.h's version.
80055         * lib/strtoimax.c: Likewise.
80056         * lib/utimecmp.c: Likewis.e
80057
80058         Sync from coreutils.
80059         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
80060         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
80061         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
80062         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
80063         bother returning ENOSYS if settimeofday or stime fails; just let
80064         them return whatever errno they want to return.
80065         * lib/utimens.c: Include unistd.h, for dup2.
80066         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
80067         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
80068
80069 2005-10-02  Jim Meyering  <jim@meyering.net>
80070
80071         Sync from coreutils.
80072         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
80073         from glibc-2.2.5 that fails for read-only files.
80074
80075 2005-10-02  Jim Meyering  <jim@meyering.net>
80076
80077         Sync from coreutils.
80078         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
80079         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
80080         `#if HAVE_CONFIG_H'.
80081         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
80082         Remove AT_FDCWD test.
80083         Do not consume the fd unless successful.
80084         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
80085         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
80086         block, so that we don't even try to compile it if settimeofday is
80087         available.  This works around a compilation failure on OSF1 V5.1,
80088         due to stime requiring a `long int*' while tv_sec is `int'.
80089
80090 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
80091
80092         Sync from coreutils.
80093         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
80094         against `yes', rather than just testing for nonempty.
80095
80096 2005-10-01  Simon Josefsson  <jas@extundo.com>
80097
80098         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
80099         and Darwin.
80100
80101         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
80102         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
80103         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
80104         freeaddrinfo and gai_strerror are declared by the POSIX headers.
80105         Check if struct addrinfo is declared.
80106
80107 2005-10-01  Simon Josefsson  <jas@extundo.com>
80108
80109         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
80110         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
80111         AI_* and EAI_* definitions.  Protect function declarations.
80112
80113 2005-10-01  Jim Meyering  <jim@meyering.net>
80114
80115         Sync from coreutils.
80116
80117         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
80118         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
80119         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
80120         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80121         in the inet and nsl libraries.  Required on Solaris 5.7.
80122
80123 2005-10-01  Jim Meyering  <jim@meyering.net>
80124
80125         Sync from coreutils.
80126         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80127         in the inet and nsl libraries.  Required on Solaris 5.7.
80128
80129 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
80130
80131         * lib/getdelim.c (getdelim): Remove unused variables.
80132
80133 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
80134
80135         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
80136         so that the code works even with ancient cpp.  Portability problem
80137         with GCC 2.7.2.1 reported by Thomas M.Ott.
80138
80139 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
80140
80141         * modules/regex (Depends-on): Add strcase.
80142
80143         * modules/gethostname (Licence): Change from GPL to LGPL, since
80144         gethostname.c is a trivial implementation of a standard library
80145         function.
80146         * modules/poll (License): Change from GPL to LGPL, since it's
80147         derived from LGPL code.
80148
80149 2005-09-27  Jim Meyering  <jim@meyering.net>
80150
80151         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
80152         HAVE_CONFIG_H.
80153
80154         * lib/intprops.h (signed_type_or_expr__): Define.
80155         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
80156         for unsigned types.
80157
80158 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
80159
80160         * lib/verify.h (verify_expr): Remove, replacing with:
80161         (verify_true): New macro that returns true instead of void.
80162         (verify_type__): Remove.
80163         (verify): Use verify_true rather than verify_type__.
80164
80165 2005-09-26  Bruno Haible  <bruno@clisp.org>
80166
80167         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
80168         is necessary.
80169         (lib_SOURCES): Remove mbchar.c.
80170         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
80171         (Files): Add m4/mbrtowc.m4.
80172         * modules/mbiter: Likewise.
80173         * modules/mbuiter: Likewise.
80174
80175 2005-09-26  Bruno Haible  <bruno@clisp.org>
80176
80177         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
80178         compile mbchar.c if they are not both present.
80179         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
80180         * m4/mbiter.m4 (gl_MBITER): Likewise.
80181         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
80182         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
80183         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
80184
80185 2005-09-25  Jim Meyering  <jim@meyering.net>
80186
80187         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
80188         also uses socklen_t.
80189
80190 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
80191
80192         * lib/utimens.c (ENOSYS): Define if not already defined.
80193         (futimens): Support having a null PATH if the file descriptor
80194         is nonnegative.
80195
80196         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
80197         Remove.
80198         (__attribute): Define to empty unless GCC 3.1 or later.
80199         This works around a core dump on OpenBSD 3.4, which has GCC
80200         2.95.3, which dumps core when given __attribute__(()).  It also
80201         simplifies other tests, since we really don't want to bother with
80202         worrying about which ancient version of GCC supported what.
80203         Original problem reported by Yoann Vandoorselaere, with part of
80204         the fix suggested by Derek Price.
80205
80206 2005-09-24  Jim Meyering  <jim@meyering.net>
80207
80208         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
80209         so we can once again use a positive bitfield width of 1 -- now we
80210         don't have to explain why we were using a bitfield width of 2.
80211
80212 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80213
80214         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
80215         and similarly for the other external symbols.  Problem reported
80216         by James Gallager.
80217
80218         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
80219         bug reported by Jim Meyering.
80220
80221         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
80222         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
80223         not needed, since socklen is a prerequisite module.
80224
80225 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80226
80227         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
80228         Problem reported by Eric Blake.
80229         (getaddrinfo): Initialize se so that it's not garbage.
80230         Redo internal storage allocation so that it doesn't make unportable
80231         assumptions about alignment.
80232         Fix a memory leak.
80233
80234         * lib/utimens.c (futimens): Use futimesat if available.
80235         Prefer it to futimes since it doesn't have the futimes bug.
80236
80237         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
80238         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
80239         Instead, declare a function that returns a pointer to an array,
80240         and use verify_type__ to declare the size of the array.
80241         Problem and germ of a solution reported by Bruno Haible.
80242         (verify_type__): Use 2, not 1, for bitfield size, to avoid
80243         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
80244
80245 2005-09-23  Jim Meyering  <jim@meyering.net>
80246
80247         Sync from coreutils.
80248         Correct build failure (socklen_t not defined) on at least
80249         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
80250         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
80251
80252 2005-09-23  Jim Meyering  <jim@meyering.net>
80253
80254         * modules/getaddrinfo (Depends-on): Add socklen.
80255
80256 2005-09-23  Bruno Haible  <bruno@clisp.org>
80257
80258         * tests/test-verify.c: New file.
80259
80260 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80261
80262         Sync from coreutils.
80263
80264         * modules/argmatch (Depends-on): Add verify.
80265         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
80266         unistd-safer.
80267         * modules/save-cwd (Depends-on): Likewise.
80268
80269         * modules/openat (Files): Add lib/openat-die.c.
80270         (Depends-on): Remove error, exitfail.
80271         Add dirname.
80272
80273         * modules/verify: New file.
80274         * MODULES.html.sh (Diagnostics <assert.h>): New section,
80275         with "verify" module.
80276
80277 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80278
80279         Sync from coreutils.
80280
80281         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
80282         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
80283         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
80284         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
80285         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
80286         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
80287         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
80288         Don't bother checking for string.h, stdlib.h, unistd.h.
80289         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
80290         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
80291         module's job.
80292         * m4/jm-macros.m4 (gl_MACROS): Likewise.
80293         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
80294
80295         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
80296         (gl_GETDATE): Use it.
80297
80298         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
80299
80300 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80301
80302         Sync from coreutils.
80303
80304         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
80305         stat-time.h.
80306         * lib/argmatch.h: Include verify.h
80307         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
80308         (ARGMATCH_ASSERT): Remove; unused.
80309         * lib/canonicalize.c: Assume STDC_HEADERS.
80310         * lib/exclude.c: Include "strcase.h".
80311         * lib/regex_internal.h [!defined _LIBC]: Likewise.
80312         * lib/getusershell.c: Include stdio--.h rather than stdio.h
80313         and stdio-safer.h.
80314         (getusershell): Call fopen, not fopen_safer.
80315         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
80316         Do not include unistd-safer.h.
80317         (save_cwd): Don't call fd_safer; no longer needed
80318         now that we include fcntl--.h.
80319
80320         * lib/getdate.y (relative_time): New type.
80321         (RELATIVE_TIME_0): New constant.
80322         (parser_control): Use relative_time instead of doing it ourselves.
80323         (%union): Add new relative_time rel member.
80324         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
80325         Now typeless.
80326         (relunit, relunit_snumber): Now of type rel.
80327         (zone, rel, relunit, get_date): Adjust to above changes.
80328
80329         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
80330         Do not include unistd-safer.h.
80331         (getloadavg): Don't call fd_safer; no longer needed
80332         now that we include fcntl--.h.
80333
80334         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
80335         (make_dir_parents): Treat ENOSYS like EEXIST.
80336
80337         Improve quality of diagnostics on restore_cwd failure.
80338         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
80339         (make_dir_parents): Last arg is now int * (for errno), not bool *.
80340         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
80341         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
80342         each time through the loop.  Do not diagnose restore_cwd failure;
80343         that is the caller's job (and perhaps the caller does not care).
80344
80345         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
80346         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
80347         If the file already exists but is not a directory, don't bother
80348         to try to make its parents.
80349         Close potential file descriptor leak if we can't chdir("/") (!).
80350         Don't always return true if chdir($PWD) fails; return true only
80351         if the requested action was done successfully (except for the
80352         chdir($PWD)).
80353         Don't log final directory unless we actually made it.
80354         Refactor to avoid duplicate code to fix up permissions.
80355         Don't attempt to fix up parent permissions if chdir($PWD) fails.
80356
80357         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
80358         to make it a bit faster and (I hope) clearer.
80359         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
80360         Fix bug in formats like %2N.
80361
80362         * lib/verify.h: New file.
80363
80364 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80365
80366         Sync from coreutils.
80367         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
80368
80369 2005-09-22  Jim Meyering  <jim@meyering.net>
80370
80371         Sync from coreutils.
80372
80373         * m4/lstat.m4 (gl_FUNC_LSTAT):
80374         Use AC_LIBSOURCES to require lstat.c and lstat.h.
80375         Remove obsolete comment.
80376         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
80377         * m4/xstrtod.m4: Likewise.
80378
80379         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
80380
80381 2005-09-22  Jim Meyering  <jim@meyering.net>
80382
80383         Sync from coreutils.
80384
80385         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
80386
80387         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
80388         the .tm_year member, since otherwise gcc-4.0 would now warn about
80389         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
80390
80391         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
80392         order to avoid an unsuppressible warning from gcc on 64-bit systems.
80393
80394         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
80395         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
80396         when run in a time zone for which daylight savings time is in effect
80397         for the starting date.
80398
80399         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
80400         stop us from restricting permissions of just-created absolute-named
80401         directories.
80402         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
80403         to restore initial working directory.
80404         * lib/mkdir-p.c (make_dir_parents): New parameter:
80405         different_working_dir, to tell caller if/when we change the working
80406         directory and are unable to return to the initial one.
80407         * lib/mkdir-p.h (make_dir_parents): Update prototype.
80408         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
80409         `return false'.  This fixes a bug introduced on 2004-07-30.
80410
80411         * lib/openat.c (fdopendir): Be sure to close the supplied
80412         file descriptor before returning.  This makes our replacement
80413         implementation a little closer to Solaris's, where fdopendir
80414         ties the file descriptor to the returned DIR* pointer.
80415         * lib/openat.c (unlinkat): New function.
80416         * lib/openat.h (unlinkat): Add prototype.
80417         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
80418         (openat_restore_fail): Rename from openat_restore_die.
80419         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
80420
80421         Provide an alternative to exiting immediately upon save_cwd or
80422         restore_cwd failure.  Now, an application can arrange e.g.,
80423         to perform a longjump in that case.
80424         * lib/openat.c: Include dirname.h.
80425         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
80426         (rpl_openat, fdopendir, fstatat): Call openat_save_die
80427         and openat_restore_die rather than calling error directly.
80428         Don't include "error.h" or "exitfail.h"; they're no longer needed.
80429
80430         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
80431         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
80432         define.
80433
80434         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
80435         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
80436                             int utc, int nanoseconds);
80437         Background:
80438         date should not have to allocate a megabyte of virtual memory to
80439         handle a format argument like +%1048575T.  When implemented with
80440         strftime, it must allocate such a buffer, use strftime to fill it
80441         in, print it, then free it.
80442         With fprintftime, it simply prints everything and exits.
80443         With no need for memory allocation, that's one fewer way to fail.
80444         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
80445         optional field width, not before, so we accept %9:z, not %:9z.
80446         (my_strftime): Be sure to use L_('x') for literals.
80447
80448         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
80449         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
80450         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
80451         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
80452         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
80453         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
80454         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
80455         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
80456         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
80457         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
80458         * lib/xgethostname.c, lib/xreadlink.c:
80459         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
80460
80461         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
80462         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
80463         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
80464         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
80465         and don't include <sys/file.h>).
80466
80467 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
80468
80469         Sync from coreutils.
80470
80471         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
80472         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
80473         [!LDAV_DONE]: Avoid unused variable warning.
80474
80475 2005-09-21  Bruno Haible  <bruno@clisp.org>
80476
80477         * lib/unicodeio.h (unicode_to_mb): New declaration.
80478
80479 2005-09-20  Derek Price  <derek@ximbiot.com>
80480
80481         * lib/getaddrinfo.c: Don't include <netdb.h> included from
80482         getaddrinfo.h.
80483
80484 2005-09-20  Bruno Haible  <bruno@clisp.org>
80485
80486         * gnulib-tool: Remove trailing slashes from the values specified for
80487         --source-base, --m4-base, --tests-base, --aux-dir.
80488         Suggested by Simon Josefsson <jas@extundo.com>.
80489
80490 2005-09-20  Bruno Haible  <bruno@clisp.org>
80491
80492         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
80493         func_modules_to_filelist, func_import, func_create_testdir): Make all
80494         sorting results locale-independent, so that gnulib-cache.m4 doesn't
80495         change when gnulib-tool is invoked in a different locale.
80496
80497 2005-09-19  Simon Josefsson  <jas@extundo.com>
80498
80499         * m4/socklen.m4: Fix typo.
80500
80501 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80502
80503         Use a consistent style for including <config.h>.
80504         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
80505         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
80506         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
80507         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
80508         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
80509         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
80510         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
80511         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
80512         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
80513         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
80514         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
80515         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
80516         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
80517         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
80518         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
80519         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
80520         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
80521         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
80522         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
80523         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
80524         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
80525         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
80526         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
80527         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
80528         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
80529         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
80530         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
80531         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
80532         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
80533         lib/xstrtoumax.c, lib/yesno.c:
80534         Standardize inclusion of config.h.
80535         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
80536         lib/inttostr.h:  Removed inclusion of config.h from header files.
80537         * lib/inttostr.c:  Adjusted in-tree users.
80538         * lib/timespec.h: Remove superfluous warning to include config.h.
80539         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
80540         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
80541         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
80542         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
80543         config.h with HAVE_CONFIG_H.
80544
80545 2005-09-19  Jim Meyering  <jim@meyering.net>
80546
80547         * modules/pathmax (License): Change to LGPL.
80548
80549 2005-09-19  Derek Price  <derek@ximbiot.com>
80550
80551         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
80552
80553 2005-09-19  Bruno Haible  <bruno@clisp.org>
80554
80555         * gnulib-tool (import): Provide default for --tests-base.
80556
80557 2005-09-19  Bruno Haible  <bruno@clisp.org>
80558
80559         * doc/quote.texi: New file, extracted from gnulib.texi.
80560         * doc/ctime.texi: New file, extracted from gnulib.texi.
80561         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
80562         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
80563         * doc/gnulib.texi: Include them.
80564
80565 2005-09-18  Bruno Haible  <bruno@clisp.org>
80566
80567         Portability fix.
80568         * gnulib-tool (func_readlink): New function.
80569         (func_ln_if_changed): Use it.
80570
80571 2005-09-18  Bruno Haible  <bruno@clisp.org>
80572
80573         * gnulib-tool: Support --with-tests also with --import.
80574         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
80575         (func_import): Use variables $testsbase and $inctests. Emit a
80576         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
80577         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
80578         SUBDIRS += $testsdir.
80579         (func_create_testdir): Update.
80580
80581 2005-09-18  Bruno Haible  <bruno@clisp.org>
80582
80583         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
80584         instead of $dry_run.
80585         (func_cp_if_changed, func_mv_if_changed): Remove functions.
80586         (func_ln_if_changed): Don't handle dry-run here.
80587         (func_import): In dry-run mode, detect more precisely which actions
80588         would be performed, and don't use "...ing" verbs.
80589
80590 2005-09-18  Bruno Haible  <bruno@clisp.org>
80591
80592         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
80593         (func_import): Use join on two temporary files instead of three nested
80594         loops, in order to determine which files are new or old.
80595
80596 2005-09-18  Bruno Haible  <bruno@clisp.org>
80597
80598         * gnulib-tool (func_import): Comment out code that spits out the
80599         new files with --dry-run.
80600
80601 2005-09-18  Bruno Haible  <bruno@clisp.org>
80602
80603         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
80604
80605 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80606
80607         * lib/stat-time.h: New file.
80608         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
80609         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
80610         in a different way.
80611         (timespec_cmp): New function.
80612         * lib/utimecmp.c: Include stat-time.h.
80613         (SYSCALL_RESOLUTION): Depend on whether various struct stat
80614         members exist, not on the obsolescent ST_MTIM_NSEC.
80615         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
80616
80617 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80618
80619         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
80620
80621 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80622
80623         * MODULES.html.sh (File system functions): Add stat-time.
80624         * modules/stat-time: New file.
80625         * modules/timespec (Files): Remove m4/st_mtim.m4; this
80626         is now done in a different way, by the stat-time module.
80627         * modules/utimecmp (Depends-on): Add stat-time.
80628
80629 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
80630
80631         * m4/st_mtim.m4: Remove.  Superseded by...
80632         * m4/stat-time.m4: New file.
80633         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
80634         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
80635
80636 2005-09-15  Derek Price  <derek@ximbiot.com>
80637
80638         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
80639
80640 2005-09-15  Derek Price  <derek@ximbiot.com>
80641
80642         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
80643         * lib/regex_internal.c: Ditto, using this...
80644         (__GNUC_PREREQ): ...new macro.
80645         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
80646         using...
80647         (__GNUC_PREREQ): ...this new macro.
80648
80649         * lib/strstr.h: Include string.h. Define strstr as a macro here.
80650
80651 2005-09-15  Derek Price  <derek@ximbiot.com>
80652             Paul Eggert  <eggert@cs.ucla.edu>
80653
80654         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
80655         changes, consolidating in...
80656         * lib/regex_internal.h: ...this file.
80657
80658 2005-09-13  Jim Meyering  <jim@meyering.net>
80659
80660         * lib/canon-host.c: Filter through gnu indent and reword comments
80661         slightly.
80662         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
80663
80664 2005-09-13  Derek Price  <derek@ximbiot.com>
80665
80666         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
80667         failure.
80668         Reported by Jim Meyering  <jim@meyering.net>.
80669
80670 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80671
80672         * lib/base64.c: Typo.
80673         (base64_encode): Put b64str in initialized data section.
80674
80675 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
80676
80677         Merge glibc and coreutils changes into gnulib, plus a few
80678         extra fixes.
80679         * lib/md5.c: Use #error rather than a string.
80680         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
80681         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
80682         (__attribute__): Define to empty for non recent-GCC.
80683         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
80684         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
80685         Renamed from their non-__ counterparts, with new macros replacing
80686         them if not _LIBC.  Add __THROW attribute.
80687         (rol): Remove.
80688         (struct md5_ctx): Align buffer if using GCC.
80689         * lib/sha1.h (struct sha1_ctx): Likewise.
80690         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
80691         The old name was backwards.
80692         (NOTSWAP): Remove; not used.
80693         (rol): New macro, moved here from md5.h.
80694         (sha1_process_block): Remove a FIXME that doesn't make sense.
80695
80696 2005-09-12  Derek Price  <derek@ximbiot.com>
80697
80698         Return usable errors from canon-host.
80699         * lib/canon-host.h: New file.
80700         * lib/canon-host.c (canon_host): Wrap...
80701         (canon_host_r): ...this new function, which now relies exclusively on
80702         getaddrinfo.
80703         (ch_strerror): New function.
80704         (last_cherror): New global.
80705         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
80706         interface.
80707         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
80708         void *.
80709         (freeaddrinfo): Free ai->ai_canonname when set.
80710
80711 2005-09-12  Derek Price  <derek@ximbiot.com>
80712
80713         Make canon-host require getaddrinfo.
80714         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
80715         AC_LIBSOURCE canon-host.h.  Call...
80716         (gl_PREREQ_CANON_HOST): ...this new function, which requires
80717         gl_GETADDRINFO.
80718         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
80719
80720 2005-09-12  Derek Price  <derek@ximbiot.com>
80721
80722         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
80723         LGPL.
80724         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
80725
80726 2005-09-12  Derek Price  <derek@ximbiot.com>
80727
80728         * lib/gai_strerror.c: Include config.h when available.  Include
80729         getaddrinfo.h before other headers to test interface.
80730         Reported by Larry Jones <lawrence.jones@ugs.com>.
80731
80732 2005-09-12  Derek Price  <derek@ximbiot.com>
80733             Paul Eggert  <eggert@cs.ucla.edu>
80734
80735         * modules/glob (Files): Add glob-libc.h.
80736
80737 2005-09-12  Derek Price  <derek@ximbiot.com>
80738             Paul Eggert  <eggert@cs.ucla.edu>
80739
80740         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
80741         glob_.h, glob-libc.h.
80742         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
80743
80744 2005-09-12  Derek Price  <derek@ximbiot.com>
80745             Paul Eggert  <eggert@cs.ucla.edu>
80746
80747         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
80748         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
80749         protecting things that should be done only in gnulib contexts.
80750         * lib/glob_.h: New file, containing only the glob things needed for
80751         gnulib.
80752         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
80753         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
80754         (glob, globfree, glob_pattern_p): Now defined simply in terms of
80755         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
80756         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
80757         and to respect the namespace rules better.
80758
80759 2005-09-08  Simon Josefsson  <jas@extundo.com>
80760
80761         * modules/socklen: New file.
80762
80763 2005-09-08  Simon Josefsson  <jas@extundo.com>
80764
80765         * m4/socklen.m4: New file.
80766
80767 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80768
80769         * modules/utimens (Files): Add m4/utimbuf.m4, since
80770         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
80771         Reported by Sergey Poznyakoff.
80772
80773 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80774
80775         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
80776         definitions, since that's the preferred style in glibc.
80777         Fix a minor spacing issue, and update copyright notice to match
80778         glibc's.
80779
80780 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80781
80782         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
80783
80784 2005-09-06  Simon Josefsson  <jas@extundo.com>
80785
80786         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
80787         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
80788
80789 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80790
80791         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
80792         warning.
80793
80794 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80795
80796         * config/srclist.txt: Add glibc bug 1302.
80797
80798 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
80799
80800         Change bitset word type from unsigned int to unsigned long int,
80801         as this has better performance on typical 64-bit hosts.
80802         Port bitset code to hosts with unusual word sizes.
80803         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
80804         (build_collating_symbol):
80805         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
80806         argument is a bitset.  This is merely a style issue, but it makes
80807         it clearer that an entire array is expected.
80808         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
80809         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
80810         Port to the case where bitset_word is not the same as unsigned int.
80811         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80812         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
80813         Likewise.
80814         * lib/regexec.c (check_dst_limits_calc_pos_1,
80815         check_subexp_matching_top):
80816         (build_trtable, group_nodes_into_DFAstates):
80817         Likewise.
80818         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
80819         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
80820         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
80821         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
80822         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
80823         * lib/regcomp.c (optimize_subexps, lower_subexp):
80824         Work even if bitset_word has holes in its bitwise representation.
80825         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
80826         * lib/regexec.c (check_dst_limits_calc_pos_1,
80827         check_subexp_matching_top):
80828         Likewise.
80829         * lib/regex_internal.c (re_string_reconstruct):
80830         Don't assume UCHAR_MAX == 255.
80831         * lib/regex_internal.h (bitset_set_all): Likewise.
80832         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
80833         All uses changed.
80834         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
80835         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
80836         All uses changed.
80837         (BITSET_WORD_MAX): New macro.
80838         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
80839         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
80840         (bitset_empty, bitset_copy):
80841         Prefer sizeof (bitset) to multiplying it out ourselves.
80842         (bitset_not_merge): Remove; unused.
80843         (bitset_contain): Return bool, not unsigned int with one bit on.
80844         All callers changed.
80845         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
80846         alignment than re_node_set; do this by defining a new internal
80847         type struct dests_alloc and using it to allocate memory.
80848
80849 2005-09-05  Bruno Haible  <bruno@clisp.org>
80850
80851         * gnulib-tool (func_import): Fix comparison in handling of symbolic
80852         links.
80853
80854 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
80855
80856         * modules/size_max (Makefile.am): Add size_max.h
80857
80858 2005-09-04  Derek Price  <derek@ximbiot.com>
80859
80860         * gnulib-tool (func_import): Fix reversed $symbolic logic.
80861
80862 2005-09-03  Simon Josefsson  <jas@extundo.com>
80863
80864         * gnulib-tool: Fix typo.
80865
80866 2005-09-03  Simon Josefsson  <jas@extundo.com>
80867
80868         * config/srclist.txt: Add glibc bug 1293.
80869
80870 2005-09-03  Derek Price  <derek@ximbiot.com>
80871
80872         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
80873         From Larry Jones <lawrence.jones@ugs.com>.
80874
80875 2005-09-02  Simon Josefsson  <jas@extundo.com>
80876
80877         * modules/socklen: New file.
80878
80879 2005-09-02  Simon Josefsson  <jas@extundo.com>
80880
80881         * modules/havelib: New module.
80882
80883         * modules/gettext, modules/iconv, modules/lock, modules/readline:
80884         Use havelib.
80885
80886 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80887
80888         Check for arithmetic overflow when calculating sizes, to prevent
80889         some buffer-overflow issues.  These patches are conservative, in the
80890         sense that when I couldn't determine whether an overflow was possible,
80891         I inserted a run-time check.
80892         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
80893         macros.
80894         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
80895         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
80896         (re_xnrealloc, re_x2nrealloc): New inline functions.
80897         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
80898         parse_bracket_exp):
80899         (build_equiv_class, build_charclass): Check for arithmetic overflow
80900         in size expression calculations.
80901         * lib/regex_internal.c (re_string_realloc_buffers):
80902         (build_wcs_upper_buffer, re_node_set_add_intersect):
80903         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
80904         (re_dfa_add_node, register_state): Likewise.
80905         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
80906         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
80907         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
80908         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
80909
80910 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80911
80912         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80913         m4/ulonglong.m4.  Problem reported by Martin Lambers.
80914
80915 2005-09-02  Bruno Haible  <bruno@clisp.org>
80916
80917         Support for lib vs. lib64 distinction on biarch platforms.
80918         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
80919         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
80920         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
80921
80922 2005-09-02  Bruno Haible  <bruno@clisp.org>
80923
80924         * gnulib-tool (import): In the other first-use case, provide defaults
80925         as well.
80926
80927 2005-09-02  Bruno Haible  <bruno@clisp.org>
80928
80929         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
80930         patches not yet found in the latest gettext release.
80931
80932 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80933
80934         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
80935         to avoid a collision with bits/local_lim.h in glibc.
80936         All uses changed.  Problem reported by Dmitry V. Levin in
80937         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
80938
80939         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
80940         bugs in int versus size_t comparisons.
80941         (re_string_context_at): Fix bug where the code assumed that
80942         Idx is signed.
80943
80944         Use bool where appropriate.
80945         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
80946         All callers changed.
80947         (calc_eclosure_iter): Likewise, for ROOT arg.
80948         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
80949         (build_charclass_op): Likewise, for NON_MATCH arg.
80950         * lib/regex_internal.c (re_string_allocate, re_string_construct):
80951         (re_string_construct_common): Likewise, for ICASE arg.
80952         * lib/regexec.c (re_search_2_stub, re_search_stub):
80953         Likewise, for RET_LEN arg.
80954         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
80955         (set_regs): Likewise, for FL_BACKTRACK arg.
80956         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
80957         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
80958         (calc_eclosure_iter, parse_bracket_exp):
80959         Use bool for internal variables that are booleans.
80960         * lib/regexec.c (re_search_internal, check_matching,
80961         proceed_next_node):
80962         (set_regs, build_sifted_states, sift_states_bkref):
80963         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
80964         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80965         (find_collation_sequence_value):
80966         Likewise.
80967         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
80968         (re_node_set_compare):
80969         Return bool, not int. All callers changed.
80970         * lib/regexec.c (check_halt_node_context, check_dst_limits):
80971         (build_trtable, check_node_accept): Likewise.
80972         * lib/regex_internal.h: Include stdbool.h.
80973
80974         Fix bugs uncovered when converting to bool.
80975         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
80976         failure instead of charging ahead blindly.
80977         * lib/regex_internal.c (register_state): Likewise.
80978         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
80979         for freeing internal storage.
80980         (group_nodes_into_DFA_states): Use unsigned int, not int, for
80981         bitset pieces used as boolean, to avoid undefined behavior
80982         on hosts that do int overflow checking.
80983
80984 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80985
80986         * config/srclist.txt: Add glibc bugs 1285-1287.
80987
80988 2005-09-01  Jim Meyering  <jim@meyering.net>
80989
80990         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
80991         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
80992         Require gl_STAT_MACROS, too.
80993
80994 2005-09-01  Bruno Haible  <bruno@clisp.org>
80995
80996         * gnulib-tool (import): In the first-use case, provide defaults.
80997
80998 2005-09-01  Bruno Haible  <bruno@clisp.org>
80999
81000         * gnulib-tool (func_import): Remove the .tmp files.
81001
81002 2005-09-01  Bruno Haible  <bruno@clisp.org>
81003
81004         * gnulib-tool (func_import): Fix handling of symbolic links.
81005
81006 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81007
81008         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
81009         old glibc regex code mishandles strings longer than 2**31 bytes.
81010         This patch fixes this when the regex code is used in gnulib
81011         (i.e., outside glibc).
81012
81013         This patch should not affect the use of the regex code inside
81014         glibc.  No doubt this problem also needs to be handled for glibc
81015         as well, but the result will be an incompatible change to the
81016         glibc ABI, and the old ABI will have to be supported too.  That
81017         can be the the subject for another patch.
81018
81019         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
81020         governing whether the rest of this patch is active.  By default,
81021         the macro is disabled and the patch has no effect.
81022         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
81023         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
81024         (struct re_pattern_buffer, re_search, re_search_2, re_match):
81025         (re_match_2, re_set_registers): Use the new types.
81026         * lib/regex_internal.h (Idx, re_hashval_t): New types.
81027         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
81028         New macros.
81029         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
81030         (re_string_context_at, bin_tree_t, re_dfastate_t):
81031         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
81032         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
81033         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
81034         (re_string_char_size_at, re_string_wchar_at):
81035         (re_string_elem_size_at):
81036         Use the new types and macros to port to 64-bit hosts.
81037         Use unsigned types for internal values, so that the code
81038         mostly works even for arrays larger than SSIZE_MAX.
81039         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
81040         (search_duplicated_node, calc_eclosure_iter, fetch_number):
81041         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
81042         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
81043         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
81044         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
81045         (calc_inveclosure, parse_dup_op, build_range_exp):
81046         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
81047         (fetch_number, create_token_tree, mark_opt_subexp):
81048         Likewise.
81049         * lib/regex_internal.c (re_string_construct_common,
81050         create_ci_newstate):
81051         (create_cd_newstate, re_string_allocate, re_string_construct):
81052         (re_string_realloc_buffers, build_wcs_upper_buffer):
81053         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81054         (re_string_reconstruct, re_string_peek_byte_case):
81055         (re_string_fetch_byte_case, re_string_context_at):
81056         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81057         (re_node_set_init_copy, re_node_set_add_intersect):
81058         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81059         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81060         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81061         (re_acquire_state, re_acquire_state_context, register_state):
81062         Likewise.
81063         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
81064         search_cur_bkref_entry):
81065         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
81066         (re_search_internal, re_search_2_stub, re_search_stub)
81067         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
81068         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
81069         (update_cur_sifted_state, check_dst_limits):
81070         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81071         (check_subexp_limits, sift_states_bkref, merge_state_array):
81072         (check_subexp_matching_top, get_subexp, get_subexp_sub):
81073         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
81074         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81075         (expand_bkref_cache, check_node_accept_bytes):
81076         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
81077         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
81078         (acquire_init_state_context, check_halt_node_context):
81079         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
81080         (sift_states_backward, clean_state_log_if_needed):
81081         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
81082         (find_recover_state, transit_state_sb, transit_state_mb):
81083         (transit_state_bkref, build_trtable, match_ctx_clean):
81084         Likewise.
81085         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
81086         to work around an assumption that REG_MISSING is negative.
81087
81088         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
81089         (seek_collating_symbol_entry) [defined _LIBC]:
81090         (lookup_collation_sequence_value) [defined _LIBC]:
81091         (build_range_exp, build_collating_symbol) [defined _LIBC]:
81092         Use prototypes rather than old-style function definitions.
81093         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
81094         (transit_state_sb) [0]:
81095         (find_collation_sequence_value) [defined _LIBC]: Likewise.
81096
81097         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
81098         rm_eo.
81099
81100         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
81101         (optimize_subexps, lower_subexp):
81102         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
81103         since the signed shift might overflow.  Use 1u<<31 instead.
81104         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81105         Likewise.
81106         * lib/regexec.c (check_dst_limits_calc_pos_1,
81107         check_subexp_matching_top): Likewise.
81108
81109         * lib/regcomp.c (optimize_subexps, lower_subexp):
81110         Use CHAR_BIT rather than 8, for clarity.
81111         * lib/regexec.c (check_dst_limits_calc_pos_1):
81112         (check_subexp_matching_top): Likewise.
81113         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
81114         have to worry about portability issues when shifting it left.
81115         Remove no-longer-needed test for table_size > 0.
81116         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
81117         in a word, as the resulting behavior is undefined.
81118         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
81119         in one case, a <= should have been an <, and in another case the
81120         whole test was missing.
81121         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
81122         the standard name CHAR_BIT.
81123         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
81124         this is not true on one's complement and signed-magnitude hosts.
81125
81126         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
81127         next_last_offset.
81128         (struct re_dfa_t): Remove unused member states_alloc.
81129         * lib/regcomp.c (init_dfa): Don't initialize unused members.
81130
81131 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81132
81133         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
81134         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
81135         and large-file glibc and in 32-bit large-file Solaris.
81136
81137 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81138
81139         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
81140         lengths fit in regoff_t; this isn't true if regoff_t is the same
81141         width as size_t.
81142         * lib/regex.c (re_search_internal): 5th arg is LAST_START
81143         (= START + RANGE) instead of RANGE.  This avoids overflow
81144         problems when regoff_t is the same width as size_t.
81145         All callers changed.
81146         (re_search_2_stub): Check for overflow when adding the
81147         sizes of the two strings.
81148         (re_search_stub): Check for overflow when adding START
81149         to RANGE; if it occurs, substitute the extreme value.
81150
81151 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81152
81153         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
81154
81155 2005-08-31  Jim Meyering  <jim@meyering.net>
81156
81157         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
81158         a pointer-to-const.
81159         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
81160         (register_state): Likewise.
81161         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
81162         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81163         (group_nodes_into_DFAstates): Likewise.
81164
81165 2005-08-31  Jim Meyering  <jim@meyering.net>
81166
81167         * check-module: Add a FIXME comment.
81168
81169 2005-08-31  Eric Blake  <ebb9@byu.net>
81170
81171         * modules/unistd-safer (Files): Add unistd--.h.
81172         * modules/stdio-safer (Files): Add stdio--.h.
81173
81174 2005-08-31  Derek Price  <derek@ximbiot.com>
81175
81176         * lib/getdelim.c (getdelim): Return EOF on EOF.
81177         Reported by Larry Jones <lawrence.jones@ugs.com>.
81178
81179 2005-08-31  Bruno Haible  <bruno@clisp.org>
81180
81181         Avoid unnecessary diffs in the generated lib/Makefile.am.
81182         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
81183         the generated files.
81184         (func_import): Don't set cmd.
81185
81186 2005-08-31  Bruno Haible  <bruno@clisp.org>
81187
81188         * lib/strstr.c: Include <stddef.h>, for NULL.
81189         * lib/strcasestr.c: Likewise.
81190         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81191
81192 2005-08-31  Bruno Haible  <bruno@clisp.org>
81193
81194         * gnulib-tool: New option --macro-prefix.
81195         (func_import): Use macro_prefix.
81196         (import): Handle option --macro-prefix.
81197
81198 2005-08-31  Bruno Haible  <bruno@clisp.org>
81199
81200         * gnulib-tool (import): Rename most ac_* variables to cached_*.
81201         Also use new variables cached_lgpl, cached_libtool.
81202
81203 2005-08-31  Bruno Haible  <bruno@clisp.org>
81204
81205         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
81206         always instantiating them.
81207
81208 2005-08-31  Bruno Haible  <bruno@clisp.org>
81209
81210         * gnulib-tool (func_import): Read the previous cached settings
81211         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
81212         earlier added by gnulib but are now dropped. Warn when a gnulib file
81213         overwrites a non-gnulib file.
81214
81215 2005-08-31  Bruno Haible  <bruno@clisp.org>
81216
81217         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
81218         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
81219         projects that don't keep autogenerated files in CVS. Put into
81220         actioncmd only the specified modules, not the transitive closure.
81221
81222 2005-08-31  Bruno Haible  <bruno@clisp.org>
81223
81224         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
81225         Create directories that shall be filled.
81226         (import): Don't look for gl_* macros in configure.ac. Recurse across
81227         all directories containing a gnulib-cache.m4 files, if meaningful.
81228
81229 2005-08-31  Bruno Haible  <bruno@clisp.org>
81230
81231         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
81232         (import): Set seen_libtool when we see gl_LIBTOOL.
81233
81234 2005-08-31  Bruno Haible  <bruno@clisp.org>
81235
81236         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
81237         declaration macro definitions from generated gnulib.m4.
81238
81239 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
81240
81241         * lib/iconvme.h: Add prototype for iconv_alloc.
81242
81243 2005-08-29  Simon Josefsson  <jas@extundo.com>
81244
81245         * lib/iconvme.c: Fix errno.
81246
81247 2005-08-29  Bruno Haible  <bruno@clisp.org>
81248
81249         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
81250         that it works when the directory contains spaces.
81251
81252 2005-08-29  Bruno Haible  <bruno@clisp.org>
81253
81254         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
81255
81256 2005-08-29  Bruno Haible  <bruno@clisp.org>
81257
81258         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
81259         Emit more advice.
81260
81261 2005-08-29  Bruno Haible  <bruno@clisp.org>
81262         and Stepan Kasal  <kasal@ucw.cz>
81263
81264         * check-module: If more parameters are given, check each of them
81265         separately; add more exceptions, as noted by Jim Meyering.
81266         (check_module): New procedure.
81267         (%exempt_header): Now contains all exceptions.
81268
81269 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
81270
81271         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
81272
81273 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
81274
81275         * lib/iconvme.c: Split iconv_string into iconv_alloc.
81276
81277 2005-08-28  Bruno Haible  <bruno@clisp.org>
81278
81279         * m4/gnulib-tool.m4: New file.
81280
81281 2005-08-27  Jim Meyering  <jim@meyering.net>
81282
81283         * modules/unistd-safer (Files): Add pipe-safer.c.
81284         * modules/fcntl-safer (Files): Add creat-safer.c.
81285
81286 2005-08-27  Jim Meyering  <jim@meyering.net>
81287
81288         * m4/stdlib-safer.m4: New file.  From coreutils.
81289         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
81290         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
81291         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
81292         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
81293         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
81294
81295 2005-08-27  Jim Meyering  <jim@meyering.net>
81296
81297         * lib/fopen-safer.c: Merge minor changes from coreutils.
81298         * lib/dup-safer.c: Likewise.
81299         * lib/fd-safer.c: Likewise.
81300
81301         Merge from coreutils.
81302         * lib/stdio--.h: New file.
81303         * lib/stdlib--.h: New file.
81304         * lib/mkstemp-safer.c: New file.
81305
81306         GNU tar needs these.
81307         * lib/pipe-safer.c: New file.
81308         * lib/creat-safer.c: New file.
81309         * lib/fcntl--.h (creat): Define to creat_safer.
81310         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
81311         * lib/unistd--.h (pipe): Define to pipe_safer.
81312         * lib/unistd-safer.h: Declare pipe_safer.
81313
81314 2005-08-26  Simon Josefsson  <jas@extundo.com>
81315
81316         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
81317         Haible <bruno@clisp.org>.
81318
81319 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
81320
81321         * lib/regex_internal.h: Remove all references to
81322         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
81323         or better.
81324         (bitset_not, bitset_merge, bitset_not_merge):
81325         (bitset_mask, re_string_allocate, re_string_construct):
81326         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
81327         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
81328         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
81329         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
81330         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81331         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81332         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
81333         (re_acquire_state_context):
81334         Remove unnecessary forward decls.
81335         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
81336         Put __attribute at function definition,
81337         now that the function decl has been removed.
81338         * lib/regex_internal.c (re_string_peek_byte_case):
81339         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
81340         Likewise.
81341
81342 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
81343
81344         * m4/regex.m4: Add AC_PREREQ(2.50).
81345         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
81346
81347 2005-08-25  Simon Josefsson  <jas@extundo.com>
81348
81349         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
81350         __fsetlocking.
81351
81352 2005-08-25  Simon Josefsson  <jas@extundo.com>
81353
81354         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
81355         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
81356         GLIBC specific code.
81357
81358 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81359
81360         Make regex safe for g++.  This fixes one real bug (an "err"
81361         that should have been "*err").  g++ problem reported by
81362         Sam Steingold.
81363         * lib/regex_internal.h (re_calloc): New macro, consistent with
81364         re_malloc etc.  All callers of calloc changed to use re_calloc.
81365         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
81366         not int.  All callers changed.
81367         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
81368         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
81369         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
81370         (find_recover_state): Change "err" to "*err"; this fixes what
81371         appears to be a real bug.
81372         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
81373         versus int.
81374
81375 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81376
81377         * modules/regex (Depends-on): Add malloc, since the code
81378         assumes that !malloc(0) means failure.
81379
81380 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81381
81382         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
81383
81384         alloca modernization/simplification for regex.
81385         * lib/regex.c: Remove portability cruft for alloca.  This no longer
81386         needs to be at the start of the file, and can be moved into
81387         regex_internal.h and simplified.
81388         * lib/regex_internal.h: Include <alloca.h>.
81389         (__libc_use_alloca) [!defined _LIBC]: New macro.
81390         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
81391         now works outside glibc.
81392
81393 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81394
81395         * config/srclist.txt: Add glibc bugs 1241, 1245.
81396
81397 2005-08-25  Jim Meyering  <jim@meyering.net>
81398
81399         * lib/open-safer.c: Include <config.h>.
81400         Otherwise, we'd lose LARGEFILE support in any file using
81401         e.g. "fcntl--.h"
81402
81403 2005-08-25  Bruno Haible  <bruno@clisp.org>
81404
81405         * m4/minmax.m4: Require autoconf 2.52.
81406         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
81407         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
81408         alternatives of translit over the alphabet.
81409         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
81410
81411 2005-08-24  Simon Josefsson  <jas@extundo.com>
81412
81413         * tests/test-getpass.c: New file.
81414
81415 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81416
81417         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
81418         for GNU regex features.
81419
81420 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81421
81422         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
81423         * lib/regex.h (regerror): Likewise.
81424
81425         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
81426         requires this.  (The code never needed it.)
81427
81428         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
81429         All uses of recently-renamed identifiers changed to use the new,
81430         POSIX-compliant names.  The code will build and run just fine
81431         without these changes, but it's better to eat our own dog food
81432         and use the standard-conforming names.
81433
81434         * lib/regex.h: Fix a multitude of POSIX name space violations.
81435         These changes have an effect only for programs that define
81436         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
81437         do not change anything for programs compiled in the normal way.
81438         Also, there is no effect on the ABI.
81439
81440         (_REGEX_SOURCE): New macro.
81441         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
81442         defined and _GNU_SOURCE is not; this fixes a name space violation.
81443
81444         Rename the following macros to obey POSIX requirements.
81445         The old names are still visible as macros if _REGEX_SOURCE is defined.
81446         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
81447         RE_BACKSLASH_ESCAPE_IN_LISTS.
81448         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
81449         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
81450         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
81451         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
81452         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
81453         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
81454         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
81455         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
81456         (REG_INTERVALS): renamed from RE_INTERVALS.
81457         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
81458         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
81459         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
81460         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
81461         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
81462         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
81463         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
81464         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
81465         RE_UNMATCHED_RIGHT_PAREN_ORD.
81466         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
81467         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
81468         (REG_DEBUG): renamed from RE_DEBUG.
81469         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
81470         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
81471         unusual, since we can't clash with the POSIX REG_ICASE.
81472         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
81473         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
81474         (REG_NO_SUB): renamed from RE_NO_SUB.
81475         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
81476         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
81477         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
81478         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
81479         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
81480         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
81481         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
81482         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
81483         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
81484         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
81485         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
81486         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
81487         RE_SYNTAX_POSIX_MINIMAL_BASIC.
81488         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
81489         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
81490         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
81491         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
81492         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
81493         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
81494         (REG_FIXED): Renamed from REGS_FIXED.
81495         (REG_NREGS): Renamed from RE_NREGS.
81496
81497         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
81498         of other REG_* macros, since POSIX says the user is allowed to
81499         #undef these macros selectively.
81500
81501         (reg_errcode_t): Update comment stating what other tables need
81502         to be consistent.
81503
81504         Rename the following enum values to obey POSIX requirements.
81505         The old names are still visible as macros.
81506         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
81507         is not defined, since GNU is supposed to be a superset of POSIX as
81508         much as possible, and since we want reg_errcode_t to be a signed
81509         type for implementation consistency.
81510         (_REG_NOERROR): Renamed from REG_NOERROR.
81511         (_REG_NOMATCH): Renamed from REG_NOMATCH.
81512         (_REG_BADPAT): Renamed from REG_BADPAT.
81513         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
81514         (_REG_ECTYPE): Renamed from REG_ECTYPE.
81515         (_REG_EESCAPE): Renamed from REG_EESCAPE.
81516         (_REG_ESUBREG): Renamed from REG_ESUBREG.
81517         (_REG_EBRACK): Renamed from REG_EBRACK.
81518         (_REG_EPAREN): Renamed from REG_EPAREN.
81519         (_REG_EBRACE): Renamed from REG_EBRACE.
81520         (_REG_BADBR): Renamed from REG_BADBR.
81521         (_REG_ERANGE): Renamed from REG_ERANGE.
81522         (_REG_ESPACE): Renamed from REG_ESPACE.
81523         (_REG_BADRPT): Renamed from REG_BADRPT.
81524         (_REG_EEND): Renamed from REG_EEND.
81525         (_REG_ESIZE): Renamed from REG_ESIZE.
81526         (_REG_ERPAREN): Renamed from REG_ERPAREN.
81527         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
81528         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
81529         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
81530         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
81531
81532         (_REG_RE_NAME, _REG_RM_NAME): New macros.
81533         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
81534         changed.  But support the old name if the new one is not defined
81535         and if _REGEX_SOURCE.
81536
81537         Change the following member names in struct re_pattern_buffer.
81538         The old names are still supported if !_REGEX_SOURCE.
81539         The new names are always supported, regardless of _REGEX_SOURCE.
81540         (re_buffer): Renamed from buffer.
81541         (re_allocated): Renamed from allocated.
81542         (re_used): Renamed from used.
81543         (re_syntax): Renamed from syntax.
81544         (re_fastmap): Renamed from fastmap.
81545         (re_translate): Renamed from translate.
81546         (re_can_be_null): Renamed from can_be_null.
81547         (re_regs_allocated): Renamed from regs_allocated.
81548         (re_fastmap_accurate): Renamed from fastmap_accurate.
81549         (re_no_sub): Renamed from no_sub.
81550         (re_not_bol): Renamed from not_bol.
81551         (re_not_eol): Renamed from not_eol.
81552         (re_newline_anchor): Renamed from newline_anchor.
81553
81554         Change the following member names in struct re_registers.
81555         The old names are still supported if !_REGEX_SOURCE.
81556         The new names are always supported, regardless of _REGEX_SOURCE.
81557         (rm_num_regs): Renamed from num_regs.
81558         (rm_start): Renamed from start.
81559         (rm_end): Renamed from end.
81560
81561         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
81562         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
81563         Prepend __ to parameter names.
81564
81565         Undo yesterday's changes.
81566
81567 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81568
81569         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
81570         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
81571         lib/regex.c.
81572
81573 2005-08-24  Jim Meyering  <jim@meyering.net>
81574
81575         Sync from coreutils.
81576         * m4/fcntl-safer.m4: New file.
81577
81578         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
81579         and object files for this module.
81580
81581 2005-08-24  Jim Meyering  <jim@meyering.net>
81582
81583         Sync from coreutils.
81584         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
81585
81586 2005-08-24  Jim Meyering  <jim@meyering.net>
81587
81588         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
81589         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
81590
81591 2005-08-24  Jim Meyering  <jim@meyering.net>
81592
81593         * modules/fcntl-safer: New module.
81594         * modules/fts (Depends-on): Add fcntl-safer.
81595         * MODULES.html.sh (File descriptor based Input/Output):
81596         Add fcntl-safer.
81597
81598 2005-08-24  Bruno Haible  <bruno@clisp.org>
81599
81600         Support for unit test modules.
81601         * modules/README: Mention tests modules.
81602         * modules/TEMPLATE-TESTS: New file.
81603         * gnulib-tool: New options --extract-tests-module, --with-tests and
81604         --tests-base (unused for the moment).
81605         (testsbase, inctests): New variables.
81606         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
81607         (func_verify_module): Exclude TEMPLATE-TESTS.
81608         (func_verify_nontests_module, func_verify_tests_module): New functions.
81609         (func_get_dependencies): Add implicit dependency for tests modules.
81610         (func_get_tests_module): New function.
81611         (func_modules_transitive_closure): When --with-tests was specified,
81612         include the unit tests as well, unless explicitly avoided.
81613         (func_emit_lib_Makefile_am): Ignore the tests modules here.
81614         (func_emit_tests_Makefile_am): New function.
81615         (func_create_testdir): When --with-tests was specified, emit a
81616         tests/ directory.
81617         * MODULES.html.sh (Future developments): Update.
81618
81619 2005-08-24  Bruno Haible  <bruno@clisp.org>
81620
81621         * modules/tls-tests: New file.
81622         * tests/test-tls.c: New file, from GNU gettext.
81623
81624 2005-08-24  Bruno Haible  <bruno@clisp.org>
81625
81626         * modules/lock-tests: New file.
81627         * tests/test-lock.c: New file, from GNU gettext.
81628
81629 2005-08-24  Bruno Haible  <bruno@clisp.org>
81630
81631         * lib/lock.h: Add multiple inclusion guard.
81632         * lib/tls.h: Add multiple inclusion guard.
81633
81634 2005-08-24  Bruno Haible  <bruno@clisp.org>
81635
81636         * gnulib-tool: Add support for the --aux-dir option to
81637         --create-testdir, --create-megatestdir, --test, --megatest.
81638         (func_create_testdir, func_create_megatestdir): Optionally emit a
81639         AC_CONFIG_AUX_DIR directive.
81640         (create-testdir, create-megatestdir, test, megatest): Provide a
81641         default value for $auxdir.
81642
81643 2005-08-24  Bruno Haible  <bruno@clisp.org>
81644
81645         * gnulib-tool (import): Use compound statement instead of subshell
81646         where possible.
81647
81648 2005-08-24  Bruno Haible  <bruno@clisp.org>
81649
81650         * gnulib-tool (import): Change --aux-dir default to "build-aux".
81651
81652 2005-08-24  Bruno Haible  <bruno@clisp.org>
81653
81654         * gnulib-tool (func_version): Update.
81655
81656 2005-08-24  Bruno Haible  <bruno@clisp.org>
81657
81658         * gnulib-tool (func_import, func_create_testdir,
81659         func_create_megatestdir): Quote all autoconf macro arguments.
81660
81661 2005-08-24  Bruno Haible  <bruno@clisp.org>
81662
81663         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
81664         option --force, because --force causes the aclocal.m4 of each
81665         subdirectory to be newer than the corresponding config.h.in.
81666
81667 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81668
81669         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
81670         All contents moved to gl_REGEX.
81671         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
81672         assume that it does.
81673
81674 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81675
81676         * lib/regex.h (REG_NOSYS)
81677         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
81678         Define, since POSIX requires it as of 2001.
81679         (_REG_ENOSYS)
81680         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
81681         New private symbol, used to keep the enum signed in all cases.
81682         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
81683         Youngman in
81684         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
81685
81686         * lib/regex_internal.c (re_string_skip_chars, register_state):
81687         (calc_state_hash):
81688         Remove forward decls; no longer needed now that we use prototypes.
81689         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
81690         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
81691         (clean_state_log_if_needed): Likewise.
81692
81693 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81694
81695         * config/srclist.txt: Add glibc bugs 1231-1233.
81696
81697 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81698
81699         Fix problems reported by Sam Steingold in
81700         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
81701         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
81702         assumed that reg_errcode_t is a signed type, which is not
81703         necessarily true if _XOPEN_SOURCE is not defined.
81704         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
81705         since some compilers warn about it otherwise.
81706
81707 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81708
81709         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
81710         (init_word_char, create_initial_state, duplicate_node_closure):
81711         (fetch_token, peek_token_bracket, build_range_exp):
81712         (build_collating_symbol): Remove forward decls; no longer needed
81713         now that we use prototypes.
81714
81715         * lib/regcomp.c:
81716         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
81717         (re_compile_fastmap_iter, regcomp, regerror, regfree):
81718         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
81719         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
81720         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
81721         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
81722         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
81723         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
81724         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
81725         (build_range_exp, build_collating_symbol, parse_bracket_exp):
81726         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
81727         (build_charclass, build_charclass_op, fetch_number, create_tree):
81728         (create_token_tree, mark_opt_subexp, duplicate_tree):
81729         Use prototypes rather than old-style definitions.
81730
81731         * lib/regex_internal.c:
81732         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
81733         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
81734         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81735         (re_string_reconstruct, re_string_peek_byte_case):
81736         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
81737         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81738         (re_node_set_init_copy, re_node_set_add_intersect):
81739         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81740         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81741         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81742         (re_acquire_state, re_acquire_state_context, register_state):
81743         (create_ci_newstate, create_cd_newstate, free_state):
81744         Likewise.
81745         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
81746         re_search_2):
81747         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
81748         (re_search_internal, prune_impossible_nodes):
81749         (acquire_init_state_context, check_matching, static):
81750         (check_halt_node_context, check_halt_state_context, proceed_next_node):
81751         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
81752         (update_regs, sift_states_backward, build_sifted_states):
81753         (clean_state_log_if_needed, merge_state_array):
81754         (update_cur_sifted_state, add_epsilon_src_nodes):
81755         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
81756         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
81757         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
81758         (find_recover_state, check_subexp_matching_top, transit_state_mb):
81759         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
81760         (check_arrival, check_arrival_add_next_nodes):
81761         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81762         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81763         (check_node_accept_bytes, check_node_accept, extend_buffers):
81764         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
81765         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
81766         (sift_ctx_init):
81767         Likewise.
81768
81769         * lib/regex_internal.h:
81770         (re_string_allocate, re_string_construct, re_string_reconstruct):
81771         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
81772         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
81773         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
81774         (re_string_context_at, re_string_peek_byte_case):
81775         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
81776         is defined, since we now use prototypes always.
81777
81778         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
81779         C89 or better.  All uses removed.
81780
81781 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81782
81783         * config/srclist.txt: Add glibc bugs 1220-1227.
81784
81785 2005-08-20  Jim Meyering  <jim@meyering.net>
81786
81787         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
81788         of unused local, dfa.
81789
81790 2005-08-20  Bruno Haible  <bruno@clisp.org>
81791
81792         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
81793
81794 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81795
81796         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
81797         (re_node_set_insert_last, re_dfa_add_node):
81798         Rename local variables to avoid GCC shadowing warnings.
81799
81800 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81801
81802         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
81803         [defined lint]: Suppress bogus uninitialized-variable warnings.
81804
81805         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
81806         and let the caller return REG_ESPACE if out of space.  This
81807         removes an uninitialied-variable warning with GCC 4.0.1, and also
81808         avoids taking the address of a local variable.  All callers
81809         changed.
81810
81811 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81812
81813         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
81814         $LIBCSRC/posix/regexec.c.
81815         Add glibc bug 1217 for regcomp.c.
81816
81817 2005-08-19  Jim Meyering  <jim@meyering.net>
81818
81819         * lib/regexec.c (proceed_next_node): Redo local variables to
81820         avoid GCC shadowing warnings.
81821
81822 2005-08-18  Bruno Haible  <bruno@clisp.org>
81823
81824         * lib/strstr.c (strstr): Fix return value in multibyte case.
81825         * lib/strcasestr.c (strcasestr): Likewise.
81826
81827 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81828
81829         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
81830
81831 2005-08-17  Jim Meyering  <jim@meyering.net>
81832
81833         Make the %s format (seconds since the epoch) work for a negative
81834         number and when used with a zero-padded field width, e.g. %015s.
81835
81836         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
81837         label so that it precedes the code to set `digits'.  Otherwise,
81838         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
81839         print `00-22'.  Now, it prints `-0022', as it should.
81840
81841 2005-08-17  Bruno Haible  <bruno@clisp.org>
81842
81843         * modules/strstr (Files): Add m4/mbrtowc.m4.
81844         (Depends-on): Add mbuiter.
81845
81846 2005-08-17  Bruno Haible  <bruno@clisp.org>
81847
81848         * modules/strcasestr: New file.
81849         * MODULES.html.sh (String handling, based on ANSI C 89): Add
81850         strcasestr.
81851
81852 2005-08-17  Bruno Haible  <bruno@clisp.org>
81853
81854         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
81855
81856 2005-08-17  Bruno Haible  <bruno@clisp.org>
81857
81858         * modules/mbuiter: New file.
81859         * MODULES.html.sh (Extended multibyte and wide character utilities):
81860         Add mbuiter.
81861
81862 2005-08-17  Bruno Haible  <bruno@clisp.org>
81863
81864         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
81865         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
81866
81867 2005-08-17  Bruno Haible  <bruno@clisp.org>
81868
81869         * m4/strcasestr.m4: New file.
81870
81871 2005-08-17  Bruno Haible  <bruno@clisp.org>
81872
81873         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
81874         * lib/strstr.c: Completely rewritten, with multibyte locale support.
81875
81876 2005-08-17  Bruno Haible  <bruno@clisp.org>
81877
81878         * lib/strcasestr.h: New file.
81879         * lib/strcasestr.c: New file.
81880
81881 2005-08-17  Bruno Haible  <bruno@clisp.org>
81882
81883         * lib/strcasecmp.c: Use mbuiter.h.
81884
81885 2005-08-17  Bruno Haible  <bruno@clisp.org>
81886
81887         * lib/mbuiter.h: New file.
81888
81889 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
81890
81891         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
81892         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
81893         and gl_GETOPT are both invoked via different paths (as happens
81894         with GNU tar CVS because it uses both argp and getopt), the former
81895         wins.
81896
81897 2005-08-16  Bruno Haible  <bruno@clisp.org>
81898
81899         * modules/tls: New file.
81900         * MODULES.html.sh (Multithreading): Add tls.
81901
81902 2005-08-16  Bruno Haible  <bruno@clisp.org>
81903
81904         * modules/strnlen1: New file.
81905         * MODULES.html.sh (String handling): Add strnlen1.
81906
81907 2005-08-16  Bruno Haible  <bruno@clisp.org>
81908
81909         * modules/strcase (Files): Add m4/mbrtowc.m4.
81910         (Depends-on): Add strnlen1, mbchar.
81911
81912 2005-08-16  Bruno Haible  <bruno@clisp.org>
81913
81914         * modules/mbiter: New file.
81915         * MODULES.html.sh (Extended multibyte and wide character utilities):
81916         Add mbiter.
81917
81918 2005-08-16  Bruno Haible  <bruno@clisp.org>
81919
81920         * modules/mbfile: New file.
81921         * MODULES.html.sh (Extended multibyte and wide character utilities):
81922         Add mbfile.
81923
81924 2005-08-16  Bruno Haible  <bruno@clisp.org>
81925
81926         * modules/mbchar: New file.
81927         * MODULES.html.sh (Extended multibyte and wide character utilities):
81928         New section.
81929
81930 2005-08-16  Bruno Haible  <bruno@clisp.org>
81931
81932         * m4/tls.m4: New file, from GNU gettext.
81933
81934 2005-08-16  Bruno Haible  <bruno@clisp.org>
81935
81936         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
81937         always.
81938         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
81939
81940 2005-08-16  Bruno Haible  <bruno@clisp.org>
81941
81942         * m4/mbiter.m4: New file.
81943
81944 2005-08-16  Bruno Haible  <bruno@clisp.org>
81945
81946         * m4/mbfile.m4: New file.
81947
81948 2005-08-16  Bruno Haible  <bruno@clisp.org>
81949
81950         * m4/mbchar.m4: New file.
81951
81952 2005-08-16  Bruno Haible  <bruno@clisp.org>
81953
81954         * lib/tls.h: New file, from GNU gettext.
81955         * lib/tls.c: New file, from GNU gettext.
81956
81957 2005-08-16  Bruno Haible  <bruno@clisp.org>
81958
81959         * lib/strnlen1.h: New file.
81960         * lib/strnlen1.c: New file.
81961
81962 2005-08-16  Bruno Haible  <bruno@clisp.org>
81963
81964         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
81965         (mbi_init): Update.
81966         (mbi_avail, mbi_advance): Let the iteration end before the terminating
81967         NUL byte, not after it.
81968
81969 2005-08-16  Bruno Haible  <bruno@clisp.org>
81970
81971         * lib/strcase.h (strcasecmp): Add note in comments.
81972         * lib/strncasecmp.c: Use code from strcasecmp.c.
81973         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
81974         (strcasecmp): Work correctly in multibyte locales.
81975
81976 2005-08-16  Bruno Haible  <bruno@clisp.org>
81977
81978         * lib/mbiter.h: New file.
81979
81980 2005-08-16  Bruno Haible  <bruno@clisp.org>
81981
81982         * lib/mbfile.h: New file.
81983
81984 2005-08-16  Bruno Haible  <bruno@clisp.org>
81985
81986         * lib/mbchar.h: New file.
81987         * lib/mbchar.c: New file.
81988
81989 2005-08-16  Bruno Haible  <bruno@clisp.org>
81990
81991         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
81992         the valid ones. Makes the comparison operations transitive:
81993         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
81994         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
81995
81996 2005-08-15  Simon Josefsson  <jas@extundo.com>
81997
81998         * modules/ssize_t (License): Change to 'unlimited'.
81999
82000         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
82001
82002 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
82003
82004         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
82005         Add comments for each pending glibc patch.
82006
82007 2005-08-15  Bruno Haible  <bruno@clisp.org>
82008
82009         * lib/regex.h (__restrict_arr): Don't define to __restrict if
82010         __cplusplus is defined.
82011
82012 2005-08-14  Jim Meyering  <jim@meyering.net>
82013
82014         Sync from coreutils.
82015
82016         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
82017         Use the hash-table-based cycle-detection code not just when
82018         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
82019         Reported by James Youngman in
82020         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
82021         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
82022         FTS_TIGHT_CYCLE_CHECK.
82023         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
82024         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
82025         once again.
82026         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
82027         * lib/fts.c (fd_safer): Remove decl.
82028         Include fcntl--.h rather than unistd-safer.h
82029         (fts_safe_changedir): Don't call fd_safer; no longer needed
82030         now that we include fcntl--.h.
82031
82032 2005-08-12  Simon Josefsson  <jas@extundo.com>
82033
82034         * modules/getndelim2: Use ssize_t module.
82035         * modules/getnline: Likewise.
82036         * modules/safe-read: Likewise.
82037         * modules/xreadlink: Likewise.
82038
82039         * modules/ssize_t: New file.
82040
82041 2005-08-12  Simon Josefsson  <jas@extundo.com>
82042
82043         * m4/readline.m4: Look for termcap, curses or ncurses if required.
82044
82045 2005-08-12  Simon Josefsson  <jas@extundo.com>
82046
82047         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82048         ssize_t.
82049
82050 2005-08-12  Simon Josefsson  <jas@extundo.com>
82051
82052         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
82053         readline, getdelim and check_version.
82054         (Support for systems lacking ISO C 99: Sizes of integer types):
82055         Add size_max.
82056
82057 2005-08-12  Bruno Haible  <bruno@clisp.org>
82058
82059         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
82060
82061 2005-08-11  Simon Josefsson  <jas@extundo.com>
82062
82063         * modules/readline: New file.
82064
82065         * modules/strnlen (Files): Add strnlen.h.
82066
82067 2005-08-11  Simon Josefsson  <jas@extundo.com>
82068
82069         * m4/readline.m4: New file.
82070
82071 2005-08-11  Simon Josefsson  <jas@extundo.com>
82072
82073         * lib/readline.h, readline.c: New file.
82074
82075 2005-08-11  Simon Josefsson  <jas@extundo.com>
82076
82077         * doc/gnulib.texi (Initial import, Finishing touches): Mention
82078         gl_AVOID.
82079
82080 2005-08-11  Bruno Haible  <bruno@clisp.org>
82081
82082         * lib/strnlen.h (strnlen): Change parameter name to match comment.
82083
82084 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
82085
82086         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
82087
82088 2005-08-10  Simon Josefsson  <jas@extundo.com>
82089
82090         * tests/test-iconvme.c: New file.
82091
82092 2005-08-10  Simon Josefsson  <jas@extundo.com>
82093
82094         * m4/strnlen.m4: New file.
82095
82096         * m4/strndup.m4: Don't check for strnlen declaration, done in
82097         strnlen.m4.
82098
82099 2005-08-10  Simon Josefsson  <jas@extundo.com>
82100
82101         * lib/strndup.c: Use strnlen.h.
82102
82103         * lib/strnlen.h: New file.
82104
82105 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82106
82107         * README: Typos.
82108
82109 2005-08-02  Simon Josefsson  <jas@extundo.com>
82110
82111         * modules/readline: New file.
82112
82113 2005-08-02  Simon Josefsson  <jas@extundo.com>
82114
82115         * modules/getdelim: New file.
82116
82117         * modules/getline: Rewrite, don't use getndelim2.
82118
82119 2005-08-02  Simon Josefsson  <jas@extundo.com>
82120
82121         * m4/getline.m4: Separate out getdelim stuff into separate module.
82122
82123         * m4/getdelim.m4: New file.
82124
82125 2005-08-02  Simon Josefsson  <jas@extundo.com>
82126
82127         * lib/getline.h, getline.c: Rewrite.
82128
82129         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
82130
82131 2005-07-31  Bruno Haible  <bruno@clisp.org>
82132
82133         * lib/lock.h (gl_lock_initializer): New macro.
82134         (gl_lock_define_initialized): Use it.
82135         (gl_rwlock_initializer): New macro.
82136         (gl_rwlock_define_initialized): Use it.
82137         (gl_recursive_lock_initializer): New macro.
82138         (gl_recursive_lock_define_initialized): Use it.
82139
82140 2005-07-30  Karl Berry  <karl@gnu.org>
82141
82142         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
82143         Report from Ben Pfaff, regarding getopt.
82144
82145 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
82146
82147         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
82148         normal way.
82149         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
82150         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
82151         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
82152         (gl_GETOPT): Use the new macros.  Most of the implementation
82153         is moved to the new macros.  This is for programs like Emacs
82154         that don't want all the functionality of gl_GETOPT.
82155
82156 2005-07-26  Bruno Haible  <bruno@clisp.org>
82157
82158         * m4/lock.m4: Update from GNU gettext.
82159
82160 2005-07-26  Bruno Haible  <bruno@clisp.org>
82161
82162         * lib/lock.h: Update from GNU gettext.
82163         * lib/lock.c: Update from GNU gettext.
82164
82165 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
82166
82167         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
82168         obsolescent AC_TRY_RUN.  Include the default includes files, for
82169         'exit'.
82170
82171 2005-07-24  Bruno Haible  <bruno@clisp.org>
82172
82173         * modules/visibility: New file.
82174         * MODULES.html.sh (Misc): Add visibility.
82175
82176 2005-07-24  Bruno Haible  <bruno@clisp.org>
82177
82178         * m4/visibility.m4: New file.
82179
82180 2005-07-24  Bruno Haible  <bruno@clisp.org>
82181
82182         * doc/visibility.texi: New file.
82183
82184 2005-07-22  Bruno Haible  <bruno@clisp.org>
82185
82186         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
82187         $(ALLOCA_H), redundant through BUILT_SOURCES.
82188         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
82189         redundant through BUILT_SOURCES.
82190         * modules/byteswap (Makefile.am): Remove explicit dependency on
82191         $(BYTESWAP_H), redundant through BUILT_SOURCES.
82192         * modules/fnmatch (Makefile.am): Remove explicit dependency on
82193         $(FNMATCH_H), redundant through BUILT_SOURCES.
82194         * modules/getopt (Makefile.am): Remove explicit dependency on
82195         $(GETOPT_H), redundant through BUILT_SOURCES.
82196         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
82197         redundant through BUILT_SOURCES.
82198         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
82199         redundant through BUILT_SOURCES.
82200         * modules/stdbool (Makefile.am): Remove explicit dependency on
82201         $(STDBOOL_H), redundant through BUILT_SOURCES.
82202         * modules/stdint (Makefile.am): Remove explicit dependency on
82203         $(STDINT_H), redundant through BUILT_SOURCES.
82204         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
82205         Remove explicit dependency on $(SYSEXITS_H).
82206         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
82207
82208 2005-07-18  Simon Josefsson  <jas@extundo.com>
82209
82210         * lib/check-version.c (check_version): Accept identical versions too.
82211
82212 2005-07-18  Bruno Haible  <bruno@clisp.org>
82213
82214         * modules/lock: New file.
82215         * MODULES.html.sh (Multithreading): New section.
82216
82217 2005-07-18  Bruno Haible  <bruno@clisp.org>
82218
82219         * m4/lock.m4: New file, from GNU gettext.
82220
82221 2005-07-18  Bruno Haible  <bruno@clisp.org>
82222
82223         * lib/lock.h: New file, from GNU gettext.
82224         * lib/lock.c: New file, from GNU gettext.
82225
82226 2005-07-18  Bruno Haible  <bruno@clisp.org>
82227
82228         * lib/lock.h (gl_once_t): New type.
82229         (gl_once_define, gl_once): New macros.
82230         * lib/lock.c (fresh_once): New variable.
82231         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
82232         functions.
82233
82234 2005-07-16  Simon Josefsson  <jas@extundo.com>
82235
82236         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
82237         workaround, suggested by Bruno.
82238
82239 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82240
82241         * modules/xalloc (Depends-on): Add xalloc-die.
82242         * modules/xvasprintf (Depends-on): Add xalloc-die.
82243
82244 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82245
82246         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
82247         with a minor change.
82248
82249 2005-07-15  Bruno Haible  <bruno@clisp.org>
82250
82251         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
82252         When using lib/poll.c, define poll as rpl_poll.
82253
82254 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
82255
82256         * modules/argp (Depends-on): Remove unlocked-io.
82257
82258 2005-07-14  Derek Price  <derek@ximbiot.com>
82259
82260         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
82261         for glob symlink bug.
82262
82263 2005-07-14  Bruno Haible  <bruno@clisp.org>
82264
82265         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
82266         Instead, test for *_unlocked function declarations directly.
82267
82268 2005-07-11  Simon Josefsson  <jas@extundo.com>
82269
82270         * modules/size_max: New file.
82271
82272         * modules/xsize: Depend on size_max module for size_max.m4.
82273
82274 2005-07-11  Simon Josefsson  <jas@extundo.com>
82275
82276         * lib/size_max.h: New file.
82277
82278 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
82279
82280         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
82281         copyright symbol and the year.
82282         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
82283         (version_etc_va): Use parameterized copyright notice.
82284         Reword to conform to the current GNU coding standards.
82285
82286 2005-07-11  Karl Berry  <karl@gnu.org>
82287
82288         * doc/gnulib.texi (Quoting): new node.
82289         (Initial import): more info, from Patrice.
82290
82291 2005-07-11  Bruno Haible  <bruno@clisp.org>
82292
82293         * gnulib-tool (func_usage): Document option --avoid.
82294         (Command line options): Handle --avoid.
82295         (func_acceptable): New function.
82296         (func_modules_transitive_closure): Use it.
82297
82298 2005-07-11  Bruno Haible  <bruno@clisp.org>
82299
82300         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
82301         Reported by Jim Meyering.
82302
82303 2005-07-10  Bruno Haible  <bruno@clisp.org>
82304
82305         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
82306         Needed when size_t is smaller than 'unsigned int'.
82307         Reported by Paul Eggert.
82308
82309 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82310
82311         * modules/argp (Depends-on): Add unlocked-io
82312
82313 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82314
82315         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
82316         block of defines.
82317
82318 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
82319
82320         * config/srclist.txt: Comment out regcomp.c, since we have a porting
82321         fix now.
82322
82323 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
82324         and Paul Eggert  <eggert@cs.ucla.edu>
82325
82326         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
82327         in wint_t, not wchar_t.  Remove now-unnecessary cast.
82328
82329 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82330
82331         * modules/regex (Files): Add lib/regex_internal.c,
82332         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
82333         (Depends-on): Add extensions.
82334         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
82335
82336 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82337
82338         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
82339         pathconf.
82340         * m4/same.m4 (gl_SAME): Likewise.
82341         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
82342
82343         * m4/regex.m4: Adjust to new libc regex implementation.
82344         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
82345         all the .c and .h parts of (the new) regex.
82346         Quote the m4 stuff better.
82347         Check for RE_ICASE bug of old gnulib.
82348         Check for REG_STARTEND of recent libc.
82349         Rename local variables from jm_* to gl_*.
82350         Quote operand of "test -f".
82351         Say "recent enough" version of libc, not "version 2".
82352         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
82353         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
82354         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
82355         Remove check for btowc, isascii.
82356         Require AM_LANGINFO_CODESET.
82357
82358 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82359
82360         * lib/regex.c, regex.h: Sync from libc.
82361         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
82362         * lib/regexec.c:
82363         New files, synced from libc, except that regex_internal.h
82364         currently has a small porting fix.
82365
82366 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82367
82368         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
82369         regex_internal.c, regexec.c.
82370         Add regex_internal.h too, but as a comment, since the libc version
82371         is currently broken in gnulib mode.
82372
82373 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
82374
82375         Support programs like Emacs that use gnulib but not gettext.
82376         * MODULES.html.sh (Internationalization functions): Add gettext-h.
82377         * modules/gettext-h: New file.
82378         * modules/gettext (Files): Remove lib/gettext.h.
82379         (Depends-on): Add gettext-h.
82380         (Makefile.am): Remove lib_SOURCES.
82381         * modules/argmatch, modules/c-stack, modules/closeout:
82382         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
82383         * modules/execute, modules/file-type, modules/getaddrinfo:
82384         * modules/getopt, modules/human, modules/javacomp:
82385         * modules/javaexec, modules/mkdir-p, modules/obstack:
82386         * modules/openat, modules/pagealign_alloc, modules/pipe:
82387         * modules/quotearg, modules/regex, modules/rpmatch:
82388         * modules/unicodeio, modules/userspec, modules/version-etc:
82389         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
82390         * modules/xsetenv:
82391         Depend on gettext-h, not gettext.
82392
82393 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
82394
82395         * gnulib-tool (func_import): Add support for 'public domain' license.
82396         * modules/alloca, modules/atexit, modules/memmove:
82397         Now public domain, not GPL.
82398         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
82399         * modules/realloc, modules/strerror, modules/strtod:
82400         Now LGPL, not GPL.
82401
82402 2005-07-05  Bruno Haible  <bruno@clisp.org>
82403
82404         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
82405         autoconf CVS. Needed for mingw.
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         * modules/strftime (Depends-on): Remove dependency on tzset.
82411
82412 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82413
82414         Remove the dependency of the strftime module on the tzset module.
82415         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
82416         gl_FUNC_TZSET_CLOBBER.
82417
82418 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82419
82420         Remove the dependency of the strftime module on the tzset module.
82421         * lib/strftime.c (my_strftime)
82422         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
82423         Copy the input structure, to work around some of the bug with
82424         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
82425         Solaris releases, you should also use the tzset module, but we won't
82426         require it as a dependency any more since we don't want LGPLed code
82427         to depend on GPLed code.
82428
82429 2005-07-02  Jim Meyering  <jim@meyering.net>
82430
82431         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
82432         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
82433         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
82434         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
82435
82436 2005-07-02  Jim Meyering  <jim@meyering.net>
82437
82438         * lib/backupfile.c (backup_args): Change a `0' to NULL.
82439
82440 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82441
82442         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
82443         declares only 'struct timespec;' (!).
82444
82445 2005-07-01  Jim Meyering  <jim@meyering.net>
82446
82447         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
82448         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
82449         * lib/save-cwd.c, tempname.c:
82450         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
82451         and don't include <sys/file.h>).
82452
82453 2005-06-29  Jim Meyering  <jim@meyering.net>
82454
82455         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
82456         type name.  Use the variable name instead.
82457         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
82458         Likewise.
82459
82460 2005-06-28  Simon Josefsson  <jas@extundo.com>
82461
82462         * modules/check-version (Files): Add check-version.m4.
82463
82464 2005-06-28  Simon Josefsson  <jas@extundo.com>
82465
82466         * m4/check-version.m4: New file, suggested by Jim Meyering
82467         <jim@meyering.net>.
82468
82469 2005-06-28  Simon Josefsson  <jas@extundo.com>
82470
82471         * lib/check-version.h, lib/check-version.c: New files.
82472
82473 2005-06-28  Simon Josefsson  <jas@extundo.com>
82474
82475         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
82476         collision with global variable.  Better indentation.  Don't
82477         increment buffer pointer beyond buffer end.  Based on comments
82478         from Paul Eggert <eggert@cs.ucla.edu>.
82479
82480         * lib/base64.h: Indent.
82481
82482 2005-06-28  Simon Josefsson  <jas@extundo.com>
82483
82484         * doc/gnulib.texi (Library version handling): New section.
82485
82486 2005-06-28  Jim Meyering  <jim@meyering.net>
82487
82488         * check-module (find_included_lib_files): Hard-code another
82489         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
82490         but modules/fts-lgpl (correctly) does not list those files.
82491
82492         * modules/canonicalize (Files): Add lib/pathmax.h.
82493
82494 2005-06-25  Simon Josefsson  <jas@extundo.com>
82495
82496         * modules/check-version: New file.
82497
82498 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
82499
82500         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
82501         initializer of struct addrinfo, as an indication that we don't
82502         care how many members the structure has.
82503
82504 2005-06-24  Derek Price  <derek@ximbiot.com>
82505         and Bruno Haible  <bruno@clisp.org>
82506
82507         Remove stat module & update lstat.
82508         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
82509         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82510         * m4/stat.m4: Remove this file.
82511
82512 2005-06-24  Derek Price  <derek@ximbiot.com>
82513         and Bruno Haible  <bruno@clisp.org>
82514
82515         Remove stat module & update lstat.
82516         * lib/stat.c: Remove this file...
82517         (slash_aware_lstat): ...moving this content and its support...
82518         * lib/lstat.c (rpl_lstat): ...into here.
82519         * lib/lstat.h: New file.
82520
82521 2005-06-24  Derek Price  <derek@ximbiot.com>
82522         and Bruno Haible  <bruno@clisp.org>
82523
82524         Remove stat module & update lstat.
82525         * config/srclist.txt (libc sources): Remove stat.
82526
82527 2005-06-24  Derek Price  <derek@ximbiot.com>
82528         and Bruno Haible  <bruno@clisp.org>
82529
82530         Remove stat module & update lstat.
82531         * MODULES.html.sh (stat): Remove.
82532         * MODULES.html: Regenerated.
82533         * modules/lstat (Description): Correct function name.
82534         (Files): Add "lstat.h".
82535         (Depends-on): Remove stat, add xalloc, stat-macros.
82536         * modules/stat: Remove this file.
82537         (Include): Add "lstat.h", remove <sys/stat.h>.
82538
82539 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
82540
82541         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
82542         (ranged_convert): Don't save conversion in a temporary struct.
82543         This causes a warning with GCC 4.0.0, and anyway in the typical
82544         case it's not worth the extra 100 bytes or so of code.
82545         (ranged_convert, __mktime_internal): When calling a function via a
82546         pointer P, use P () rather than (*P) (), as we now assume C89 or
82547         better.
82548
82549 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82550
82551         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
82552         "who -r" failed to give output.  Problem reported by Tim Waugh.
82553
82554         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
82555         (xcalloc): Use it to avoid needless tests.
82556         Problem reported by Jim Meyering.
82557
82558 2005-06-20  Derek Price  <derek@ximbiot.com>
82559
82560         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
82561         unnecessary for Autoconfs > 2.59c.
82562
82563 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82564
82565         * lib/argp.h (__option_is_short): Check upper limit of
82566         __key. Isprint() requires its argument to have the value
82567         of an unsigned char or EOF.
82568
82569 2005-06-16  Jim Meyering  <jim@meyering.net>
82570
82571         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
82572         when either N or S is zero.
82573
82574 2005-06-16  Derek Price  <derek@ximbiot.com>
82575
82576         * m4/bison.m4: Declare YACC & YFLAGS precious.
82577
82578 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
82579
82580         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
82581         multibyte string or pattern, fall back on unibyte matching.
82582         Problem reported by James Youngman.
82583
82584 2005-06-08  Bruno Haible  <bruno@clisp.org>
82585
82586         * modules/csharpcomp: New file.
82587         * MODULES.html.sh (C#): Add csharpcomp.
82588
82589 2005-06-08  Bruno Haible  <bruno@clisp.org>
82590
82591         * m4/csharpcomp.m4: New file, from GNU gettext.
82592
82593 2005-06-08  Bruno Haible  <bruno@clisp.org>
82594
82595         * lib/csharpcomp.h: New file, from GNU gettext.
82596         * lib/csharpcomp.c: New file, from GNU gettext.
82597         * lib/csharpcomp.sh.in: New file, from GNU gettext.
82598
82599 2005-06-08  Bruno Haible  <bruno@clisp.org>
82600
82601         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
82602         warning on mingw.
82603
82604 2005-06-07  Derek Price  <derek@ximbiot.com>
82605
82606         Sync from CVS.
82607         * lib/glob_.h: Indent nested #ifdef.
82608
82609 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82610
82611         Sync from coreutils.
82612         Use "file name" when talking about file names, instead of "filename"
82613         or "path", as per the GNU coding standards.
82614         * lib/mkdir-p.c: Renamed from makepath.c.
82615         (make_dir_parents): Renamed from make_path.  All callers changed.
82616         * lib/mkdir-p.h: Likewise.  All includers changed.
82617         * lib/filenamecat.c: Renamed from path-concat.c.
82618         (file_name_concat): Renamed from path_concat.  All callers changed.
82619         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
82620         * lib/filenamecat.h: Likewise.  All includers changed.
82621         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
82622         in comments or local variable names.
82623         * lib/basename.c: Likewise.
82624         * lib/canonicalize.c, canonicalize.h: Likewise.
82625         * lib/dirname.c, dirname.h: Likewise.
82626         * lib/euidaccess.c: Likewise.
82627         * lib/exclude.c: Likewise
82628         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
82629         * lib/fsusage.c, fsuage.h: Likewise.
82630         * lib/fts.c, fts_.h: Likewise.
82631         * lib/getcwd.c: Likewise.
82632         * lib/getloadavg.c: Likewise.
82633         * lib/mkstemp.c: Likewise.
82634         * lib/mountlist.c, mountlist.h: Likewise.
82635         * lib/openat.c, openat.h: Likewise.
82636         * lib/readlink-stub.c: Likewise.
82637         * lib/readutmp.c, readutmp.h: Likewise.
82638         * lib/rename.c: Likewise.
82639         * lib/rmdir.c: Likewise.
82640         * lib/same.c: Likewise.
82641         * lib/savedir.c: Likewise.
82642         * lib/stripslash.c: Likewise.
82643         * lib/tempname.c: Likewise.
82644         * lib/xreadlink.c: Likewise.
82645         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
82646         All uses changed.
82647         * lib/exclude.h: Likewise.
82648
82649         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
82650         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82651         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
82652         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82653         * lib/pathmax.h: Include <limits.h> unconditionally, since other
82654         files have been getting away with it for years (MORE/BSD 4.3
82655         is extinct now).
82656         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
82657         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82658
82659         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
82660         Define to 256, not 255, as per modern POSIX.
82661
82662 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82663
82664         Sync from coreutils.
82665         Use "file name" when talking about file names, instead of "filename"
82666         or "path", as per the GNU coding standards.
82667         * MODULES.html.sh: mkdir-p renamed from makepath.
82668         filenamecat renamed from path-concat.
82669         * modules/filenamecat: Renamed from modules/path-concat.
82670         (Files): filenamecat.h and filenamecat.c renamed from
82671         path-concat.h and path-concat.c.
82672         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
82673         (Include): filenamecat.h, not path-concat.h.
82674         * modules/mkdir-p: Renamed from modules/makepath.
82675         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
82676         makepath.c.
82677         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
82678         (Include): mkdir-p.h, not makepath.h.
82679
82680 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82681
82682         Sync from coreutils.
82683         * m4/mkdir-p.m4: Renamed from makepath.m4.
82684         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
82685         Rename files from makepath.c to mkdir-p.c, and from
82686         makepath.h to mkdir-p.h.
82687         * m4/filenamecat.m4: Renamed from path-concat.m4.
82688         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
82689         Rename files from path-concat.c to filenamecat.c,
82690         and from path-concat.h to filenamecat.h.
82691         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
82692         "file name" in local variables or comments.
82693         * m4/rename.m4: Likewise.
82694
82695 2005-06-01  Bruno Haible  <bruno@clisp.org>
82696
82697         * modules/csharpexec: New file.
82698         * MODULES.html.sh (C#): New section.
82699
82700 2005-06-01  Bruno Haible  <bruno@clisp.org>
82701
82702         * m4/csharp.m4: New file, from GNU gettext.
82703         * m4/csharpexec.m4: New file, from GNU gettext.
82704
82705 2005-06-01  Bruno Haible  <bruno@clisp.org>
82706
82707         * lib/csharpexec.h: New file, from GNU gettext.
82708         * lib/csharpexec.c: New file, from GNU gettext.
82709         * lib/csharpexec.sh.in: New file, from GNU gettext.
82710
82711 2005-05-31  Derek Price  <derek@ximbiot.com>
82712             Paul Eggert  <eggert@cs.ucla.edu>
82713
82714         Sync from cvs.
82715         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82716
82717 2005-05-31  Derek Price  <derek@ximbiot.com>
82718             Paul Eggert  <eggert@cs.ucla.edu>
82719
82720         Sync from cvs.
82721         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82722
82723 2005-05-29  Derek Price  <derek@ximbiot.com>
82724
82725         * config/srclist.txt (glob_.h, glob.c): Add these files.
82726
82727 2005-05-29  Derek Price  <derek@ximbiot.com>
82728
82729         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
82730         * modules/glob: New file.
82731         * modules/getlogin_r: Add link to POSIX spec in description.
82732
82733 2005-05-29  Derek Price  <derek@ximbiot.com>
82734             Paul Eggert  <eggert@cs.ucla.edu>
82735
82736         * m4/glob.m4: New file.
82737
82738 2005-05-29  Derek Price  <derek@ximbiot.com>
82739             Paul Eggert  <eggert@cs.ucla.edu>
82740
82741         * lib/glob_.h, lib/glob.c: New files.
82742
82743 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82744
82745         * modules/fts (Files): Remove m4/inttypes-pri.m4.
82746         * modules/fts-lgpl (Depends-on): Remove gettext.
82747
82748 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82749
82750         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
82751         and don't require gt_INTTYPES_PRI.
82752
82753 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82754
82755         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
82756
82757         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
82758         the configuration hassle isn't worth it.
82759         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
82760         (LONGEST_MODIFIER, PRIuMAX): Remove.
82761
82762 2005-05-27  Bruno Haible  <bruno@clisp.org>
82763
82764         * lib/getlogin_r.h: Remove second include of <stddef.h>.
82765
82766 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
82767
82768         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
82769         _POSIX_PTHREAD_SEMANTICS for Solaris.
82770
82771 2005-05-25  Derek Price  <derek@ximbiot.com>
82772
82773         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
82774
82775 2005-05-25  Derek Price  <derek@ximbiot.com>
82776             Paul Eggert  <eggert@cs.ucla.edu>
82777
82778         * modules/getlogin_r, m4/getlogin_r.m4: New files.
82779         * lib/getlogin_r.c, getlogin_r.h: New files.
82780
82781 2005-05-25  Bruno Haible  <bruno@clisp.org>
82782             Derek Price  <derek@ximbiot.com>
82783
82784         * lib/getlogin_r.h: Simplify API documentation.
82785
82786 2005-05-23  Derek Price  <derek@ximbiot.com>
82787
82788         * modules/minmax (Files): Add m4/minmax.m4.
82789         (configure.ac): Add gl_MINMAX.
82790
82791 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82792
82793         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
82794         so that unistd-safer.h (GPL'ed code) need not be included.
82795
82796 2005-05-22  Bruno Haible  <bruno@clisp.org>
82797
82798         * m4/minmax.m4: New file.
82799         Based on a patch by Derek Price <derek@ximbiot.com>.
82800
82801 2005-05-22  Bruno Haible  <bruno@clisp.org>
82802
82803         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
82804         (INT64_MIN): Fix definition.
82805         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
82806
82807         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
82808         NEED_SIGNED_INT_TYPES.
82809
82810         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
82811         HAVE_SYSTEM_INTTYPES.
82812
82813 2005-05-22  Bruno Haible  <bruno@clisp.org>
82814
82815         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
82816         Also include <sys/param.h> if it defines MIN, MAX.
82817         Based on a patch by Derek Price <derek@ximbiot.com>.
82818
82819 2005-05-21  Jim Meyering  <jim@meyering.net>
82820
82821         * modules/fts (Files): Add m4/inttypes-pri.m4.
82822         (Depends-on): Add lstat and remove gettext.  Alphabetize.
82823
82824 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82825
82826         New fts module.
82827         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
82828         (setup_dir, free_dir): New functions.
82829         (enter_dir, leave_dir): Define trivial
82830         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
82831         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
82832         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
82833         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
82834         Move to fts-cycle.c.
82835         (fts_open): Use setup_dir.
82836         (fts_close): Use free_dir.
82837         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
82838         This adds a label and some gotos, but the alternatives were messier.
82839         Check for memory allocation failure when entering a dir.
82840         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
82841         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
82842         (FTS): New member fts_cycle, that is a union that contains the
82843         old active_dir_ht and cycle_state.  All uses changed to mention
82844         fts_cycle.ht and fts_cycle.state.
82845         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
82846         fts.c, with the following changes:
82847         (setup_dir, free_dir): New functions.
82848         (enter_dir): Now returns bool.  Return true if successful, false
82849         if memory exhausted.  All callers changed.
82850         Do not bother partly cleaning up on
82851         memory allocation failure; that is free_dir's job.
82852         However, free ad if hash_insert fails, to avoid memory leak.
82853         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
82854         fts->fts_options to see which union member to use.
82855
82856 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82857
82858         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
82859         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
82860
82861 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82862
82863         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
82864
82865 2005-05-20  Jim Meyering  <jim@meyering.net>
82866
82867         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
82868         Now a macro, to pacify GCC.
82869
82870 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82871
82872         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
82873         of -1.
82874
82875 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82876
82877         * lib/chown.c (rpl_chown): Return -1 on failure.
82878
82879 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82880
82881         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
82882         Don't check for stddef.h.
82883         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
82884         don't use its results.
82885         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
82886         since we include them unconditionally.  Don't require
82887         AM_STDBOOL_H, since stdbool is a prerequisite.
82888         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
82889         since we assume C89 or better.
82890         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
82891         as we don't use their results.
82892         Don't check for fchdir, memmove, memset, strrchr, as we use
82893         them unconditionally.
82894         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
82895         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
82896
82897 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82898
82899         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
82900         Include <stddef.h> unconditionally, since we assume C89 now.
82901         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
82902         * lib/fts.c: Include fts_.h first, to check interface.
82903         Do not include intprops.h; no longer needed.
82904         Include cycle-check.h and hash.h, since fts_.h no longer does.
82905         Remove unnecessary casts of closedir to void.
82906         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
82907         decide whether to decrement nlinks.
82908         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
82909         (FTS): Use struct hash_table * instead of Hash_table, so that
82910         we no longer need to include hash.h here.
82911
82912 2005-05-18  Jim Meyering  <jim@meyering.net>
82913
82914         * modules/dirfd (License): Change to LGPL.  Most of the code
82915         is already in the public domain.
82916
82917 2005-05-18  Jim Meyering  <jim@meyering.net>
82918
82919         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
82920         Reported by Yoann Vandoorselaere.
82921
82922 2005-05-17  Jim Meyering  <jim@meyering.net>
82923
82924         * m4/fts.m4: New file, from coreutils.
82925
82926 2005-05-17  Jim Meyering  <jim@meyering.net>
82927
82928         * lib/fts.c, lib/fts_.h: New files, from coreutils.
82929
82930 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82931
82932         Sync from coreutils.
82933         * m4/unlinkdir.m4: New file.
82934
82935 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82936
82937         Sync from coreutils.
82938         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
82939         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
82940         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
82941         White space changes only.
82942         * lib/makepath.c (make_path): Port to hosts where leading "//" is
82943         special.
82944         * lib/yesno.c: Include getline.h, not ctype.h.
82945         (yesno): Don't remove leading white space; POSIX doesn't allow it.
82946         Use getline to remove arbitrary restriction on response length.
82947
82948 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82949
82950         * config/srclist-update: Spell out "Street" in FSF postal
82951         mail address; this is the style the FSF seems to prefer.
82952
82953         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
82954         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
82955         this updates FSF postal mail address.
82956
82957         Sync from coreutils.
82958         * modules/unlinkdir: New file.
82959         * modules/yesno (Depends-on): Add getline.
82960         * MODULES.html.sh (File system functions): Add unlinkdir.
82961
82962 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82963
82964         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
82965         lib/strsep.h:
82966         Change the initial comment to refer to GPL, not LGPL.
82967         gnulib-tool will change it to LGPL as needed.
82968
82969         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
82970         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
82971         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
82972         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
82973         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
82974         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
82975         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
82976         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
82977         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
82978         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
82979         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
82980         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
82981         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
82982         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
82983         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
82984         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
82985         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
82986         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
82987         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
82988         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
82989         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
82990         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
82991         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
82992         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
82993         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
82994         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
82995         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
82996         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
82997         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
82998         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
82999         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
83000         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
83001         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
83002         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
83003         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
83004         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
83005         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
83006         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
83007         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
83008         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
83009         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
83010         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
83011         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
83012         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
83013         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
83014         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
83015         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
83016         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
83017         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
83018         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
83019         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
83020         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
83021         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
83022         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
83023         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
83024         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
83025         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
83026         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
83027         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
83028         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
83029         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
83030         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
83031         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
83032         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
83033         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
83034         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
83035         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
83036         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
83037         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
83038         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
83039         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
83040         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
83041         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
83042         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
83043         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
83044         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
83045         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
83046         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
83047         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
83048         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
83049         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
83050         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
83051         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
83052         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
83053         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
83054         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
83055         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
83056         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
83057         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
83058         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
83059         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
83060         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
83061         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
83062         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
83063         lib/yesno.c, lib/yesno.h:
83064         Update FSF postal mail address.
83065
83066 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83067
83068         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
83069         tests/test-memmem.c, tests/test-stpncpy.c:
83070         Update FSF postal mail address.
83071
83072 2005-05-13  Bruno Haible  <bruno@clisp.org>
83073
83074         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
83075         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
83076         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
83077         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
83078         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
83079         Add support for 64-bit integers in the MSVC compiler.
83080
83081 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83082
83083         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
83084
83085 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
83086
83087         * gnulib-tool (func_import): Sort and uniquify recommended includes.
83088
83089 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
83090
83091         * doc/getdate.texi (General date syntax): Don't say that date
83092         date --iso-8601=ns generates acceptable dates; it doesn't yet.
83093         Problem reported by Nic Ferrier.
83094
83095 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83096
83097         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
83098         specified in ai_socktype. Fix invalid ai_protocol
83099         check. ai_protocol is usually set to 0 or depending on
83100         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
83101         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
83102         ai_socktype / ai_protocol in the returned addrinfo structure.
83103
83104 2005-05-10  Simon Josefsson  <jas@extundo.com>
83105
83106         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
83107         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83108
83109 2005-05-10  Karl Berry  <karl@gnu.org>
83110
83111         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
83112         (from http://www.gnu.org/licenses).
83113         * doc/COPYING.LIB: also rename to COPYING.LESSER.
83114         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
83115         fdl.texi suffices.
83116
83117 2005-05-10  Karl Berry  <karl@gnu.org>
83118
83119         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
83120         (COPYING.DOC): remove.
83121
83122         * config/srclist-update: new FSF address.
83123
83124 2005-05-10  Derek Price  <derek@ximbiot.com>
83125
83126         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
83127         possible.
83128
83129 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83130             Bruno Haible  <bruno@clisp.org>
83131
83132         * modules/inet_ntop: New file.
83133         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83134         inet_ntop.
83135
83136 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83137             Bruno Haible  <bruno@clisp.org>
83138
83139         * m4/inet_ntop.m4: New file.
83140
83141 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83142             Bruno Haible  <bruno@clisp.org>
83143
83144         * lib/inet_ntop.h: New file.
83145         * lib/inet_ntop.c: New file, from glibc with modifications.
83146
83147 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
83148
83149         * modules/time_r (License): Change to LGPL.
83150         * modules/extensions (License): Change to LGPL.  Actually,
83151         the license is more permissive than that, but currently gnulib-tool
83152         doesn't know how to handle more-permissive licenses.
83153
83154         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
83155         Problem reported by Dave Love.
83156
83157 2005-05-08  Jim Meyering  <jim@meyering.net>
83158
83159         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
83160         blank.
83161
83162 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
83163
83164         * modules/argmatch (Depends-on): Add stdbool.
83165         * modules/backupfile (Depends-on): Likewise.
83166         * modules/chdir-long (Depends-on): Likewise.
83167         * modules/closeout (Depends-on): Likewise.
83168         * modules/cycle-check (Depends-on): Likewise.
83169         * modules/dirname (Depends-on): Likewise.
83170         * modules/fnmatch (Depends-on): Likewise.
83171         * modules/fsusage (Depends-on): Likewise.
83172         * modules/fwriteerror (Depends-on): Likewise.
83173         * modules/getcwd (Depends-on): Likewise.
83174         * modules/getloadavg (Depends-on): Likewise.
83175         * modules/hard-locale (Depends-on): Likewise.
83176         * modules/makepath (Depends-on): Likewise.
83177         * modules/mountlist (Depends-on): Likewise.
83178         * modules/nanosleep (Depends-on): Likewise.
83179         * modules/posixtm (Depends-on): Likewise.
83180         * modules/quotearg (Depends-on): Likewise.
83181         * modules/readtokens (Depends-on): Likewise.
83182         * modules/readtokens0 (Depends-on): Likewise.
83183         * modules/readutmp (Depends-on): Likewise.
83184         * modules/save-cwd (Depends-on): Likewise.
83185         * modules/strftime (Depends-on): Likewise.
83186         * modules/userspec (Depends-on): Likewise.
83187         * modules/utimecmp (Depends-on): Likewise.
83188         * modules/xgetcwd (Depends-on): Likewise.
83189         * modules/xnanosleep (Depends-on): Likewise.
83190         * modules/xstrtod (Depends-on): Likewise.
83191         * modules/yesno (Depends-on): Likewise.
83192
83193 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
83194
83195         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
83196         needless checks.
83197
83198 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83199
83200         Merge from coreutils.  Among other things,
83201         add bulletproofing for cases where stdin, stdout, or stderr are closed.
83202         * lib/fd-safer.c: New file.
83203         * lib/fcntl-safer.h, open-safer.c: Remove.
83204         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
83205         * lib/dup-safer.c: Include unistd-safer.h first.
83206         Don't include errno.h.
83207         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
83208         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
83209         * lib/file-type.c: Rely on file-type.h change.
83210         * lib/getloadavg.c: Include unistd-safer.h.
83211         (getloadavg): Use safer open.
83212         * lib/getusershell.c: Include "stdio-safer.h".
83213         (getusershell): Use safer fopen.
83214         * lib/long-options.c (long_options): Use NULL rather than 0.
83215         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
83216         'free'.
83217         * lib/modechange.c: Likewise.
83218         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
83219         (MODE_DONE): New constant.
83220         (struct mode_change): Remove 'next' member.
83221         (make_node_op_equals): New function; like the old one of the
83222         same name, except it allocates an array.
83223         (mode_compile, mode_create_from_ref): Use it.
83224         (mode_compile): Allocate result as an array, not a linked list.
83225         Parse octal string ourself, so that we catch mistakes like "+0".
83226         (mode_adjust): Arg is an array, not a linked list.
83227         * lib/modechange.c: Include stat-macros.h, xalloc.h.
83228         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
83229         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
83230         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
83231         Remove.  This is now stat-macros.h's job.
83232         (talloc): Remove.  All callers replaced by xalloc, so that
83233         our invokers don't have to worry about reporting memory failures.
83234         (make_node_op_equals): Remove.
83235         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83236         New constants.
83237         (struct mode_change): Moved here from modechange.h.
83238         (mode_append_entry): Remove.
83239         (mode_compile): Remove MASKED_OPS arg, since it encouraged
83240         apps to have incorrect behavior.  Use simpler algorithm for head
83241         and tail.  Don't futz with umask; that's now the job of mode_adjust.
83242         Detect more invalid usages rather than having somewhat-random behavior.
83243         Don't insert an "a=" action, as that leads to incorrect behavior.
83244         (mode_compile, mode_create_from_ref): Return NULL on error instead
83245         of an enum, since now there's only one way to have an error.  All
83246         callers changed.
83247         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
83248         at the correct time.  Simplify calculation of "+u" and its ilk.
83249         Don't mishandle "+X".
83250         (mode_free): Remove "register" and localize decls.
83251         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83252         (struct mode_change): Move to modechange.c; callers don't
83253         need to see this stuff.
83254         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
83255         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
83256         (mode_change, mode_adjust): Reflect the new signatures noted above.
83257         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
83258         that might redefine system include files.
83259         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
83260         (my_usleep): Use NULL rather than (void *) 0.
83261         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
83262         Use siginterrupt to specify that system calls should be interrupted.
83263         (rpl_nanosleep): Move initialization of suspended closer to call of
83264         my_usleep.
83265         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
83266         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
83267         (desirable_utmp_entry): New function.
83268         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
83269         using x2nrealloc, to simplify logic.
83270         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
83271         size calculation.  Do not assume utmp file is a regular file.
83272         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
83273         (READ_UTMP_CHECK_PIDS): New constant.
83274         * lib/save-cwd.c: Include unistd-safer.h.
83275         (save_cwd): Use fd_safer.
83276         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
83277         [!_LIBC] Include "stat-macros.h" instead.
83278         * lib/unistd-safer.h (fd_safer): New decl.
83279
83280 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83281
83282         * modules/getloadavg (Depends-on): Add unistd-safer.
83283         * modules/getusershell (Depends-on): Add stdio-safer.
83284         * modules/lstat (Depends-on): Remove xalloc.
83285         * modules/mkstemp (Depends-on): Add stat-macros.
83286         * modules/modechange (Depends-on): Remove xstrtol.
83287         Add stat-macros, xalloc.
83288         * modules/save-cwd (Depends-on): Add unistd-safer.
83289         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
83290         * modules/unistd-safer (Files): Add lib/fd-safer.c
83291         (Makefile.am): Remove lib_SOURCES.
83292
83293         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
83294         Remove fcntl-safer; unistd-safer supersedes it.
83295
83296 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83297
83298         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
83299         AC_HEADER_STAT.
83300         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
83301         (gl_PREREQ_CHOWN): Remove.
83302         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
83303         it.  Don't require AC_HEADER_STAT.
83304         (gl_PREREQ_LSTAT): Remove.
83305         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
83306         Don't require AC_HEADER_STAT.
83307         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
83308         (gl_PREREQ_RMDIR): Remove.
83309         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
83310         mention stat-macros.h or AC_HEADER_STAT, since we'll make
83311         the stat-macros module a prerequisite.
83312         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
83313         * m4/filemode.m4 (gl_FILEMODE): Likewise.
83314         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
83315         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
83316         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
83317         variable names.
83318         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
83319         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
83320         variable prefixes.
83321         * m4/fcntl-safer.m4: Remove.
83322         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
83323         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
83324         Invoke gl_PREREQ_FD_SAFER.
83325         (gl_PREREQ_FD_SAFER): New macro.
83326         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
83327         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
83328         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
83329         Remove duplicate call to AC_LIBOBJ(readutmp).
83330         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
83331
83332         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
83333         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
83334
83335 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83336
83337         * MODULES.html.sh (Misc): Add byteswap.
83338
83339 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83340
83341         * modules/getcwd (Depends-on): Add extensions.
83342         * modules/openat (Depends-on): Likewise.
83343
83344 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83345
83346         * modules/byteswap: New file.
83347
83348 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83349
83350         * m4/byteswap.m4: New file.
83351
83352 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83353
83354         * lib/byteswap_.h: New file.
83355
83356 2005-04-25  Karl Berry  <karl@gnu.org>
83357
83358         * m4/gettext.m4: Update from GNU gettext 0.14.4.
83359
83360 2005-04-25  Albert Chin  <china@thewrittenword.com>
83361
83362         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
83363         Toolkit C bug.
83364
83365 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
83366
83367         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
83368         (func_ln_if_changed): Remove forcibly for no error message
83369         in case file does not exist.
83370
83371 2005-04-19  Simon Josefsson  <jas@extundo.com>
83372
83373         * gnulib-tool (Options): Make --symlink mean --symbolic.
83374
83375 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
83376
83377         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
83378
83379 2005-04-16  Simon Josefsson  <jas@extundo.com>
83380
83381         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
83382
83383 2005-04-15  Simon Josefsson  <jas@extundo.com>
83384
83385         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
83386
83387 2005-04-15  Simon Josefsson  <jas@extundo.com>
83388
83389         * gnulib-tool: Rename --symlink to --symbolic.
83390
83391 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
83392
83393         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
83394         symbolic links to files instead of copying/moving.  Add --aux-dir,
83395         specifying directory relative --dir where auxiliary build tools
83396         are placed.
83397
83398 2005-04-14  Bruno Haible  <bruno@clisp.org>
83399
83400         * modules/allocsa (License): Change to LGPL.
83401         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
83402
83403 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
83404
83405         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
83406         that "UTC +1 second" continues to work.  Problem reported
83407         by Dmitry V. Levin.
83408         (relunit_snumber): New rule.
83409         (relunit): Use it.
83410
83411 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
83412
83413         * lib/getdate.y (universal_time_zone_table): New constant.
83414         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
83415         universal_time_zone_table.
83416         (lookup_zone): Prefer universal_time_zone_table to
83417         local_time_zone_table, so that "GMT" time stamps are allowed in
83418         London during the summer.  Problem reported by Ian Abbott.
83419
83420 2005-04-12  Jim Meyering  <jim@meyering.net>
83421
83422         * lib/human.c (humblock): Set *options even when returning due to
83423         xstrtoumax conversion failure.  Thanks to a used-uninitialized
83424         warning from gcc-4.
83425
83426 2005-04-09  Jim Meyering  <jim@meyering.net>
83427
83428         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
83429         -Wuninitialized: initialize tm0.tm_year.
83430
83431 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
83432
83433         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
83434         count, since there's no maximum.  All uses changed.
83435         Add member dsts_seen.
83436         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
83437         not being INT_MAX.
83438         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
83439         Use pc_rels_seen to decide whther a date is absolute.
83440
83441         * lib/getdate.y (number): Don't overwrite year.
83442         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
83443         check.
83444
83445 2005-04-02  Simon Josefsson  <jas@extundo.com>
83446
83447         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
83448         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
83449
83450 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
83451
83452         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
83453         where no absolute path name can be longer than PATH_MAX.
83454
83455 2005-03-27  Jim Meyering  <jim@meyering.net>
83456
83457         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
83458
83459 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
83460
83461         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
83462         "one's complement" -> "ones' complement" in comment, as per Knuth.
83463         "value of type" -> "type or expression" in comment.
83464         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
83465
83466 2005-03-26  Jim Meyering  <jim@meyering.net>
83467
83468         Comment nits.
83469         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
83470         Correct typos: s/or/of/.
83471
83472 2005-03-26  Jim Meyering  <jim@meyering.net>
83473
83474         * modules/check-include-files: Move to ../ and rename to...
83475         * check-module: ...this.
83476
83477 2005-03-25  Jim Meyering  <jim@meyering.net>
83478
83479         * modules/xvasprintf (Files): Add xalloc.h.
83480
83481 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
83482
83483         * modules/gettext (Files): config/config.rpath ->
83484         build-aux/config.rpath
83485         * modules/iconv (Files): Likewise.
83486         Problem reported by Oskar Liljeblad.
83487
83488 2005-03-23  Jim Meyering  <jim@meyering.net>
83489
83490         * modules/check-include-files: New script to check for
83491         missing dependencies, multiple includes, etc.
83492
83493         * modules/c-strtold (Depends-on): Add xalloc.
83494         * modules/c-strtod (Depends-on): Add xalloc.
83495         * modules/hash (Depends-on): Add xalloc.
83496         (Files): Remove lib/xalloc.h.
83497
83498         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
83499         * modules/userspec (Files): Add lib/inttostr.h.
83500
83501 2005-03-23  Jim Meyering  <jim@meyering.net>
83502
83503         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
83504
83505 2005-03-22  Jim Meyering  <jim@meyering.net>
83506
83507         * modules/stat-macros: New module.
83508         * modules/canonicalize, modules/euidaccess, modules/file-type,
83509         * modules/filemode, modules/lchown, modules/makepath,
83510         * modules/rmdir, modules/stat: Depend on new stat-macros module
83511         rather than listing lib/stat-macros.h manually.
83512         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
83513
83514 2005-03-22  Jim Meyering  <jim@meyering.net>
83515
83516         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
83517
83518 2005-03-22  Bruno Haible  <bruno@clisp.org>
83519
83520         * config/srclist.txt: Replace target directory 'config' with
83521         'build-aux'.
83522         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
83523         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
83524         ../build-aux/.
83525
83526 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
83527
83528         * modules/chdir-long (Depends-on): Add mempcpy.
83529
83530         * modules/acl, modules/backupfile, modules/c-strtod,
83531         modules/c-strtold, modules/canon-host, modules/canonicalize,
83532         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
83533         modules/exclude, modules/exitfail, modules/file-type,
83534         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
83535         modules/getdate, modules/getline, modules/getpagesize,
83536         modules/getpass, modules/getugroups, modules/group-member,
83537         modules/hard-locale, modules/hash, modules/human, modules/idcache,
83538         modules/inttostr, modules/long-options, modules/makepath,
83539         modules/md5, modules/memcasecmp, modules/memcoll,
83540         modules/modechange, modules/mountlist, modules/path-concat,
83541         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
83542         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
83543         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
83544         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
83545         modules/strftime, modules/strndup, modules/strverscmp,
83546         modules/timespec, modules/unlocked-io, modules/userspec,
83547         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
83548         modules/yesno:
83549         Remove lib_SOURCES line from Makefile.am section, as this is now
83550         done automatically by the corresponding Autoconf macro.
83551
83552 2005-03-21  Jim Meyering  <jim@meyering.net>
83553
83554         Changes imported from coreutils.
83555
83556         * lib/cycle-check.c: Don't include xalloc.h.
83557
83558         * lib/path-concat.c: Don't include assert.h.
83559         (path_concat): Remove assertion that would have triggered
83560         for ABASE starting with more than one slash.
83561         Reported by Andreas Schwab.
83562
83563         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
83564         properly when ABASE is an absolute file name.
83565         Correct the description of this function.
83566         Include <assert.h>.
83567         Add an assertion and a test driver.
83568         This fixes a bug introduced on 2004-07-02.
83569         Andreas Schwab reported the resulting failure of cp --parents:
83570         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
83571
83572 2005-03-21  Jim Meyering  <jim@meyering.net>
83573
83574         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
83575         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
83576
83577 2005-03-21  Jim Meyering  <jim@meyering.net>
83578         and  Paul Eggert  <eggert@cs.ucla.edu>
83579
83580         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
83581         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
83582         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
83583         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
83584         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
83585         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
83586         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
83587         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
83588         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
83589         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
83590         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
83591         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
83592         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
83593         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
83594         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
83595         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
83596         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
83597         for these modules.
83598
83599 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
83600
83601         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
83602         (which shouldn't happen), generate nothing instead of returning 0
83603         immediately, so that nstrftime (NULL, ...) doesn't return 0.
83604
83605 2005-03-16  Bruno Haible  <bruno@clisp.org>
83606
83607         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
83608         HAVE_LONGLONG_64BIT.
83609
83610 2005-03-16  Bruno Haible  <bruno@clisp.org>
83611
83612         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
83613         HAVE_LONGLONG_64BIT.
83614
83615 2005-03-16  Bruno Haible  <bruno@clisp.org>
83616
83617         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
83618         HAVE_LONGLONG_64BIT.
83619
83620 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83621
83622         * lib/strftime.c (my_strftime): Prepend space to format so that we can
83623         reliably distinguish strftime failure from empty output on POSIX
83624         hosts.
83625
83626 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83627
83628         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
83629         (iconv_string): Don't guess a size-zero buffer, as that might cause
83630         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
83631         result would be 'too large', where 'too large' is (heuristically)
83632         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
83633         overflow concerns.  This will prevent some unwanted malloc failures
83634         when the inputs are very large.
83635
83636 2005-03-15  Karl Berry  <karl@gnu.org>
83637
83638         * config/srclist.txt (config.rpath): from gettext.
83639         * config/config.rpath: update.
83640
83641 2005-03-15  Bruno Haible  <bruno@clisp.org>
83642
83643         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
83644         to 'negate'.
83645
83646         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
83647         variable.
83648
83649         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
83650         results.
83651
83652 2005-03-14  Simon Josefsson  <jas@extundo.com>
83653
83654         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
83655         <fx@gnu.org>.
83656
83657 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
83658
83659         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
83660         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
83661         intprops.h.
83662         * lib/strtol.c: Likewise.
83663
83664 2005-03-14  Jim Meyering  <jim@meyering.net>
83665
83666         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
83667         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
83668         to be nonzero so that we (and caller) can detect the difference
83669         between a valid zero-length expansion and an error return, even
83670         when the underlying strftime fails before writing anything into
83671         that location.
83672
83673 2005-03-14  Bruno Haible  <bruno@clisp.org>
83674
83675         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
83676         Update from GNU gettext 0.14.3.
83677
83678 2005-03-10  Jim Meyering  <jim@meyering.net>
83679
83680         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
83681
83682 2005-03-10  Jim Meyering  <jim@meyering.net>
83683
83684         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
83685         so that this module works on systems without fchdir.
83686
83687 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
83688
83689         Factor int-properties macros into a single file, except for
83690         glibc-related files.
83691         * lib/intprops.h: New file.
83692         * lib/getloadavg.c: Include it instead of limits.h.
83693         (INT_STRLEN_BOUND): Remove.
83694         * lib/human.c: Include intprops.h.
83695         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
83696         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
83697         302/1000.
83698         * lib/inttostr.h: Include intprops.h instead of limits.h.
83699         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
83700         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
83701         for consistency with intprops.h.
83702         (time_t_is_integer, twos_complement_arithmetic): Use them.
83703         * lib/sig2str.h: Include <signal.h>, intprops.h.
83704         (INT_STRLEN_BOUND): Remove.
83705         * lib/strftime.c (TYPE_SIGNED): Remove.
83706         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
83707         * lib/strtol.c: Adjust comments to match intprops.h.
83708         * lib/userspec.c: Include intprops.h.
83709         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
83710         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
83711         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
83712         instead of rolling our own expressions.
83713         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
83714
83715         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
83716         instead of int.
83717         (my_strftime): Do not mishandle years close to INT_MAX, by doing
83718         the right thing even if adding 1900 would overflow.  Similarly
83719         for tm_mon + 1 and tm_yday + 1.
83720         Make %Y always equivalent to %C%y, and similarly for %G and %g.
83721         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
83722         (DO_SIGNED_NUMBER): New macro.
83723         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
83724
83725 2005-03-07  Bruno Haible  <bruno@clisp.org>
83726
83727         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
83728
83729 2005-03-07  Bruno Haible  <bruno@clisp.org>
83730
83731         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
83732
83733 2005-03-04  Derek R. Price  <derek@ximbiot.com>
83734
83735         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
83736         (func_import): Only replace files via --import when they have actually
83737         changed.
83738
83739 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83740
83741         * m4/mmap-anon.m4: New file.
83742         * m4/pagealign_alloc.m4: New file.
83743
83744 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83745             Bruno Haible  <bruno@clisp.org>
83746
83747         * modules/pagealign_alloc: New file.
83748         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
83749
83750 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83751             Bruno Haible  <bruno@clisp.org>
83752
83753         * lib/pagealign_alloc.h: New file.
83754         * lib/pagealign_alloc.c: New file.
83755
83756 2005-03-03  Bruno Haible  <bruno@clisp.org>
83757
83758         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
83759         Use an all-permissive copyright notice, recommended by RMS.
83760
83761 2005-03-02  Bruno Haible  <bruno@clisp.org>
83762
83763         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
83764         of AIX, the replacement has to be done only after <string.h> is
83765         included, therefore not in config.h. stpncpy.h does the replacement,
83766         and stpncpy.c uses it.
83767
83768 2005-03-02  Bruno Haible  <bruno@clisp.org>
83769
83770         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
83771         stpncpy.c uses it.
83772
83773 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83774
83775         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
83776         The workaround isn't strictly needed for POSIX conformance, and
83777         it's too much of a pain to configure and maintain.  We'll ask
83778         people to fix their kernels instead.
83779         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
83780         (NANOSLEEP_BUG_WORKAROUND): Remove.
83781         (xnanosleep): Remove the workaround.
83782
83783 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83784
83785         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
83786         Reported by Derek Price.
83787         (Include): Add "timespec.h".
83788
83789         * modules/xnanosleep (Depends-on): Remove gethrxtime.
83790
83791 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83792
83793         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
83794         to detect nanosleep bug.
83795
83796 2005-03-01  Bruno Haible  <bruno@clisp.org>
83797
83798         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
83799
83800 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83801
83802         * modules/gethrxtime: New file.
83803         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
83804         (Depends-on): Add gethrxtime.
83805         (configure.ac): Add gl_XNANOSLEEP.
83806         (Makefile.am): Remove lib_SOURCES line.
83807
83808 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83809
83810         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
83811         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
83812
83813 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83814
83815         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
83816         * lib/timespec.h (gettime): Return void, since it always
83817         succeeds now.  All uses changed.
83818         * lib/gettime.c (gettime): Likewise.
83819         [HAVE_NANOTIME]: Prefer nanotime.
83820         Assume gettimeofday succeeds, as POSIX requires.
83821         Assime time () succeeds, since other code already does.
83822         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
83823         (timespec_subtract): Remove.
83824         (NANOSLEEP_BUG_WORKAROUND): New constant.
83825         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
83826         things considerably.  Use it only on GNU/Linux hosts, since the
83827         workaround shouldn't be needed elsewhere.
83828
83829 2005-02-24  Bruno Haible  <bruno@clisp.org>
83830
83831         * modules/gettext (Files): Add m4/glibc2.m4.
83832
83833 2005-02-24  Bruno Haible  <bruno@clisp.org>
83834
83835         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
83836         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
83837         * m4/progtest.m4:
83838         Update from GNU gettext 0.14.2.
83839         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
83840
83841 2005-02-24  Bruno Haible  <bruno@clisp.org>
83842
83843         * lib/localcharset.c: Update from GNU gettext 0.14.2.
83844         * lib/config.charset: Update from GNU gettext 0.14.2.
83845
83846 2005-02-24  Bruno Haible  <bruno@clisp.org>
83847
83848         * lib/gettext.h: Update from GNU gettext 0.14.2.
83849
83850 2005-02-23  Simon Josefsson  <jas@extundo.com>
83851
83852         * m4/iconvme.m4: New file.
83853
83854 2005-02-23  Jim Meyering  <jim@meyering.net>
83855
83856         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
83857         change.
83858         Thanks to Bruno Haible for catching it.
83859
83860 2005-02-22  Simon Josefsson  <jas@extundo.com>
83861
83862         * modules/iconvme: New file.
83863
83864         * MODULES.html.sh: Add iconvme.
83865
83866 2005-02-22  Simon Josefsson  <jas@extundo.com>
83867
83868         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
83869
83870 2005-02-22  Simon Josefsson  <jas@extundo.com>
83871
83872         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
83873
83874 2005-02-22  Jim Meyering  <jim@meyering.net>
83875
83876         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
83877         s/ifndef/ifdef/.
83878
83879 2005-02-20  Neil Conway  <neilc@samurai.com>
83880
83881         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
83882         returned by OSX/Darwin if the specified buffer is not large
83883         enough for the hostname.
83884
83885 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83886
83887         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
83888         pass it to _help, otherwise the latter coredumps trying to
83889         dereference state.root_argp.
83890
83891 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83892
83893         * modules/chdir-long (Depends-on): Add memrchr.
83894         * modules/memrchr (Files): Add lib/memrchr.h.
83895         (Include): "memrchr.h".
83896
83897 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83898
83899         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
83900
83901 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83902
83903         * lib/memrchr.h: New file.
83904         * lib/chdir-long.c: Include it.
83905         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
83906         Don't bother including stddef.h.
83907
83908 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
83909
83910         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
83911         inclusion.
83912         Include <sys/types.h>, for dev_t.
83913         (ME_DUMMY, ME_REMOTE): Move from here....
83914         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
83915         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
83916         Dmitry V. Levin.
83917         Include mountlist.h first, to test the interface.
83918
83919 2005-01-29  Bruno Haible  <bruno@clisp.org>
83920
83921         * lib/progname.c (program_name): Initialize.
83922         Needed when linking statically on MacOS X.
83923
83924 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83925
83926         Sync from coreutils.
83927         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
83928         (Depends-on): Add c-strtod.
83929         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
83930
83931 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83932
83933         Sync from coreutils.
83934         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
83935
83936         Remove files that are specific to coreutils.
83937         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
83938
83939 2005-01-28  Bruno Haible  <bruno@clisp.org>
83940
83941         * modules/javacomp: New file.
83942         * MODULES.html.sh (Java): Add javacomp.
83943
83944 2005-01-28  Bruno Haible  <bruno@clisp.org>
83945
83946         * m4/javacomp.m4: New file, from GNU gettext.
83947
83948 2005-01-28  Bruno Haible  <bruno@clisp.org>
83949
83950         * lib/javacomp.sh.in: New file, from GNU gettext.
83951         * lib/javacomp.h: New file, from GNU gettext.
83952         * lib/javacomp.c: New file, from GNU gettext.
83953
83954 2005-01-26  Simon Josefsson  <jas@extundo.com>
83955
83956         * lib/gai_strerror.c: Use GPL in header.
83957
83958 2005-01-26  Bruno Haible  <bruno@clisp.org>
83959
83960         * modules/javaexec: New file.
83961         * MODULES.html.sh (Java): Add javaexec.
83962
83963 2005-01-26  Bruno Haible  <bruno@clisp.org>
83964
83965         * m4/javaexec.m4: New file, from GNU gettext.
83966
83967 2005-01-26  Bruno Haible  <bruno@clisp.org>
83968
83969         * lib/javaexec.sh.in: New file, from GNU gettext.
83970         * lib/javaexec.h: New file, from GNU gettext.
83971         * lib/javaexec.c: New file, from GNU gettext.
83972
83973 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83974
83975         * modules/lchown (Depends-on): Remove lchown.h
83976
83977 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83978
83979         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
83980         must be defined if the header file was not found, in order
83981         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
83982
83983 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83984
83985         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
83986         initializers for struct pentry_state.
83987         (__argp_error): Check return value of __asprintf
83988         (__argp_failure): Translate error message
83989
83990         * lib/argp-parse.c: Removed braces around the expansion of N_()
83991
83992 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83993
83994         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
83995         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
83996         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
83997         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
83998         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
83999         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
84000         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
84001         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
84002         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
84003         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
84004         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
84005         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
84006         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
84007         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
84008         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
84009         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
84010         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
84011         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
84012         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
84013         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
84014         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
84015         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
84016         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
84017         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
84018         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
84019         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
84020         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
84021         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
84022         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
84023         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
84024         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
84025         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
84026         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
84027         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
84028         xstrtol.m4, xstrtoumax.m4, yesno.m4:
84029         Use an all-permissive copyright notice, recommended by RMS.
84030
84031 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
84032
84033         * modules/chdir-long (Depends-on): Remove mempcpy.
84034
84035 2005-01-21  Jim Meyering  <jim@meyering.net>
84036
84037         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
84038         same value as for Solaris 9.
84039
84040         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
84041         component length.  This included changing the parameter to be
84042         of type `char *' rather than `char const *'.
84043         * lib/chdir-long.h (chdir_long): Update prototype.
84044
84045         * lib/openat.c (fdopendir, fstatat): New functions.
84046         * lib/openat.h: Include headers required for use of DIR and struct
84047         stat.
84048         [AT_SYMLINK_NOFOLLOW]: Define.
84049         (fdopendir, fstatat): Add prototypes.
84050
84051 2005-01-21  Bruno Haible  <bruno@clisp.org>
84052
84053         * modules/classpath: New file.
84054         * MODULES.html.sh (Java): Add classpath.
84055
84056 2005-01-21  Bruno Haible  <bruno@clisp.org>
84057
84058         * lib/classpath.h: New file, from GNU gettext.
84059         * lib/classpath.c: New file, from GNU gettext.
84060
84061 2005-01-20  Simon Josefsson  <jas@extundo.com>
84062
84063         * modules/version-etc-fsf: New file.
84064
84065 2005-01-20  Simon Josefsson  <jas@extundo.com>
84066
84067         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
84068         * lib/version-etc.c: Remove version_etc_copyright.
84069         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
84070         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
84071
84072 2005-01-20  Simon Josefsson  <jas@extundo.com>
84073
84074         * lib/base64.h (isbase64): Add.
84075
84076         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
84077         using a unsigned prototype, don't inline.
84078         (base64_decode): Use it.
84079
84080 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84081
84082         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
84083         it.
84084
84085 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84086
84087         * lib/save-cwd.c (save_cwd): Remove code to support the case
84088         where fchdir is missing or flaky.
84089
84090 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84091
84092         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
84093
84094 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
84095
84096         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
84097         AC_LIBSOURCES now does this.
84098         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
84099         with new ullong_max module.
84100
84101 2005-01-19  Bruno Haible  <bruno@clisp.org>
84102
84103         * modules/sh-quote: New file.
84104         * MODULES.html.sh (Executing programs): Add sh-quote.
84105
84106 2005-01-19  Bruno Haible  <bruno@clisp.org>
84107
84108         * lib/sh-quote.h: New file, from GNU gettext.
84109         * lib/sh-quote.c: New file, from GNU gettext.
84110
84111 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84112
84113         Merge from coreutils.
84114         * m4/ullong_max.m4: New file.
84115         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
84116         (gl_MACROS): Assume localeconv exists.
84117
84118 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84119
84120         Merge changes from coreutils, as described below in several
84121         changelogs dated today.
84122
84123         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
84124         (O_DIRECTORY): Remove; not needed here, since "." must be
84125         a directory.  All uses removed.
84126         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
84127         universal on Suns, and we also need to test for IRIX.
84128         Revamp code to use 'if' rather than '#if'.
84129         Avoid unnecessary comparison of cwd->desc to 0.
84130
84131         * lib/utimens.c (futimens): Robustify the previous patch, by checking
84132         for known valid error numbers rather than observed invalid ones.
84133
84134 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84135
84136         * modules/ullong_max: New file.
84137
84138         * modules/chdir-long, modules/openat: New files.
84139         * modules/save-cwd (Depends-on): Depend on chdir-long.
84140         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
84141
84142 2005-01-18  Jim Meyering  <jim@meyering.net>
84143
84144         Merge from coreutils.
84145         * m4/chdir-long.m4, m4/openat.m4: New files.
84146         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
84147         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
84148         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
84149         is sane and DOES follow symlinks.  Besides, testing 20 different
84150         systems found no broken chown implementations.
84151         Prompted by a change in rsync's copy of this macro.
84152         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
84153
84154         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
84155
84156         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
84157         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
84158         NULL-means-set-to-current-time semantics.
84159         Remove temporary file immediately, rather than waiting
84160         for configure's at-exit trap code to do it.
84161
84162 2005-01-18  Jim Meyering  <jim@meyering.net>
84163
84164         * lib/version-etc.c (version_etc_copyright): Update copyright date.
84165
84166         * lib/utimens.c (futimens): Account for the fact that futimes
84167         can also fail with errno == ENOSYS or errno == ENOENT.
84168         Patch from Dmitry V. Levin.
84169
84170         Change the name of the robust chdir function from chdir to chdir_long.
84171         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
84172         (restore_cwd): Use chdir_long, not chdir.
84173         * lib/chdir-long.c: Renamed from chdir.c.
84174         * lib/chdir-long.h: Renamed from chdir.h.
84175         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
84176         Hurd.
84177
84178 2005-01-18  Bruno Haible  <bruno@clisp.org>
84179
84180         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
84181         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
84182         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
84183         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
84184         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
84185         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
84186         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
84187         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
84188         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
84189         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
84190         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
84191         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
84192         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
84193         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
84194         Use an all-permissive copyright notice, recommended by RMS.
84195
84196 2005-01-18  Bob Proulx  <bob@proulx.com>
84197
84198         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
84199         simplify offsetof() macro construct to avoid compile failure with
84200         native HP-UX 11.0 ANSI C compiler.
84201
84202 2005-01-17  Bruno Haible  <bruno@clisp.org>
84203
84204         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
84205         redundant because stpncpy.m4 takes care of it.
84206
84207 2005-01-17  Bruno Haible  <bruno@clisp.org>
84208
84209         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
84210
84211 2005-01-17  Bruno Haible  <bruno@clisp.org>
84212
84213         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
84214         used.
84215
84216 2005-01-17  Bruno Haible  <bruno@clisp.org>
84217
84218         * lib/fwriteerror.h (fwriteerror): Change specification to include
84219         fclose.
84220         * lib/fwriteerror.c: Include <stdbool.h>.
84221         (fwriteerror): At the end, close the file stream. Record whether
84222         stdout was already closed.
84223
84224 2005-01-17  Bruno Haible  <bruno@clisp.org>
84225
84226         * lib/execute.c (environ): Declare if needed.
84227         * lib/pipe.c (environ): Likewise.
84228         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
84229
84230 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84231
84232         * modules/argp: Depend on vsnprintf
84233
84234 2005-01-10  Jim Meyering  <jim@meyering.net>
84235
84236         * modules/closeout (Depends-on): Add atexit.
84237
84238 2005-01-06  Bruno Haible  <bruno@clisp.org>
84239
84240         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
84241
84242 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84243
84244         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
84245         definitions to be after all include files, to avoid collisions.
84246         Problem reported by Bob Proulx.
84247
84248 2005-01-04  Jim Meyering  <jim@meyering.net>
84249
84250         Changes imported from coreutils.
84251         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
84252         as the mkstemp template, use a temporary directory and an
84253         8.3-friendly template to avoid trouble on systems like DJGPP.
84254         Reported by Juan M. Guerrero via Stepan Kasal.
84255         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
84256         close. Remove the temporary directory right away, rather than waiting
84257         for configure's at-exit trap code to do it.
84258         Suggestion from Stepan Kasal.
84259
84260 2005-01-01  Simon Josefsson  <jas@extundo.com>
84261
84262         * gnulib-tool: Print #include directives when --import'ing.
84263
84264 2004-12-28  Simon Josefsson  <jas@extundo.com>
84265
84266         * tests/test-base64.c: Include required header files.  Remove
84267         unused variables.
84268
84269 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84270
84271         * modules/error (Depends-on): Remove gettext.
84272
84273 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84274
84275         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
84276         not needed.  This removes a dependency on the gettext module.
84277         [defined _LIBC]: Do not include <libintl.h>; not needed.
84278
84279 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84280
84281         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
84282         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
84283
84284 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84285
84286         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
84287         HAVE_DECL_STRTOLD.
84288
84289 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84290
84291         * modules/getdate (Depends-on): Remove alloca-opt.
84292
84293 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84294
84295         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
84296
84297 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84298
84299         * lib/argp-parse.c: Include <stddef.h>.
84300         (alignof, alignto): New macros.
84301         (parser_init): Don't assume that void * is aligned sufficiently
84302         for struct option.
84303
84304         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
84305         need to extend the stack.
84306         (YYINITDEPTH): New macro, so that the initial stack isn't overly
84307         large.
84308
84309 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84310
84311         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
84312
84313 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84314
84315         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
84316         (2004-10-24) change.  Apparently this was a false alarm.
84317
84318         * modules/getdate: Depend on alloca-opt, not alloca.
84319
84320 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84321
84322         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
84323         Remove now-obsolete comment about AIX.
84324         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
84325         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
84326         (YYMAXDEPTH): New macro.
84327
84328 2004-12-18  Simon Josefsson  <jas@extundo.com>
84329
84330         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
84331
84332 2004-12-18  Bruno Haible  <bruno@clisp.org>
84333
84334         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
84335
84336 2004-12-18  Bruno Haible  <bruno@clisp.org>
84337
84338         * lib/fatal-signal.c (fatal_signals): Make non-const.
84339         (init_fatal_signals): New function.
84340         (uninstall_handlers, install_handlers): Ignore signals that were set to
84341         SIG_IGN.
84342         (at_fatal_signal): Call init_fatal_signals.
84343         (init_fatal_signal_set): Likewise. Ignore signals that were set to
84344         SIG_IGN.
84345         Reported by Paul Eggert.
84346
84347 2004-12-18  Bruno Haible  <bruno@clisp.org>
84348
84349         * doc/alloca.texi: New file.
84350         * doc/alloca-opt.texi: New file.
84351
84352 2004-12-17  Jim Meyering  <jim@meyering.net>
84353
84354         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
84355         Otherwise, install-sh could exit with improper exit status when
84356         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
84357
84358 2004-12-16  Simon Josefsson  <jas@extundo.com>
84359
84360         * tests/test-base64.c: Add license.
84361
84362 2004-12-15  Stepan Kasal  <address@hidden>
84363
84364         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
84365
84366 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
84367
84368         * modules/getcwd (Files): Add m4/d-ino.m4.
84369         Suggested by Mark D. Baushke.
84370
84371 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84372
84373         * lib/getdate.y (textint): New member "negative".
84374         (time_zone_hhmm): New function.
84375         Expect 14 shift-reduce conflicts, not 13.
84376         (o_colon_minutes): New rule.
84377         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
84378         (yylex): Set the "negative" member of signed numbers.
84379
84380 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84381
84382         * doc/getdate.texi (Time of day items, Time zone items):
84383         Describe new formats +00:00, UTC+00:00.
84384
84385 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84386
84387         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
84388         spurious "-l"s.  Problem reported by Stepan Kasal.
84389
84390 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
84391
84392         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
84393         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
84394
84395 2004-12-04  Simon Josefsson  <jas@extundo.com>
84396
84397         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
84398         Vandoorselaere <yoann@prelude-ids.org>.
84399
84400 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84401
84402         Changes imported from coreutils.
84403         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
84404         exist.
84405         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
84406
84407 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84408
84409         Changes imported from coreutils.
84410         * lib/hard-locale.c: Assume <locale.h> exists.
84411         Include "strdup.h".
84412         (GLIBC_VERSION): New macro.
84413         (hard_locale): Assume setlocale exists.
84414         Rewrite to avoid #ifdef.
84415         Use strdup rather than malloc + strcpy.
84416         * lib/human.c: Assume <locale.h> exists.
84417         (human_readable): Assume localeconv exists.
84418
84419 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84420
84421         * modules/hard-locale (Depends-on): Add strdup.
84422
84423 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
84424
84425         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
84426         convert T2, not T.  (Imported from libc.)
84427
84428 2004-11-30  Simon Josefsson  <jas@extundo.com>
84429
84430         * modules/restrict (License): Change to LGPL.
84431
84432 2004-11-30  Simon Josefsson  <jas@extundo.com>
84433
84434         * m4/restrict.m4: Add copyright and copying conditions.
84435
84436 2004-11-30  Simon Josefsson  <jas@extundo.com>
84437
84438         * m4/base64.m4: New file.
84439
84440 2004-11-30  Simon Josefsson  <jas@extundo.com>
84441
84442         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
84443         base64.
84444
84445         * tests/test-base64.c: New file.
84446
84447         * modules/base64: New file.
84448
84449 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84450
84451         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
84452         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
84453
84454         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
84455
84456 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84457
84458         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
84459         (__getcwd.c): Don't restore errno; glibc doesn't.
84460         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
84461         first, falling back to our code only if its results look suspicious.
84462         Ensure that the resulting buffer is only as large as necessary.
84463
84464         * lib/readutmp.c: Include readutmp.h first.
84465         Include <errno.h>, since readutmp.h no longer does that.
84466         * lib/readutmp.h: Don't include <errno.h>,
84467         <sys/param.h>, <time.h>; not needed to establish interface.
84468         (errno): Remove decl.
84469         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
84470         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
84471         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
84472
84473 2004-11-28  Simon Josefsson  <jas@extundo.com>
84474
84475         * lib/base64.h, base64.c: New file.
84476
84477 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
84478
84479         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
84480
84481 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
84482
84483         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
84484         (Depends-on): Remove pathmax, same.  Add mempcpy.
84485         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
84486         (Makefile.am): Append getcwd.h to lib_SOURCES.
84487         (Include): Add getcwd.h.
84488         (Maintainer): Change from Jim Meyering to "all, glibc",
84489         since getdate now uses intended-for-glibc code.
84490         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
84491         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
84492
84493 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84494
84495         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
84496         HP's ANSI C compiler.
84497         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
84498         Declaring int functions causes warnings on some modern systems and
84499         shouldn't be needed to compile on ancient ones.
84500         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
84501         defined.
84502
84503         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
84504         with the following changes.
84505         (__set_errno): Parenthesize properly.
84506         Include <stdbool.h>.
84507         (MIN, MAX, MATCHING_INO): New macros.
84508         (__getcwd): Define with prototype, not K&R form.
84509         Use heuristics to allocate default buffer on stack if possible.
84510         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
84511         behavior, and to avoid the PATH_MAX limit when computing
84512         ../../../../...
84513         Use MATCHING_INO to compare inode number to file.
84514         Check for arithmetic overflow in size calculations.
84515         Fix bug in reallocation of dot array that caused getcwd to fail
84516         on directories nested deeper than 75.
84517         Be more careful about saving errno on error.
84518         Do not use realloc; use only free+malloc, as this is a bit
84519         more flexible and avoids a needless copy operation.
84520         Do not inspect st_dev and st_ino for symbolic links; POSIX
84521         doesn't specify the latter.
84522         Check for closedir errors.
84523         Avoid needless casts.
84524         Use "#ifdef weak_alias" around weak_alias, to be like other
84525         glibc code.
84526         The following changes to getcwd.c have effect only when used in
84527         gnulib; they have no effect inside glibc proper.
84528         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
84529         as alloca isn't used.
84530         (alloca, __alloca): Likewise.
84531         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
84532         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
84533         unconditionally, as gnulib assumes C89 or better.
84534         Do not include <sys/param.h>.
84535         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
84536         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
84537         better.
84538         (NULL) [!defined NULL]: Remove; we assume C89 or better.
84539         Include <dirent.h> in a way that is compatible with modern Autoconf.
84540         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
84541         New macros, if not already defined.
84542         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
84543         Use "_LIBC", not "defined _LIBC", for consistency.
84544         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
84545         a mempcpy module.
84546         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
84547         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
84548         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
84549         credit only to Jim Meyering and adjust the copyright dates.
84550         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
84551         <stdlib.h>, <unistd.h>, "pathmax.h".
84552         Instead, include "xgetcwd.h" (first) and "getcwd.h".
84553         (INITIAL_BUFFER_SIZE): Remove.
84554         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
84555
84556 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84557
84558         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
84559         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
84560         Use the _ONCE methods, for efficiency.
84561         Check for fcntl.h.  In test program, include <errno.h>
84562         and <fcntl.h> if available.  Remove old K&R cruft from
84563         test program.  Check for common errors in GNU/Linux,
84564         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
84565         don't do AC_LIBOBJ, as that's getcwd.m4's job.
84566         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
84567         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
84568         name accordingly.
84569         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
84570         accommodate new getcwd.c.
84571         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
84572         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
84573         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
84574         that's all we need now.
84575
84576 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84577
84578         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
84579         argp-parse.c depends on getopt internals, that means we should
84580         always use our getopt, to be on the safe side.
84581         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
84582         order not to spoil the result of an eventual previous invocation
84583         of gl_GETOPT_SUBSTITUTE.
84584
84585 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84586
84587         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
84588         redefinition warnings. To avoid them, include the defines
84589         in `#if !defined __need_getopt ... #endif'. The only place
84590         where __getopt_argv_const is used is in definitions
84591         of getopt_long and getopt_long_only below, which are as well
84592         protected by `#ifndef __need_getopt'.
84593         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
84594         __need_getopt after including <stdio.h> and <unistd.h> These
84595         headers might have defined it.
84596
84597 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84598
84599         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
84600
84601 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84602
84603         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
84604         (futimens): New function, which uses futimes if available.
84605         (futimens, utimens): Support timespec==NULL, with same semantics
84606         as utime and utimens.
84607         * lib/utimens.h (futimens): New decl.
84608
84609 2004-11-23  Jim Meyering  <jim@meyering.net>
84610
84611         * lib/getopt_.h: Remove trailing blanks.
84612
84613 2004-11-23  Jim Meyering  <jim@meyering.net>
84614
84615         * lib/__fpending.c: Add comment.
84616
84617 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
84618
84619         * modules/canonicalize (Depends-on): Add xreadlink.
84620         Problem reported by James Youngman.
84621
84622 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
84623
84624         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
84625         New macros.
84626         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
84627         optopt): Use them instead of invoking ## directly; otherwise, the
84628         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
84629
84630 2004-11-19  Bruno Haible  <bruno@clisp.org>
84631
84632         * lib/strtok_r.c: Move comments from here...
84633         * lib/strtok_r.h: ... to here.
84634
84635 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84636
84637         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
84638         implementations that mishandle size_t overflow.
84639
84640 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84641
84642         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
84643         might fail.  Problem reported by Yoann Vandoorselaere.
84644         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
84645         implementations that mishandle size_t overflow.
84646
84647 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84648
84649         * modules/canon-host (Depends-on): Add strdup.
84650
84651 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84652
84653         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
84654
84655 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84656
84657         * lib/canon-host.c: Include "strdup.h".
84658         (canon_host): Use getaddrinfo if available, so that IPv6 works.
84659         Use strdup instead of malloc/strcpy to duplicate strings.
84660
84661         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
84662         (human_space_before_unit): New constant.
84663         * lib/human.c (human_readable): Support it.
84664
84665         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
84666         (xgetcwd): Set errno correctly when failing.
84667         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
84668         the failure is actually due to a PATH_MAX problem.
84669
84670         Further getopt changes to make it more likely that glibc will
84671         buy the changes back.
84672         * lib/getopt.c (POSIXLY_CORRECT): New constant.
84673         (getopt): Use it, so to preserve glibc semantic
84674         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
84675         when compiling for libc.
84676         * lib/getopt_.h (__getopt_argv_const): Bring it back.
84677         (getopt_long, getopt_long_only): Use it.
84678
84679         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84680         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
84681         (getopt): Argv is now char * const *, as per standard.
84682         (_getopt_internal_r, _getopt_internal): Argv is now char **,
84683         not char *__getopt_argv_const *.
84684         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84685         _getopt_long_only_r): Likewise.
84686         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
84687         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84688         _getopt_long_r, _getopt_long_only_r): Likewise.
84689         * lib/getopt_.h (__getopt_argv_const): Remove.
84690         (getopt): Argv is now char * const *, as per standard.
84691
84692         * lib/getdate.y (tORDINAL): New token.
84693         (day, relunit): Allow it for relative times.
84694         (relative_time_table): Use tORDINAL for ordinals.
84695
84696 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84697
84698         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
84699         Document that "second" isn't allowed as an ordinal number.
84700
84701 2004-11-16  Jim Meyering  <jim@meyering.net>
84702
84703         * modules/closeout (Depends-on): Add fpending.
84704
84705 2004-11-15  Jim Meyering  <jim@meyering.net>
84706
84707         * lib/closeout.c: Include "__fpending.h" once again.
84708         Include <stdbool.h>.
84709         (close_stdout): Don't fail just because stdout was closed initially,
84710         since some programs don't write to stdout in the normal course of
84711         operation (other than --version and --help), and we don't want this
84712         function to make e.g. `touch file >&-' fail.
84713         But do fail if it was closed and someone has tried to write to it.
84714         E.g., `printf foo >&-' must fail.
84715
84716 2004-11-13  Jim Meyering  <jim@meyering.net>
84717
84718         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
84719
84720 2004-11-12  Simon Josefsson  <jas@extundo.com>
84721
84722         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
84723         small doc fix is still pending.
84724
84725 2004-11-11  Simon Josefsson  <jas@extundo.com>
84726
84727         * modules/strtok_r: New file.
84728
84729         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84730         strtok_r.
84731
84732 2004-11-11  Simon Josefsson  <jas@extundo.com>
84733
84734         * m4/strtok_r.m4: New file.
84735
84736         * m4/getopt.m4: Replace opterr.
84737
84738 2004-11-11  Simon Josefsson  <jas@extundo.com>
84739
84740         * lib/strtok_r.h, strtok_r.c: New file.
84741
84742 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84743
84744         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
84745         of replacing opterr, getopt, etc.  This should handle the
84746         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
84747
84748 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84749
84750         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
84751         we can stop lying to compilers about the constness of argv when we
84752         are compiled outside glibc.
84753         (getopt, getopt_long, getopt_long_only): Use it.
84754         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84755         _getopt_internal, getopt): Likewise.
84756         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84757         _getopt_long_only_r): Likewise.
84758         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84759         _getopt_long_r, _getopt_long_only_r): Likewise.
84760
84761         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
84762         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
84763         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
84764         the other external symbols.
84765         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
84766         declaration, since the above renaming now works around collisions.
84767
84768 2004-11-11  Jim Meyering  <jim@meyering.net>
84769
84770         * lib/linebreak.c: Remove trailing blanks.
84771         * lib/alloca_.h: Likewise.
84772         * lib/acosl.c: Likewise.
84773         * lib/euidaccess.c: Likewise.
84774         * lib/allocsa.h: Likewise.
84775
84776 2004-11-10  Simon Josefsson  <jas@extundo.com>
84777
84778         * m4/getaddrinfo.m4: New file.
84779
84780 2004-11-10  Simon Josefsson  <jas@extundo.com>
84781
84782         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
84783
84784 2004-11-10  Simon Josefsson  <jas@extundo.com>
84785
84786         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84787         getaddrinfo.
84788
84789         * modules/getaddrinfo: New file.
84790
84791 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84792
84793         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
84794
84795 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84796
84797         * lib/mktime.c (SHR): New macro, which is a portable
84798         substitute for >> that should work even on Crays.
84799         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
84800         Problem reported by Mark D. Baushke in
84801         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
84802         * lib/getdate.y (SHR): Likewise.
84803         (tm_diff): Use it.
84804         * lib/strftime.c (SHR): Likewise.
84805         (tm_diff): Use it.
84806         * lib/quotearg.c (struct quoting_options): Use unsigned int for
84807         quote_these_too, so that right shifts are well defined.  All uses
84808         changed.
84809
84810 2004-11-10  Jim Meyering  <jim@meyering.net>
84811
84812         Ensure that no close failure goes unreported.
84813         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
84814         return early when it seems there's nothing to flush.
84815         Don't include __fpending.h.
84816
84817 2004-11-10  Jim Meyering  <jim@meyering.net>
84818
84819         * modules/closeout (Depends-on): Remove fpending.
84820
84821 2004-11-10  Jim Meyering  <jim@meyering.net>
84822
84823         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
84824
84825 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84826
84827         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
84828         gl_FUNC_STRFTIME.
84829         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
84830         and AC_REQUIRE when possible, to avoid duplicate checks.
84831         Check for <wchar.h>.
84832
84833 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84834
84835         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
84836
84837 2004-11-09  Bruno Haible  <bruno@clisp.org>
84838
84839         * m4/sockpfaf.m4: New file.
84840
84841 2004-11-05  Bruno Haible  <bruno@clisp.org>
84842
84843         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
84844         Reported by Mark D. Baushke <mdb@cvshome.org>.
84845
84846 2004-11-04  Bruno Haible  <bruno@clisp.org>
84847
84848         2004-09-11  Bruno Haible  <bruno@clisp.org>
84849                 * allocsa.valgrind: New file.
84850         2004-02-06  Bruno Haible  <bruno@clisp.org>
84851                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
84852                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
84853                 Reported by Christopher Seip <chris.seip@hp.com>.
84854
84855 2004-11-04  Bruno Haible  <bruno@clisp.org>
84856
84857         * modules/allocsa (Files): Add lib/allocsa.valgrind.
84858         (Makefile.am): Distribute it.
84859
84860 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
84861
84862         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
84863         with errno == ERANGE if the buffer is too small.
84864         Problem reported by Mark D. Baushke.
84865
84866 2004-11-03  Albert Chin  <china@thewrittenword.com>
84867             Paul Eggert  <eggert@cs.ucla.edu>
84868
84869         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
84870         equivalent, substitute $ac_type for equivalent type rather than
84871         blindly using uint32_t *always* which won't work if uint32_t is not
84872         available.  Define _UINT32_T to work around typedef of uint32_t if
84873         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
84874         2.5.1.
84875
84876 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84877
84878         * m4/jm-macros.m4: Sync from coreutils.
84879         (gl_MACROS): Check for mbrlen, for pathchk.
84880         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
84881
84882 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84883
84884         * lib/xreadlink.c (MAXSIZE): New macro.
84885         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
84886         size does not exceed MAXSIZE.  Avoid cast.
84887         As suggested by Mark D. Baushke in
84888         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
84889         if readlink fails with buffer size just under MAXSIZE, try again
84890         with MAXSIZE.
84891
84892 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84893
84894         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
84895
84896 2004-11-02  Derek R. Price  <derek@ximbiot.com>
84897         and  Paul Eggert  <eggert@cs.ucla.edu>
84898
84899         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
84900         (get_date): Overparenthesize to avoid GCC warning.
84901
84902 2004-11-02  Bruno Haible  <bruno@clisp.org>
84903
84904         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
84905         returns void.
84906
84907 2004-11-02  Bruno Haible  <bruno@clisp.org>
84908
84909         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
84910         function returns void.
84911
84912 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84913
84914         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
84915         fflush_unlocked, flockfile, funlockfile, funlockfile,
84916         fputs_unlocked, putc_unlocked.
84917
84918 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84919
84920         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84921         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
84922         already declared.
84923
84924 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84925
84926         * modules/getdate (Files): Add doc/getdate.texi.
84927         (Depends-on): Add setenv, xalloc.
84928
84929 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84930
84931         * lib/getdate.y: Add support for TZ="foo" within a date string.
84932         Fix some bugs near time_t boundaries.  Reject dates with
84933         out-of-range components, e.g., "Sept 31".
84934         Include <stdlib.h>, "setenv.h", "xalloc.h".
84935         (ISDIGIT_LOCALE): Remove; unused.
84936         Note that the TZ and time functions used here are not reentrant.
84937         (mktime_ok, get_tz): New functions.
84938         (TZBUFSIZE): New constant.
84939         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
84940         This requires that we sometimes generate our own TZ="XXX..." setting.
84941
84942 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84943
84944         * doc/getdate.texi: New file, from coreutils with modifications for
84945         the new TZ parsing.
84946
84947 2004-10-27  Derek R. Price  <derek@ximbiot.com>
84948
84949         * lib/mktime.c (not_equal_tm): Remove redundant check.
84950
84951 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84952
84953         * modules/regex (lib_SOURCES): Add regex.c.
84954         Reported by James Youngman in
84955         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
84956
84957 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84958
84959         * lib/getdate.y: Use Bison 1.875 features, and some minor
84960         code cleanups.  This change does not affect semantics.
84961         Don't include <stdlib.h>; no longer needed.
84962         Don't include unlocked-io.h; only the "#if TEST" code uses
84963         stdio, and performance isn't crucial there.
84964         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
84965         Bison 1.875 features as described below.
84966         All uses of "PC." replaced by "pc->".
84967         (YYSTYPE): Add a forward declaration.
84968         (yylex, yyerror): Use full prototypes in forward decls.
84969         Use "%pure-parser" rather than obsolescent "%pure_parser".
84970         Use %parse-param and %lex-param instead of obsolescent
84971         YYPARSE_PARAM and YYLEX_PARAM.
84972         (meridian_table, month_and_day_table, time_units_table,
84973         relative_time_table, time_zone_table, military_table,
84974         lookup_zone, lookup_word, get_date):
84975         Use NULL instead of 0 where appropriate.
84976         (to_hour): Avoid abort (), to avoid a dependency on
84977         stdlib.h.
84978         (yyerror, yylex): Now accepts parser_control * arg.
84979         (main) [TEST]: Use '\0' rather than 0 for char.
84980
84981 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84982
84983         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
84984
84985 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84986
84987         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
84988         It's now the caller's responsibility to handle the case where
84989         !HAVE_GETPAGESIZE && !defined getpagesize.
84990
84991         * lib/mktime.c (leapyear): Arg is long int, not int.
84992
84993 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
84994
84995         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
84996
84997 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
84998
84999         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
85000         missing.  Problem reported by James Youngman.
85001
85002 2004-10-16  Simon Josefsson  <jas@extundo.com>
85003
85004         * gnulib-tool: Fix comments.  Fix parse problem.
85005         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
85006
85007 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
85008
85009         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
85010         implementation of getopt_long.  Problem reported by Alexander Taler in:
85011         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
85012
85013 2004-10-15  Bruno Haible  <bruno@clisp.org>
85014
85015         * gnulib-tool: Untabify. Initialize supplied_libname.
85016         (func_usage): More homogenous output.
85017         (func_modules_transitive_closure, func_modules_to_filelist,
85018         func_emit_lib_Makefile_am): New functions.
85019         (func_import): New function, extracted from big case statement. Use
85020         func_get_license, func_modules_transitive_closure,
85021         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
85022         opt_lgpl. Don't use test -a, as it's not portable.
85023         (func_create_testdir): Use func_modules_transitive_closure,
85024         func_modules_to_filelist, func_emit_lib_Makefile_am.
85025
85026 2004-10-15  Bruno Haible  <bruno@clisp.org>
85027
85028         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
85029
85030 2004-10-15  Bruno Haible  <bruno@clisp.org>
85031
85032         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
85033         the portions belonging to each module.
85034         Suggested by Derek Robert Price <derek@ximbiot.com>.
85035
85036 2004-10-12  Simon Josefsson  <jas@extundo.com>
85037
85038         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85039         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
85040         to real functions.
85041
85042 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85043
85044         * modules/vsnprintf: New file.
85045
85046 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85047
85048         * m4/vsnprintf.m4: New file.
85049
85050 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85051
85052         * lib/vsnprintf.h: New file.
85053         * lib/vsnprintf.c: New file.
85054
85055 2004-10-11  Bruno Haible  <bruno@clisp.org>
85056
85057         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
85058         vsnprintf.
85059
85060 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85061
85062         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
85063
85064 2004-10-07  Bruno Haible  <bruno@clisp.org>
85065
85066         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
85067         fits into the provided buffer.
85068
85069 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85070
85071         * lib/diacrit.c, diacrit.h: Add GPL notice.
85072
85073         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
85074         notice.
85075         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
85076         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
85077         This avoids a potential constant-folding bug.
85078
85079 2004-10-05  Bruno Haible  <bruno@clisp.org>
85080
85081         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
85082         for the declaration of strsep.
85083
85084 2004-10-05  Bruno Haible  <bruno@clisp.org>
85085
85086         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
85087
85088 2004-10-04  Simon Josefsson  <jas@extundo.com>
85089
85090         * modules/memmem: New file.
85091         * tests/test-memmem.c: New file.
85092         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
85093
85094 2004-10-04  Simon Josefsson  <jas@extundo.com>
85095
85096         * m4/memmem.m4: New file.
85097
85098 2004-10-04  Simon Josefsson  <jas@extundo.com>
85099
85100         * lib/memmem.h: New file.
85101         * lib/memmem.c: New file, taken from glibc.
85102
85103 2004-10-04  Simon Josefsson  <jas@extundo.com>
85104
85105         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
85106         '#ifdef USE_UNLOCKED_IO'.
85107
85108 2004-10-04  Simon Josefsson  <jas@extundo.com>
85109
85110         * config/srclist.txt: Add memmem from glibc.
85111
85112 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85113
85114         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
85115
85116         * modules/argmatch, modules/argp, modules/closeout, modules/error,
85117         modules/exclude, modules/getdate, modules/getline,
85118         modules/getndelim2, modules/getpass, modules/getpass-gnu,
85119         modules/getusershell, modules/linebuffer, modules/md5,
85120         modules/mountlist, modules/posixtm, modules/readtokens,
85121         modules/readutmp, modules/regex, modules/sha1,
85122         modules/version-etc, modules/yesno:
85123         Remove dependency on unlocked-io.
85124
85125 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85126
85127         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
85128
85129         * m4/unlocked-io.m4: Add copyright notice.
85130         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
85131
85132 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85133
85134         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
85135         * lib/xmalloc.c (xmemdup): Likewise.
85136         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
85137         XFREE): Remove these long-obsolescent macros.
85138         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
85139         * lib/xstrdup.c: Remove.
85140
85141         * lib/regex.c (re_comp): Cast gettext return value to char *,
85142         Problem reported by Martin Neitzel via Mark D. Baushke.
85143
85144 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85145
85146         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
85147         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
85148         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
85149         regex.c, sha1.c, version-etc.c, yesno.c:
85150         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
85151         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
85152         the includer's responsibility.
85153
85154         Sync from coreutils.
85155
85156         * lib/modechange.c (mode_compile): Don't decrement a pointer that
85157         points to the start of a string, as the C Standard says the
85158         resulting behavior is undefined.
85159
85160         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
85161         simple -> simple_backups, numbered_existing ->
85162         numbered_existing_backups, numbered -> numbered_backups
85163         to avoid shadowing problems.  All uses changed.
85164         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
85165         * lib/backupfile.c (check_extension, numbered_backup):
85166         Rename locals to avoid shadowing 'basename'.
85167         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
85168         once.
85169
85170         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
85171         * lib/.cvsignore: Add getopt.h.
85172
85173 2004-10-04  Bruno Haible  <bruno@clisp.org>
85174
85175         * modules/README: New file.
85176         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
85177         not a module.
85178
85179 2004-10-02  Jim Meyering  <jim@meyering.net>
85180
85181         * lib/dirfd.h, getpagesize.h: Add copyright notice.
85182
85183 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85184
85185         * modules/strsep: New file.
85186
85187 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85188
85189         * m4/strsep.m4: New file.
85190
85191 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85192
85193         * lib/strsep.h: New file.
85194         * lib/strsep.c: New file.
85195
85196 2004-10-01  Simon Josefsson  <jas@extundo.com>
85197
85198         * lib/snprintf.c (snprintf): Handle size==0.
85199
85200 2004-10-01  Simon Josefsson  <jas@extundo.com>
85201             Bruno Haible  <bruno@clisp.org>
85202
85203         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
85204         (snprintf): Declare 'args'.
85205
85206 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
85207
85208         * lib/snprintf.c: Remove comments as to why each header is needed.
85209
85210 2004-10-01  Bruno Haible  <bruno@clisp.org>
85211
85212         * MODULES.html.sh: Add strsep.
85213
85214 2004-09-30  Simon Josefsson  <jas@extundo.com>
85215
85216         * modules/snprintf: New file.
85217
85218 2004-09-30  Simon Josefsson  <jas@extundo.com>
85219
85220         * m4/snprintf.m4: New file.
85221
85222 2004-09-30  Simon Josefsson  <jas@extundo.com>
85223
85224         * lib/snprintf.h, lib/snprintf.c: New files.
85225
85226 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85227
85228         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
85229         (hol_entry_help): Never translate an empty string.
85230         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
85231         * lib/argp.h (OPTION_NO_TRANS): New option.
85232
85233 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85234
85235         * modules/argp (Maintainer): Replace Simon Josefsson
85236         by Sergey Poznyakoff.
85237
85238 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85239
85240         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
85241         changes merged back into glibc.
85242
85243 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85244
85245         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
85246
85247 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
85248
85249         * lib/xvasprintf.c: Include xalloc.h.
85250         (xvasprintf): Use xalloc_die, not xmalloc_die.
85251
85252 2004-09-29  Bruno Haible  <bruno@clisp.org>
85253
85254         * modules/alloca-opt: New file, derived from modules/alloca.
85255         * modules/allocsa: Depend on alloca-opt instead of alloca.
85256         * modules/setenv: Likewise.
85257         * modules/vasnprintf: Likewise.
85258         * MODULES.html.sh: Add alloca-opt.
85259
85260 2004-09-28  Simon Josefsson  <jas@extundo.com>
85261
85262         * gnulib-tool: New parameter --lgpl, to asseert that modules are
85263         LGPL, and to replace license template from GPL to LGPL.
85264
85265 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85266
85267         * modules/dummy: Change license to LGPL.
85268
85269 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85270
85271         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
85272
85273 2004-09-24  Simon Josefsson  <jas@extundo.com>
85274
85275         * modules/minmax (License): Change from GPL to LGPL.
85276
85277 2004-09-23  Simon Josefsson  <jas@extundo.com>
85278
85279         * gnulib-tool (--import): Typo.
85280
85281 2004-09-23  Simon Josefsson  <jas@extundo.com>
85282
85283         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
85284
85285 2004-09-22  Bruno Haible  <bruno@clisp.org>
85286
85287         * modules/*: Add 'License' field.
85288         * gnulib-tool: Accept --extract-license option.
85289         (func_get_license): New function.
85290
85291 2004-09-21  Bruno Haible  <bruno@clisp.org>
85292
85293         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
85294         Reported by Simon Josefsson.
85295
85296 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85297
85298         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
85299         gl_AC_TYPE_LONG_LONG.
85300
85301 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85302
85303         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
85304
85305 2004-09-18  Simon Josefsson  <jas@extundo.com>
85306         and  Paul Eggert  <eggert@cs.ucla.edu>
85307
85308         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
85309         calls with autoreconf.  Define GL_LIB.
85310
85311 2004-09-14  Karl Berry  <karl@gnu.org>
85312
85313         * config/srclist.txt: unsync setenv.c, sigh.
85314
85315 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85316
85317         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
85318         Problem reported by Bruno Haible in:
85319         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
85320
85321 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85322
85323         * config/srclist.txt: Comment out argp-pvh.c.
85324
85325 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
85326
85327         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
85328         in case some system header has #define'd it.  Problem reported by
85329         Soeren D. Schulze in
85330         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
85331
85332 2004-09-09  Karl Berry  <karl@gnu.org>
85333
85334         * regex.[ch]: delete from the root.  These were supposed to be
85335                 synced with emacs cvs, but this has not happened for about
85336                 a year, and anyway nothing else uses emacs regex.[ch].
85337                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
85338                 lib/regex[.ch] is untouched.
85339
85340 2004-09-09  Bruno Haible  <bruno@clisp.org>
85341
85342         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
85343
85344 2004-09-09  Bruno Haible  <bruno@clisp.org>
85345
85346         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
85347         modifications.
85348         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
85349
85350 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85351
85352         * modules/xvasprintf: New file.
85353         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
85354
85355 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85356
85357         * lib/xvasprintf.h: New file.
85358         * lib/xvasprintf.c: New file.
85359         * lib/xasprintf.c: New file.
85360
85361 2004-09-08  Bruno Haible  <bruno@clisp.org>
85362
85363         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
85364
85365 2004-09-08  Bruno Haible  <bruno@clisp.org>
85366
85367         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
85368         length is > INT_MAX.
85369         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
85370         more.
85371
85372 2004-09-08  Bruno Haible  <bruno@clisp.org>
85373
85374         * lib/stdint_.h: New file, taken from GNU clisp.
85375
85376 2004-09-08  Bruno Haible  <bruno@clisp.org>
85377             Oskar Liljeblad  <oskar@osk.mine.nu>
85378
85379         * modules/stdint: New file.
85380         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
85381
85382 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85383
85384         Import from coreutils.
85385         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
85386         strings on unbounded length.  alloca's performance benefits aren't
85387         that important here.
85388         (V_STRDUP): Remove.
85389         (parse_with_separator): New function, with most of the internals
85390         of the old parse_user_spec.  Allow user to omit both user and group,
85391         for compatibility with FreeBSD.
85392         Clone only the user name, not the entire spec.
85393         Do not set *uid, *gid unless entirely successful.
85394         Avoid memory leak in some failing cases.
85395         Fix regression for USER.GROUP reported by Dmitry V. Levin in
85396         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
85397         (parse_user_spec): Rewrite to use parse_with_separator.
85398
85399 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85400
85401         * modules/userspec: Don't depend on alloca.
85402
85403 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85404
85405         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
85406
85407 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85408
85409         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
85410         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
85411         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
85412
85413 2004-08-16  Simon Josefsson  <jas@extundo.com>
85414
85415         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
85416         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
85417         Add --dry-run for --import.
85418         Let user provided command line parameters override configure.ac
85419         settings.
85420
85421 2004-08-12  Simon Josefsson  <jas@extundo.com>
85422
85423         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
85424         as discussed with Paul Eggert in threads rooted at
85425         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
85426         and
85427         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
85428         Before, the test was empty, and relied on ELIDE_CODE in source
85429         code.)
85430         (gl_PREREQ_GETOPT): New macro.
85431         (gl_GETOPT): Use them.
85432
85433 2004-08-12  Simon Josefsson  <jas@extundo.com>
85434
85435         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
85436         * lib/getopt_.h: Renamed from getopt.h.
85437
85438 2004-08-12  Simon Josefsson  <jas@extundo.com>
85439
85440         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
85441         Change default library name from libfoo to libgnu.
85442         Now, if you have a configure.ac that says:
85443                 gl_SOURCE_BASE(gl)
85444                 gl_M4_BASE(gl/m4)
85445                 gl_MODULES(error getopt etcetera)
85446                 gl_INIT
85447         you can import all you need by running:
85448                 ../gnulib/gnulib-tool --import
85449
85450         * modules/getopt (Files): Rename getopt.h to getopt_.h.
85451         (Makefile.am): Rewrite, use logic from argz.
85452         (Include): Use <getopt.h> instead of "getopt.h".
85453
85454 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85455
85456         * modules/argp (Files): Add m4/unlocked-io.m4.
85457         (Depends-on): Add extensions.
85458
85459 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85460
85461         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
85462         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
85463         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
85464         Check for program_invocation_name, program_invocation_short_name,
85465         flockfile, funlockfile, features.h, _getopt_long_only_r.
85466
85467 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85468
85469         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
85470         its complicated substitute.
85471         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
85472         and program_invocation_name.
85473         (__argp_basename) [!_LIBC]: Remove; the only use was
85474         replaced by its body.
85475         (__argp_short_program_name): Change condition from
85476         !defined __argp_short_program_name to
85477         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
85478         to match argp-namefrob.h.
85479         (__argp_failure): Don't assume strerror_r returns char *.
85480         * lib/argp-parse.c (N_): Define unconditionally.
85481         (argp_default_options): Fill out initializers with 0 to avoid
85482         gcc warnings.
85483
85484 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85485
85486         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
85487         getopt1.c.
85488
85489 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85490
85491         Merge from coreutils.
85492
85493         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
85494
85495         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
85496         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
85497
85498 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85499
85500         Merge from coreutils.
85501
85502         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
85503         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
85504         for Reliant Unix 5.43.
85505
85506         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
85507         (union fooround): Use uintmax_t, not long int.
85508         The rest is a merge from libc:
85509         [defined _LIBC]: Include <shlib-compat.h>.
85510         (_obstack) [defined _LIBC]: Remove after 2.3.4.
85511
85512         * lib/settime.c (settime): Recode to avoid warning with
85513         Sun Forte C 6U2.
85514
85515         * lib/strverscmp.c: Convert to UTF-8.
85516
85517 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85518
85519         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85520         m4/uintmax_t.m4.
85521
85522 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85523
85524         * modules/xalloc-die: New file.
85525         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
85526
85527         * modules/md5 (Files): Add m4/uint32_t.m4.
85528         * modules/sha1: Renamed from modules/sha.
85529         (Files):
85530         Rename lib/sha.h to lib/sha1.h.
85531         Rename lib/sha.c to lib/sha1.c.
85532         Rename m4/sha.m4 to m4/sha1.m4.
85533         (lib_SOURCES): Likewise.
85534         (configure.ac): Rename gl_SHA to gl_SHA1.
85535         (Include): sha.h -> sha1.h.
85536
85537 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85538
85539         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
85540         * m4/sha1.m4: Renamed from sha.m4.
85541         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
85542
85543 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85544
85545         * lib/obstack.h (obstack_empty_p):
85546         Don't assume that chunk->contents is suitably aligned.
85547         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
85548         Likewise. Problem reported by Benno in
85549         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
85550
85551         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
85552         readable.  This could be improved further but it'd take some work.
85553
85554 2004-08-08  Simon Josefsson  <jas@extundo.com>
85555
85556         * modules/xgethostname (Depends-on): Remove exit and error (not
85557         used).
85558
85559         * modules/getpass-gnu: Add getpass.h.
85560         (Depends-on): Add stdbool.
85561         * modules/getpass: Add getpass.h.
85562
85563 2004-08-08  Simon Josefsson  <jas@extundo.com>
85564
85565         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
85566         Check getpass declaration.
85567
85568 2004-08-08  Simon Josefsson  <jas@extundo.com>
85569
85570         * lib/xgethostname.c: Don't include error.h (not used).
85571
85572         * lib/getpass.h: Add.
85573         * lib/getpass.c: Include getpass.h first.
85574
85575 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
85576
85577         * lib/xalloc-die.c: New file.
85578         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
85579         All uses removed.
85580         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
85581         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
85582         xalloc-die.c.
85583         (_, N_, xalloc_die): Move to xalloc-die.c.
85584         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
85585         so that we needn't mess with xalloc_msg_memory_exhausted.
85586
85587         * lib/sha1.h: Renamed from sha.h.
85588         (SHA1_H): Renamed from _SHA_H.
85589         (sha1_ctx): Renamed from sha_ctx.
85590         (sha1_init_ctx): Renamed from sha_init_ctx.
85591         (sha1_process_block): Renamed from sha_process_block.
85592         (sha1_process_bytes): Renamed from sha_process_bytes.
85593         (sha1_finish_ctx): Renamed from sha_finish_ctx.
85594         (sha1_read_ctx): Renamed from sha_read_ctx.
85595         (sha1_stream): Renamed from sha_stream.
85596         (sha1_buffer): Renamed from sha_buffer.
85597         * lib/sha1.c: Likewise; renamed from sha.c.
85598         Do not include <sys/types.h>.
85599         Include <stddef.h> rather than <stdlib.h>.
85600
85601 2004-08-08  Bruno Haible  <bruno@clisp.org>
85602
85603         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
85604         FILESYSTEM_PREFIX_LEN.
85605         * lib/progreloc.c: Likewise.
85606         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
85607
85608 2004-08-06  Simon Josefsson  <jas@extundo.com>
85609
85610         * modules/progname (Depends-on): Don't depend on stdbool.
85611
85612 2004-08-06  Simon Josefsson  <jas@extundo.com>
85613
85614         * modules/getsubopt: New file.
85615         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85616         getsubopt.
85617
85618 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85619
85620         More merge from coreutils.
85621
85622         * m4/utimens.m4, m4/utimecmp.m4: New files.
85623         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
85624         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
85625         prereq.m4, sha.m4: Import changes from coreutils.
85626
85627 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85628
85629         More merge from coreutils.
85630         * modules/raise, modules/readtokens0, modules/utimens:
85631         * modules/utimecmp, module/xnanosleep: New files.
85632         * modules/strftime: Add lib/strftime.h.
85633         Change include from <time.h> to "strftime.h".
85634         * modules/yesno: Add lib/yesno.h.
85635         * modules/backupfile: Remove lib/addext.c.
85636         * modules/euidaccess: Add stat-macros.h.
85637         * modules/canonicalize, modules/euidaccess,
85638         modules/filemode, modules/lchown, modules/makepath,
85639         modules/rmdir, modules/stat: Likewise.
85640
85641 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85642
85643         Merge from tar.
85644         * lib/argp-help.c (make_hol, hol_append): Don't assume that
85645         SIZE_MAX is a valid preprocessor constant.
85646         (__argp_basename): Change from "#ifndef _LIBC"
85647         to "#ifndef __argp_short_program_name", so that
85648         we don't compile these functions for tar.
85649
85650         More merges from coreutils.
85651         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
85652         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
85653         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
85654         * lib/addext.c: Remove; no longer needed.
85655         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
85656         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
85657         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
85658         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
85659         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
85660         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
85661         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
85662         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
85663         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
85664         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85665         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
85666         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
85667         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
85668         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
85669         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
85670         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
85671         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
85672         Import changes from coreutils.
85673
85674 2004-08-05  Simon Josefsson  <jas@extundo.com>
85675
85676         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
85677
85678 2004-08-05  Simon Josefsson  <jas@extundo.com>
85679
85680         * m4/getsubopt.m4: New file.
85681
85682 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85683
85684         Merge from coreutils.
85685
85686         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
85687         * m4/getcwd-path-max.m4: New files.
85688
85689         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
85690         FILESYSTEM_PREFIX_LEN ->
85691         FILE_SYSTEM_PREFIX_LEN.
85692         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
85693         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
85694         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
85695         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
85696
85697         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
85698         prerequisite modules now handle the DOS stuff.
85699         Don't check for unistd.h.
85700
85701 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85702
85703         Merge from coreutils.
85704
85705         * lib/.gdb-history: Remove; this doesn't belong here.
85706
85707         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
85708         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
85709         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
85710         * lib/getcwd.c: New files.
85711
85712         * lib/dirname.h: Include <stdbool.h>.
85713         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
85714         for consistency with POSIX terminology.  All uses changed.
85715         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
85716         (strip_trailing_slashes): Use bool for booleans.
85717         * lib/stripslash.c (strip_trailing_slashes): Likewise.
85718
85719         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
85720         sometimes returns a positive errno value even when it succeeds.
85721         (print_errno_message) [!LIBC]: Fall back on strerror if
85722         __strerror_r fails.
85723
85724         * lib/path-concat.c (mempcpy): Don't define if a system header defines
85725         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
85726         (longest_relative_suffix): New function.
85727         (path_concat): Use it.  Assume first argument is not NULL.
85728         Port to DOS.  Omit redundant separators.
85729         Report an error instead of returning NULL.
85730         Use mempcpy instead of memcpy.
85731         (xpath_concat): Remove: not declared or used.
85732
85733         * lib/same.h: Include <stdbool.h>
85734         (same_name): Return bool, not int.
85735         * lib/same.c (same_name): Likewise.
85736         (errno): Don't declare; we assume C89 or better now.
85737
85738         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
85739         if not already defined.
85740
85741         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
85742         * lib/dup-safer.c (errno): Likewise.
85743
85744 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85745
85746         Merge from coreutils.
85747         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
85748         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
85749         * modules/path-concat: Don't depend on strdup.
85750
85751 2004-08-03  Simon Josefsson  <jas@extundo.com>
85752
85753         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
85754         * lib/progname.h: Don't include stdbool.h.
85755
85756 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85757
85758         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
85759         * MODULES.html.sh (func_all_modules): Remove fatal.
85760
85761 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85762
85763         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
85764
85765 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85766
85767         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
85768         working.
85769
85770 2004-08-02  Simon Josefsson  <jas@extundo.com>
85771
85772         * lib/getsubopt.h: New file, with comments from Bruno Haible.
85773         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
85774         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
85775
85776 2004-08-01  Simon Josefsson  <jas@extundo.com>
85777
85778         * lib/xgetdomainname.c: Include stdlib.h, for free().
85779
85780 2004-07-19  Bruno Haible  <bruno@clisp.org>
85781
85782         * MODULES.html.sh (func_all_modules): Add dummy.
85783
85784 2004-07-16  Simon Josefsson  <jas@extundo.com>
85785
85786         * modules/dummy: New file.
85787
85788 2004-07-16  Simon Josefsson  <jas@extundo.com>
85789
85790         * lib/dummy.c: New file.
85791
85792 2004-07-16  Bruno Haible  <bruno@clisp.org>
85793
85794         * lib/backupfile.h: Add extern "C" for C++.
85795         * lib/closeout.h: Likewise.
85796         * lib/copy-file.h: Likewise.
85797         * lib/findprog.h: Likewise.
85798         * lib/full-write.h: Likewise.
85799         * lib/pathname.h: Likewise.
85800         * lib/progname.h: Likewise.
85801         * lib/stpcpy.h: Likewise.
85802         * lib/stpncpy.h: Likewise.
85803         * lib/strcase.h: Likewise.
85804         * lib/strstr.h: Likewise.
85805         * lib/xalloc.h: Likewise.
85806
85807         * lib/mbswidth.h: Add extern "C" for C++.
85808         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
85809
85810 2004-07-13  Robert Millan  <robertmh@gnu.org>
85811
85812         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
85813
85814 2004-07-09  Simon Josefsson  <jas@extundo.com>
85815
85816         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
85817         failed without this.)
85818
85819 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85820
85821         * modules/chown (Files): Add lib/fchown-stub.c, since
85822         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
85823
85824 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85825
85826         * lib/fchown-stub.c: New file.
85827
85828 2004-06-24  Jim Meyering  <jim@meyering.net>
85829
85830         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
85831
85832 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85833
85834         * modules/argz: Omit "#include".
85835
85836         * MODULES.html.sh (func_all_modules): Add calloc, to match
85837         2004-06-01 addition of calloc module.
85838
85839 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85840
85841         * m4/argz.m4: New file, which is autoupdated from libtool.
85842
85843 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85844
85845         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
85846         libtool.
85847
85848 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85849
85850         * config/srclist-update: Don't insist on "USA." before the
85851         close-comment, as libtool omits the period and puts the */ on a
85852         separate line.
85853         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
85854         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
85855
85856 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
85857
85858         * modules/argz: New file.
85859         * MODULES.html.sh (func_all_modules): Add argz.
85860
85861 2004-06-12  Jim Meyering  <jim@meyering.net>
85862         and  Paul Eggert  <eggert@cs.ucla.edu>
85863
85864         * modules/hash (Files): Add lib/xalloc.h.
85865         * modules/pipe (Depends-on): Add wait-process.
85866         * modules/stat (Depends-on): Add xalloc.
85867         * modules/userspec (Files): Add lib/userspec.h.
85868         * modules/xstrto
85869
85870         Upgrade from gettext-0.13.
85871         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
85872         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
85873         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
85874
85875 2004-06-10  Jim Meyering  <jim@meyering.net>
85876
85877         * lib/calloc.c: New file.
85878
85879 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
85880
85881         * lib/getdate.y (yylex): Allow space between sign and number.
85882         Problem reported by Dan Jacobson.
85883
85884 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85885
85886         Merge from coreutils CVS.
85887
85888         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
85889         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
85890         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
85891         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
85892         xstrtol.m4: Fix copyright date and/or serial number.
85893
85894         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
85895         See if we need an fchown replacement.
85896         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
85897         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
85898         and use the replacement function if we detect either defect.
85899
85900         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
85901         gl_UTIMECMP.
85902
85903 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85904         and  Jim Meyering  <jim@meyering.net>
85905
85906         Merge from coreutils CVS.
85907
85908         * lib/stat-macros.h: New file, with contents from file-type.h
85909         and coreutils' system.h.
85910         * lib/file-type.c: Include "stat-macros.h".
85911         * lib/file-type.h (file_type): Move all macro definitions to new file,
85912         stat-macros.h.
85913
85914         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
85915         Wrap old code with this conditional.
85916         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
85917         function that does not dereference symlinks.
85918         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
85919
85920         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
85921         dependency problems.
85922         (xreadlink): Accept new arg SIZE, for efficiency.
85923         All decls and uses changed.
85924         * lib/xreadlink.h: Include <stddef.h>, for size_t.
85925
85926         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
85927         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
85928
85929         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
85930         sysexits.h.
85931
85932 2004-06-01  Jim Meyering  <jim@meyering.net>
85933
85934         * m4/calloc.m4: New file.
85935
85936 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
85937
85938         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
85939         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
85940         Also, fix a typo in a diagnostic.
85941
85942 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85943
85944         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
85945         or AC_FUNC_REALLOC.
85946
85947 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85948
85949         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
85950         macros to be defined.
85951         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
85952         the allocator returns NULL because the requested size is zero.
85953
85954 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85955
85956         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
85957         var.  Add comment explaining why libc still defines it.  This
85958         merges the following patch from glibc:
85959         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
85960
85961 2004-05-20  Andreas Schwab  <schwab@suse.de>
85962
85963         * m4/free.m4: Replace free if it not known to work, not the other
85964         way round.
85965
85966 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
85967
85968         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
85969         present in glibc since revision 1.1 of this file.
85970         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
85971         obstack_alignment_mask, obstack_alloc, obstack_base,
85972         obstack_blank, obstack_blank_fast, obstack_chunk_size,
85973         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
85974         obstack_grow0, obstack_init, obstack_int_grow,
85975         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
85976         obstack_next_free, obstack_object_size, obstack_ptr_grow,
85977         obstack_ptr_grow_fast, obstack_room): Remove declarations of
85978         nonexistent functions.
85979
85980 2004-05-18  Karl Berry  <karl@gnu.org>
85981
85982         * config/srclist.txt: break link for vasnprintf.c.
85983
85984 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85985
85986         Port obstack to the AS/400, where pointers are 16 bytes wide and
85987         you cannot cast an integer to a valid pointer.  This patch is
85988         currently waiting to be integrated into glibc; see
85989         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
85990
85991         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
85992         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
85993         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
85994         (struct obstack): temp member is now a union of a pointer and
85995         an integer, instead of an integer.  All integer uses changed.
85996         This does not affect the physical layout of struct obstack,
85997         except on hosts (like the AS/400) where the size or alignment of
85998         void * is greater than that of ptrdiff_t.
85999         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
86000         __STDC__)]: Store temporary in pointer member of union, not
86001         integer member.
86002         * lib/obstack.c: Include <stddef.h>, for offsetof.
86003         (struct fooalign): Remove; it doesn't need a name.
86004         (union fooround): Change double to long double, and add void *.
86005         (DEFAULT_ALIGNMENT): Use offsetof to compute.
86006         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
86007         not a macro.  Hence the values are always int; so remove all
86008         casts-to-int in uses.
86009
86010 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86011
86012         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
86013         we can get this patch merged into glibc.
86014
86015 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86016             Paul Eggert  <eggert@cs.ucla.edu>
86017
86018         * m4/argp: Depend on alloca.
86019
86020 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86021             Paul Eggert  <eggert@cs.ucla.edu>
86022
86023         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
86024         freecoding.
86025
86026 2004-05-17  Bruno Haible  <bruno@clisp.org>
86027
86028         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
86029         precision that consists of a '.' followed by an empty digit string.
86030         Patch by Tor Lillqvist <tml@iki.fi>.
86031
86032 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86033
86034         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
86035         for backward compatibility with older code.  We need our own
86036         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
86037         it under some other name, and our alloca.h will define it.
86038
86039 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86040             Derek Price  <derek@ximbiot.com>
86041
86042         * lib/alloca.c: Include <alloca.h>, to get our interface.
86043         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
86044         include <alloca.h> first.  Use C89 prototype for alloca; this
86045         requires including <stddef.h> for size_t.  Use extern "C" if C++.
86046         Use #elif for simplicity, since we can assume C89 now.
86047         Don't try to source the system alloca.h since it will not be found
86048         and to prevent recursively including its replacement.
86049         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
86050         * lib/regex.c: Likewise.
86051
86052 2004-05-16  Derek Price  <derek@ximbiot.com>
86053             Paul Eggert  <eggert@cs.ucla.edu>
86054
86055         getline cleanup.  This changes the getndelim2 API: both order of
86056         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
86057         no delimiter).
86058
86059         * lib/getline.c: Don't include stddef.h or stdio.h, since our
86060         interface does that.
86061         (getline): Always use getdelim, so that we don't have two
86062         copies of this code.
86063         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
86064         if available.
86065         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
86066         (GETNDELIM2_MAXIMUM): New macro.
86067         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
86068         instead of the old practice of delim2==0.  All callers changed.
86069         Return -1 on overflow, instead of returning junk.
86070         Do not set *linesize unless allocation succeeds.
86071         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
86072         that we include sys/types.h.
86073         * lib/getnline.h: Likewise.
86074         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
86075         (getndelim2): Reorder arguments.
86076         * lib/getnline.c (getnline, getndelim):
86077         Don't discard the NMAX argument.
86078         (getnline): Invoke getndelim, to avoid code duplication.
86079         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
86080         of (size_t) -1 by callers of the getnline family.
86081
86082 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86083
86084         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
86085         Check for gettimeofday.
86086         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
86087         Check for settimeofday, stime.
86088
86089 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86090
86091         * lib/nanosleep.c (suspended): Change its type from int to
86092         sig_atomic_t volatile.
86093         (first_call): Make it private to rpl_nanosleep, and have it
86094         be zero initially as that's a bit faster.
86095         (my_usleep): Round up fractional times instead of truncating them,
86096         as this is the usual meaning for 'sleep'.
86097
86098         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
86099         doesn't work.
86100         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
86101         (ENOSYS): Define if not defined.
86102         (settime): Fall back on stime if it exists and settimeofday fails.
86103         But don't bother with fallbacks if a method fails with errno == EPERM.
86104
86105 2004-05-11  Jim Meyering  <jim@meyering.net>
86106
86107         Prior to this change, the save_cwd caller required read access to the
86108         current directory on most systems (ones with the fchdir function).
86109
86110         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
86111         fails, try write-only, and finally, resort to using xgetcwd.
86112
86113 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86114
86115         * lib/obstack.c, obstack.h: Import changes from libc.
86116
86117 2004-04-28  Bruno Haible  <bruno@clisp.org>
86118
86119         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
86120         also implicitly appends .exe to executables.
86121         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
86122         accepts Windows pathnames.
86123         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86124         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86125         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86126         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86127         Reported by Derek Robert Price <derek@ximbiot.com>.
86128
86129 2004-04-21  Karl Berry  <karl@gnu.org>
86130
86131         * config/srclist.txt (localcharset.c): break sync.
86132
86133 2004-04-20  Paul Eggert  <eggert@twinsun.com>
86134
86135         * m4/host-os.m4: Add a copyright notice.
86136
86137 2004-04-20  Jim Meyering  <jim@meyering.net>
86138
86139         Change UTILS_ to gl_ in AC_DEFINE'd names.
86140         Change utils_- and jm_-prefixed variables, too.
86141         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
86142         UTILS_FUNC_MKDIR_TRAILING_SLASH.
86143         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
86144
86145         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
86146         Don't emit trailing blanks.
86147         Also rename jm_-prefixed variables to have gl_ prefix.
86148
86149         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
86150         Also rename jm_-prefixed variables to have gl_ prefix.
86151
86152         * m4/jm-macros.m4: Reflect the renamings.
86153         * m4/prereq.m4: Likewise.
86154
86155 2004-04-20  Jim Meyering  <jim@meyering.net>
86156
86157         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
86158         memory.
86159
86160 2004-04-20  Jim Meyering  <jim@meyering.net>
86161             Bruno Haible  <bruno@clisp.org>
86162
86163         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
86164         memory when realloc fails.
86165
86166 2004-04-19  Jim Meyering  <jim@meyering.net>
86167
86168         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
86169         now that readutmp.c may call `free (0)'.
86170
86171 2004-04-19  Bruno Haible  <bruno@clisp.org>
86172
86173         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
86174         * m4/inttypes_h.m4: Likewise.
86175         * m4/stdint_h.m4: Likewise.
86176         * m4/intmax_t.m4: Likewise.
86177         * m4/uintmax_t.m4: Likewise.
86178
86179 2004-04-18  Jim Meyering  <jim@meyering.net>
86180
86181         * m4/prereq.m4: Don't forbid jm_ prefix.
86182
86183         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
86184         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
86185         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
86186         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
86187         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
86188         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
86189         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
86190         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
86191         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
86192         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
86193         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
86194         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
86195         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
86196         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
86197         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
86198         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
86199         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
86200         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
86201         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
86202
86203 2004-04-18  Jim Meyering  <jim@meyering.net>
86204
86205         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
86206         failure, don't leak memory and do call END_UTMP_ENT.
86207
86208 2004-04-16  Jim Meyering  <jim@meyering.net>
86209
86210         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
86211         coreutils' stat program.
86212         (gl_PREREQ): Don't require jm_PREREQ_STAT.
86213
86214 2004-04-11  Paul Eggert  <eggert@twinsun.com>
86215
86216         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
86217         C89.
86218         (CHAR_BIT): Remove, since we assume C89.
86219         Include <stdint.h> if available, as per current Autoconf CVS advice.
86220
86221 2004-03-31  Jim Meyering  <jim@meyering.net>
86222
86223         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
86224         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
86225         * m4/xalloc.m4: Likewise.
86226
86227 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86228
86229         Merge from coreutils.
86230
86231         * m4/inttostr.m4: New file.
86232         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
86233         Require AM_STDBOOL_H and gl_TIMESPEC instead.
86234         Require gl_CLOCK_TIME.
86235         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
86236
86237 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86238
86239         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
86240         not bool, to be more consistent with Unix conventions.
86241         Suggested by Bruno Haible.
86242
86243         Merge from coreutils.
86244
86245         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
86246         * lib/umaxtostr.c: New files.
86247
86248         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
86249         the usual <time.h> dance.
86250         (get_date): Change signature to support fractional time stamps.
86251         All callers changed.
86252         * lib/getdate.y: Include "getdate.h" first, as we can now
86253         assume C89 and don't need to worry about 'const'.
86254         Similarly, include "unlocked-io.h" near start, not in middle.
86255         Include <limits.h>.
86256         (textint.value): Use long int rather than int.
86257         (textint.digits): Use size_t rather than int.
86258         (BILLION, LOG10_BILLION): New constants.
86259         (parser_control): New member rel_ns.  Members day_ordinal,
86260         time_zone, month, day, hour, minutes, rel_year, rel_month,
86261         rel_day, rel_hour, rel_minutes, rel_seconds
86262         are now long int, not int.  Member seconds is now struct timespec,
86263         not int.  New member timespec_seen.  Members dates_seen, days_seen,
86264         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
86265         not int.
86266         (%union.intval): Now long int, not int.
86267         New member timespec.
86268         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
86269         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
86270         (spec): Now is a timespec or an item list.
86271         (timespec, items): New nonterminals.
86272         (time, rel, relunit, number, get_date):
86273         Add support for fractional seconds.
86274         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
86275         (gmtime, localtime, mktime): Remove decls; not needed with C89.
86276         (to_hour): First arg is now long int, not int.
86277         (to_year): Returns long int, not int.
86278         Don't treat year -70 like 70.
86279         (tm_diff): Returns long int, not int.
86280         (lookup_word): Use bool instead of int when appropriate.
86281         (yylex): Use size_t for count, not int.
86282         Detect overflow when parsing large integer constants.
86283         Add support for fractions.
86284         (get_date): Make pointers 'const' if possible.
86285         Use more-portable code to detect integer overflow.
86286         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
86287         Don't use ctime; it's not reliable if the year has >4 digits.
86288
86289         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
86290         This is for compatibility with BSD.
86291
86292         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
86293         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
86294         From coreutils' system.h.
86295
86296         * lib/userspec.c: Don't include "posixver.h".
86297         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
86298         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
86299         compatible extension.  Simplify code by removing a boolean int
86300         that was always nonzero if a string was nonnull.
86301
86302 2004-03-30  Jim Meyering  <jim@meyering.net>
86303
86304         Merge from coreutils.
86305
86306         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
86307         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
86308         on some systems one must include <grp.h> before it.
86309         Reported by Christian Krackowizer.
86310
86311 2004-03-30  Jim Meyering  <jim@meyering.net>
86312
86313         Merge from coreutils.
86314
86315         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
86316
86317         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
86318         an empty input stream.
86319
86320         * lib/readtokens.c: Include <stdbool.h>.
86321         (readtoken): Use `size_t' rather than int/long.
86322         All callers adjusted.
86323         Use `bool' rather than `int' where appropriate.
86324         Use memset rather than an explicit loop.
86325         Use x2nrealloc rather than xrealloc.
86326         Allow the use of `\0' as a delimiter.
86327         (readtokens): Likewise.
86328         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
86329
86330 2004-03-30  Jim Meyering  <jim@meyering.net>
86331
86332         * m4/realloc.m4: Remove file, since now it does no more than
86333         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
86334         the `configure.ac' section of module/realloc.
86335         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
86336
86337 2004-03-30  Bruno Haible  <bruno@clisp.org>
86338
86339         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
86340         nonnull.
86341
86342 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86343
86344         Merge changes to getloadavg.c from coreutils and Emacs.
86345
86346         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
86347         Define to an expression, not to the empty string.
86348         Include cloexec.h and xalloc.h.
86349         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
86350         Use set_cloexec_flag rather than rolling our own.
86351         * lib/cloexec.c, lib/cloexec.h: New files.
86352
86353 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86354
86355         * m4/cloexec.m4: New file.
86356
86357 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86358
86359         * lib/getopt.h: Sync with libc CVS.
86360
86361 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86362             Bruno Haible  <bruno@clisp.org>
86363
86364         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
86365         mbswidth.
86366
86367 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86368             Bruno Haible  <bruno@clisp.org>
86369
86370         * lib/mbswidth.h: Include <wchar.h> only if
86371         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
86372         <wchar.h>.
86373         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
86374
86375 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86376
86377         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
86378         Sync with libc CVS.
86379         * lib/getopt_int.h: New file, also synced from libc.
86380
86381 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86382
86383         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
86384         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
86385         Bring back getopt.c, getopt.h, getopt1.c.
86386
86387 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86388
86389         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
86390         All uses changed.  Check for sa_sigaction member; this fixes
86391         a bug first reported by Jason Andrade in
86392         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86393
86394 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86395
86396         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
86397         '#if' expressions.  Unlike the code it replaces, it does not
86398         depend on (defined _SC_PAGESIZE).  However, it does depend on
86399         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
86400         first reported by Jason Andrade in
86401         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86402
86403 2004-02-25  Simon Josefsson  <jas@extundo.com>
86404
86405         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
86406
86407 2004-02-25  Simon Josefsson  <jas@extundo.com>
86408
86409         * lib/strdup.h: New file.
86410         * lib/strdup.c: Include it.
86411         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
86412         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
86413
86414 2004-02-23  Karl Berry  <karl@gnu.org>
86415
86416         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
86417         (from fencepost.gnu.org:/gd/gnuorg).
86418
86419 2004-02-23  Karl Berry  <karl@gnu.org>
86420
86421         * config/srclistvars.sh (GNUORG) [karl]: redefine.
86422         * config/srclist.txt: add maintain/standards documents.
86423
86424 2004-02-18  Bruno Haible  <bruno@clisp.org>
86425
86426         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
86427         Reported by Derek Robert Price <derek@ximbiot.com>.
86428
86429 2004-02-16  Karl Berry  <karl@gnu.org>
86430
86431         * config/mkinstalldirs, install-sh: update from automake.
86432
86433 2004-02-06  Karl Berry  <karl@gnu.org>
86434
86435         * m4/po.m4: update from gettext 0.14.1.
86436
86437 2004-02-06  Karl Berry  <karl@gnu.org>
86438
86439         * lib/config.charset: update from gettext 0.14.1.
86440
86441 2004-02-05  Paul Eggert  <eggert@twinsun.com>
86442
86443         Add comments and code, prompted by suggestions from Bruno Haible
86444         for sh-quote.
86445         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
86446         describing the enum quoting_style values.
86447         * lib/quotearg.c (quotearg_alloc): New function.
86448         (quotearg_buffer_restyled): Treat lone { and } as special.
86449         Treat = as special.  Work around bug with older shells
86450         that "see" a '\' that is really the 2nd byte of a multibyte char.
86451         Quote empty string with shell_quoting_style.
86452
86453 2004-02-03  Bruno Haible  <bruno@clisp.org>
86454
86455         * m4/pipe.m4: New file, from GNU gettext.
86456
86457 2004-02-03  Bruno Haible  <bruno@clisp.org>
86458
86459         * lib/pipe.h: New file, from GNU gettext.
86460         * lib/pipe.c: New file, from GNU gettext.
86461
86462 2004-01-27  Bruno Haible  <bruno@clisp.org>
86463
86464         * m4/execute.m4: New file, from GNU gettext.
86465
86466 2004-01-27  Bruno Haible  <bruno@clisp.org>
86467
86468         * lib/execute.h: New file, from GNU gettext.
86469         * lib/execute.c: New file, from GNU gettext.
86470         * lib/w32spawn.h: New file, from GNU gettext.
86471
86472 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86473
86474         Merge from diffutils.
86475
86476         * lib/file-type.c (file_type): Add typed memory objects.
86477         * lib/file-type.h (S_TYPEISTMO): New macro.
86478
86479         * lib/c-stack.h (c_stack_action): Remove argv argument.
86480         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
86481         (die): Don't calculate message unless segv_action returns.
86482         (get_stack_location, min_address_from_argv, max_address_from_argv,
86483         volatile stack_base, volatile_stack_size): Remove.
86484         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
86485         that every segmentation violation is a stack overflow.  (Ouch!)
86486         See Debian bug 136249 (still outstanding) for more info about why
86487         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
86488
86489 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86490
86491         Exit-status fix from coreutils.
86492
86493         Use exit_failure consistently in place of EXIT_FAILURE,
86494         so that program exit statuses are consistent on failure.
86495
86496         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
86497         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
86498         * lib/argmatch.h: Comment fix to match the above.
86499         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
86500         Now a macro referring to exit_failure, instead of a separate
86501         variable.  Include "exitfail.h" to get it.
86502         * lib/xstrtol.h: Include "exitfail.h".
86503         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
86504
86505         * lib/long-options.c (parse_long_options): Use prototype
86506         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
86507         for clarity.
86508
86509 2004-01-21  Jim Meyering  <jim@meyering.net>
86510
86511         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
86512         so as not to conflict with a different-sized __mktime_internal
86513         function in GNU libc.
86514         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
86515         Problem building statically-linked `ls' reported by Michael Brunnbauer.
86516
86517 2004-01-20  Karl Berry  <karl@gnu.org>
86518
86519         * config/config.guess: update from config.
86520
86521         * config/srclistvars.sh: GNUWWWLICENSES for karl.
86522
86523 2004-01-20  Bruno Haible  <bruno@clisp.org>
86524
86525         Safer stack allocation.
86526         * lib/setenv.c: Include allocsa.h.
86527         (alloca): Remove fallback definition.
86528         (freea): Remove macro.
86529         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
86530         instead of freea.
86531
86532 2004-01-20  Bruno Haible  <bruno@clisp.org>
86533
86534         * m4/eealloc.m4: New file, from GNU gettext.
86535
86536 2004-01-20  Bruno Haible  <bruno@clisp.org>
86537
86538         * m4/allocsa.m4: New file, from GNU gettext.
86539
86540 2004-01-20  Bruno Haible  <bruno@clisp.org>
86541
86542         * lib/xallocsa.h: New file, from GNU gettext.
86543         * lib/xallocsa.c: New file, from GNU gettext.
86544
86545 2004-01-20  Bruno Haible  <bruno@clisp.org>
86546
86547         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
86548
86549 2004-01-20  Bruno Haible  <bruno@clisp.org>
86550
86551         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
86552         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
86553         specially.
86554
86555 2004-01-20  Bruno Haible  <bruno@clisp.org>
86556
86557         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
86558         patch.
86559
86560 2004-01-20  Bruno Haible  <bruno@clisp.org>
86561
86562         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
86563
86564 2004-01-20  Bruno Haible  <bruno@clisp.org>
86565
86566         * lib/eealloc.h: New file.
86567
86568 2004-01-20  Bruno Haible  <bruno@clisp.org>
86569
86570         * lib/binary-io.h: Avoid warnings on Cygwin.
86571
86572 2004-01-20  Bruno Haible  <bruno@clisp.org>
86573
86574         * lib/allocsa.h: New file, from GNU gettext.
86575         * lib/allocsa.c: New file, from GNU gettext.
86576
86577 2004-01-18  Karl Berry  <karl@gnu.org>
86578
86579         * doc/gpl.texi, doc/lgpl.texi: new files.
86580
86581 2004-01-18  Karl Berry  <karl@gnu.org>
86582
86583         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
86584         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
86585
86586 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86587
86588         Merge from coreutils.
86589
86590         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
86591         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
86592         (gl_DEFAULT_POSIX2_VERSION): Move
86593         the documentation from 'configure' into 'config.hin',
86594         so that 'configure --help' isn't burdened by it and
86595         we don't have to worry about its formatting there.
86596         Reword the documentation so that it's more succinct
86597         and can be run together into a single paragraph.
86598         * m4/same.m4 (gl_SAME): Check for pathconf.
86599
86600 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86601
86602         Merge from coreutils.
86603
86604         * lib/posixver.c: Include posixver.h.
86605
86606         * lib/same.c: Include <stdbool.h>, <limits.h>.
86607         (_POSIX_NAME_MAX): Define if not defined.
86608         (MIN): New macro.
86609         (same_name): If file names are silently truncated, report
86610         that the file names are the same if they are the same after
86611         the silent truncation.
86612
86613         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
86614         conversion function.
86615         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
86616         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
86617         longer needed.
86618
86619 2004-01-15  Jim Meyering  <jim@meyering.net>
86620
86621         Merge from coreutils.
86622
86623         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
86624         if no library is required.
86625         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
86626         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
86627         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
86628         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
86629         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
86630         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
86631         value, $ac_cv_search_crypt, if it's "none required".
86632         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
86633         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
86634         not gl_FUNC_GETLOADAVG.
86635         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
86636         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
86637
86638 2004-01-15  Jim Meyering  <jim@meyering.net>
86639
86640         Merge from coreutils.
86641
86642         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
86643         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
86644         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
86645
86646         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
86647         optional configure-time default.
86648
86649         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86650
86651         * lib/xreadlink.c (xreadlink): Correct outdated comment.
86652
86653 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
86654
86655         Merge from coreutils.
86656
86657         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
86658         value, $ac_cv_search_nanosleep, if it's "none required".
86659
86660 2004-01-14  Paul Eggert  <eggert@twinsun.com>
86661
86662         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
86663         with like-named macro in fnmatch.c.
86664         (EXT): Use an internal constant instead.
86665
86666         Merge fnmatch patches from glibc.
86667         * lib/fnmatch.c (mbsinit): Remove define.
86668         Add libc_hidden_ver (__fnmatch, fnmatch).
86669         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
86670         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
86671
86672 2004-01-14  Karl Berry  <karl@gnu.org>
86673
86674         * config/install-sh: update from automake.
86675
86676 2004-01-13  Karl Berry  <karl@gnu.org>
86677
86678         * config/install-sh: update from automake.
86679
86680 2004-01-09  Karl Berry  <karl@gnu.org>
86681
86682         * config/install-sh: update from automake.
86683
86684 2004-01-05  Karl Berry  <karl@gnu.org>
86685
86686         * config/config.{sub,guess}: update from config.
86687
86688 2003-12-31  Karl Berry  <karl@gnu.org>
86689
86690         * config/depcomp: update from automake.
86691
86692 2003-12-14  Karl Berry  <karl@gnu.org>
86693
86694         * lib/config.charset: update from gettext-runtime.
86695
86696 2003-12-03  Paul Eggert  <eggert@twinsun.com>
86697
86698         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
86699         Bug reported by Alfred M. Szmidt.
86700
86701 2003-12-03  Bruno Haible  <bruno@clisp.org>
86702
86703         * m4/gettext.m4: Upgrade from gettext-0.13.
86704         * m4/po.m4: Upgrade from gettext-0.13.
86705         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
86706         * m4/intmax.m4: New file, from gettext-0.13.
86707         * m4/printf-posix.m4: New file, from gettext-0.13.
86708
86709 2003-11-29  Karl Berry  <karl@gnu.org>
86710
86711         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
86712
86713 2003-11-25  Paul Eggert  <eggert@twinsun.com>
86714             Bruno Haible  <bruno@clisp.org>
86715
86716         * lib/printf-parse.h: Don't include sys/types.h.
86717         (ARG_NONE): New macro.
86718         (char_directive): Change type of *arg_index fields to size_t.
86719         * lib/printf-parse.c: Don't include sys/types.h.
86720         (SSIZE_MAX): Remove macro.
86721         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
86722         Remove unnecessary overflow check.
86723         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
86724         fields.
86725
86726 2003-11-25  Bruno Haible  <bruno@clisp.org>
86727
86728         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
86729
86730 2003-11-25  Bruno Haible  <bruno@clisp.org>
86731
86732         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
86733         gt_TYPE_SSIZE_T.
86734
86735 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86736
86737         * modules/alloca: Remove dependency on xalloc.
86738
86739 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86740
86741         * lib/alloca.c: Remove dependency on xalloc module.
86742         (xalloc_die): Remove.
86743         (memory_full) [!defined emacs]: New macro.
86744         [!defined emacs]: Don't include xalloc.h.
86745         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
86746         address arithmetic overflows.  Change datatypes a bit to avoid
86747         unnecessary casts.
86748
86749 2003-11-22  Jim Meyering  <jim@meyering.net>
86750
86751         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
86752         s/size/size_t/.
86753
86754 2003-11-21  Karl Berry  <karl@gnu.org>
86755
86756         * config/config.{sub,guess}: update from config.
86757
86758 2003-11-18  Karl Berry  <karl@gnu.org>
86759
86760         * config/config.{sub,guess}: update from config.
86761
86762         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
86763
86764 2003-11-17  Paul Eggert  <eggert@twinsun.com>
86765
86766         * README: Mention that S+T cannot overflow if S is the size of
86767         an existing object and T is sufficiently small.
86768
86769 2003-11-17  Jim Meyering  <jim@meyering.net>
86770
86771         On systems without utime and without a utimes function capable of
86772         dealing with a NULL struct utimbuf* argument, this utime replacement
86773         could -- in unusual circumstances -- leak a file descriptor.
86774         * lib/utime.c: Include <unistd.h> and <errno.h>.
86775         (utime_null): Be sure to close `fd' and to preserve errno.
86776         Reported by Geoff Collyer via Arnold Robbins.
86777
86778 2003-11-17  Bruno Haible  <bruno@clisp.org>
86779
86780         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
86781         (Depends-on): Add xsize.
86782
86783 2003-11-17  Bruno Haible  <bruno@clisp.org>
86784
86785         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
86786
86787 2003-11-17  Bruno Haible  <bruno@clisp.org>
86788
86789         * lib/vasnprintf.c (alloca): Remove fallback definition.
86790         (freea): Remove definition.
86791         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
86792         Reported by Paul Eggert.
86793
86794 2003-11-16  Paul Eggert  <eggert@twinsun.com>
86795             Bruno Haible  <bruno@clisp.org>
86796
86797         Protect against address arithmetic overflow.
86798         * lib/printf-args.h: Include stddef.h.
86799         (arguments): Change type of field 'count' to size_t.
86800         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
86801         'unsigned int' where appropriate.
86802         * lib/printf-parse.h: Include sys/types.h.
86803         (char_directive): Change type of *arg_index fields to ssize_t.
86804         (char_directives): Change type of fields 'count', max_*_length to
86805         size_t.
86806         * lib/printf-parse.c: Include sys/types.h and xsize.h.
86807         (SSIZE_MAX): Define fallback value.
86808         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
86809         instead of 'int' where appropriate. Check a_allocated, d_allocated
86810         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
86811         * lib/vasnprintf.c: Include xsize.h.
86812         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
86813         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
86814         overflow. Avoid wraparound when converting a width or precision from
86815         decimal to binary.
86816
86817 2003-11-16  Bruno Haible  <bruno@clisp.org>
86818
86819         Update from GNU gettext.
86820         * lib/printf-parse.c: Generalize to it can be compiled for wide
86821         strings.
86822         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
86823         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
86824         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
86825         SNPRINTF): New macros.
86826         Don't include <alloca.h> if the file is used inside libintl.
86827         (local_wcslen): New function, for Solaris 2.5.1.
86828         (VASNPRINTF): Use it instead of wcslen.
86829
86830 2003-11-16  Bruno Haible  <bruno@clisp.org>
86831
86832         * lib/xsize.h (xmax): New function.
86833         (xsum, xsum3, xsum4): Declare as "pure" functions.
86834
86835 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86836
86837         * modules/xalloc (Files): Undo latest change, since xalloc.h
86838         no longer needs SIZE_MAX or PTRDIFF_MAX.
86839
86840 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86841
86842         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
86843         gl_PTRDIFF_MAX.
86844
86845 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86846
86847         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
86848         "return", to pacify some unknown compiler.  Problem reported
86849         by Joerg Schilling.
86850
86851 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86852
86853         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
86854         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
86855         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
86856         heuristic is just as accurate as far as we know, and it removes a
86857         dependency on size_max.m4 and ptrdiff_max.m4.
86858
86859 2003-11-11  Bruno Haible  <bruno@clisp.org>
86860
86861         * modules/xsize (Files): Add m4/size_max.m4.
86862         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
86863
86864 2003-11-11  Bruno Haible  <bruno@clisp.org>
86865
86866         * m4/size_max.m4: New file.
86867         * m4/ptrdiff_max.m4: New file.
86868         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
86869         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
86870         (gl_XALLOC): Invoke it.
86871
86872 2003-11-11  Bruno Haible  <bruno@clisp.org>
86873
86874         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
86875         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
86876         defined.
86877
86878 2003-11-10  Paul Eggert  <eggert@twinsun.com>
86879
86880         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
86881         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
86882         rejected some allocations of exactly SIZE_MAX - 2 bytes.
86883         From Bruno Haible.
86884         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
86885         not (size_t) -1, since it's defined here.
86886
86887 2003-11-09  Karl Berry  <karl@gnu.org>
86888
86889         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
86890
86891 2003-11-06  Paul Eggert  <eggert@twinsun.com>
86892
86893         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
86894         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
86895         Reject sizes of exactly SIZE_MAX bytes.
86896         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
86897         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
86898
86899 2003-11-05  Bruno Haible  <bruno@clisp.org>
86900
86901         * lib/xsize.h: Include limits.h, to avoid a possible collision with
86902         SIZE_MAX defined in <limits.h> on Solaris.
86903
86904 2003-11-04  Jim Meyering  <jim@meyering.net>
86905
86906         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
86907         variable names, rather than @VAR@.
86908         * modules/poll: Likewise.
86909
86910 2003-11-04  Bruno Haible  <bruno@clisp.org>
86911
86912         * modules/xsize: New file.
86913         * modules/linebreak: Depend on xsize.
86914         * MODULES.html.sh (func_all_modules): Add xsize.
86915
86916 2003-11-04  Bruno Haible  <bruno@clisp.org>
86917
86918         * m4/xsize.m4: New file.
86919
86920 2003-11-04  Bruno Haible  <bruno@clisp.org>
86921
86922         * lib/xsize.h: New file.
86923         * lib/linebreak.c: Include xsize.h.
86924         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
86925         argument for overflow.
86926         Suggested by Paul Eggert.
86927
86928 2003-11-03  Karl Berry  <karl@gnu.org>
86929
86930         * config/config.{guess,sub}: update from config.
86931
86932 2003-11-03  Jim Meyering  <jim@meyering.net>
86933
86934         * modules/userspec (lib_SOURCES): Add userspec.h.
86935         (Include): Add "userspec.h".
86936         Improve description.
86937
86938 2003-11-03  Jim Meyering  <jim@meyering.net>
86939
86940         * lib/userspec.c: Include "userspec.h".
86941         * lib/userspec.h: New file.
86942
86943 2003-11-03  Bruno Haible  <bruno@clisp.org>
86944
86945         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
86946
86947 2003-11-03  Bruno Haible  <bruno@clisp.org>
86948
86949         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
86950         available, to avoid (extremely rare) race condition.
86951         Suggested by Paul Eggert.
86952
86953 2003-11-02  Karl Berry  <karl@gnu.org>
86954
86955         * config/srclist.txt (vasprintf.c): sync broken, sigh.
86956
86957 2003-10-31  Paul Eggert  <eggert@twinsun.com>
86958
86959         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
86960         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
86961         (read_filesystem_list): Set and use me_type_malloced.
86962         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
86963         whatever the type happens to be), for brevity and consistency.
86964         Check for size calculation overflow on Alphas running OSF/1.
86965
86966 2003-10-31  Jim Meyering  <jim@meyering.net>
86967
86968         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
86969
86970         * lib/linebuffer.c: Include <string.h> for declaration of memset.
86971
86972 2003-10-30  Paul Eggert  <eggert@twinsun.com>
86973             Bruno Haible  <bruno@clisp.org>
86974
86975         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
86976         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
86977
86978 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
86979
86980         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
86981         netbsd*-gnu*.  Suggested by Robert Millan.
86982
86983 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86984
86985         * modules/group-member: Depend on stdbool.
86986
86987 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86988
86989         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
86990
86991 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86992
86993         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
86994         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
86995         after the 'gnu' in these cases.  This fixes some bugs in the
86996         previous change, and is based on suggestions by Robert Millan.
86997
86998 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86999
87000         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
87001         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
87002         no longer needed.
87003         * lib/quotearg.c (quotearg_n_options): Use it.
87004         * lib/group-member.c: Include <stdbool.h>.
87005         (free_group_info): Arg is now const *; don't free arg.
87006         (get_group_info): Now returns bool and accepts struct group_info *,
87007         rather than returning a malloc'ed struct group_info *.
87008         All uses changed.  Check for overflow in internal size calculation.
87009
87010         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
87011         rather than xmalloc/xrealloc.
87012         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
87013         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
87014         conformance bug: the old code used a pointer after freeing the
87015         storage that it addressed.
87016         * lib/hash.c (hash_initialize): Simplify the code by using
87017         xalloc_oversized rather than doing it by hand.
87018         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
87019         the buffer preserved.  Use free and xmalloc instead.
87020         * lib/quotearg.c (quotearg_n_options): Likewise.
87021         Use a simpler test for size overflow.  Don't use xalloc_oversized
87022         because unsigned int might be wider than size_t (!); this suggests
87023         that we should switch from unsigned int to size_t for slot numbers.
87024
87025 2003-10-28  Paul Eggert  <eggert@twinsun.com>
87026
87027         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
87028         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
87029         NetBSD kernels.  Requested by Richard Stallman.
87030
87031 2003-10-27  Paul Eggert  <eggert@twinsun.com>
87032
87033         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
87034         to allocate the returned structure.  Do not allocate a subarray,
87035         as x2nrealloc will do that.
87036         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
87037         instead of xnrealloc.
87038         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
87039
87040 2003-10-27  Bruno Haible  <bruno@clisp.org>
87041
87042         * lib/stdbool_.h: Better support for BeOS.
87043
87044 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87045
87046         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
87047         now uses inline.
87048
87049 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87050
87051         * lib/xalloc.h (xalloc_oversized): New static inline function, for
87052         callers that want to do their own size-overflow checking.  Include
87053         <stdbool.h>, since xalloc_oversized returns bool.
87054         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
87055         to use xalloc_oversized.
87056
87057         Add two functions x2realloc, x2nrealloc, for programs that grow
87058         arrays dynamically by doubling their sizes.
87059         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
87060         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
87061         New functions.
87062
87063         Port to C99 semantics for 'inline' of external functions.
87064         Bug reported by Bruno Haible.
87065         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
87066         with the old contents of xnmalloc.
87067         (xnmalloc, xmalloc): Use it.
87068         (xnrealloc_inline): New static inline function,
87069         with the old contents of xnrealloc.
87070         (xnrealloc, xrealloc): Use it.
87071
87072         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
87073         that.
87074
87075 2003-10-26  Karl Berry  <karl@gnu.org>
87076
87077         * config/srclist.txt (COPYING.DOC): no longer available from
87078         /gd/gnuorg; don't know where the ultimate source is.
87079
87080 2003-10-25  Paul Eggert  <eggert@twinsun.com>
87081
87082         Fix several address-calculation bugs in the hash modules,
87083         plus some minor code cleanup.
87084
87085         * lib/hash.h: Include <stdbool.h>, for bool.
87086         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
87087         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
87088         hash_get_n_entries, hash_get_max_bucket_length,
87089         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
87090         hash_rehash): Use size_t rather than unsigned.
87091         * lib/hash.c (struct hash_table, hash_get_n_buckets,
87092         hash_get_n_buckets_used, hash_get_n_entries,
87093         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
87094         hash_get_entries, hash_do_for_each, hash_string, is_prime,
87095         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
87096         Likewise.
87097         (SIZE_MAX): Define if not defined.
87098         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
87099         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
87100         hash_print):
87101         Use const * when possible.
87102         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
87103         (check_tuning): Fix bug: if tuning parameters were very close to
87104         0 or 1, rounding errors could have caused subscript violations.
87105         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
87106         (hash_initialize): Add 'fail:' label
87107         to free table and return NULL, and use it to simplify code.
87108         Use calloc rather than clearing the storage ourself.
87109         (hash_initialize, hash_rehash): Check for arithmetic overflow in
87110         buffer size calculations.
87111         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
87112         Include <stddef.h>, for size_t.
87113         * lib/hash-pjw.c (hash_pjw): Likewise.
87114         Switch to method described by Bruno Haible.
87115         Include <limits.h>, for CHAR_BIT.
87116         (SIZE_BITS): New macro.
87117
87118 2003-10-23  Paul Eggert  <eggert@twinsun.com>
87119
87120         * m4/getline.m4 (AM_FUNC_GETLINE):
87121         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
87122         hosts.  Problem reported by Derek Robert Price in
87123         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
87124         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
87125         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
87126
87127 2003-10-21  Paul Eggert  <eggert@twinsun.com>
87128
87129         * lib/getndelim2.c (getndelim2): When size calculation overflows,
87130         ceiling the allocation at NMAX bytes rather than silently
87131         discarding input bytes before NMAX is reached.  This makes
87132         a difference only if NMAX exceeds SIZE_MAX / 2.
87133
87134         * lib/obstack.c: Merge from glibc.
87135         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
87136         Add libc_hidden_def (_obstack_newchunk).
87137         (_obstack_free) [! defined _LIBC]: Remove.
87138         [defined _LIBC]: Make a strong alias from obstack_free, rather than
87139         a clone of the function body.
87140         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
87141         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
87142
87143         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
87144         glibc.
87145         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
87146         arg to memcpy.
87147
87148         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
87149         (obstack_ptr_grow_fast, obstack_int_grow_fast):
87150         Don't use lvalue casts, as GCC plans to remove support for them
87151         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
87152         was also present in the non-GCC version, indicating that this
87153         code had always been buggy and had never been widely used.
87154         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
87155         Use the fast variant of each macro, rather than copying the
87156         definiens of the fast variant; that way, we'll be more likely to
87157         catch future bugs in the fast variants.
87158
87159 2003-10-20  Bruno Haible  <bruno@clisp.org>
87160
87161         * modules/wait-process: New file.
87162         * MODULES.html.sh (func_all_modules): Add wait-process.
87163
87164 2003-10-20  Bruno Haible  <bruno@clisp.org>
87165
87166         * m4/wait-process.m4: New file.
87167
87168 2003-10-20  Bruno Haible  <bruno@clisp.org>
87169
87170         * lib/wait-process.h: New file, from GNU gettext.
87171         * lib/wait-process.c: New file, from GNU gettext.
87172
87173 2003-10-19  Jim Meyering  <jim@meyering.net>
87174
87175         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
87176         HPUX 10.20.
87177
87178 2003-10-18  Karl Berry  <karl@gnu.org>
87179
87180         * config/config.guess: update from config.
87181
87182 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87183
87184         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
87185         (getgroups): First arg is int, not size_t.
87186         Don't let 'free' mangle errno.
87187
87188 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87189
87190         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
87191
87192 2003-10-16  Karl Berry  <karl@gnu.org>
87193
87194         * config/config.{guess,sub}: update from config.
87195
87196 2003-10-16  Jim Meyering  <jim@meyering.net>
87197
87198         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
87199         memcpy.
87200
87201 2003-10-15  Paul Eggert  <eggert@twinsun.com>
87202
87203         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
87204         (SIZE_MAX): Remove.
87205         (new_exclude, add_exclude_file): Initial size no longer needs to
87206         be a power of 2.
87207         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
87208         our own address arithmetic overflow checking.
87209
87210         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
87211         (fnmatch): Do not alloca more than 2000 wide characters;
87212         instead, use malloc for large buffers.
87213         Check for address arithmetic overflow, and return -1
87214         with errno set to ENOMEM in that case.
87215         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
87216         (NEW_PATTERN): Do not alloca more than 8000 bytes;
87217         instead, return -1.  Check for address arithmetic overflow.
87218
87219 2003-10-14  Paul Eggert  <eggert@twinsun.com>
87220
87221         Handle invalid suffixes and overflow independently, so that
87222         callers can treat them independently as needed.  Fix some bugs in
87223         suffix handling, e.g., "100k@" was not diagnosed as an invalid
87224         suffix for a human-readable blocksize.  The major caller-visible
87225         change is the addition of a new
87226         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
87227         that both overflow and suffix chars were found.
87228
87229         * lib/human.c (humblock): Don't check separately for invalid suffix
87230         char; that is xstrtoumax's job (now that its bug is fixed).
87231         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
87232         INTMAX_MAX]: New macros.
87233         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
87234         TYPE_MAXIMUM): New macros.
87235         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
87236         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
87237         if overflow occurs, as it's what __strtol does and it's more useful
87238         in practice.
87239         (__xstrtol): If __strtol reports some error other than ERANGE,
87240         reflect it to the caller as LONGINT_INVALID.  If it reports
87241         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
87242         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
87243         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
87244         value.
87245         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
87246         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
87247         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
87248         [defined UINTMAX_MAX]: New macros.
87249
87250 2003-10-14  Bruno Haible  <bruno@clisp.org>
87251
87252         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
87253
87254 2003-10-14  Bruno Haible  <bruno@clisp.org>
87255
87256         * m4/sig_atomic_t: New file, from GNU gettext.
87257         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
87258
87259 2003-10-14  Bruno Haible  <bruno@clisp.org>
87260
87261         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
87262         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
87263         Also use volatile where needed.
87264
87265 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87266
87267         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
87268         Change maintainer from Bruno Haible to 'all'.
87269
87270 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87271
87272         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
87273
87274 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87275
87276         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
87277         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
87278         and define in terms of the other primitives.
87279         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
87280         (SIZE_MAX): Define if not already defined.
87281         (array_size_overflow): New function.
87282         (xalloc_die): Abort instead of exiting if 'error' returns.
87283         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
87284         (xmalloc, xrealloc): Use them.
87285         (xcalloc): Check for address arithmetic overflow.
87286         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
87287         a bit faster than strcpy.
87288
87289 2003-10-10  Simon Josefsson  <jas@extundo.com>
87290
87291         * modules/argp (Depends-on): Add restrict and strcase.
87292
87293 2003-10-10  Simon Josefsson  <jas@extundo.com>
87294
87295         * m4/argp.m4: Add AC_C_INLINE.
87296
87297 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87298
87299         Merge getpass from libc, plus a few fixes.
87300
87301         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
87302         Include <stdbool.h>.
87303         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
87304         __fsetlocking to empty.
87305         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
87306         do include <bits/libc-lock.h>.
87307         Do not include <fcntl.h>; not needed.
87308         [_LIBC]: Include <wchar.h>.
87309         (NOTCANCEL_MODE): New macro.
87310         (flockfile, funlockfile) [_LIBC]: New macros.
87311         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
87312         [!_LIBC]: New macros.
87313         (call_fclose): New function.
87314         (getpass): Use it.  Save tty stream separately; this simplifies the
87315         code and makes it more reliable if stdin happens to equal stdout.
87316         Invoke __fsetlocking on tty.
87317         Handle thread cancellation if needed.
87318         Namespace cleanup (use __tcgetattr, __getline).
87319         Use bool for Booleans.
87320         [USE_IN_LIBIO]: Handle wide streams.
87321         [!_LIBC]: Unconditionally do the fseek, since we don't know what
87322         stream might go where.
87323
87324         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
87325         doesn't have to include <stdio.h> before us.
87326         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
87327         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
87328         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
87329         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
87330         if not declared, so that we can use getpass.c code from libc without
87331         rewriting it.
87332         (flockfile, ftrylockfile, funlockfile): New macros.
87333
87334 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87335
87336         * modules/getpass: Depend on stdbool.
87337
87338 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87339
87340         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
87341
87342 2003-10-07  Karl Berry  <karl@gnu.org>
87343
87344         * config/config.{guess,sub}: update from config.
87345
87346 2003-10-06  Jim Meyering  <jim@meyering.net>
87347             Bruno Haible  <bruno@clisp.org>
87348
87349         This lets translators provide better translations for the
87350         "Written by ..." part of --version output.
87351         * lib/version-etc.h: Include stdarg.h.
87352         (version_etc_copyright): Declare as readonly.
87353         (version_etc): Make this function variadic with a NULL-terminated list
87354         of author name strings.
87355         (version_etc_va): New declaration.
87356         * lib/version-etc.c: Include stdarg.h, stdlib.h.
87357         (version_etc_copyright): Declare as readonly.
87358         (version_etc_va): New function. Provide a different translatable string
87359         for each possible number of authors < 10. Abbreviate when there are 10
87360         authors or more.
87361         (version_etc): Make this function variadic. Call version_etc_va.
87362         Suggestion from Gary V. Vaughan.
87363
87364         * lib/long-options.h (parse_long_options): Change prototype: the
87365         authors string is moved to the end and becomes variadic.
87366         * lib/long-options.c: Include stdarg.h.
87367         (parse_long_options): Make this function variadic, too.
87368         Call version_etc_va, not version_etc.
87369
87370 2003-10-06  Bruno Haible  <bruno@clisp.org>
87371
87372         * modules/version-etc-2: Remove file.
87373         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
87374
87375 2003-10-06  Bruno Haible  <bruno@clisp.org>
87376
87377         * modules/fatal-signal: New file.
87378         * MODULES.html.sh (func_all_modules): Add fatal-signal.
87379
87380 2003-10-06  Bruno Haible  <bruno@clisp.org>
87381
87382         * m4/fatal-signal.m4: New file.
87383         * m4/signalblocking.m4: New file, from GNU gettext.
87384
87385 2003-10-06  Bruno Haible  <bruno@clisp.org>
87386
87387         * lib/version-etc-2.h: Remove file.
87388         * lib/version-etc-2.c: Remove file.
87389
87390 2003-10-06  Bruno Haible  <bruno@clisp.org>
87391
87392         * lib/fatal-signal.h: New file, from GNU gettext.
87393         * lib/fatal-signal.c: New file, from GNU gettext.
87394
87395 2003-10-05  Paul Eggert  <eggert@twinsun.com>
87396
87397         * README: Rework advice for preventing empty .o files.
87398         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
87399         not <sys/types.h>.
87400
87401 2003-10-04  Karl Berry  <karl@gnu.org>
87402
87403         * lib/argp*: update from libc.
87404
87405 2003-10-04  Karl Berry  <karl@gnu.org>
87406
87407         * config/config.{guess,sub}: update from config.
87408
87409 2003-10-02  Bruno Haible  <bruno@clisp.org>
87410
87411         * modules/lchown (Include): Add lchown.h.
87412         * modules/time_r (Include): Use "..." syntax.
87413         * modules/xgetdomainname (Include): Add xgetdomainname.h.
87414
87415 2003-10-01  Simon Josefsson  <jas@extundo.com>
87416
87417         * MODULES.html.sh (func_all_modules): Move gethostname from section
87418         'based on' to section 'lacking' POSIX:2001.
87419
87420 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
87421
87422         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
87423         to output mode on the same stream.
87424
87425 2003-09-29  Paul Eggert  <eggert@twinsun.com>
87426
87427         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
87428         Fix arg typo in previous patch.
87429
87430 2003-09-28  Jim Meyering  <jim@meyering.net>
87431
87432         * lib/error.c: Correct cpp indentation.
87433
87434 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87435
87436         * modules/free: New file.
87437
87438 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87439
87440         * m4/free.m4: New file.
87441
87442 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87443
87444         * lib/minmax.h (MIN, MAX)
87445         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
87446         Omit the special code that used __typeof__, since we worry that
87447         it could be more trouble than it's worth.  See:
87448         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
87449         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
87450
87451         * lib/free.c: New file.
87452
87453 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
87454
87455         Trivial fixes to Makefile.am parts of module listings.
87456         * modules/strstr: Append strstr.h to lib_SOURCES.
87457         * modules/strcase: Likewise, for strcase.h.
87458
87459 2003-09-27  Karl Berry  <karl@gnu.org>
87460
87461         * config/mkinstalldirs: update from automake.
87462
87463 2003-09-26  Paul Eggert  <eggert@twinsun.com>
87464
87465         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
87466         (error_tail): Do not loop, reallocating temporary buffer, since
87467         the output cannot contain more wide characters than the input
87468         contains bytes, the size must be big enough already.  This avoids
87469         one potential size overflow calculation.  Check for size overflow
87470         when calculating temporary buffer size.  Free temporary buffer
87471         when done, if it was allocated with malloc; this plugs a memory
87472         leak.  Remove casts from void * to pointers, that are no longer
87473         needed now that we're assuming C89 or better.
87474
87475         Merge error changes from glibc.
87476
87477         * lib/error.c, error.h: Update copyright notice header to match glibc.
87478         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
87479         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
87480         Disable cancellation while printing error.
87481         * lib/error.h: Prepend __ to parameter names.
87482
87483 2003-09-26  Jim Meyering  <jim@meyering.net>
87484
87485         * lib/error.c (error_tail): Move some declarations
87486         into inner scope where the local variables are used.
87487
87488 2003-09-26  Bruno Haible  <bruno@clisp.org>
87489
87490         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
87491         stpncpy().
87492         Don't define stpncpy through config.h; it's now done through stpncpy.h.
87493
87494 2003-09-26  Bruno Haible  <bruno@clisp.org>
87495
87496         * lib/stpncpy.h (gnu_stpncpy): New declaration.
87497         (stpncpy): Define as alias for gnu_stpncpy.
87498         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
87499
87500 2003-09-25  Simon Josefsson  <jas@extundo.com>
87501
87502         * lib/xgetdomainname.h: New file.
87503         * lib/xgetdomainname.c: New file.
87504
87505 2003-09-25  Simon Josefsson  <jas@extundo.com>
87506             Bruno Haible  <bruno@clisp.org>
87507
87508         * modules/getdomainname: New file.
87509         * modules/xgetdomainname: New file.
87510         * MODULES.html.sh (func_all_modules): Add getdomainname,
87511         xgetdomainname.
87512
87513 2003-09-25  Simon Josefsson  <jas@extundo.com>
87514             Bruno Haible  <bruno@clisp.org>
87515
87516         * m4/getdomainname.m4: New file.
87517
87518 2003-09-25  Simon Josefsson  <jas@extundo.com>
87519             Bruno Haible  <bruno@clisp.org>
87520
87521         * lib/getdomainname.h: New file.
87522         * lib/getdomainname.c: New file.
87523
87524 2003-09-25  Karl Berry  <karl@gnu.org>
87525
87526         * lib/argp-fmtstream.c, argp-help.c: update from libc.
87527
87528 2003-09-25  Karl Berry  <karl@gnu.org>
87529
87530         * config/install-sh: update from automake.
87531
87532 2003-09-25  Bruno Haible  <bruno@clisp.org>
87533
87534         * modules/version-etc-2: New file, from modules/version-etc with
87535         modifications.
87536         * MODULES.html.sh (func_all_modules): Add version-etc-2.
87537
87538 2003-09-25  Bruno Haible  <bruno@clisp.org>
87539
87540         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
87541         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
87542
87543 2003-09-24  Simon Josefsson  <jas@extundo.com>
87544
87545         * modules/xgethostname: Add xgethostname.h.
87546
87547 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87548
87549         * lib/linebuffer.c (freebuffer): Don't free the argument, just
87550         the buffer associated with the argument.  Bug reported by
87551         Simon Josefsson.
87552
87553 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87554
87555         * README: Document assumptions that 'int' is at least 32 bits
87556         wide, that integer arithmetic is 2's complement without overflow,
87557         that there are no holes in integer values, that adding sizes of
87558         two nonoverlapping objects can't overflow, and that all-bits-zero
87559         yields scalar zero.  Fix spelling and capitalization typos.
87560
87561 2003-09-19  Karl Berry  <karl@gnu.org>
87562
87563         * lib/argp.h: update from libc.
87564
87565 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87566
87567         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
87568         to avoid spurious warnings like "AC_RUN_IFELSE was called before
87569         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
87570
87571 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87572
87573         * gnulib-tool: Use "test -h", not "test -L", for portability
87574         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
87575         (tags_regexp): Remove, since \| doesn't conform to POSIX.
87576         (sed_extract_prog): Issue s commands one-by-one, rather than
87577         using \| in one s command.
87578
87579 2003-09-16  Paul Eggert  <eggert@twinsun.com>
87580
87581         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
87582         input error, instead of returning NULL the next time we are called
87583         (and therefore losing track of errno).
87584
87585 2003-09-16  Bruno Haible  <bruno@clisp.org>
87586
87587         * gnulib-tool (func_create_testdir): Warn about duplicated
87588         dependencies.
87589
87590 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87591
87592         * modules/argmatch, modules/fatal, modules/obstack,
87593         modules/xalloc, modules/xgethostname: Sort dependencies by
87594         importance, not alphabetically.
87595
87596 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87597
87598         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
87599         fails, so that the caller gets the proper errno.
87600
87601         * lib/readutmp.c (read_utmp): Likewise.
87602         Check for fstat error.  Close stream and free storage
87603         when failing.
87604
87605 2003-09-14  Karl Berry  <karl@gnu.org>
87606
87607         * config/srclist.txt (strdup.c): disable for c89 changes.
87608
87609 2003-09-14  Jim Meyering  <jim@meyering.net>
87610
87611         * lib/getloadavg.c: Correct cpp indentation.
87612         * lib/strdup.c: Likewise.
87613         * lib/vasnprintf.c: Likewise.
87614
87615 2003-09-14  Bruno Haible  <bruno@clisp.org>
87616
87617         * modules/fwriteerror: New file.
87618         * MODULES.html.sh (func_all_modules): Add fwriteerror.
87619
87620 2003-09-14  Bruno Haible  <bruno@clisp.org>
87621
87622         * lib/fwriteerror.h: New file.
87623         * lib/fwriteerror.c: New file.
87624
87625 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87626
87627         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
87628         modules/xgethostname, modules/xalloc: Depend on exit.
87629
87630 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87631
87632         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
87633
87634         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
87635         and AC_MINIX, too, so that their extensions are available.
87636
87637         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
87638         This macro has been superseded by gl_BACKUPFILE.
87639
87640         More patches to assume C89 or better.
87641
87642         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
87643
87644         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
87645         unconditionally.
87646         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
87647         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
87648         Include <string.h>, <stdlib.h> unconditionally.
87649         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
87650         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
87651         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
87652         headers or for string.h.
87653         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
87654         or strtoul.
87655
87656         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
87657         headers.
87658         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
87659         * m4/userspec.m4 (gl_USERSPEC): Likewise.
87660         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
87661         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
87662         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
87663         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
87664         memcpy, memset.
87665         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
87666         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
87667         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
87668         strtol.
87669         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
87670         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
87671         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
87672         strtoul.
87673
87674 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87675
87676         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
87677         * lib/obstack.c [!defined _LIBC]: Likewise.
87678         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
87679         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
87680         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
87681
87682         More changes to assume C89 or better.
87683
87684         * lib/error.c (error_tail): Assume vprintf.
87685
87686         * lib/argmatch.c (getenv): Remove decl.
87687         * lib/progreloc.c (get_full_program_name): Define via prototype.
87688         * lib/setenv.c (clearenv): Likewise.
87689         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
87690         needed.
87691         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
87692         (malloc, memcpy): Remove decls.
87693         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
87694         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
87695         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87696         (memcpy): Remove macro.
87697         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
87698         (__P): Remove.  All uses removed.
87699         (PTR): Remove.  All uses changed to void *.
87700         (CHAR_BIT, NULL): Remove.
87701         (spaces, zeros, memset_space, memset_zero)
87702         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
87703         Remove.
87704         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
87705         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
87706         Define with prototype.
87707         Remove now-unnecessary prototype decl.
87708         (extra_args_spec): Assume ANSI C.  All uses changed.
87709         (extra_args_spec_iso): Remove.
87710         (my_strftime, emacs_strftimeu): Define via prototype.
87711         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
87712         unconditionally.
87713         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
87714         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
87715         (strtoul, strtol): Remove decls.
87716         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
87717         LONG_MAX): Remove.
87718         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87719         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
87720         (LOCALE_PARAM_PROTO): New macro.
87721         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
87722         (INTERNAL (strtol), strtol): Define with a prototype.
87723         (PARAMS): Remove.  All uses removed.
87724         * lib/tempname.c: Include <string.h> unconditionally.
87725         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
87726         * lib/xgethostname.c (main): Define with a prototype.
87727         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
87728         Include <stdlib.h> unconditionally.
87729         (calloc, malloc, realloc, free): Remove decls.
87730         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
87731         Include <stdlib.h> unconditionally.  Sort include file names.
87732         (strtod): Remove.
87733         (xstrtod): Define with a prototype.
87734         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
87735         (strtol, strtoul): Remove decls.
87736
87737 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87738
87739         More patches to assume C89 or better.
87740         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
87741         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
87742         string.h, memchr, STDC_HEADERS.
87743
87744 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87745
87746         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
87747         Include <stdlib.h>, <string.h> unconditionally.
87748         Remove now-unnecessary cast to char *.
87749         * lib/strnlen.c: Include <string.h> unconditionally.
87750         * lib/yesno.c (yesno): Define with a prototype.
87751
87752 2003-09-11  Bruno Haible  <bruno@clisp.org>
87753
87754         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
87755
87756 2003-09-10  Jim Meyering  <jim@meyering.net>
87757
87758         * lib/error.c: Correct indentation of cpp directives.
87759
87760 2003-09-10  Bruno Haible  <bruno@clisp.org>
87761
87762         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
87763         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
87764         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
87765         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
87766         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
87767         <stdlib.h> and <string.h> checks.
87768         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
87769         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
87770
87771 2003-09-10  Bruno Haible  <bruno@clisp.org>
87772
87773         * lib/strcspn.c: Include <string.h> unconditionally.
87774         * lib/strpbrk.c: Include <string.h> unconditionally.
87775         * lib/strstr.c: Include <string.h> unconditionally.
87776         * lib/unicodeio.c: Include <string.h> unconditionally.
87777         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
87778         * lib/unsetenv.c: Likewise.
87779         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
87780         * lib/yesno.c: Include <stdlib.h> unconditionally.
87781         (rpmatch): Add prototype.
87782
87783 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87784
87785         More patches to assume C89 or better.
87786         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
87787         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
87788         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
87789         or for string.h.
87790         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
87791         stdlib.h.
87792         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
87793         C headers.
87794         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
87795         string.h.
87796         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
87797         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
87798         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
87799         or for string.h.
87800         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
87801         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
87802         C headers.
87803         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
87804         memcpy.
87805         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
87806         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
87807         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
87808         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
87809         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
87810         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
87811         string.h, free.
87812         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
87813         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
87814         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
87815         C headers, or for string.h.
87816         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
87817         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
87818         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
87819         headers, memory.h, stdlib.h, string.h, strings.h.
87820         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
87821         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
87822         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
87823         strchr.
87824         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
87825         headers, memory.h, string.h.
87826         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
87827         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
87828         free.
87829         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
87830         headers.
87831         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
87832         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
87833         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
87834         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
87835         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
87836
87837 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87838
87839         More K&R removal.
87840
87841         * lib/acosl.c (main): Use a prototype.
87842         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
87843         tanl.c: Likewise.
87844
87845         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
87846
87847         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
87848         (getopt, etopt_long, getopt_long_only, _getopt_internal)
87849         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
87850         with a prototype.
87851         * lib/getopt.c (const): Remove macro.
87852         Include <string.h> unconditionally.
87853         (my_index): Remove; all uses changed to strchr.
87854         (strlen): Remove decl.
87855         (exchange): Remove forward decl; no longer needed.
87856         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
87857         Define with prototype.
87858         * lib/getopt1.c (const): Remove macro.
87859         (getopt_long, getopt_long_only, main): Define with prototype.
87860
87861         * lib/getugroups.c: Include <string.h> unconditionally.
87862
87863         * lib/getusershell.c: Include <stdlib.h> unconditionally.
87864         (getusershell, setusershell, endusershell, readname, main):
87865         Define with prototypes.
87866
87867         * lib/group-member.c: Include group-member.h first.
87868         Include <stdlib.h> unconditionally.
87869
87870         * lib/hard-locale.c: Include hard-locale.h first.
87871         Include <stdlib.h>, <string.h> unconditionally.
87872
87873         * lib/hash.c (free, malloc): Remove decls.
87874         Include <stdlib.h> unconditionally.
87875
87876         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
87877         (getenv): Do not declare.
87878
87879         * lib/idcache.c: Include <string.h> unconditionally.
87880
87881         * lib/long-options.c: Include long-options.h first, to test interface.
87882         Include <stdlib.h> unconditionally.
87883
87884         * lib/makepath.c: Include makepath.h first, to test interface.
87885         Include <stdlib.h> and <string.h> unconditionally.
87886
87887         * lib/linebuffer.c: Include <stdlib.h>.
87888         (free): Remove decl.
87889
87890         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
87891         stddef.h. rpl_malloc returns void *, not char *.
87892         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
87893         prototype.
87894
87895         * lib/md5.h: Include <limits.h> unconditionally.
87896         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
87897         (__P): Remove; all uses removed.
87898         * lib/md5.c: Include "md5.h" first.
87899         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
87900         md5_buffer, md5_process_bytes, md5_process_block):
87901         Define with prototypes.
87902         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
87903         * lib/sha.c: Include "sha.h" first.
87904         Include <stdlib.h>, <string.h> unconditionally.
87905
87906         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
87907         * lib/memcmp.c (__ptr_t): Likewise.
87908         * lib/memrchr.c (__ptr_t): Likewise.
87909         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
87910         Include <string.h> unconditionally.
87911         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
87912         * lib/memchr.c: Include <stdlib.h> unconditionally.
87913         * lib/memchr.c (LONG_MAX): Remove.
87914         * lib/memrchr.c (LONG_MAX): Likewise.
87915         * lib/memchr.c (__memchr): Define via a prototype.
87916         * lib/memrchr.c (__memrchr): Likewise.
87917         * lib/memcmp.c (__P): Remove, and remove all uses.
87918         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
87919         Remove forward decls; no longer needed.
87920         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
87921         Use types required by C89 in prototype.
87922
87923         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
87924         * lib/savedir.c: Likewise.
87925         * lib/mkdir.c (free): Remove decl.
87926         * lib/rmdir.c (rmdir): Define with a prototype.
87927         * lib/savedir.c: Include savedir.h first, to test interface.
87928
87929         * lib/mktime.c (STDC_HEADERS): Remove.
87930         Include <stdlib.h>, <string.h> unconditionally.
87931
87932         * lib/modechange.c: Include <stdlib.h> unconditionally.
87933         (malloc): Remove decl.
87934
87935         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
87936         (free): Remove decl.
87937
87938         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
87939         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
87940         (This type really should be intptr_t, but that's a C99ism.)
87941         (_obstack_memcpy): Remove: all uses changed to memcpy.
87942         Include <string.h> unconditionally.
87943         (struct obstack): Assume __STDC__ for types of members
87944         chunkfun, freefun, extra_arg.
87945         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
87946         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
87947         obstack_begin, obstack_specify_allocation,
87948         obstack_specify_allocation_with_arg, obstack_chunkfun,
87949         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
87950         Remove unprototyped decls and the macros that use them.
87951         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
87952         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
87953         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
87954         (defined __STDC__ && __STDC__)]:
87955         Remove nonprototyped code.
87956         Include <stdlib.h> unconditionally.
87957         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
87958         _obstack_allocated_p, _obstack_free, obstack_free,
87959         _obstack_memory_used, print_and_abort):
87960         Define using prototypes.
87961         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
87962         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
87963         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
87964         obstack_next_free, obstack_object_size, obstack_room) [0]:
87965         Remove unused, unprototyped code.
87966
87967         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
87968
87969         * lib/physmem.c (physmem_total, physmem_available, main): Define
87970         with prototypes.
87971
87972         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
87973         (main): Define with a prototype.
87974
87975         * lib/posixver.c (getenv): Remove decl.
87976
87977         * lib/putenv.c (malloc): Returns void *, not char *.
87978         Include <string.h> unconditionally.
87979         (strchr, memcpy, NULL): Do not define.
87980
87981         * lib/readtokens.c: Include readtokens.h first, to test interface.
87982         Include <stdlib.h>, <string.h> unconditionally.
87983         (init_tokenbuffer): Define with a prototype.
87984
87985         * lib/regex.c (PARAMS): Remove.  All uses removed.
87986         All uses of _RE_ARGS removed, too.
87987         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87988         unconditionally.
87989         (bzero): Assume memset exists.
87990         (memcmp, memcpy, NULL): Remove.
87991         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
87992         char, or assignments to local vars of type signed char.
87993         (init_syntax_once, PREFIX(extract_number_and_incr),
87994         PREFIX(print_partial_compiled_pattern),
87995         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
87996         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
87997         PREFIX(regex_grow_registers), PREFIX(regex_compile),
87998         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
87999         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
88000         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
88001         wcs_compile_range, byte_compile_range, truncate_wchar,
88002         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
88003         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
88004         count_mbs_length, wcs_re_match_2_internal,
88005         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
88006         PREFIX(alt_match_null_string_p),
88007         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
88008         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
88009         regfree, PREFIX(extract_number)): Define with prototype.  Remove
88010         now-unnecessary declaration, if any.
88011         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
88012         regcomp, regexec):
88013         Remove now-unnecessary casts among pointer types.
88014         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
88015
88016         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
88017         (free): Remove decl.
88018
88019         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
88020
88021         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
88022         (free): Remove decl.
88023
88024         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
88025         * lib/xgetcwd.c: Likewise.
88026
88027         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
88028         (free): Remove decl.
88029
88030         * lib/strchrnul.c (strchrnul): Define with a prototype.
88031         Fix bug: c_in was not converted to char before searching.
88032
88033         The following changes are not K&R related:
88034
88035         * lib/group-member.h: Include <sys/types.h>, so that this file is
88036         self-contained.
88037         * lib/makepath.h: Likewise.
88038
88039         * lib/getusershell.c (readname, default_index, line_size, readname):
88040         Use size_t, not int, for sizes.
88041         (readname): If the size overflows, report an error instead of
88042         looping forever.
88043
88044 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88045
88046         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
88047         libc.
88048
88049 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88050
88051         * README: New section: portability guidelines.
88052
88053 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88054
88055         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
88056         C89 spec.
88057
88058 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88059
88060         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
88061
88062 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88063
88064         Assume C89 or better; remove K&R cruft.
88065         A few of these changes were first proposed by Derek Robert Price
88066         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
88067
88068         * lib/addext.c: Include <string.h> unconditionally.
88069         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
88070         Don't declare getenv or malloc.
88071
88072         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
88073         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
88074         (NULL): Remove.
88075         (find_stack_direction, alloca): Use prototypes.
88076
88077         * lib/atexit.c (atexit): Define using a prototype.
88078
88079         * lib/basename.c, dirname.c, stripslash.c:
88080         Include <string.h> unconditionally.
88081
88082         * lib/bcopy.c: Include <stddef.h>.
88083         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
88084
88085         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
88086
88087         * lib/error.h (error, error_at_line, error_print_progname)
88088         [! (defined (__STDC__) && __STDC__)]: Remove decls.
88089         * lib/error.c: Include error.h first, to check interface.
88090         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88091         (VA_START): Remove; all uses changeed to va_start.
88092         (exit, strerror): Remove decls.
88093         (error_print_progname): Prototype uncondionally.
88094         Don't include <errno.h>; no longer needed.
88095         (private_strerror): Remove.
88096         (error_tail): Always define.
88097         (error, error_at_line): Assume C89 or better; always use prototypes.
88098         * lib/fatal.c: Include "fatal.h" first, to test interface.
88099         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88100         (VA_START): Remove; all uses changed to va_start.
88101         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
88102         this case.
88103         (exit): Remove decl.
88104         (fatal): Prototype unconditionally.  Assume va_start works.
88105         Abort at end, to pacify gcc.
88106
88107         * lib/euidaccess.c (main): Define with a prototype.
88108
88109         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
88110
88111         * lib/exitfail.c: Include <stdlib.h> unconditionally.
88112
88113         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
88114         prototypes.
88115         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
88116         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
88117         (getenv): Remove decl.
88118         (fnmatch): Define using a prototype.
88119         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
88120         (FCT): Define using a prototype.
88121
88122         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
88123
88124         * lib/gethostname.c: Include <stddef.h>.
88125         (gethostname): Define with prototype.  Length is size_t, not int.
88126
88127 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88128
88129         Assume C89 or better; remove K&R cruft.
88130         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
88131         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
88132         string.h, getenv, malloc.
88133         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
88134         headers.
88135         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
88136         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
88137         do not check for strerror.
88138         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
88139         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
88140         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
88141         do not check for doprnt or vprintf.
88142         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
88143         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
88144
88145 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88146
88147         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
88148         getversion.c should have been removed then, but was accidentally
88149         preserved.
88150
88151         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
88152         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
88153
88154 2003-09-08  Karl Berry  <karl@gnu.org>
88155
88156         * config/config.sub, config.guess, srclistvars.sh: update from savannah
88157                 config, forget about prep.
88158
88159         * config/depcomp, missing: update from automake.
88160
88161 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88162
88163         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
88164         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88165
88166 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88167
88168         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
88169         copy_tm_result.  Bug reported by Simon Josefsson in
88170         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88171
88172 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88173
88174         * m4/time_r.m4: New file.
88175         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
88176         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
88177         is. Check for timegm declaration.
88178         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
88179         Do not check for gmtime_r.
88180         Replace mktime if __mktime_internal does not exist and if mktime
88181         hasn't been replaced already.
88182
88183 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88184
88185         * lib/time_r.c, lib/time_r.h: New files.
88186
88187         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
88188         __localtime_r.
88189         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
88190         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
88191
88192         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
88193         __gmtime_r.
88194         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
88195         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
88196         Include <time_r.h>.
88197
88198         * lib/timegm.c: Switch to glibc implementation, with the following
88199         changes:
88200         [defined HAVE_CONFIG_H]: Include <config.h>.
88201         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
88202         (__mktime_internal) [!defined _LIBC]: New decl.
88203         (__gmtime_r) [!defined _LIBC]: New macro and function.
88204         (timegm): Use a prototype, since gnulib assumes C89.
88205         Do not bother declaring tmp to be const, as it's not really usefu.
88206         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
88207         (timegm): Declare only if HAVE_DECL_TIMEGM.
88208
88209 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88210
88211         * MODULES.html.sh (func_all_modules): Add time_r.
88212         * modules/time_r: New file.
88213         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
88214         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
88215
88216 2003-09-03  Paul Eggert  <eggert@twinsun.com>
88217
88218         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
88219         Bug reported by Lute Kamstra in
88220         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
88221
88222         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
88223         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
88224         course with correspondingly smaller numbers for tomorrow and
88225         yesterday.  From Tadayoshi Funaba.  Originally installed into
88226         sh-utils on 1999-08-07, but the patch got lost (I guess during the
88227         coreutils merge?).
88228
88229 2003-08-31  Simon Josefsson  <jas@extundo.com>
88230
88231         * modules/timegm: New file.
88232         * MODULES.html.sh (func_all_modules): Add timegm.
88233
88234 2003-08-31  Simon Josefsson  <jas@extundo.com>
88235
88236         * m4/timegm.m4: New file.
88237
88238 2003-08-31  Simon Josefsson  <jas@extundo.com>
88239
88240         * lib/timegm.h: New file.
88241         * lib/timegm.c: New file.  Based on
88242         wget-1.8.2/src/http.c:mktime_from_utc.
88243
88244 2003-08-31  Karl Berry  <karl@gnu.org>
88245
88246         * lib/argp.h: update from libc.
88247
88248 2003-08-28  Bruno Haible  <bruno@clisp.org>
88249
88250         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
88251         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
88252         followed by '#define fnmatch fnmatch_posix' gives an error.
88253
88254 2003-08-28  Bruno Haible  <bruno@clisp.org>
88255
88256         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
88257         warning on QNX, which defines O_BINARY to 000000.
88258
88259 2003-08-27  Jim Meyering  <jim@meyering.net>
88260
88261         * m4/mkstemp.m4: Require that the system mkstemp be able to create
88262         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
88263         would fail after 32.  Reported by Danny Levinson.  Details here:
88264         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
88265
88266 2003-08-24  Bruno Haible  <bruno@clisp.org>
88267
88268         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
88269         MSVC7 <stdio.h> is included later.
88270
88271 2003-08-22  Simon Josefsson  <jas@extundo.com>
88272
88273         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
88274
88275 2003-08-20  Karl Berry  <karl@gnu.org>
88276
88277         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
88278
88279 2003-08-20  Bruno Haible  <bruno@clisp.org>
88280
88281         * modules/progname: New file.
88282         * MODULES.html.sh (func_all_modules): Add progname.
88283
88284 2003-08-20  Bruno Haible  <bruno@clisp.org>
88285
88286         * lib/progname.h: New file, from GNU gettext.
88287         * lib/progname.c: New file, from GNU gettext.
88288         * lib/progreloc.c: New file, from GNU gettext.
88289
88290 2003-08-19  Jim Meyering  <jim@meyering.net>
88291
88292         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
88293         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
88294
88295 2003-08-19  Bruno Haible  <bruno@clisp.org>
88296
88297         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
88298         more.
88299
88300 2003-08-19  Bruno Haible  <bruno@clisp.org>
88301
88302         * lib/xstrdup.c: Assume <string.h> exists.
88303
88304 2003-08-18  Paul Eggert  <eggert@twinsun.com>
88305
88306         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
88307         in makefile rules.
88308
88309 2003-08-18  Jim Meyering  <jim@meyering.net>
88310
88311         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
88312         * m4/lib-ld.m4: Likewise.
88313
88314 2003-08-18  Jim Meyering  <jim@meyering.net>
88315
88316         * lib/setenv.h: Indent nested cpp directive.
88317         * lib/vasnprintf.c: Remove trailing blanks.
88318
88319 2003-08-17  Simon Josefsson  <jas@extundo.com>
88320
88321         * modules/xstrndup: New file.
88322         * MODULES.html.sh (func_all_modules): Add xstrndup.
88323
88324 2003-08-17  Simon Josefsson  <jas@extundo.com>
88325
88326         * modules/argp: Fix autoconf macro name. Add more dependencies.
88327
88328 2003-08-17  Simon Josefsson  <jas@extundo.com>
88329
88330         * m4/xstrndup.m4: New file.
88331
88332 2003-08-17  Simon Josefsson  <jas@extundo.com>
88333
88334         * m4/argp.m4: New file.
88335
88336 2003-08-17  Simon Josefsson  <jas@extundo.com>
88337             Bruno Haible  <bruno@clisp.org>
88338
88339         * lib/xstrndup.h: New file.
88340         * lib/xstrndup.c: New file.
88341
88342 2003-08-17  Bruno Haible  <bruno@clisp.org>
88343
88344         * modules/strndup (Files, Include): Add lib/strndup.h.
88345
88346 2003-08-17  Bruno Haible  <bruno@clisp.org>
88347
88348         * modules/euidaccess (Files): Add lib/euidaccess.h.
88349
88350 2003-08-17  Bruno Haible  <bruno@clisp.org>
88351
88352         * lib/strndup.h: New file.
88353
88354 2003-08-17  Bruno Haible  <bruno@clisp.org>
88355
88356         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
88357         like AC_GNU_SOURCE.
88358         * modules/extensions (configure.ac): Comment out the invocation of
88359         gl_USE_SYSTEM_EXTENSIONS.
88360
88361 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88362
88363         Merges from coreutils, etc.
88364         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
88365         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
88366         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
88367         fixing a typo.
88368         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
88369         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
88370
88371 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88372
88373         Document merge from coreutils.
88374         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
88375         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
88376         * modules/utime: Add m4/utimes-null.m4.
88377
88378 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88379
88380         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
88381         space, undoing this 2003-08-12 change:
88382         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88383
88384 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88385
88386         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
88387         strtoul.c from libc, undoing this 2003-08-12 change:
88388         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88389
88390 2003-08-16  Jim Meyering  <jim@meyering.net>
88391
88392         Merges from coreutils.
88393         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
88394         prefix.  Adjust cache variables similarly.  Create 500 rather than
88395         just 300 files, to exercise bug on Darwin6.5, too.
88396         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
88397         $missing_dir.
88398         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
88399         AM_SYS_POSIX_TERMIOS.
88400         Reported by mkc@mathdogs.com.
88401         Also change use of $am_cv_sys_posix_termios
88402         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
88403         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
88404         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
88405         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
88406         in /proc/mounts until it finds one with matching device number.  This
88407         is unnecessary when the FILE argument *is* a mount point.  No stat call
88408         is necessary in that case.  So, disable the statvfs-testing code on
88409         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
88410         as RedHat bug# 84846.
88411         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88412         to 1MB, so as not to render systems with no stack size limit (e.g.,
88413         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88414         Include <unistd.h>.  On some systems,
88415         it is required for the definition of _SC_PAGESIZE.
88416
88417 2003-08-16  Jim Meyering  <jim@meyering.net>
88418
88419         Merge from coreutils.
88420         * lib/xstrtoimax.c: #else #if -> #elif.
88421         * lib/xstrtoumax.c: Likewise.
88422
88423 2003-08-16  Jim Meyering  <jim@meyering.net>
88424
88425         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
88426         * m4/utimes.m4: Removed.
88427         * m4/utimes-null.m4: Renamed from utimes.m4.
88428
88429         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88430         to 1MB, so as not to render systems with no stack size limit (e.g.,
88431         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88432         Include <unistd.h>.  On some systems,
88433         it is required for the definition of _SC_PAGESIZE.
88434
88435 2003-08-16  Jim Meyering  <jim@meyering.net>
88436         and Paul Eggert  <eggert@cs.ucla.edu>
88437
88438         Merges from coreutils, etc.
88439
88440         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
88441         using the latest version from cvs.  This avoids problems with #line
88442         directives using a vendor (Sun) compiler.
88443         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
88444         Don't set GETGROUPS_LIB here; now it's
88445         done via getgroups.m4's wrapper function.
88446         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
88447         rather than just in sh-util/configure.in, so that the
88448         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
88449         same.
88450         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
88451         AC_FUNC_GETLOADAVG where to find getloadavg.c.
88452         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
88453         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
88454         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
88455         Remove code that is now done by the newly-required macros.
88456         Append $(EXEEXT) to DF_PROG.
88457         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
88458         Do not invoke or require the following here,
88459         since prereq.m4 or some gnulib .m4 now does this for us:
88460         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
88461         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
88462         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
88463         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
88464         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
88465         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
88466         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
88467         AC_FUNC_OBSTACK.
88468         Do not replace the following functions, as this is now the job
88469         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
88470         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
88471         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
88472         atexit getpass, strdup, getpagesize.
88473         Replace 'raise'.
88474         Do not check for the following functions, as this is now the job
88475         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
88476         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
88477         setregid.
88478         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
88479         Check for sys/sysctl.h.
88480         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
88481         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
88482         of checking for ssize_t ourselves.
88483
88484         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
88485         Require every macro that gnulib/modules/* suggests for us.
88486         (jm_PREREQ_ADDEXT): New macro.
88487         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
88488         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
88489
88490         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
88491         (gl_PHYSMEM): Use it.
88492         Also check for `table' function.
88493         Check for new headers and functions.
88494         Add check for sys/sysmp.h.
88495         With suggestions from Kaveh Ghazi.
88496         Ignore headers that are present but cannot be compiled.  This
88497         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
88498         C 5.4.
88499
88500 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88501
88502         Document merge from coreutils.
88503         * modules/userspec: Depend on posixver.
88504         * modules/strftime: Depend on tzset.
88505
88506 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88507
88508         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
88509         rather than tab, after '#' in shell-script copyright notices.
88510         Suggested by Bruno Haible.
88511
88512 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88513
88514         * config/srclist-update: Use three spaces, rather than tab, after '#'
88515         in shell-script copyright notices.  Suggested by Bruno Haible.
88516         Remove unnecessary parenthesization in regular expression.
88517
88518 2003-08-15  Jim Meyering  <jim@meyering.net>
88519
88520         Merge from coreutils.
88521         * lib/xgethostname.c: Include <stdlib.h>.
88522         (xghostname): Don't exit for anything other than memory-related
88523         failure; just return NULL.
88524         * lib/userspec.c: Include "posixver.h".
88525         (parse_user_spec): Accept `.' as a separator only
88526         in pre-POSIX-200112 mode.
88527         * lib/strtoimax.c: Use #elif rather than #else #if.
88528         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
88529         Remove function, now that we can rely on a working tzset function.
88530         [!_LIBC]: Ensure that the required autoconf test has been run.
88531         [!defined _NL_CURRENT && HAVE_STRFTIME]:
88532         Use underlying_strftime for %r.
88533         * lib/sha.c: Merge in some clean-up and optimization changes from
88534         glibc.
88535         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
88536         Ensure that it is a multiple of 64.
88537         Rearrange loop exit tests so as to avoid performing an
88538         additional fread after encountering an error or EOF.
88539         * lib/realloc.c: Update copyright date.
88540
88541 2003-08-15  Jim Meyering  <jim@meyering.net>
88542         and Paul Eggert  <eggert@twinsun.com>
88543
88544         Merge from coreutils.
88545         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
88546         member but strut utmpx does not.  Needed for AIX 4.3.3.
88547         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
88548
88549 2003-08-15  Jim Meyering  <jim@meyering.net>
88550         and Paul Eggert  <eggert@cs.ucla.edu>
88551
88552         Merges from coreutils, etc.
88553         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
88554         Require gl_FUNC_TZSET_CLOBBER.
88555         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
88556         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
88557         members.
88558
88559 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88560
88561         Help the merge from coreutils.
88562         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
88563         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
88564         * m4/tzset.m4: Use it too.
88565
88566 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88567
88568         * modules/tzset: New file.
88569
88570 2003-08-14  Jim Meyering  <jim@meyering.net>
88571
88572         Merges from coreutils.
88573         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
88574         variable names, rather than @FNMATCH_H@.
88575         * modules/alloca: Likewise for $(ALLOCA_H).
88576
88577         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
88578         the three copies of the literal target, `fnmatch.h'.
88579         * modules/alloca (alloca.h): Likewise.
88580
88581 2003-08-14  Jim Meyering  <jim@meyering.net>
88582
88583         Merge from coreutils.
88584         * m4/tzset.m4: New file.
88585         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
88586         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
88587         otherwise, AIX 5.1 systems would end up using the latter.
88588         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
88589         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
88590         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
88591         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
88592
88593 2003-08-14  Jim Meyering  <jim@meyering.net>
88594
88595         Merge from coreutils.
88596         * lib/obstack.h: Whitespace changes.
88597         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
88598         and xcalloc return values.
88599         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
88600         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
88601         hang on OSF/1 5.1 for DIR on both local and remote file systems.
88602         Reported by (and fix confirmed by) Nelson H. F. Beebe.
88603         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88604         error from mntctl.
88605         Use mntctl's return value to drive the entry-processing loop, since
88606         we can't rely on the value of the vmt_length member in the last
88607         entry.  On some systems doing so could result in exhausting
88608         virtual memory.  Based in part on a patch from Mike Jetzer.
88609
88610 2003-08-14  Jim Meyering  <jim@meyering.net>
88611         and Paul Eggert  <eggert@twinsun.com>
88612
88613         Merges from coreutils, plus other fixes.
88614         * lib/physmem.c: Merge in portability changes from gcc/libiberty
88615         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
88616         for credits and details.  Thanks to Kaveh Ghazi for helping
88617         to keep these files in sync.
88618         (ARRAY_SIZE): Define it.
88619         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
88620         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
88621         (memcasecmp): Don't assume size_t fits in unsigned int.
88622         Remove casts and duplicate code.
88623         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
88624         (memcpy): Remove definition.
88625         Merge in some clean-up and optimization changes from glibc.
88626         [BLOCKSIZE]: Move definition to top of file.
88627         Ensure that it is a multiple of 64.
88628         Rearrange loop exit tests so as to avoid performing an
88629         additional fread after encountering an error or EOF.
88630         * lib/md5.h (md5_uintptr): Define.
88631         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
88632         return to the initial working directory.  Preserve errno
88633         for caller.
88634         * lib/idcache.c: Include "xalloc.h".
88635         (xmalloc, xrealloc): Remove decls.
88636         (getuser): Remove casts no longer required in C89.
88637         * lib/human.c: Include stdio.h, for sprintf.
88638         * lib/group-member.c: Include "xalloc.h".
88639         (xmalloc, xrealloc): Remove decls.
88640         (get_group_info): Remove casts no longer required in C89.
88641         * lib/getusershell.c (readname): Remove casts no longer required in
88642         C89.
88643         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
88644         * lib/getline.c: Whitespace fix, from coreutils.
88645
88646 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88647
88648         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
88649         Check for isascii.
88650
88651         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88652         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88653         Undo previous (whitespace-only) change.
88654
88655 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88656
88657         * lib/exclude.c: Include <ctype.h>
88658         (IN_CTYPE_DOMAIN): New macro.
88659         (is_space): New fn.
88660         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
88661         and empty lines.
88662
88663         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88664         Undo previous (whitespace-only) change.
88665
88666 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88667
88668         * config/srclist-update: Change update back to the old behavior,
88669         leaving whitespace alone.  Use one 'sed' command rather than a
88670         pipeline.
88671         (fixlicense): Now a variable, not a function.
88672         (remove_trailing_blanks): Remove.
88673         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
88674         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88675         Undo previous (whitespace-only) change.
88676
88677 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88678
88679         Merge from coreutils.
88680         * modules/euidaccess: Add lib_SOURCES, include for new
88681         file euidaccess.h
88682
88683 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88684
88685         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88686         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88687         Normalize leading white space and remove trailing white space.
88688
88689         Merge from coreutils
88690         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
88691
88692         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
88693         0.12.1.  These files are now being upgraded automatically by
88694         ../config/srclist-update.
88695
88696 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88697
88698         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88699         Normalize leading white space and remove trailing white space.
88700         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
88701         notice, as per ../config/srclist-update.
88702
88703         Merge from coreutils.
88704         * lib/euidaccess.h: New file.
88705         * lib/euidaccess.c: Include it.
88706         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
88707         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
88708         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
88709
88710 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88711
88712         * config/srclist-update: Add copyright notice.
88713         (remove_id_lines, remove_trailing_blanks): New constants.
88714         (fixfile): Use them to normalize spacing a bit in copied files.
88715         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88716         Normalize leading white space and remove trailing white space.
88717
88718         * config/texinfo.tex: Sync with texinfo.
88719
88720         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
88721         strtoul.c from libc, to merge coreutils whitespace changes.
88722
88723         * config/srclist.txt: Get the following m4 files from gettext:
88724         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
88725         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
88726         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
88727         wint_t.m4.
88728
88729 2003-08-12  Karl Berry  <karl@gnu.org>
88730
88731         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
88732         been made.
88733
88734 2003-08-11  Paul Eggert  <eggert@twinsun.com>
88735
88736         * modules/gnu-source, m4/gnu-source.m4:
88737         Remove; we're assuming Autoconf 2.54 or later now.
88738         Suggested by Bruno Haible.
88739         * MODULES.html.sh (func_all_modules): Remove gnu-source.
88740
88741 2003-08-11  Bruno Haible  <bruno@clisp.org>
88742
88743         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
88744
88745 2003-08-11  Bruno Haible  <bruno@clisp.org>
88746
88747         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
88748         (vasnprintf): Use it instead of wcslen.
88749
88750 2003-08-11  Bruno Haible  <bruno@clisp.org>
88751
88752         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
88753         value to ensure that _Bool promotes to int. Use #define for _Bool when
88754         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
88755
88756 2003-08-10  Karl Berry  <karl@gnu.org>
88757
88758         * lib/regex.h: update from libc (whitespace fix).
88759
88760 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88761
88762         Merge some files from coreutils.  These changes were
88763         originally made by Jim Meyering.
88764         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
88765         many older Unixes require this.
88766         * lib/alloca.c (alloca): Remove cast to argument of free;
88767         no longer needed in C89.
88768         * lib/alloca_.h, regex.h: Fix white space to match
88769         what GNU indent does.
88770
88771 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88772
88773         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
88774         apparently Emacs's Unicode mode got confused before my 2003-08-05
88775         checkin.
88776
88777 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88778
88779         * m4/extensions.m4: New file.
88780         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
88781         Require gl_USE_SYSTEM_EXTENSIONS.
88782         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
88783         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
88784
88785 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88786
88787         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
88788         * modules/extensions, modules/gnu-source: New files.
88789         * modules/timespec, modules/unlocked-io: Depend on extensions.
88790
88791 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88792
88793         * modules/restrict: New file.
88794         * MODULES.html.sh (func_all_modules): Add restrict.
88795         * modules/regex: Depend on restrict.
88796
88797 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88798
88799         * m4/restrict.m4: New file.
88800         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
88801
88802 2003-08-07  Bruno Haible  <bruno@clisp.org>
88803
88804         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
88805         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
88806
88807 2003-08-07  Bruno Haible  <bruno@clisp.org>
88808
88809         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
88810         makes the module 'getndelim2' compatible with the module 'getline'.
88811
88812 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88813
88814         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
88815         byte with "\201" to avoid glitches when editing that source file
88816         with multi-gnome-terminal.
88817
88818 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88819
88820         * lib/bumpalloc.h: Remove.
88821
88822 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88823
88824         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
88825         * modules/bumpalloc: Remove.
88826
88827 2003-08-04  Paul Eggert  <eggert@twinsun.com>
88828
88829         * lib/getloadavg.c: Change copyright notice and spacing to conform to
88830         GNU coding style.
88831
88832         Merge from coreutils.
88833         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
88834         1. From glibc.
88835         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
88836         from Karl Berry, implemented by Jim Meyering.
88837         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
88838         from Dmitry V. Levin.
88839         Remove anachronistic cast of xrealloc.
88840         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
88841         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
88842         type. Otherwise, it wouldn't compile with at least /bin/cc on
88843         ymp-cray-unicos9.0.2.X.
88844         Combine two mostly-identical uses of alloca into one.
88845         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
88846
88847 2003-08-04  Dave Love  <d.love@dl.ac.uk>
88848
88849         [From Emacs.]
88850
88851         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
88852         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
88853         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
88854         obsolete NLIST_NAME_UNION.
88855         [__GNU__]: Undef BSD and FSCALE.
88856         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
88857
88858 2003-08-03  Paul Eggert  <eggert@twinsun.com>
88859
88860         * lib/stdbool_.h (_Bool): Make it signed char, instead of
88861         an enum type, so that it's guaranteed to promote to int.  See:
88862         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
88863
88864 2003-08-03  Karl Berry  <karl@gnu.org>
88865
88866         * config/depcomp: update from automake.
88867
88868 2003-07-31  Paul Eggert  <eggert@twinsun.com>
88869
88870         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
88871         (strerror): Don't assume that a printable int fits in 14 bytes.
88872
88873 2003-07-31  Bruno Haible  <bruno@clisp.org>
88874
88875         * modules/getpass-gnu: New file.
88876         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
88877
88878 2003-07-31  Bruno Haible  <bruno@clisp.org>
88879
88880         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
88881
88882 2003-07-24  Karl Berry  <karl@gnu.org>
88883
88884         * config/missing: update from automake.
88885
88886 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
88887             Bruno Haible  <bruno@clisp.org>
88888
88889         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
88890         * lib/getline.c (getline, getdelim): Likewise.
88891         Remove _GNU_SOURCE define; now it's defined in config.h through
88892         m4/getline.m4.
88893
88894 2003-07-23  Karl Berry  <karl@gnu.org>
88895
88896         * config/config.sub: update from prep.
88897
88898 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88899
88900         * modules/xalloc (Depends-on): Add exitfail.
88901         * modules/xmemcoll: Likewise.
88902
88903 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88904
88905         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
88906         over-parenthesization in macros.
88907
88908         Sync with coreutils.
88909
88910         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
88911         required by C99.
88912
88913         Use `exit_failure' for xalloc and xmemcoll instead of their own
88914         private exit-failure variables.
88915         * lib/xalloc.h (xalloc_exit_failure): Remove.
88916         * lib/xmalloc.c: Likewise.  Include exitfail.h.
88917         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
88918         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
88919         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
88920         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
88921
88922 2003-07-20  Jim Meyering  <jim@meyering.net>
88923
88924         * modules/closeout (Depends-on): Add exitfail.
88925         Suggestion from Bruno Haible.
88926
88927 2003-07-19  Karl Berry  <karl@gnu.org>
88928
88929         * config/config.sub: update from prep.
88930
88931 2003-07-18  Paul Eggert  <eggert@twinsun.com>
88932
88933         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
88934         Remove.
88935         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
88936         to test that it can stand by itself.  Include "exitfail.h".
88937         Clients should set exit_failure instead.
88938         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
88939
88940 2003-07-18  Bruno Haible  <bruno@clisp.org>
88941
88942         * modules/getndelim2: New file.
88943         * modules/getline: Share files with module getndelim2.
88944         * modules/getnline: Depend on getndelim2 instead of sharing files with
88945         it. Add getnline.c to lib_SOURCES.
88946         * MODULES.html.sh (func_all_modules): Add getndelim2.
88947
88948 2003-07-18  Bruno Haible  <bruno@clisp.org>
88949
88950         * m4/getndelim2.m4: New file.
88951         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
88952         invoke gl_PREREQ_GETNDELIM2.
88953         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
88954         gl_PREREQ_GETNDELIM2.
88955         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
88956         gl_GETNDELIM2.
88957
88958 2003-07-18  Bruno Haible  <bruno@clisp.org>
88959
88960         * lib/getndelim2.h: New file.
88961         * lib/getndelim2.c: Make into a module of its own. Include config.h,
88962         getndelim2.h.
88963         (getndelim2): Make non-static. Change return type to ssize_t.
88964         * lib/getline.h: Change argument names.
88965         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
88966         * lib/getnline.c: Include getndelim2.h.
88967
88968 2003-07-18  Andreas Schwab  <schwab@suse.de>
88969
88970         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
88971
88972 2003-07-17  Karl Berry  <karl@gnu.org>
88973
88974         * config/config.sub: update from prep.
88975
88976 2003-07-17  Bruno Haible  <bruno@clisp.org>
88977
88978         * modules/getnline: New file.
88979         * modules/getline: Add lib/getndelim2.c to source file list.
88980         * MODULES.html.sh (func_all_modules): Add getnline.
88981
88982 2003-07-17  Bruno Haible  <bruno@clisp.org>
88983
88984         * m4/getnline.m4: New file.
88985
88986 2003-07-17  Bruno Haible  <bruno@clisp.org>
88987
88988         * m4/Makefile.am.in: Remove file.
88989         * m4/Makefile.am: Remove file.
88990         * m4/Makefile.in: Remove file.
88991
88992 2003-07-17  Bruno Haible  <bruno@clisp.org>
88993
88994         * lib/getnline.h: New file.
88995         * lib/getnline.c: New file.
88996         * lib/getndelim2.c: New file, extracted from getline.c.
88997         (getndelim2): Renamed from getdelim2, with added nmax argument.
88998         * lib/getline.c: Include getndelim2.c.
88999         (getdelim2): Moved out to getndelim2.c.
89000         (getline, getdelim): Update.
89001
89002 2003-07-17  Bruno Haible  <bruno@clisp.org>
89003
89004         * lib/Makefile.am: Remove file.
89005         * lib/Makefile.in: Remove file.
89006
89007 2003-07-17  Bruno Haible  <bruno@clisp.org>
89008
89009         * configure.in: Remove file.
89010         * Makefile.in: Remove file.
89011
89012 2003-07-17  Bruno Haible  <bruno@clisp.org>
89013
89014         * MODULES.html.sh: Put the </BODY> right before </HTML>.
89015
89016 2003-07-16  Karl Berry  <karl@gnu.org>
89017
89018         * config/srclist-update: was running fixlicense twice, which caused
89019                 texinfo.tex to be nullified for some reason.  Simplify,
89020                 $gplsrc is no longer needed as far as I can see?
89021
89022 2003-07-16  Jim Meyering  <jim@meyering.net>
89023
89024         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
89025
89026 2003-07-15  Paul Eggert  <eggert@twinsun.com>
89027
89028         * config/srclist.txt: Get the following files from gettext-runtime/intl
89029         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
89030         ref-del.sin.  From Bruno Haible.
89031         * config/srclist-update (fixfile): Change grep pattern again, since the
89032         previous fix didn't work (there was another trailing $).  Use
89033         '[$]' to escape the $s.
89034
89035 2003-07-15  Karl Berry  <karl@gnu.org>
89036
89037         * lib/vasnprintf.c: update from gettext.
89038
89039 2003-07-15  Karl Berry  <karl@gnu.org>
89040
89041         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
89042         gets expanded when surrounded by '$'.
89043
89044 2003-07-15  Jim Meyering  <jim@meyering.net>
89045
89046         * modules/save-cwd: Don't depend on error.  From Derek Price.
89047
89048 2003-07-15  Jim Meyering  <jim@meyering.net>
89049
89050         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
89051
89052 2003-07-14  Simon Josefsson  <jas@extundo.com>
89053
89054         * modules/mempcpy: New file.
89055         * MODULES.html.sh (func_all_modules): Add mempcpy.
89056
89057 2003-07-14  Simon Josefsson  <jas@extundo.com>
89058
89059         * m4/mempcpy.m4: New file.
89060
89061 2003-07-14  Simon Josefsson  <jas@extundo.com>
89062
89063         * lib/mempcpy.h: New file.
89064         * lib/mempcpy.c: New file.
89065
89066 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89067
89068         * modules/getdate, modules/posixtm: Depend on mktime.
89069
89070 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89071
89072         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
89073         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
89074         unicodeio.c, unicodeio.h, unlocked-io.h:
89075         Switch from LGPL to GPL.
89076
89077 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89078
89079         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
89080         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
89081         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
89082         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
89083         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
89084         updated automatically by ../config/srclist-update.  This changes
89085         their license from LPGL to GPL.
89086
89087 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89088
89089         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
89090         assumed to refer to the root of the most recent stable gettext version.
89091         * config/srclistvars.sh: Add defaults for eggert.
89092         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
89093         Match "This program" as well as "The program".  This is needed
89094         for gettext.
89095
89096 2003-07-14  Jim Meyering  <jim@meyering.net>
89097
89098         Don't emit diagnostics.  Let callers do that.
89099         * lib/save-cwd.c: Don't include "error.h".
89100         (save_cwd): Don't call error.  Ensure that errno is valid
89101         when returning nonzero.
89102
89103         * lib/save-cwd.h (restore_cwd): Update prototype.
89104         * lib/save-cwd.c (restore_cwd): Remove two parameters.
89105         Simplify.  Don't call error upon failure.  Let callers do that.
89106         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
89107         when auditing is enabled.  But don't bother updating the #if.
89108
89109 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
89110
89111         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
89112         it breaks C++ compilation.
89113         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
89114
89115 2003-07-10  Simon Josefsson  <jas@extundo.com>
89116
89117         * modules/strchrnul (Makefile.am): Add strchrnul.h.
89118
89119 2003-07-10  Jim Meyering  <jim@meyering.net>
89120
89121         * m4/clock_time.m4: Remove trailing blank.
89122         * m4/intmax_t.m4: Likewise.
89123
89124 2003-07-10  Jim Meyering  <jim@meyering.net>
89125
89126         * lib/vasnprintf.c: Remove trailing blanks.
89127         Make cpp indentation consistent.
89128
89129 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89130
89131         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
89132         posixver.c, strftime.c, strnlen.c, strverscmp.c:
89133         Switch from LGPL to GPL.
89134
89135 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89136
89137         * config/srclist.txt: Sort sublists.  Add
89138         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
89139         that differ from gnulib for one reason or another; we'd like this list
89140         to be smaller but for now let's document what we have.
89141
89142 2003-07-08  Paul Eggert  <eggert@twinsun.com>
89143
89144         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
89145         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
89146         and sweeter "eval x=$x".
89147         * config/srclist.txt: Get lib/argp* from glibc.
89148
89149 2003-07-07  Paul Eggert  <eggert@twinsun.com>
89150
89151         * lib/mktime.c: Fix some boundary cases and remove need for floating
89152         point.
89153
89154         Issue a compile-time diagnostic if time_t is floating point, or if
89155         two's complement arithmetic is not in effect, or if arithmetic
89156         right shift does not propagate the sign.  These assumptions were
89157         all in the original code but they weren't checked.
89158
89159         (TIME_T_MIDPOINT, verify): New macros.
89160         (__isleap): Remove; it has integer overflow problems.
89161         (leapyear): New function, without those problems.
89162         (ydhms_tm_diff): Remove; splitting into two parts.
89163         (ydhms_diff): New function, containing the arithmetic part of
89164         the old ydhms_tm_diff function.  Issue a compile-time
89165         diagnostic if we are not using C99 integer division.
89166         Avoid casts when possible.
89167         (guess_time_tm): New function, containing the checking part of
89168         the old ydhms_tm_diff function.  Return the new value, rather than
89169         the difference between it and the old.  Accept a new argument T
89170         so that *T specifies the old value.  Check for overflow in the result.
89171
89172         (__mktime_internal): Use a time_t offset, not a long int offset.
89173         This undoes the 2003-06-04 change, which is no longer needed now
89174         that we have better overflow checking.
89175         (localtime_offset): Likewise.
89176
89177         (__mktime_internal): Avoid harmful overflow on hosts where time_t
89178         and long are 64-bit but int is only 32-bit.
89179         (ydhms_diff): Use long int to store year1 and yday1.
89180         Issue a compile-time diagnostic if long int is not wide enough.
89181
89182         (__mktime_internal): Use long int to store adjusted year and yday.
89183         Use plain C rather than preprocessor commands, if that doesn't
89184         affect efficiency.
89185         Check for overflow (and try to repair) after each probe
89186         rather than checking only at the very end.  This avoids some bugs
89187         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
89188         does not equal GMT offset at maximum time).
89189         Use integer to check for overflow rather than floating point; this
89190         is more portable to non-IEEE hosts, and is a tad faster.
89191         When we detect that we are oscillating between two values,
89192         don't check whether tm_isdst has the requested value, since
89193         we already know the answer.  When tm_isdst has the wrong value,
89194         use a different heuristic to find the right one, based on the
89195         extreme values actually observed in practice in tz2003a,
89196         rather than the (overly optimistic) "previous 3 calendar quarters".
89197
89198         (not_equal_tm, print_tm, check_result): Use "const T" rather than
89199         "T const" to accommodate glibc style.
89200         (check_result): Use less-confusing report format.  "long" -> "long int.
89201         (main): Likewise.
89202         Don't loop if the iteration overflows time_t.
89203         Allow a negative step in the iteration.
89204
89205 2003-07-06  Karl Berry  <karl@gnu.org>
89206
89207         * config/depcomp: update from automake.
89208         * config/config.sub: update from prep.
89209
89210 2003-07-03  Karl Berry  <karl@gnu.org>
89211
89212         * config/config.guess: update from prep.
89213
89214 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89215
89216         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
89217         xreadlink.c now includes it unconditionally.
89218
89219 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89220
89221         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
89222         having it depend on HAVE_SYS_TYPES_H.
89223
89224 2003-07-01  Bruno Haible  <bruno@clisp.org>
89225
89226         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
89227         <sys/types.h> should be sufficient.
89228         Reported by Paul Eggert.
89229
89230 2003-06-26  Karl Berry  <karl@gnu.org>
89231
89232         * config/depcomp: update from automake.
89233
89234 2003-06-26  Bruno Haible  <bruno@clisp.org>
89235
89236         * modules/human: Depend on module stdbool.
89237
89238 2003-06-25  Bruno Haible  <bruno@clisp.org>
89239
89240         * modules/readlink: New file.
89241         * modules/xreadlink: Depend on it.
89242         * MODULES.html.sh (func_all_modules): Add readlink.
89243
89244 2003-06-25  Bruno Haible  <bruno@clisp.org>
89245
89246         * m4/readlink.m4: New file.
89247
89248 2003-06-25  Bruno Haible  <bruno@clisp.org>
89249
89250         * lib/readlink.c: New file.
89251
89252 2003-06-22  Karl Berry  <karl@gnu.org>
89253
89254         * config/srclist.txt: update mkinstalldirs from automake.
89255         * config/mkinstalldirs: update.
89256
89257 2003-06-22  Bruno Haible  <bruno@clisp.org>
89258
89259         Portability to mingw32.
89260         * m4/ssize_t.m4: New file, from GNU gettext.
89261         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
89262         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
89263
89264 2003-06-22  Bruno Haible  <bruno@clisp.org>
89265
89266         * modules/safe-read: Add m4/ssize_t.m4.
89267         * modules/xreadlink: Add m4/ssize_t.m4.
89268
89269 2003-06-20  Bruno Haible  <bruno@clisp.org>
89270
89271         Assume C89, so PARAMS isn't needed.
89272         * lib/unicodeio.h (PARAMS): Remove.
89273         * lib/unicodeio.c: Don't use PARAMS.
89274
89275 2003-06-18  Karl Berry  <karl@gnu.org>
89276
89277         * config/config.{guess,sub}: update from prep.
89278
89279 2003-06-18  Jim Meyering  <jim@meyering.net>
89280
89281         Merge changes from coreutils.
89282         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
89283         Remove explicit declarations of xmalloc and realloc.
89284         Include xalloc.h.
89285         (read_utmp): Remove anachronistic cast of xmalloc.
89286
89287 2003-06-17  Paul Eggert  <eggert@twinsun.com>
89288
89289         Assume C89, so PARAMS isn't needed.
89290         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
89291         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
89292         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
89293         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
89294         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
89295         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
89296         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
89297         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
89298         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
89299         lib/xstrtod.h, lib/xstrtol.h: Likewise.
89300         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
89301         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
89302         no longer needed. Anyway, config.h should always be included before any
89303         other file.
89304
89305 2003-06-11  Simon Josefsson  <jas@extundo.com>
89306
89307         * modules/sysexits: New file.
89308         * MODULES.html.sh (func_all_modules): Add sysexits.
89309
89310 2003-06-11  Simon Josefsson  <jas@extundo.com>
89311
89312         * lib/sysexit_.h: New file.
89313
89314 2003-06-11  Derek Price  <derek@ximbiot.com>
89315
89316         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
89317         necessary.
89318
89319 2003-06-11  Bruno Haible  <bruno@clisp.org>
89320
89321         * m4/sysexits.m4: New file.
89322
89323 2003-06-10  Simon Josefsson  <jas@extundo.com>
89324
89325         * lib/argp.h: New file, from glibc.
89326         * lib/argp-ba.c: New file, from glibc.
89327         * lib/argp-eexst.c: New file, from glibc.
89328         * lib/argp-fmtstream.c: New file, from glibc.
89329         * lib/argp-fmtstream.h: New file, from glibc.
89330         * lib/argp-fs-xinl.c: New file, from glibc.
89331         * lib/argp-help.c: New file, from glibc.
89332         * lib/argp-namefrob.h: New file, from glibc.
89333         * lib/argp-parse.c: New file, from glibc.
89334         * lib/argp-pv.c: New file, from glibc.
89335         * lib/argp-pvh.c: New file, from glibc.
89336         * lib/argp-xinl.c: New file, from glibc.
89337
89338 2003-06-10  Simon Josefsson  <jas@extundo.com>
89339
89340         * modules/strchrnul: New file.
89341
89342 2003-06-10  Simon Josefsson  <jas@extundo.com>
89343
89344         * modules/argp: New file.
89345
89346 2003-06-10  Simon Josefsson  <jas@extundo.com>
89347
89348         * m4/strchrnul.m4: New file.
89349
89350 2003-06-10  Simon Josefsson  <jas@extundo.com>
89351
89352         * lib/strchrnul.h: New file.
89353         * lib/strchrnul.c: New file.
89354
89355 2003-06-10  Bruno Haible  <bruno@clisp.org>
89356
89357         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
89358
89359 2003-06-07  Karl Berry  <karl@gnu.org>
89360
89361         * config/config.{guess,sub}: update from prep.
89362
89363 2003-06-07  Jim Meyering  <jim@meyering.net>
89364
89365         * modules/strtod: Use $(...) notation, not @...@ for
89366         AC_REPLACE'd variables.
89367         * modules/localcharset: Likewise.
89368
89369 2003-06-07  Jim Meyering  <jim@meyering.net>
89370
89371         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
89372         in place of my name in the copyright comment.
89373         Remove definition and uses of __P.
89374
89375         From coreutils.
89376         * lib/stat.c: Don't declare xmalloc explicitly.
89377         Instead, include "xalloc.h".
89378         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
89379         xrealloc, and xcalloc return values.
89380         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
89381         Improve comment.
89382         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
89383
89384 2003-06-07  Bruno Haible  <bruno@clisp.org>
89385
89386         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
89387         avoid AC_CONFIG_LINKS.
89388         * modules/fnmatch (Makefile.am): Use explicit creation rule for
89389         fnmatch.h, to avoid AC_CONFIG_LINKS.
89390         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
89391
89392 2003-06-07  Bruno Haible  <bruno@clisp.org>
89393
89394         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
89395         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
89396         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89397         directory.
89398         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
89399         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89400         directory.
89401
89402 2003-06-06  Jim Meyering  <jim@meyering.net>
89403
89404         Merge from coreutils.
89405         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
89406         Consolidate declarations and initializations of *_base* locals.
89407
89408         Merge from coreutils.
89409         This avoids a core dump on systems without GNU putenv,
89410         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
89411         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
89412         (unsetenv): New static function, from GNU libc.
89413         (rpl_putenv): Use it.
89414
89415         * lib/modechange.c: Remove trailing blanks.
89416
89417         Merge from coreutils.
89418         * lib/fsusage.c: Remove declaration of statfs.
89419         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
89420
89421         * lib/posixtm.c: Include <stdbool.h> unconditionally.
89422
89423 2003-06-06  Jim Meyering  <jim@meyering.net>
89424
89425         * lib/stdbool_.h: Renamed from stdbool.h.in.
89426
89427 2003-06-06  Jim Meyering  <jim@meyering.net>
89428             Bruno Haible  <bruno@clisp.org>
89429
89430         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
89431         Adjust Makefile.am snippet not to redirect directly to target.
89432         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
89433
89434 2003-06-05  Paul Eggert  <eggert@twinsun.com>
89435
89436         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
89437         mismatch, look in future quarters as well as past.  This fixes a
89438         bug when processing fall-backwards gaps immediately after a long
89439         period of daylight-saving time.
89440
89441         * lib/mktime.c: Assume freestanding C89 or better.
89442         (HAVE_LIMITS_H): Remove.  Assume it's 1.
89443         (__P): Remove; not used.
89444         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
89445         (mktime, not_equal_tm, print_tm, check_result,
89446         main): Use prototypes.  Use const * where appropriate.
89447         (main): Fix typo in testing code that uncovered by above changes.
89448         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
89449
89450 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89451
89452         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
89453         locale.h, localeconv.  This merges changes from coreutils.
89454
89455         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
89456         It can be removed after the next Autoconf is released.
89457         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
89458         needed.
89459
89460 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89461
89462         * lib/mktime.c: Fix Debian bug 177940
89463         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
89464         (localtime_offset): Now long int, not time_t, because we want it
89465         to be guaranteed to be signed.  All uses changed.
89466         (__mktime_internal): If overflow would occur when adding offset,
89467         don't add it.
89468
89469         Merge 'human' changes from coreutils.  Rewrite to support
89470         locale-specific notations like thousands separators.
89471         * lib/human.c: Simplify authorship notice.
89472         Include human.h immediately after config.h.
89473         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
89474         <limits.h>: Do not include, since human.h does.
89475         (SIZE_MAX, UINTMAX_MAX): New macros.
89476         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
89477         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
89478         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
89479         (power_letter): Renamed from suffixes.
89480         (generate_suffix_backwards): Remove.
89481         (adjust_value): Now takes int style (because of human.h changes)
89482         and long double value (for greater precision on some platforms).
89483         (group_number): New function.
89484         (human_readable): Use it.  Use integer options, not enum.
89485         Put the options before the sizes in the arg list.
89486         Support all the new options.
89487         The old human_readable function has been removed;
89488         use inttostr.h instead.
89489         (human_readable, default_block_size, humblock):
89490         Use uintmax_t, not int, for block sizes.
89491         (human_readable_inexact, block_size_types): Remove.
89492         (block_size_opts): New constant.
89493         (human_options): Renamed from human_block_size, with new signature
89494         that allows block sizes up to UINTMAX_MAX.  All callers changed.
89495         * lib/human.h: Add copyright and authorship notice.
89496         Include <limits.h> and <stdbool.h> unconditionally.
89497         (PARAMS): Remove.  All uses removed.
89498         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
89499         (enum human_inexact_style): Remove tag; now a nameless enum.
89500         (human_floor, human_ceiling, human_round_to_even): Now have
89501         values 2, 0, 1 rather than -1, 1, 0.
89502         (human_group_digits, human_suppress_point_zero, human_autoscale,
89503         human_base_1024, human_SI, human_B): New constants.
89504         (human_readable_inexact, human_block_size): Remove.
89505         (human_readable): Size args are now uintmax_t, not int.
89506         (human_options): New decl.
89507
89508         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
89509         unnecessary now that we assume C89 or better.  This change
89510         imported from coreutils.
89511
89512         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89513         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
89514         in the 2003-05-30 sync from glibc.
89515
89516         .h files should stand alone, but we shouldn't include <sys/types.h>
89517         if we can get away with just <stddef.h>.
89518
89519         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
89520         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
89521         rather than <sys/types.h>, as we merely need size_t.
89522         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
89523         to get size_t.
89524         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
89525         Include <stdio.h>, to get FILE.
89526         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
89527         memcasecmp.h has included <stddef.h> and all we need is size_t.
89528         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
89529         our interface, instead of including <sys/types.h>
89530
89531 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89532
89533         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
89534         now, as glibc mktime is buggy on non-glibc systems.
89535
89536 2003-06-03  Karl Berry  <karl@gnu.org>
89537
89538         * config/config.sub: update from prep.
89539
89540 2003-06-02  Paul Eggert  <eggert@twinsun.com>
89541
89542         [from coreutils]
89543         Fix some minor time-related bugs with POSIX time arguments.
89544         Some valid time stamps were being rejected (notably -1, and
89545         time stamps before 1900 on 64-bit hosts).  And some invalid
89546         time stamps were being accepted, e.g. September 31.
89547
89548         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
89549         that we can return (time_t) -1 successfully.
89550         * lib/posixtm.c: Likewise.
89551         [HAVE_STDBOOL_H]: Include <stdbool.h>.
89552         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
89553         (t): Remove static var.
89554         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
89555         of static var.  All uses changed.
89556         (year): Do not reject years before 1900; they can occur with
89557         64-bit time_t.
89558         (posix_time_parse): Do not check for out-of-range components;
89559         that is now the caller's responsibility, since our checks were
89560         only approximations.
89561         (posixtime): Use mktime to check for out-of-range components,
89562         since it knows them exactly.
89563         If mktime returns (time_t) -1, check whether an error actually occurred
89564         by invoking localtime on -1.
89565         (main) [TEST_POSIXTIME]: Check for input data errors, and report
89566         posixtime failures better.
89567         Improve the test data (in comments only).
89568
89569 2003-06-02  Karl Berry  <karl@gnu.org>
89570
89571         * config/mkinstalldirs (version): new variable.
89572         (--version): new option.
89573         (usage): improve message.
89574
89575 2003-05-30  Karl Berry  <karl@gnu.org>
89576
89577         * lib/mktime.c: update from libc.
89578
89579 2003-05-30  Bruno Haible  <bruno@clisp.org>
89580
89581         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
89582         * config/config.rpath: Upgrade to gettext-0.12.1.
89583
89584 2003-05-30  Bruno Haible  <bruno@clisp.org>
89585
89586         * m4/gettext.m4: Upgrade to gettext-0.12.1.
89587         * m4/nls.m4: New file, from gettext-0.12.1.
89588         * m4/po.m4: New file, from gettext-0.12.1.
89589         * m4/progtest.m4: Upgrade to gettext-0.12.1.
89590
89591 2003-05-30  Bruno Haible  <bruno@clisp.org>
89592
89593         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
89594         * lib/localcharset.h: Likewise.
89595         * lib/localcharset.c: Likewise.
89596
89597 2003-05-29  Karl Berry  <karl@gnu.org>
89598
89599         * config/config.rpath: update from gettext.
89600
89601 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89602
89603         Assume the headers required for C89 freestanding compilers.
89604         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
89605         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
89606         * m4/human.m4 (gl_HUMAN): Likewise.
89607         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
89608         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
89609         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89610         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
89611         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89612         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
89613
89614 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89615
89616         Assume the headers required for C89 freestanding compilers.
89617         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
89618         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
89619         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
89620         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
89621         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
89622         define, since <limits.h> is guaranteed to do that.
89623         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
89624         * lib/exclude.c: Include <stdbool.h> unconditionally.
89625         * lib/tempname.c: Include <stddef.h> unconditionally.
89626         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
89627         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
89628         <stddef.h> does that.
89629         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
89630         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
89631         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
89632         needed.
89633         * lib/xstrtol.c: Likewise.
89634         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
89635         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
89636
89637         * lib/addext.c (addext): Use assignment rather than cast, to avoid
89638         warnings on some platforms.
89639
89640         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89641         arbitrarily.
89642
89643 2003-05-26  Jim Meyering  <jim@meyering.net>
89644
89645         Merge in a change from coreutils:
89646         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
89647         that is guaranteed to be `no'.  Use `no_such_member' to indicate
89648         that condition, rather than `-1' which is slightly misleading.
89649         Change the name of the cache variable to have the gl_ prefix.
89650         Prompted by a patch from Richard Dawe for DJGPP.
89651
89652 2003-05-24  Karl Berry  <karl@gnu.org>
89653
89654         * config/config.guess: update from prep.
89655
89656 2003-05-22  Karl Berry  <karl@gnu.org>
89657
89658         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
89659
89660 2003-05-20  Karl Berry  <karl@gnu.org>
89661
89662         * config/config.guess: update from prep.
89663
89664 2003-05-18  Karl Berry  <karl@gnu.org>
89665
89666         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
89667         might actually be set by the user.
89668
89669         * config/depcomp, install-sh, mdate-sh: update from automake.
89670
89671 2003-05-17  Bruno Haible  <bruno@clisp.org>
89672
89673         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
89674         invalid expansion for AC_EGREP_CPP.
89675         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
89676         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
89677         Suggested by Akim Demaille <akim@epita.fr> in
89678         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
89679
89680 2003-05-12  Jim Meyering  <jim@meyering.net>
89681
89682         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
89683         the space-padded-by-default conversion specifiers, %e, %k, %l.
89684
89685 2003-05-12  Bruno Haible  <bruno@clisp.org>
89686
89687         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
89688         the string is longer than 4 KB.
89689
89690 2003-05-11  Karl Berry  <karl@gnu.org>
89691
89692         * config/config.{guess,sub}: update from prep.
89693
89694 2003-05-09  Bruno Haible  <bruno@clisp.org>
89695
89696         * modules/error: Add m4/strerror_r.m4 to file list.
89697
89698 2003-05-03  Bruno Haible  <bruno@clisp.org>
89699
89700         Upgrade to Unicode-4.0.
89701         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
89702         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
89703         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
89704         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
89705         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
89706         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
89707         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
89708         Change width of U+E0100..U+E01EF from 1 to 0.
89709
89710 2003-04-25  Jim Meyering  <jim@meyering.net>
89711
89712         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
89713         of type size_t, not int.
89714
89715 2003-04-25  Bruno Haible  <bruno@clisp.org>
89716
89717         * lib/copy-file.c: Include <stddef.h>, for size_t.
89718
89719 2003-04-21  Paul Eggert  <eggert@twinsun.com>
89720
89721         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
89722         code which expansion is under static control.  Patch imported from
89723         Akim Demaille's patch to Bison; see
89724         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
89725
89726 2003-04-14  Bruno Haible  <bruno@clisp.org>
89727
89728         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
89729
89730 2003-04-11  Jim Meyering  <jim@meyering.net>
89731
89732         Merge changes from Coreutils.
89733
89734         2003-03-22  Jim Meyering  <jim@meyering.net>
89735
89736         * lib/strftime.c (widen): Cast alloca return value to proper type.
89737
89738         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
89739
89740         From GNU libc.
89741         * lib/strftime.c (my_strftime): Handle very large width
89742         specifications for numeric values correctly.  Improve checks for
89743         overflow.
89744
89745         2003-01-19  Jim Meyering  <jim@meyering.net>
89746
89747         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
89748         definitions.
89749         (nl_get_alt_digit) [! defined my_strftime]: Define.
89750         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
89751         _nl_get_alt_digit and _nl_get_walt_digit.
89752
89753         * lib/strftime.c (my_strftime): Merge in locale-related changes from
89754         libc. These changes have no effect outside of _LIBC.
89755
89756 2003-04-10  Bruno Haible  <bruno@clisp.org>
89757
89758         * modules/findprog: New file.
89759         * MODULES.html.sh (func_all_modules): Add it.
89760
89761 2003-04-10  Bruno Haible  <bruno@clisp.org>
89762
89763         * m4/findprog.m4: New file.
89764         * m4/eaccess.m4: New file.
89765
89766 2003-04-10  Bruno Haible  <bruno@clisp.org>
89767
89768         * lib/findprog.h: New file, from GNU gettext.
89769         * lib/findprog.c: New file, from GNU gettext.
89770
89771 2003-04-05  Jim Meyering  <jim@meyering.net>
89772
89773         Merge changes from Coreutils.
89774
89775         * lib/exclude.h (PARAMS): Remove definition and uses.
89776         * lib/exclude.c: Remove uses of `PARAMS'.
89777
89778         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
89779         Add test-cases for DOS filenames. Declare program_name.
89780         (main): Set up program_name.  Patch by Rich Dawe.
89781
89782         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89783         error from mntctl.
89784         Use mntctl's return value to drive the entry-processing loop, since
89785         we can't rely on the value of the vmt_length member in the last
89786         entry.  On some systems doing so could result in exhausting
89787         virtual memory.  Based in part on a patch from Mike Jetzer.
89788
89789 2003-04-04  Bruno Haible  <bruno@clisp.org>
89790
89791         * modules/linebreak: New file.
89792         * MODULES.html.sh (func_all_modules): Add it.
89793
89794 2003-04-04  Bruno Haible  <bruno@clisp.org>
89795
89796         * m4/linebreak.m4: New file.
89797
89798 2003-04-04  Bruno Haible  <bruno@clisp.org>
89799
89800         * lib/linebreak.h: New file, from GNU gettext.
89801         * lib/linebreak.c: New file, from GNU gettext with slight
89802         modifications.
89803         * lib/lbrkprop.h: New file, from GNU gettext.
89804
89805 2003-04-03  Bruno Haible  <bruno@clisp.org>
89806
89807         * modules/utf8-ucs4: New file.
89808         * modules/utf16-ucs4: New file.
89809         * modules/ucs4-utf8: New file.
89810         * modules/ucs4-utf16: New file.
89811         * MODULES.html.sh (func_all_modules): Add them.
89812
89813 2003-04-03  Bruno Haible  <bruno@clisp.org>
89814
89815         * m4/utf-ucs4.m4: New file.
89816         * m4/ucs4-utf.m4: New file.
89817
89818 2003-04-03  Bruno Haible  <bruno@clisp.org>
89819
89820         * lib/utf8-ucs4.h: New file, from GNU gettext.
89821         * lib/utf16-ucs4.h: New file, from GNU gettext.
89822         * lib/ucs4-utf8.h: New file, from GNU gettext.
89823         * lib/ucs4-utf16.h: New file, from GNU gettext.
89824
89825 2003-04-02  Bruno Haible  <bruno@clisp.org>
89826
89827         * modules/binary-io: New file.
89828         * MODULES.html.sh (func_all_modules): Add it.
89829
89830 2003-04-02  Bruno Haible  <bruno@clisp.org>
89831
89832         * lib/binary-io.h: New file, from GNU gettext.
89833
89834 2003-04-01  Bruno Haible  <bruno@clisp.org>
89835
89836         * modules/pathname: New file.
89837         * MODULES.html.sh (func_all_modules): Add it.
89838
89839 2003-04-01  Bruno Haible  <bruno@clisp.org>
89840
89841         * lib/pathname.h: New file, from GNU gettext.
89842         * lib/concatpath.c: New file, from GNU gettext.
89843
89844 2003-03-30  Bruno Haible  <bruno@clisp.org>
89845
89846         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
89847
89848 2003-03-30  Bruno Haible  <bruno@clisp.org>
89849
89850         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
89851         function chown() doesn't exist.
89852
89853 2003-03-28  Bruno Haible  <bruno@clisp.org>
89854
89855         * modules/copy-file: New file.
89856         * MODULES.html.sh (func_all_modules): Add it.
89857
89858 2003-03-28  Bruno Haible  <bruno@clisp.org>
89859
89860         * m4/copy-file.m4: New file.
89861
89862 2003-03-28  Bruno Haible  <bruno@clisp.org>
89863
89864         * lib/copy-file.h: New file, from GNU gettext.
89865         * lib/copy-file.c: New file, from GNU gettext.
89866
89867 2003-03-18  Jim Meyering  <jim@meyering.net>
89868
89869         * lib/quote.c (quote_n): Fix typo in comment.
89870
89871 2003-03-18  Bruno Haible  <bruno@clisp.org>
89872
89873         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
89874         checking.
89875         * m4/onceonly_2_57.m4: Likewise.
89876
89877 2003-03-17  Bruno Haible  <bruno@clisp.org>
89878
89879         * m4/onceonly.m4: Require autoconf 2.54 or newer.
89880         (m4_quote): Remove macro.
89881         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
89882
89883 2003-03-14  Jim Meyering  <jim@meyering.net>
89884
89885         Merge changes from Coreutils.
89886         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
89887         to be const, in order to avoid warnings.
89888         (obstack_room): Likewise.
89889         (obstack_empty_p): Likewise.
89890
89891 2003-03-14  Bruno Haible  <bruno@clisp.org>
89892
89893         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
89894         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
89895
89896 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89897
89898         Merge changes from Bison.
89899         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
89900         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
89901         when compiling Bison 1.875's `bitset bset = obstack_alloc
89902         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
89903         * lib/hash.c: Include <stdbool.h> unconditionally.
89904
89905 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89906
89907         * m4/onceonly.m4 (m4_quote): New macro.
89908         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
89909         Quote AC_FOREACH variable-expansions properly.
89910
89911 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89912
89913         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
89914
89915 2003-03-09  Paul Eggert  <eggert@twinsun.com>
89916
89917         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
89918         Reported by Bruce Becker; see:
89919         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
89920
89921 2003-03-03  Paul Eggert  <eggert@twinsun.com>
89922             Bruno Haible  <bruno@clisp.org>
89923
89924         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
89925         Reported by John Hughes, see
89926         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
89927
89928 2003-02-20  Bruno Haible  <bruno@clisp.org>
89929
89930         * MODULES.html.sh (func_all_modules): Add poll.
89931
89932 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89933
89934         * modules/poll: New file.
89935
89936 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89937
89938         * lib/poll_.h: New file.
89939         * lib/poll.c: New file.
89940
89941 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89942
89943         * m4/poll.m4: New file.
89944
89945 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89946
89947         * modules/mathl: New file.
89948
89949 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89950
89951         * lib/mathl.h: New file.
89952         * lib/acosl.c: New file.
89953         * lib/asinl.c: New file.
89954         * lib/atanl.c: New file.
89955         * lib/ceill.c: New file.
89956         * lib/cosl.c: New file.
89957         * lib/expl.c: New file.
89958         * lib/floorl.c: New file.
89959         * lib/frexpl.c: New file.
89960         * lib/ldexpl.c: New file.
89961         * lib/logl.c: New file.
89962         * lib/sincosl.c: New file.
89963         * lib/sinl.c: New file.
89964         * lib/sqrtl.c: New file.
89965         * lib/tanl.c: New file.
89966         * lib/trigl.c: New file.
89967         * lib/trigl.h: New file.
89968
89969 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89970
89971         * m4/mathl.m4: New file.
89972
89973 2003-02-18  Bruno Haible  <bruno@clisp.org>
89974
89975         * MODULES.html.sh (func_all_modules): Add mathl.
89976
89977 2003-02-17  Bruno Haible  <bruno@clisp.org>
89978
89979         * modules/mkdtemp: New module.
89980         * MODULES.html.sh (func_all_modules): Add it.
89981
89982 2003-02-17  Bruno Haible  <bruno@clisp.org>
89983
89984         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
89985
89986 2003-02-17  Bruno Haible  <bruno@clisp.org>
89987
89988         * lib/mkdtemp.h: New file, from GNU gettext.
89989         * lib/mkdtemp.c: New file, from GNU gettext.
89990
89991 2003-02-02  Jim Meyering  <jim@meyering.net>
89992
89993         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
89994         e.g. glibc-2.2.93.
89995
89996 2003-01-31  Bruno Haible  <bruno@clisp.org>
89997
89998         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
89999         'rpl_rename'.
90000         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
90001         'rpl_strnlen'.
90002         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
90003         'rpl_strtod'.
90004         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
90005         'rpl_utime'.
90006
90007 2003-01-31  Bruno Haible  <bruno@clisp.org>
90008
90009         * lib/rename.c: #undef rename before defining rpl_rename.
90010         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
90011
90012 2003-01-30  Bruno Haible  <bruno@clisp.org>
90013
90014         * modules/vasnprintf, modules/vasprintf: New modules.
90015         * MODULES.html.sh (func_all_modules): Add them.
90016
90017 2003-01-30  Bruno Haible  <bruno@clisp.org>
90018
90019         * m4/signed.m4: New file, from GNU gettext.
90020         * m4/longdouble.m4: New file, from GNU gettext.
90021         * m4/wchar_t.m4: New file, from GNU gettext.
90022         * m4/wint_t.m4: New file, from GNU gettext.
90023         * m4/vasnprintf.m4: New file.
90024         * m4/vasprintf.m4: New file.
90025
90026 2003-01-30  Bruno Haible  <bruno@clisp.org>
90027
90028         * lib/printf-args.h: New file, from GNU gettext.
90029         * lib/printf-args.c: New file, from GNU gettext.
90030         * lib/printf-parse.h: New file, from GNU gettext.
90031         * lib/printf-parse.c: New file, from GNU gettext.
90032         * lib/vasnprintf.h: New file, from GNU gettext.
90033         * lib/vasnprintf.c: New file, from GNU gettext.
90034         * lib/asnprintf.c: New file, from GNU gettext.
90035         * lib/vasprintf.h: New file, from GNU gettext with modifications.
90036         * lib/vasprintf.c: New file, from GNU gettext.
90037         * lib/asprintf.c: New file, from GNU gettext.
90038
90039 2003-01-29  Bruno Haible  <bruno@clisp.org>
90040
90041         * modules/stpncpy: New module.
90042         * MODULES.html.sh (func_all_modules): Add it.
90043
90044 2003-01-29  Bruno Haible  <bruno@clisp.org>
90045
90046         * m4/stpncpy.m4: New file.
90047
90048 2003-01-29  Bruno Haible  <bruno@clisp.org>
90049
90050         * lib/stpncpy.h: New file, from GNU gettext with modifications.
90051         * lib/stpncpy.c: New file, from GNU gettext with modifications.
90052
90053 2003-01-28  Bruno Haible  <bruno@clisp.org>
90054
90055         * modules/c-ctype: New module.
90056         * MODULES.html.sh (func_all_modules): Add it.
90057
90058 2003-01-28  Bruno Haible  <bruno@clisp.org>
90059
90060         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
90061         Paul Eggert.
90062         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
90063         Paul Eggert.
90064
90065 2003-01-27  Bruno Haible  <bruno@clisp.org>
90066
90067         * modules/xsetenv: New module.
90068         * MODULES.html.sh (func_all_modules): Add it.
90069
90070 2003-01-27  Bruno Haible  <bruno@clisp.org>
90071
90072         * lib/xsetenv.h: New file, from GNU gettext.
90073         * lib/xsetenv.c: New file, from GNU gettext.
90074
90075 2003-01-23  Jim Meyering  <jim@meyering.net>
90076
90077         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
90078         from working on systems without dirfd (at least Irix and OSF1/Tru64).
90079
90080 2003-01-23  Bruno Haible  <bruno@clisp.org>
90081
90082         * modules/minmax: New module.
90083         * MODULES.html.sh (func_all_modules): Add it.
90084
90085 2003-01-23  Bruno Haible  <bruno@clisp.org>
90086
90087         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
90088         Eggert.
90089
90090 2003-01-22  Bruno Haible  <bruno@clisp.org>
90091
90092         * modules/exit: New module.
90093         * MODULES.html.sh (func_all_modules): Add it.
90094
90095 2003-01-22  Bruno Haible  <bruno@clisp.org>
90096
90097         * lib/exit.h: New file, from GNU gettext.
90098
90099 2003-01-19  Bruno Haible  <bruno@clisp.org>
90100
90101         * gnulib-tool: Recognize option --extract-maintainer.
90102         (func_get_maintainer): New function.
90103         * modules/*: Add Maintainer entry.
90104
90105 2003-01-16  Jim Meyering  <jim@meyering.net>
90106
90107         * m4/regex.m4: The `regex' struct is both input and output.
90108         Initialize it before each use.  Patch by Tim Waugh.
90109
90110 2003-01-16  Bruno Haible  <bruno@clisp.org>
90111
90112         * MODULES.html.sh: Add a table of contents. Add the module name as
90113         leftmost column. Add hyperlinks.
90114
90115 2003-01-15  Bruno Haible  <bruno@clisp.org>
90116
90117         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
90118
90119 2003-01-15  Bruno Haible  <bruno@clisp.org>
90120
90121         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
90122         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
90123         suffix.
90124
90125 2003-01-15  Bruno Haible  <bruno@clisp.org>
90126
90127         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
90128
90129 2003-01-15  Bruno Haible  <bruno@clisp.org>
90130
90131         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
90132         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
90133
90134 2003-01-14  Jim Meyering  <jim@meyering.net>
90135
90136         * lib/same.c (same_name): Tweak a comment.
90137
90138 2003-01-14  Bruno Haible  <bruno@clisp.org>
90139
90140         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
90141         when a string comparison is sufficient.
90142
90143 2003-01-14  Bruno Haible  <bruno@clisp.org>
90144
90145         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
90146         'unsigned int'.
90147
90148 2003-01-14  Bruno Haible  <bruno@clisp.org>
90149
90150         * lib/hash-pjw.c: Add comment about low quality of this function.
90151
90152 2003-01-13  Bruno Haible  <bruno@clisp.org>
90153
90154         * modules/stpcpy: Distribute lib/stpcpy.h.
90155         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
90156
90157 2003-01-13  Bruno Haible  <bruno@clisp.org>
90158
90159         * modules/*: Add a description.
90160         * modules/strpbrk: Fix Makefile.am snippet.
90161         * modules/strtoimax: Fix dependencies.
90162         * modules/strtoumax: Likewise.
90163
90164 2003-01-13  Bruno Haible  <bruno@clisp.org>
90165
90166         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
90167         * modules/alloca (Makefile.am): All object files depend on alloca.h.
90168         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
90169
90170 2003-01-13  Bruno Haible  <bruno@clisp.org>
90171
90172         * gnulib-tool (func_create_testdir): Store config/* files in the main
90173         directory.
90174         * config.rpath: Move to ...
90175         * config/config.rpath: ... here.
90176         * modules/gettext: Contains config/config.rpath, not config.rpath.
90177         * modules/iconv: Likewise.
90178
90179 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90180
90181         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90182         to avoid collisions with libcurses and libreadline.
90183
90184         * m4/getstr.m4: Remove.
90185         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
90186
90187 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90188
90189         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90190         to avoid collisions with libcurses and libreadline.
90191
90192         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
90193         * lib/getstr.h, getstr.c: Remove.
90194         * lib/getline.c: Include "getline.h", to check interface.
90195         Move body of old getstr.c here: this defines MIN_CHUNK and
90196         declares getdelim2, which is renamed from getstr.
90197         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
90198
90199         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
90200         All uses changed.
90201         * lib/linebuffer.h: Likewise.
90202         (readline): Remove backward-compatibility macro.
90203
90204 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90205
90206         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90207         to avoid collisions with libcurses and libreadline.
90208         * getstr: Remove.
90209         * MODULES.html.sh: Remove getstr.
90210         * modules/getline: Depend on unlocked-io, not getstr.
90211
90212 2003-01-12  Jim Meyering  <jim@meyering.net>
90213
90214         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
90215
90216 2003-01-10  Bruno Haible  <bruno@clisp.org>
90217
90218         * modules/alloca: Change Makefile.am requirements. Simplify Include
90219         requirements. Add lib/alloca_.h to file list.
90220
90221 2003-01-10  Bruno Haible  <bruno@clisp.org>
90222
90223         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
90224
90225 2003-01-10  Bruno Haible  <bruno@clisp.org>
90226
90227         * lib/alloca_.h: New file.
90228         * lib/getdate.y: Unconditionally include alloca.h.
90229         * lib/makepath.c: Likewise.
90230         * lib/setenv.c: Likewise.
90231         * lib/userspec.c: Likewise.
90232
90233 2003-01-09  Karl Berry  <karl@gnu.org>
90234
90235         * MODULES.html.sh: include `dirname $0` in PATH, to find
90236         gnulib-tool.
90237
90238 2003-01-09  Bruno Haible  <bruno@clisp.org>
90239
90240         * modules/stdbool: Change configure.ac, Makefile.am requirements.
90241         Simplify Include requirements. Add lib/stdbool.h.in to file list.
90242
90243 2003-01-09  Bruno Haible  <bruno@clisp.org>
90244
90245         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
90246
90247 2003-01-09  Bruno Haible  <bruno@clisp.org>
90248
90249         * lib/stdbool.h.in: New file.
90250
90251 2003-01-09  Bruno Haible  <bruno@clisp.org>
90252
90253         * gnulib-tool (func_all_modules): Ignore files ending in ~.
90254         * MODULES.html.sh: Likewise.
90255
90256 2003-01-08  Jim Meyering  <jim@meyering.net>
90257
90258         * lib/full-write.c: Undefine and define-away `const' after inclusion
90259         of errno.h, not before.  Suggestion from Bruno Haible.
90260
90261 2003-01-08  Bruno Haible  <bruno@clisp.org>
90262
90263         * modules/full-read: Depend on full-write.
90264
90265 2003-01-08  Bruno Haible  <bruno@clisp.org>
90266
90267         * lib/safe-read.c: Include specification header first, to ensure its
90268         selfcontainedness.
90269         * lib/full-write.c: Likewise.
90270
90271 2003-01-07  Jim Meyering  <jim@meyering.net>
90272
90273         * lib/full-write.c: Rework so that it may serve to define full_read,
90274         too.
90275         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
90276
90277 2003-01-07  Bruno Haible  <bruno@clisp.org>
90278
90279         * lib/strtoimax.c: Include <stdint.h> as an alternative to
90280         <inttypes.h>.
90281         * lib/xstrtol.h: Likewise.
90282         * lib/xstrtoimax.c: Likewise.
90283         * lib/xstrtoumax.c: Likewise.
90284         * lib/human.h: Likewise.
90285
90286         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
90287         on systems that have <inttypes.h> but not <stdint.h>.
90288
90289 2003-01-07  Bruno Haible  <bruno@clisp.org>
90290
90291         * MODULES.html.sh: Add copyright notice.
90292         (missed_files): Omit CVS directory entries.
90293         (func_module): Make it work with sed-3.02.
90294         * MODULES.txt: Remove file.
90295
90296 2003-01-06  Jim Meyering  <jim@meyering.net>
90297
90298         * lib/version-etc.c: Update year in translatable copyright string.
90299
90300 2003-01-03  Karl Berry  <karl@gnu.org>
90301
90302         * config/config.{guess,sub}: update from prep.
90303
90304 2003-01-02  Karl Berry  <karl@gnu.org>
90305
90306         * doc/COPYING.DOC: belatedly updated to 1.2.
90307
90308 2003-01-01  Karl Berry  <karl@gnu.org>
90309
90310         * gnulib-tool (func_verify_module): report module name $module in
90311         error message, not $1.
90312         * gnulib-tool (create-testdir): don't complain if destdir couldn't
90313         be created, only if it doesn't exist.
90314         * gnulib-tool (last_checkin_date): don't expand the $Date here.
90315
90316 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90317
90318         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
90319
90320 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90321
90322         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
90323         memcmp if strcoll doesn't work.
90324
90325 2002-12-31  Bruno Haible  <bruno@clisp.org>
90326
90327         * lib/utime.c (utime_null): No need to call ftruncate if the file was
90328         nonempty.
90329
90330 2002-12-31  Bruno Haible  <bruno@clisp.org>
90331
90332         * lib/memcoll.c (STRCOLL): New macro.
90333         (memcoll): Use it.
90334
90335 2002-12-31  Bruno Haible  <bruno@clisp.org>
90336
90337         * lib/localcharset.h: New file.
90338         * lib/localcharset.c: Include it.
90339         * lib/unicodeio.c: Likewise.
90340
90341 2002-12-31  Bruno Haible  <bruno@clisp.org>
90342
90343         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
90344         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
90345
90346 2002-12-31  Bruno Haible  <bruno@clisp.org>
90347
90348         * lib/getline.h: Include <stddef.h>, for size_t.
90349
90350         * lib/unicodeio.h: Include <stddef.h>, for size_t.
90351         * lib/unicodeio.c: Don't include <stddef.h>.
90352
90353 2002-12-31  Bruno Haible  <bruno@clisp.org>
90354
90355         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
90356         HAVE_TM_ZONE.
90357
90358 2002-12-24  Karl Berry  <karl@gnu.org>
90359
90360         * config/config.guess: update from prep.
90361
90362 2002-12-24  Bruno Haible  <bruno@clisp.org>
90363
90364         General infrasructure.
90365         * m4/README: Rewritten.
90366         * m4/onceonly.m4: New file.
90367         * m4/onceonly_2_57.m4: New file.
90368
90369         Module atexit.
90370         * m4/atexit.m4: New file.
90371
90372         Module strtod.
90373         * m4/strtod.m4: New file.
90374
90375         Module strtol.
90376         * m4/strtol.m4: New file.
90377
90378         Module strtoul.
90379         * m4/strtoul.m4: New file.
90380
90381         Module memchr.
90382         * m4/memchr.m4: New file.
90383
90384         Module memcmp.
90385         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
90386         (jm_FUNC_MEMCMP): Invoke it.
90387
90388         Module memcpy.
90389         * m4/memcpy.m4: New file.
90390
90391         Module memmove.
90392         * m4/memmove.m4: New file.
90393
90394         Module memset.
90395         * m4/memset.m4: New file.
90396
90397         Module strcspn.
90398         * m4/strcspn.m4: New file.
90399
90400         Module strpbrk.
90401         * m4/strpbrk.m4: New file.
90402
90403         Module strstr.
90404         * m4/strstr.m4: New file.
90405
90406         Module strerror.
90407         * m4/strerror.m4: New file.
90408
90409         Module mktime.
90410         * m4/mktime.m4: Renamed from jm-mktime.m4.
90411         (gl_PREREQ_MKTIME): New macro.
90412         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
90413
90414         Module malloc.
90415         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
90416         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
90417         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
90418
90419         Module realloc.
90420         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
90421         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
90422         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
90423
90424         Module strftime.
90425         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
90426         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
90427         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
90428         gl_TM_GMTOFF.
90429         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
90430
90431         Module xalloc.
90432         * m4/xalloc.m4: New file.
90433
90434         Module alloca.
90435         * m4/alloca.m4: New file.
90436
90437         Module putenv.
90438         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
90439         (jm_FUNC_PUTENV): Invoke it.
90440
90441         Module setenv.
90442         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
90443         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
90444         when invoked twice.
90445         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
90446         gt_FUNC_SETENV.
90447
90448         Module memrchr.
90449         * m4/memrchr.m4: New file.
90450
90451         Module stpcpy.
90452         * m4/stpcpy.m4: New file.
90453
90454         Module strcase.
90455         * m4/strcase.m4: New file.
90456
90457         Module strdup.
90458         * m4/strdup.m4: New file.
90459
90460         Module strnlen.
90461         * m4/strnlen.m4: New file.
90462
90463         Module strndup.
90464         * m4/strndup.m4: New file.
90465
90466         Module xstrtod.
90467         * m4/xstrtod.m4: New file.
90468
90469         Module xstrtol.
90470         * m4/xstrtol.m4: New file.
90471
90472         Module getdate.
90473         * m4/getdate.m4: New file.
90474
90475         Module unlocked-io.
90476         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
90477         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
90478         * m4/jm-glibc-io.m4n: Remove file.
90479
90480         Module long-options.
90481         * m4/long-options.m4: New file.
90482
90483         Module md5.
90484         * m4/md5.m4: New file.
90485
90486         Module sha.
90487         * m4/sha.m4: New file.
90488
90489         Module getstr.
90490         * m4/getstr.m4: New file.
90491
90492         Module getline.
90493         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
90494         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
90495         <sys/types.h>, for size_t. Use the function name gnu_getline, not
90496         simply getline. Infoke gl_PREREQ_GETLINE.
90497
90498         Module obstack.
90499         * m4/obstack.m4: New file.
90500
90501         Module hash.
90502         * m4/hash.m4: New file.
90503
90504         Module readtokens.
90505         * m4/readtokens.m4: New file.
90506
90507         Module strverscmp.
90508         * m4/strverscmp.m4: New file.
90509
90510         Module stdbool.
90511         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
90512         OSF/1.
90513
90514         Module strtoll.
90515         * m4/strtoll.m4: New file.
90516
90517         Module strtoull.
90518         * m4/strtoull.m4: New file.
90519
90520         Module strtoimax.
90521         * m4/strtoimax.m4: New file.
90522
90523         Module strtoumax.
90524         * m4/strtoumax.m4: New file.
90525
90526         Module xstrtoimax.
90527         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
90528         jm_AC_PREREQ_XSTRTOIMAX.
90529         Moved the strtol prerequisites to strtol.m4.
90530         Moved the strtoll prerequisites to strtoll.m4.
90531         Moved the strtoimax prerequisites to strtoimax.m4.
90532
90533         Module xstrtoumax.
90534         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
90535         jm_AC_PREREQ_XSTRTOUMAX.
90536         Moved the strtoul prerequisites to strtoul.m4.
90537         Moved the strtoull prerequisites to strtoull.m4.
90538         Moved the strtoumax prerequisites to strtoumax.m4.
90539
90540         Module chown.
90541         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
90542         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
90543
90544         Module dup2.
90545         * m4/dup2.m4: New file.
90546
90547         Module ftruncate.
90548         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
90549         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
90550
90551         Module getgroups.
90552         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
90553         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
90554
90555         Module gettimeofday.
90556         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
90557         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
90558         gl_PREREQ_GETTIMEOFDAY.
90559
90560         Module mkdir.
90561         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
90562         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
90563
90564         Module mkstemp.
90565         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
90566         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
90567         jm_AC_TYPE_UINTMAX_T.
90568         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
90569
90570         Module stat.
90571         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
90572         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
90573
90574         Module lstat.
90575         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
90576         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
90577
90578         Module timespec.
90579         * m4/timespec.m4 (gl_TIMESPEC): New macro.
90580         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
90581         * m4/st_mtim.m4: Indentation.
90582
90583         Module nanosleep.
90584         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
90585         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
90586         gl_PREREQ_NANOSLEEP.
90587
90588         Module regex.
90589         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
90590         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
90591         (gl_REGEX): New macro.
90592
90593         Module rename.
90594         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
90595         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
90596
90597         Module rmdir.
90598         * m4/rmdir.m4: New file.
90599
90600         Module utime.
90601         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
90602         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
90603         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
90604
90605         Module dirname.
90606         * m4/dirname.m4: New file.
90607
90608         Module getopt.
90609         * m4/getopt.m4: New file.
90610
90611         Module unistd-safer.
90612         * m4/unistd-safer.m4: New file.
90613
90614         Module fnmatch.
90615         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
90616         declaration.
90617         (gl_PREREQ_FNMATCH_EXTRA): New macro.
90618         (gl_FUNC_FNMATCH_POSIX): New macro.
90619         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
90620         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
90621         simply fnmatch.
90622
90623         Module exclude.
90624         * m4/exclude.m4: New file.
90625
90626         Module human.
90627         * m4/human.m4: New file.
90628
90629         Module acl.
90630         * m4/acl.m4: Nop.
90631
90632         Module backupfile.
90633         * m4/backupfile.m4: New file.
90634         * m4/d-ino.m4: Indentation.
90635
90636         Module fsusage.
90637         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
90638         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
90639         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
90640
90641         Module dirfd.
90642         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
90643         requirements.
90644
90645         Module euidaccess.
90646         * m4/euidaccess.m4: New file.
90647
90648         Module file-type.
90649         * m4/file-type.m4: New file.
90650
90651         Module fileblocks.
90652         * m4/fileblocks.m4: New file.
90653
90654         Module filemode.
90655         * m4/filemode.m4: New file.
90656
90657         Module isdir.
90658         * m4/isdir.m4: New file.
90659
90660         Module lchown.
90661         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
90662         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
90663
90664         Module makepath.
90665         * m4/makepath.m4: New file.
90666
90667         Module modechange.
90668         * m4/modechange.m4: New file.
90669
90670         Module mountlist.
90671         * m4/mountlist.m4: New file.
90672         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
90673         Indentation.
90674
90675         Module path-concat.
90676         * m4/path-concat.m4: New file.
90677
90678         Module pathmax.
90679         * m4/pathmax.m4: New file.
90680
90681         Module same.
90682         * m4/same.m4: New file.
90683
90684         Module save-cwd.
90685         * m4/save-cwd.m4: New file.
90686
90687         Module savedir.
90688         * m4/savedir.m4: New file.
90689
90690         Module xgetcwd.
90691         * m4/xgetcwd.m4: New file.
90692         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
90693
90694         Module xreadlink.
90695         * m4/xreadlink.m4: New file.
90696
90697         Module safe-read.
90698         * m4/safe-read.m4: New file.
90699
90700         Module safe-write.
90701         * m4/safe-write.m4: New file.
90702
90703         Module closeout.
90704         * m4/closeout.m4: New file.
90705
90706         Module stdio-safer.
90707         * m4/stdio-safer.m4: New file.
90708
90709         Module getpass.
90710         * m4/getpass.m4: New file.
90711
90712         Module getugroups.
90713         * m4/getugroups.m4: New file.
90714
90715         Module group-member.
90716         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
90717         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
90718
90719         Module idcache.
90720         * m4/idcache.m4: New file.
90721
90722         Module userspec.
90723         * m4/userspec.m4: New file.
90724
90725         Module gettime.
90726         * m4/clock_time.m4: New file.
90727         * m4/gettime.m4: New file.
90728
90729         Module settime.
90730         * m4/settime.m4: New file.
90731
90732         Module posixtm.
90733         * m4/posixtm.m4: New file.
90734
90735         Module gethostname.
90736         * m4/gethostname.m4: New file.
90737
90738         Module canon-host.
90739         * m4/canon-host.m4: New file.
90740
90741         Module gettext.
90742         * m4/codeset.m4: New file, from gettext-0.11.5.
90743         * m4/gettext.m4: New file, from gettext-0.11.5.
90744         * m4/glibc21.m4: New file, from gettext-0.11.5.
90745         * m4/iconv.m4: New file, from gettext-0.11.5.
90746         * m4/intdiv0.m4: New file, from gettext-0.11.5.
90747         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
90748         * m4/inttypes.m4: New file, from gettext-0.11.5.
90749         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
90750         * m4/isc-posix.m4: New file, from gettext-0.11.5.
90751         * m4/lcmessage.m4: New file, from gettext-0.11.5.
90752         * m4/lib-ld.m4: New file, from gettext-0.11.5.
90753         * m4/lib-link.m4: New file, from gettext-0.11.5.
90754         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
90755         * m4/progtest.m4: New file, from gettext-0.11.5.
90756         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
90757         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
90758         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
90759
90760         Module localcharset.
90761         * m4/localcharset.m4: New file.
90762
90763         Module hard-locale.
90764         * m4/hard-locale.m4: New file.
90765
90766         Module mbswidth.
90767         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
90768         onceonly macros.
90769         * m4/mbrtowc.m4: Add comment.
90770
90771         Module memcasecmp.
90772         * m4/memcasecmp.m4: New file.
90773
90774         Module memcoll.
90775         * m4/memcoll.m4: New file.
90776
90777         Module unicodeio.
90778         * m4/unicodeio.m4: New file.
90779
90780         Module rpmatch.
90781         * m4/rpmatch.m4: New file.
90782
90783         Module yesno.
90784         * m4/yesno.m4: New file.
90785
90786         Module exitfail.
90787         * m4/exitfail.m4: New file.
90788
90789         Module c-stack.
90790         * m4/c-stack.m4 (gl_C_STACK): New macro.
90791         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
90792
90793         Module error.
90794         * m4/error.m4 (gl_ERROR): New macro.
90795         (jm_PREREQ_ERROR): Use onceonly macros.
90796
90797         Module fatal.
90798         * m4/fatal.m4: New file.
90799
90800         Module getloadavg.
90801         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
90802         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
90803
90804         Module getpagesize.
90805         * m4/getpagesize.m4: New file.
90806
90807         Module getusershell.
90808         * m4/getusershell.m4: New file.
90809
90810         Module physmem.
90811         * m4/physmem.m4: New file.
90812
90813         Module posixver.
90814         * m4/posixver.m4: New file.
90815
90816         Module quotearg.
90817         * m4/quotearg.m4: New file.
90818
90819         Module quote.
90820         * m4/quote.m4: New file.
90821
90822         Module readutmp.
90823         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
90824
90825         Module sig2str.
90826         * m4/sig2str.m4: New file.
90827
90828         Other.
90829         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
90830         ulonglong.m4.
90831         * m4/intmax_t.m4: New file.
90832         * m4/d-type.m4: Indentation.
90833         * m4/jm-macros.m4: Update.
90834         * m4/prereq.m4 (jm_PREREQ): Update.
90835         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
90836         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
90837         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
90838         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
90839         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
90840         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
90841         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
90842         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
90843         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
90844         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
90845         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
90846         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
90847         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
90848         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
90849         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
90850         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
90851         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
90852         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
90853         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
90854
90855 2002-12-24  Bruno Haible  <bruno@clisp.org>
90856
90857         * MODULES.txt: Update according to m4/ changes.
90858
90859         Module gettext.
90860         * config.rpath: New file, from gettext-0.11.5.
90861
90862         * modules/*: New module descriptions.
90863         * gnulib-tool: New file.
90864         * MODULES.html.sh: New file.
90865
90866 2002-12-21  Karl Berry  <karl@gnu.org>
90867
90868         * doc/fdl.texi: update to version 1.2.
90869
90870 2002-12-19  Karl Berry  <karl@gnu.org>
90871
90872         * config/config.guess: update from prep.
90873
90874 2002-12-18  Bruno Haible  <bruno@clisp.org>
90875
90876         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
90877         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
90878
90879 2002-12-17  Bruno Haible  <bruno@clisp.org>
90880
90881         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
90882         stdlib.h, string.h.
90883
90884 2002-12-17  Bruno Haible  <bruno@clisp.org>
90885
90886         * lib/canon-host.c (strdup): Remove unused declaration.
90887
90888         * lib/fsusage.c: Include full_read.h.
90889         (get_fs_usage): Use full_read instead of safe_read.
90890
90891         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
90892
90893 2002-12-12  Karl Berry  <karl@gnu.org>
90894
90895         * config/config.guess: update from prep.
90896
90897 2002-12-11  Bruno Haible  <bruno@clisp.org>
90898
90899         * m4/setenv.m4: New file, from gettext-0.11.5.
90900
90901 2002-12-11  Bruno Haible  <bruno@clisp.org>
90902
90903         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
90904         not unsetenv().
90905         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
90906         modifications:
90907
90908         2002-12-11  Bruno Haible  <bruno@clisp.org>
90909
90910                 * setenv.c (alloca): Fall back to malloc.
90911                 (freea): New macro.
90912                 (setenv): Use freea() to free memory allocated with alloca().
90913
90914         2002-11-13  Bruno Haible  <bruno@clisp.org>
90915
90916                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
90917                 function declarations.
90918                 * unsetenv.c (unsetenv): Likewise.
90919
90920         2002-03-04  Bruno Haible  <bruno@clisp.org>
90921
90922                 Portability to AIX 4.3.3.
90923                 * unsetenv.c: New file, extracted from setenv.c.
90924                 * setenv.c: Move the unsetenv() function to unsetenv.c.
90925
90926         2001-12-20  Bruno Haible  <bruno@clisp.org>
90927
90928                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
90929                 use malloc instead. For SunOS 4.
90930
90931         2001-12-11  Bruno Haible  <bruno@clisp.org>
90932
90933                 * setenv.c: Declare alloca.
90934                 (compar_fn_t): New typedef.
90935                 (KNOWN_VALUE, STORE_VALUE): Use it.
90936
90937         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
90938         setenv.h.
90939
90940 2002-12-10  Paul Eggert  <eggert@twinsun.com>
90941
90942         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
90943         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
90944         Choose values that are less likely to collide with system fnmatch
90945         options.
90946         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
90947         defined (e.g., a pure POSIX system).
90948         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
90949         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
90950
90951 2002-12-06  Paul Eggert  <eggert@twinsun.com>
90952
90953         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
90954         a pain in practice to deal with generated m4 files.  This change
90955         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
90956
90957         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
90958         and jm-glibc-io.m4, as they are no longer a special case.
90959         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
90960         kludge and the auto-generation stuff.  Check only whether the
90961         functions are declared, not whether they exist, since older hosts
90962         that don't declare the functions can't use the optimization anyway.
90963
90964 2002-12-06  Jim Meyering  <jim@meyering.net>
90965
90966         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
90967
90968         Merge in changes from libc's misc/error.c, in preparation
90969         for the merge of gnulib's changes back into libc.
90970
90971         * lib/error.c (_): Define only if not already defined.
90972         Move definition to follow all #include directives.
90973         Include unlocked-io.h only if !_LIBC.
90974         [_LIBC]: Include <libio/libioP.h>.
90975         [USE_IN_LIBIO]: Include <libio/iolibio.h>
90976         (fflush): Tweak definition to use INTUSE.
90977         (putc): Define.
90978
90979 2002-12-05  Paul Eggert  <eggert@twinsun.com>
90980
90981         * lib/alloca.c [defined emacs]: Include "lisp.h".
90982         (xalloc_die) [defined emacs]: New macro.
90983         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
90984         [! defined emacs]: Include <xalloc.h>.
90985         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
90986         (pointer): Typedef to POINTER_TYPE *.
90987         (malloc): Remove decl; we now always use xmalloc.
90988         (alloca): Use old-style definition, since Emacs needs this.
90989         Check for arithmetic overflow when computing combined size.
90990
90991 2002-12-04  Paul Eggert  <eggert@twinsun.com>
90992
90993         Do not generate unlocked-io.h automatically, since it's easier to
90994         maintain it by hand.
90995
90996         * lib/unlocked-io.h: New file, from GNU diffutils,
90997         but with proper copyright notice and attribution.
90998         * lib/gen-uio: Remove.
90999         * lib/Makefile.am: Add copyright notice.
91000         (libfetish_a_SOURCES): Add unlocked-io.h.
91001         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
91002         (DISTCLEANFILES, io_functions): Remove macros.
91003         (EXTRA_DIST): Remove gen_uio.
91004         (unlocked-io.h): Remove rule.
91005
91006 2002-12-04  Jim Meyering  <jim@meyering.net>
91007
91008         Reflect the fact that stat.c and lstat.c are no longer generated.
91009         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
91010         (DISTCLEANFILES): Likewise.
91011         (EXTRA_DIST): Likewise.
91012         (all_local): Don't depend on stat.c or lstat.c.
91013         (stat.c, lstat.c): Remove rules.
91014         (EXTRA_DIST): Remove xstat.in.
91015
91016         * lib/xstat.in: Remove file.  Contents moved into stat.c.
91017         * lib/stat.c: New file.  Contents mostly from xstat.in.
91018         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
91019         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
91020
91021         * lib/safe-read.c: Rework so that it may serve to define safe_write,
91022         too.
91023         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
91024
91025 2002-12-03  Jim Meyering  <jim@meyering.net>
91026
91027         * lib/safe-read.c, safe-write.c: Change variable names and comments,
91028         but not semantics, to minimize the differences between these two files.
91029         (safe_read): Change comment to mention SAFE_READ_ERROR.
91030
91031         * lib/safe-read.c (IS_EINTR): Define.
91032         (safe_read): Use IS_EINTR in place of in-function cpp directives.
91033
91034 2002-12-02  Jim Meyering  <jim@meyering.net>
91035
91036         * lib/safe-read.c (EINTR): Define.
91037         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
91038         (INT_MAX): Provide fallback.
91039         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
91040
91041         * lib/safe-read.h (SAFE_READ_ERROR): Define.
91042
91043 2002-12-02  Bruno Haible  <bruno@clisp.org>
91044
91045         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
91046         Define, taken from safe-read.c.
91047         (INT_MAX): Provide fallback.
91048         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
91049         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
91050
91051         * lib/safe-read.c (EINTR): Remove definition.
91052         (safe_read): Don't use EINTR if it is absent.
91053
91054 2002-12-01  Jim Meyering  <jim@meyering.net>
91055
91056         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
91057         zero.
91058         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
91059
91060 2002-11-27  Paul Eggert  <eggert@twinsun.com>
91061
91062         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
91063         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
91064         with `if (! (value < limit)) abort ();', for readability.
91065
91066 2002-11-26  Karl Berry  <karl@gnu.org>
91067
91068         * lib/strdup.c: copy from libc again, with jim's ok.
91069         * lib/.cppi-disable: re-add strdup.c
91070
91071 2002-11-25  Karl Berry  <karl@gnu.org>
91072
91073         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
91074         instead of "strtol.c".
91075
91076 2002-11-25  Karl Berry  <karl@gnu.org>
91077
91078         * config/install-sh: update from automake for variable quoting, $0 in
91079         error msgs, etc.
91080
91081         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
91082         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
91083         entry.
91084
91085 2002-11-25  Jim Meyering  <jim@meyering.net>
91086
91087         * lib/mktime.c: Sync from libc, now that it has the latest fix.
91088
91089 2002-11-24  Karl Berry  <karl@gnu.org>
91090
91091         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
91092         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
91093
91094 2002-11-24  Jim Meyering  <jim@meyering.net>
91095
91096         Update from coreutils:
91097
91098         * lib/mktime.c: Merge in changes from libc.
91099
91100         Avoid a link-time failure on some Linux systems.
91101         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
91102         (otherwise).
91103         (__mon_yday): Declare with the STATIC attribute.
91104         (__mktime_internal): Likewise.
91105         Based on a report from Greg Schafer.
91106
91107 2002-11-23  Jim Meyering  <jim@meyering.net>
91108
91109         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
91110         Use `unsigned', not `int', as type of index.
91111
91112         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
91113
91114         * lib/fsusage.c: Remove unneeded parentheses around operands of
91115         `defined'.
91116
91117 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91118
91119         * lib/quotearg.h: Allow multiple inclusion by surrounding with
91120         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
91121         so that we can be included first.
91122         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
91123         * lib/quotearg.c: Include quotearg.h immediately after config.h.
91124         No need to include stddef.h or sys/types.h any more.
91125         Surround local include files with "", not "<>".
91126         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
91127         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
91128         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
91129         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
91130         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
91131         (ISPRINT): Remove; no longer needed now that we assume C89.
91132
91133         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
91134         Preserve errno.
91135
91136         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
91137         quotearg_char): Use SIZE_MAX rather than
91138         (size_t) -1 when we are talking about "infinity".
91139
91140         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
91141
91142 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91143
91144         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
91145         hint that one should use `if (! x) abort ();' rather than `assert
91146         (x);', and anyway it's one less thing to worry about configuring.
91147         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
91148         hash_rehash, hash_insert): Use abort rather than assert.
91149
91150 2002-11-22  Bruno Haible  <bruno@clisp.org>
91151
91152         * lib/safe-read.h: Assume C89. Add comments.
91153         (safe_read): Change return type to size_t.
91154         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
91155         byte counts > SSIZE_MAX correctly.
91156         * lib/safe-write.h: New file.
91157         * lib/safe-write.c: New file.
91158         * lib/full-read.h: New file.
91159         * lib/full-read.c: New file.
91160         * lib/full-write.h: Assume C89. Add comments.
91161         * lib/full-write.c: Include safe-write.h.
91162         (full_write): Rewritten to use safe_write.
91163         Suggested by Jim Meyering and Paul Eggert.
91164
91165 2002-11-21  Jim Meyering  <jim@meyering.net>
91166
91167         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
91168
91169         Merge in changes from the coreutils.
91170
91171         2002-09-25  Paul Eggert  <eggert@twinsun.com>
91172         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
91173         <stdint.h>.
91174         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
91175         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
91176         int.  Work more efficiently if X is the same width as uintmax_t.
91177         Do not compare X to -1, to avoid bogus compiler warning.
91178         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
91179         Don't assume that f_frsize and f_bsize are the same type.
91180
91181         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
91182         warning on FreeBSD.
91183
91184         * lib/makepath.c (make_path): Restore umask *before* creating the final
91185         component.
91186         (make_path): Minor reformatting.
91187
91188         * lib/xmalloc.c: Adjust to work with new autoconf macros,
91189         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
91190         HAVE_MALLOC/HAVE_REALLOC.
91191
91192         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
91193         dummy ones.  At least on GNU/Linux systems, `auto' means something
91194         else.
91195         From Michael Stone.
91196
91197 2002-11-21  Bruno Haible  <bruno@clisp.org>
91198
91199         Remove case insensitive option matching.
91200         * lib/argmatch.h (argcasematch): Remove declaration.
91201         (ARGCASEMATCH): Remove macro.
91202         (__xargmatch_internal): Remove case_sensitive argument.
91203         (XARGMATCH): Update.
91204         (XARGCASEMATCH): Remove macro.
91205         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
91206         case_sensitive argument.
91207         (argcasematch): Remove function.
91208         (__xargmatch_internal): Remove case_sensitive argument.
91209         (main): Use XARGMATCH instead of XARGCASEMATCH.
91210
91211         * lib/xmalloc.c: Change compile-time error message. Add comment about
91212         required autoconf version.
91213
91214 2002-11-20  Paul Eggert  <eggert@twinsun.com>
91215
91216         Merge argmatch cleanups from Bison.  Assume C89.
91217
91218         * lib/argmatch.c: Include config.h here, not in argmatch.h.
91219         Include stdlib.h, for EXIT_FAILURE.
91220         Always include <string.h>, since we assume C89.
91221         (EXIT_FAILURE): Remove pre-C89 bug workaround.
91222         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
91223         Include <stddef.h> instead, since it's all we need for size_t.
91224         (PARAMS): Remove.  All uses removed.
91225         (ARRAY_CARDINALITY): Do not bother to #undef.
91226         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
91227         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91228         Remove unnecessary parentheses.
91229         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91230         Insert necessary parentheses.
91231         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
91232         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
91233
91234 2002-11-19  Bruno Haible  <bruno@clisp.org>
91235
91236         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
91237         * lib/mbswidth.h: Include <stddef.h>, for size_t.
91238
91239         * lib/mbswidth.h (PARAMS): Remove macro.
91240         (mbswidth, mbsnwidth): Use ANSI C function declarations.
91241         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
91242
91243         * lib/gcd.h (PARAMS): Remove macro.
91244         (gcd): Use ANSI C function declarations.
91245         * lib/gcd.c (gcd): Likewise.
91246
91247 2002-11-15  Bruno Haible  <bruno@clisp.org>
91248
91249         * lib/strcspn.c: Include <stddef.h>.
91250         (strcspn): Use ANSI C function declaration. Change return type to
91251         size_t. Use NULL.
91252         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
91253         (strpbrk): Use NULL.
91254         * lib/strpbrk.h (PARAMS): Remove macro.
91255         (strpbrk): Use ANSI C function declaration.
91256         * lib/strstr.c: Don't include <sys/types.h>.
91257         * lib/strstr.h (PARAMS): Remove macro.
91258         (strstr): Use ANSI C function declarations.
91259
91260 2002-11-14  Karl Berry  <karl@gnu.org>
91261
91262         * config/mkinstalldirs: `do' on separate line, instead of
91263         `for var; do'.
91264
91265 2002-11-06  Bruno Haible  <bruno@clisp.org>
91266
91267         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
91268         * lib/gcd.c (gcd): Likewise.
91269
91270 2002-11-05  Bruno Haible  <bruno@clisp.org>
91271
91272         * lib/gcd.h: New file, from gettext-0.11.5.
91273         * lib/gcd.c: New file, from gettext-0.11.5.
91274
91275 2002-11-05  Bruno Haible  <bruno@clisp.org>
91276
91277         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91278         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91279         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91280         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91281
91282         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
91283         <libintl.h>.
91284         * lib/makepath.c: Include gettext.h instead of <locale.h> and
91285         <libintl.h>.
91286
91287         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
91288         * lib/human.c: Include gettext.h instead of <libintl.h>.
91289         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
91290         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
91291         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
91292         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
91293         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
91294         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
91295         (textdomain): Remove definition.
91296         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
91297
91298         * lib/long-options.c: Remove include of <libintl.h> and definition of
91299         _.
91300         * lib/same.c: Remove include of <libintl.h> and definition of _.
91301
91302 2002-11-04  Owen Taylor  <otaylor@redhat.com>
91303
91304         * lib/config.charset: A few additions for Solaris.
91305
91306 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91307
91308         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
91309         * lib/localcharset.c (locale_charset): Declare as extern "C".
91310
91311 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91312
91313         * lib/config.charset: msdos in uk_UA uses CP1125.
91314
91315 2002-11-04  Bruno Haible  <bruno@clisp.org>
91316
91317         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
91318         * lib/strcase.h: New file, from GNU gettext-0.11.5.
91319         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
91320         * lib/strstr.h: New file, from GNU gettext-0.11.5.
91321         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
91322
91323 2002-11-04  Bruno Haible  <bruno@clisp.org>
91324
91325         * lib/localcharset.c (locale_charset): Don't return an empty string.
91326
91327 2002-11-04  Bruno Haible  <bruno@clisp.org>
91328
91329         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
91330         aliases.
91331
91332 2002-11-04  Bruno Haible  <bruno@clisp.org>
91333
91334         * lib/config.charset: Update for newest glibc. Add canonical names
91335         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
91336
91337 2002-11-04  Bruno Haible  <bruno@clisp.org>
91338
91339         * lib/config.charset: Add support for NetBSD.
91340
91341 2002-11-04  Bruno Haible  <bruno@clisp.org>
91342
91343         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
91344
91345 2002-11-01  Bruno Haible  <bruno@clisp.org>
91346
91347         * configure.in: Add AC_CONFIG_AUX_DIR call.
91348         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
91349         test/Makefile.
91350         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
91351
91352 2002-09-28  Karl Berry  <karl@gnu.org>
91353
91354         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
91355         installed automake until the next release, since changes have been
91356         made.
91357
91358 2002-09-25  Karl Berry  <karl@gnu.org>
91359
91360         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
91361         * lib/getopt*: copy from libc/posix.
91362         * lib/gettext.h: copy from gettext.
91363         * lib/.cppi-disable: add strdup.c, gettext.h.
91364
91365 2002-09-25  Karl Berry  <karl@gnu.org>
91366
91367         * config/srclist.txt: enable gettext.h check.
91368         * config/config.{guess,sub}: update from prep.
91369         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
91370                 from automake 1.6.3.
91371         See srclist*.
91372
91373 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
91374
91375         * regex.c (PATFETCH): Remove the translating fetch.
91376         (PATFETCH_RAW): Rename to PATFETCH.
91377         (set_image_of_range): New fun.
91378         (SET_RANGE_TABLE_WORK_AREA): Use it.
91379         (regex_compile): Don't translate the pattern chars so eagerly.
91380         Only do it when inserting an `exactn' bytecode or when handling
91381         a char-range.
91382         (mutually_exclusive_p): Avoid empty statement.
91383
91384 2002-07-06  Jim Meyering  <meyering@lucent.com>
91385
91386         * m4/README: Don't mention Makefile.am.in.
91387         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
91388
91389 2002-07-01  Jim Meyering  <meyering@lucent.com>
91390
91391         * lib/c-stack.c: Include sys/time.h.
91392         From Volker Borchert.
91393
91394 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91395
91396         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
91397
91398 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91399
91400         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
91401         New macro.  Use it uniformly instead of
91402         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
91403         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
91404         reported by Vin Shelton.
91405
91406 2002-06-22  Paul Eggert  <eggert@twinsun.com>
91407
91408         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
91409         Do not assume SA_SIGINFO behavior.
91410         Bug reported by Jim Meyering on NetBSD 1.5.2.
91411
91412 2002-06-22  Jim Meyering  <meyering@lucent.com>
91413
91414         * m4/c-stack.m4: New file, from diffutils-2.8.2.
91415         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
91416
91417         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
91418         now that configure.ac uses AC_GNU_SOURCE.
91419         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
91420         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
91421
91422         Update to latest tools.  Suggestions from Paul Eggert.
91423         * m4/stdbool.m4: New file, from diffutils-2.8.2.
91424         * m4/gnu-source.m4: Update from diffutils-2.8.2.
91425         * m4/fnmatch.m4: Likewise.
91426         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
91427         to AC_HEADER_STDBOOL
91428
91429 2002-06-22  Jim Meyering  <meyering@lucent.com>
91430
91431         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
91432         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
91433
91434 2002-06-22  Jim Meyering  <meyering@lucent.com>
91435
91436         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
91437
91438         * lib/exitfail.c, exitfail.h: Likewise.
91439         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
91440
91441         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
91442         of fnmatch.h.
91443         (EXTRA_DIST): Add fnmatch_loop.c.
91444         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
91445
91446         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
91447         * lib/fnmatch.c: Update from diffutils-2.8.2.
91448         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
91449         * lib/fnmatch.h: Remove file.
91450
91451 2002-06-21  Jim Meyering  <meyering@lucent.com>
91452
91453         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
91454         * m4/mbrtowc.m4: Likewise.
91455
91456         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
91457         * m4/mbswidth.m4: Reflect name change:
91458         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
91459         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
91460
91461         * m4/lib-link.m4: Update from gettext-0.11.2.
91462         * m4/gettext.m4: Likewise.
91463
91464         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
91465         From Alfred M. Szmidt.
91466
91467 2002-06-18  Paul Eggert  <eggert@twinsun.com>
91468
91469         * lib/file-type.h: Report an error if neither S_ISREG nor
91470         S_IFREG is defined, instead of using a test specific to glibc
91471         2.2.  This should be safe, since POSIX requires S_ISREG and
91472         Unix Version 7 had S_IFREG.  We don't need to check for
91473         <sys/types.h> since we don't use any symbols that it defines.
91474
91475 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
91476
91477         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
91478         $@-t, so that each temporary file name is unique and valid in the first
91479         8 characters, for operation under DOS.
91480
91481 2002-06-15  Paul Eggert  <eggert@twinsun.com>
91482
91483         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
91484
91485 2002-06-15  Jim Meyering  <meyering@lucent.com>
91486
91487         Work even with DJGPP 2.03, which lacks support for symlinks.
91488         From Richard Dawe.
91489         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
91490         is defined.
91491         * lib/lchown.c (S_ISLNK): Likewise.
91492
91493 2002-06-15  Jim Meyering  <meyering@lucent.com>
91494
91495         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
91496         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
91497         have been included before this file.
91498
91499 2002-06-14  Jim Meyering  <meyering@lucent.com>
91500
91501         * lib/file-type.h: Use the version from diffutils-2.8.2.
91502         * lib/file-type.c: Likewise.
91503
91504 2002-06-07  Jim Meyering  <meyering@lucent.com>
91505
91506         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
91507         They're needed at least for NetBSD 1.5.2.
91508         ($statxfs_includes): Include those same headers.
91509         ($statxfs_includes): Include sys/vfs.h if available.
91510         ($statxfs_includes): Likewise for sys/statvfs.h.
91511         Check for the following members in both structs statfs and statvfs:
91512         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
91513
91514 2002-06-01  Jim Meyering  <meyering@lucent.com>
91515
91516         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
91517         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
91518
91519 2002-05-28  Jim Meyering  <meyering@lucent.com>
91520
91521         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
91522         Reported by Volker Borchert.
91523
91524 2002-05-27  Jim Meyering  <meyering@lucent.com>
91525
91526         Fix a problem seen only on nonconforming systems whereby ls.c's
91527         use of localtime, and then of gettimeofday would cause trouble:
91528         the localtime call used to initialize rpl_gettimeofday's save
91529         mechanism would clobber ls's current local time information so
91530         that in any long listing the first file would always be listed
91531         with date 1970-01-01.  Analysis by Volker Borchert.
91532
91533         * lib/gettimeofday.c (localtime): Undefine.
91534         (rpl_localtime): New function.
91535
91536 2002-05-27  Jim Meyering  <meyering@lucent.com>
91537
91538         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
91539         localtime.
91540
91541         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
91542         use the replacement function; it wouldn't resolve at link time.
91543         Reported by Volker Borchert.
91544
91545 2002-05-22  Jim Meyering  <meyering@lucent.com>
91546
91547         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
91548         file-type.h.
91549         * lib/file-type.h: New file.
91550         * lib/file-type.c (file_type): New file/function.  Extracted from
91551         diffutils.
91552
91553 2002-04-30  Jim Meyering  <meyering@lucent.com>
91554
91555         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
91556
91557 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91558
91559         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
91560
91561 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91562
91563         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
91564         Do not check for alloca.h (no longer used) or stdbool.h (was never
91565         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
91566
91567 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91568
91569         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
91570
91571 2002-04-29  Jim Meyering  <meyering@lucent.com>
91572
91573         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
91574         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
91575         Use AC_FUNC_STRNLEN here instead.
91576
91577         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
91578         With autoconf-2.53a, it's part of AC_PROG_CC.
91579
91580 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91581
91582         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
91583         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
91584
91585 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91586
91587         * lib/sig2str.h, lib/sig2str.c: New files.
91588         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
91589
91590 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91591
91592         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
91593         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
91594         of 127, since 64 is the largest conceivable number for ancient
91595         nonstandard hosts.
91596         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
91597
91598 2002-04-28  Jim Meyering  <meyering@lucent.com>
91599
91600         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
91601
91602 2002-04-24  Jim Meyering  <meyering@lucent.com>
91603
91604         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
91605         (jm_PREREQ): Use it.
91606
91607         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
91608         mach/mach.h fcntl.h.
91609         Check for this function: setlocale.
91610
91611 2002-04-24  Jim Meyering  <meyering@lucent.com>
91612
91613         * lib/gettext.h: New file, from Gettext.
91614         * lib/Makefile.am (INCLUDES): Remove -I../intl.
91615         (libfetish_a_SOURCES): Add gettext.h.
91616
91617 2002-04-16  Jim Meyering  <meyering@lucent.com>
91618
91619         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
91620         ut_pid, ut_id, ut_exit.
91621
91622 2002-04-16  Jim Meyering  <meyering@lucent.com>
91623
91624         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
91625         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
91626         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
91627
91628 2002-04-12  Jim Meyering  <meyering@lucent.com>
91629
91630         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
91631         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
91632         existence of the getmntinfo function.  Needed for Darwin 5.3.
91633
91634         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
91635         This is necessary at least on Darwin 5.3.
91636
91637         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
91638         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
91639         strnlen.o in the library, and that makes some versions of ranlib
91640         object.
91641
91642 2002-04-12  Jim Meyering  <meyering@lucent.com>
91643
91644         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
91645
91646 2002-04-09  Jim Meyering  <meyering@lucent.com>
91647
91648         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
91649         to be more precise.  Rather than saying we're checking whether the
91650         function `works', say what we're testing.
91651         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
91652         Reported by Bruno Haible.
91653
91654 2002-03-10  Jim Meyering  <meyering@lucent.com>
91655
91656         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
91657         Suggestion from Santiago Vila.
91658
91659 2002-03-08  Jim Meyering  <meyering@lucent.com>
91660
91661         * lib/rename.c: Mention that this wrapper is needed also on
91662         mips-dec-ultrix4.4 systems.
91663
91664 2002-03-02  Jim Meyering  <meyering@lucent.com>
91665
91666         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
91667         not HAVE_CLOCK_SETTIME.
91668
91669 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91670
91671         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
91672         Check for clock_settime.
91673
91674 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91675
91676         * lib/nanosleep.h: Rename to....
91677         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
91678
91679         * lib/gettime.c: New file.
91680         * lib/settime.c: New file.
91681         * lib/stime.c: Remove.
91682
91683         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
91684         timespec.h.  Remove nanosleep.h.
91685
91686 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91687
91688         * m4/acl.m4: New file.
91689         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
91690         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
91691
91692 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91693
91694         * lib/acl.c, lib/acl.h: New files.
91695         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
91696
91697 2002-02-24  Jim Meyering  <meyering@lucent.com>
91698
91699         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
91700         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
91701         cause trouble.  Reported by Nelson Beebe.
91702
91703 2002-02-23  Paul Eggert  <eggert@twinsun.com>
91704
91705         * lib/path-concat.c (xpath_concat): Reorder code to pacify
91706         compilers that don't know that xalloc_die never returns.
91707
91708 2002-02-20  Jim Meyering  <meyering@lucent.com>
91709
91710         * lib/getdate.c: Regenerate using bison-1.33.
91711
91712 2002-02-17  Jim Meyering  <meyering@lucent.com>
91713
91714         * config/config.guess (main): Don't use `head -1'; it's no longer
91715         portable. Use `sed 1q' instead.
91716
91717 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
91718
91719         * m4/codeset.m4: Upgrade to gettext-0.11.
91720         * m4/gettext.m4: Upgrade to gettext-0.11.
91721         * m4/glibc21.m4: Upgrade to gettext-0.11.
91722         * m4/iconv.m4: Upgrade to gettext-0.11.
91723         * m4/isc-posix.m4: Upgrade to gettext-0.11.
91724         * m4/lcmessage.m4: Upgrade to gettext-0.11.
91725         * m4/lib-ld.m4: New file, from gettext-0.11.
91726         * m4/lib-link.m4: New file, from gettext-0.11.
91727         * m4/lib-prefix.m4: New file, from gettext-0.11.
91728         * m4/progtest.m4: Upgrade to gettext-0.11.
91729
91730 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91731
91732         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
91733         (jm_PREREQ): Use it.
91734
91735 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91736
91737         * lib/posixver.c, lib/posixver.h: New files.
91738         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91739
91740 2002-02-02  Paul Eggert  <eggert@twinsun.com>
91741             Bruno Haible  <bruno@clisp.org>
91742
91743         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
91744         (fwrite_success_callback): New declaration.
91745         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
91746         print_unicode_char. Call failure callback instead of error.
91747         (fwrite_success_callback): New function.
91748         (exit_failure_callback): New function.
91749         (fallback_failure_callback): New function.
91750         (print_unicode_char): Call unicode_to_mb.
91751
91752 2002-01-26  Jim Meyering  <meyering@lucent.com>
91753
91754         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
91755         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
91756
91757 2002-01-26  Jim Meyering  <meyering@lucent.com>
91758
91759         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
91760
91761 2002-01-22  Paul Eggert  <eggert@twinsun.com>
91762
91763         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
91764
91765 2002-01-22  Jim Meyering  <meyering@lucent.com>
91766
91767         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
91768         Otherwise, some versions of automake would omit the rule that makes
91769         Makefile from Makefile.in.
91770
91771 2002-01-21  Paul Eggert  <eggert@twinsun.com>
91772
91773         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
91774         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91775         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
91776         (memcoll): Set errno to zero if there is no error.
91777
91778         * lib/quotearg.c (quotearg_buffer_restyled):
91779         Fix bug with quoting buffers containing NUL when backslashing escapes.
91780         This bug was exposed by the other changes in this patch.
91781         (quotearg_n_options): New arg ARGSIZE.
91782         All callers changed.
91783         (quoting_options_from_style): New function.
91784         (quotearg_n_style): Use it.
91785         (quotearg_n_style_mem): New function.
91786
91787         * lib/quotearg.h (quotearg_n_style_mem): New function.
91788
91789 2002-01-19  Jim Meyering  <meyering@lucent.com>
91790
91791         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
91792         Remove useless quotes: DF_PROG="df".
91793         * m4/strnlen.m4: New file.
91794
91795 2002-01-16  Paul Eggert  <eggert@twinsun.com>
91796
91797         * lib/backupfile.c (ISDIGIT): Comment fix.
91798         * lib/getdate.y (ISDIGIT): Likewise.
91799         * lib/posixtm.c (ISDIGIT, year): Likewise.
91800         * lib/strverscmp.c (ISDIGIT): Likewise.
91801         * lib/userspec.c (ISDIGIT): Likewise.
91802
91803 2002-01-16  Jim Meyering  <meyering@lucent.com>
91804
91805         * lib/getdate.y: Add three semicolons, each just before a closing
91806         brace. Bison (as of version 1.31) no longer papers over that mistake.
91807
91808 2002-01-05  Jim Meyering  <meyering@lucent.com>
91809
91810         * lib/version-etc.c (version_etc_copyright): Update copyright year.
91811
91812 2001-12-19  Paul Eggert  <eggert@twinsun.com>
91813
91814         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
91815         not silently exit merely because the output buffer happens to
91816         have nothing pending.
91817
91818 2001-12-18  Paul Eggert  <eggert@twinsun.com>
91819
91820         See the big note in ../ChangeLog.
91821         * lib/human.c (suffixes): Prefer K to k for 1024.
91822         (generate_suffix_backwards): New function.
91823         (human_readable_inexact): Use it.
91824         * lib/xstrtol.c (__xstrtol): If there is no number but there
91825         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
91826         Accept 'K' as well as 'k'.
91827
91828 2001-12-15  Jim Meyering  <meyering@lucent.com>
91829
91830         * lib/regex.h (__restrict_arr): Update from libc.
91831
91832         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
91833         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
91834         (STREQ): Define.
91835
91836 2001-12-14  Jim Meyering  <meyering@lucent.com>
91837
91838         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
91839         Suggestion from Bruno Haible.
91840
91841 2001-12-10  Jim Meyering  <meyering@lucent.com>
91842
91843         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
91844         xrealloc, Instead, include "xalloc.h".
91845         (initbuffer): Don't cast xmalloc return value to char*.
91846         (readline): Reword comment.
91847         Don't cast xrealloc return value to char*
91848         Return NULL, not 0.
91849
91850 2001-12-09  Jim Meyering  <meyering@lucent.com>
91851
91852         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
91853         about `signed and unsigned type in conditional expression'.
91854         * lib/posixtm.c (posix_time_parse): Likewise.
91855
91856         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
91857
91858         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
91859         to avoid a pedantic warning.
91860
91861         * lib/getstr.c: Don't include assert.h.
91862         (getstr): Remove warning-evoking assertions.
91863         Return -1 if offset parameter is out of bounds.
91864         Change the type of a local from int to size_t.
91865
91866         * lib/strftime.c (my_strftime_localtime_r): Include this function
91867         definition in the `#if ! HAVE_TM_GMTOFF' block.
91868
91869         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
91870         Include xalloc.h instead.
91871
91872 2001-12-02  Jim Meyering  <meyering@lucent.com>
91873
91874         * lib/tempname.c: Don't declare getenv, thus reverting the change of
91875         2001-11-18.  It's no longer necessary, now that stdlib.h is always
91876         included.
91877
91878         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
91879         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
91880
91881 2001-11-30  Akim Demaille  <akim@epita.fr>
91882
91883         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
91884         before being defined.
91885
91886 2001-11-27  Paul Eggert  <eggert@twinsun.com>
91887
91888         * lib/quotearg.h (quotearg_n, quotearg_n_style):
91889         First arg is int, not unsigned.
91890         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
91891         (SIZE_MAX, UINT_MAX): New macros.
91892         (quotearg_n_options): Abort if N is negative.
91893         Avoid overflow check on hosts where size_t is 64 bits and int
91894         is 32 bits, as overflow is impossible there.
91895         Fix off-by-one typo that caused unnecessary reallocation.
91896
91897 2001-11-27  Jim Meyering  <meyering@lucent.com>
91898
91899         * lib/tempname.c: Merge with version from libc.
91900         * lib/regex.c: Likewise.
91901
91902         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
91903         systems for which STDC_HEADERS is 0, it was not included, resulting in
91904         a warning about an integer-to-pointer conversion problem with getenv.
91905         Reported by Volker Borchert.
91906
91907 2001-11-26  Jim Meyering  <meyering@lucent.com>
91908
91909         * lib/gtod.h: Remove file.
91910         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
91911         * lib/gettimeofday.c: Don't include gtod.h.
91912         (GTOD_init): Remove function.
91913         (rpl_gettimeofday): Do its job here instead, rather than aborting.
91914         Suggestion from Volker Borchert.
91915
91916 2001-11-23  Jim Meyering  <meyering@lucent.com>
91917
91918         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
91919         it.
91920         * lib/hash.c (struct hash_table): Define it here instead.
91921
91922 2001-11-22  Jim Meyering  <meyering@lucent.com>
91923
91924         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
91925
91926 2001-11-20  Jim Meyering  <meyering@lucent.com>
91927
91928         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
91929         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
91930
91931 2001-11-19  Jim Meyering  <meyering@lucent.com>
91932
91933         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
91934         directory.  Use "conftestXXXXXX" as the template.
91935         Suggestion from Paul Eggert.
91936
91937         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
91938         immediately, so the test doesn't mistakenly hit the max-open-files
91939         limit.
91940
91941 2001-11-18  Paul Eggert  <eggert@twinsun.com>
91942
91943         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
91944         (TEMPORARIES): New macro.
91945         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
91946         removes an artificial limitation (e.g. HP-UX 10.20, where
91947         TMP_MAX is 17576).
91948
91949 2001-11-18  Jim Meyering  <meyering@lucent.com>
91950
91951         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
91952
91953 2001-11-18  Jim Meyering  <meyering@lucent.com>
91954
91955         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
91956         on SunOS 4.
91957
91958         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
91959         files will be created before anything else.
91960
91961 2001-11-17  Paul Eggert  <eggert@twinsun.com>
91962
91963         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
91964         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
91965
91966 2001-11-17  Jim Meyering  <meyering@lucent.com>
91967
91968         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
91969         Prompted by a report from Bob Proulx.
91970
91971         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
91972         Instead, require UTILS_FUNC_MKSTEMP.
91973
91974 2001-11-17  Jim Meyering  <meyering@lucent.com>
91975
91976         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
91977         Now, that's done as part of AC_FUNC_STRTOD.
91978
91979 2001-11-17  Jim Meyering  <meyering@lucent.com>
91980
91981         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
91982         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
91983         rather than group writable.  Patch by Juan F. Codagnone.
91984
91985         * lib/readtokens.c: Remove explicit declarations of xmalloc and
91986         xrealloc, Instead, include "xalloc.h".
91987
91988         * lib/mountlist.c: Include unlocked-io.h after all system headers.
91989         Remove explicit declarations of xmalloc, xrealloc,
91990         and xstrdup.  Instead, include "xalloc.h".
91991
91992         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
91993         unlocked-io.h.
91994         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
91995         Likewise.
91996         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
91997
91998         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
91999         Reported by Padraig Brady.
92000
92001         * lib/mkstemp.c: #undef mkstemp.
92002         Include config.h.
92003         (rpl_mkstemp): Rename from mkstemp.
92004         Protoize.
92005
92006 2001-11-16  Jim Meyering  <meyering@lucent.com>
92007
92008         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
92009         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
92010         determine the amount of total physical memory, use pstat_getstatic.
92011         HPUX-11 doesn't define _SC_PHYS_PAGES.
92012         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
92013         If sysconf couldn't be used to determine the amount of available
92014         physical memory, use both pstat_getstatic and pstat_getdynamic.
92015         Based on a patch from Bob Proulx.
92016
92017 2001-11-10  Jim Meyering  <meyering@lucent.com>
92018
92019         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
92020         (jm_PREREQ): Use it.
92021
92022 2001-11-09  Jim Meyering  <meyering@lucent.com>
92023
92024         * m4/jm-macros.m4: Require autoconf-2.52f.
92025         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
92026         Use these AC_-prefixed names, not the AM_-prefixed ones.
92027
92028         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
92029
92030 2001-11-05  Jim Meyering  <meyering@lucent.com>
92031
92032         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
92033
92034 2001-11-04  Jim Meyering  <meyering@lucent.com>
92035
92036         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
92037         $DEFS.
92038
92039 2001-11-03  Jim Meyering  <meyering@lucent.com>
92040
92041         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
92042         of AC_DEFUN.
92043
92044         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
92045         know the name of the variable in the macro definition.
92046
92047 2001-11-03  Jim Meyering  <meyering@lucent.com>
92048
92049         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
92050         in argmatch_to_argument call.
92051
92052         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
92053         argument.
92054
92055         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
92056         e.g., a fault due to an attempt to free a NULL pointer.
92057
92058 2001-11-01  Jim Meyering  <meyering@lucent.com>
92059
92060         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
92061         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
92062
92063 2001-11-01  Jim Meyering  <meyering@lucent.com>
92064
92065         * lib/dirfd.c, lib/dirfd.h: New files.
92066         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
92067
92068         * lib/hash.c (hash_print) [TESTING]: Clean up.
92069
92070 2001-10-22  Paul Eggert  <eggert@twinsun.com>
92071
92072         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
92073         to avoid a warning if -Wall.
92074
92075 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
92076
92077         * README: New file
92078         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
92079         (per RMS's instructions, this is now the canonical source)
92080         * lgpl/, gpl/: New directories.
92081
92082 2001-10-21  Paul Eggert  <eggert@twinsun.com>
92083
92084         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
92085
92086 2001-10-21  Jim Meyering  <meyering@lucent.com>
92087
92088         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
92089         this code would end up calling gettext even in packages built
92090         with --disable-nls.
92091         * lib/getopt.c (_): Likewise.
92092         * lib/regex.c (_): Likewise.
92093
92094 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92095
92096         * m4/error.m4 (jm_PREREQ_ERROR):
92097         Do not invoke AC_CHECK_FUNCS with strerror_r, as
92098         AC_FUNC_STRERROR_R does that.
92099         Check for strerror declaration.
92100
92101         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
92102         are supposed to have them these days.
92103         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
92104         Merge changes from latest Autoconf CVS.
92105         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
92106         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
92107         POSIX decided to standardize on the int flavor of strerror_r.
92108
92109 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92110
92111         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
92112         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
92113         Use strerror_r that is only a macro, even if it is not a function.
92114         (strerror): Check for HAVE_DECL_STRERROR before declaring.
92115         (private_strerror): Use prototypes, not old-style function definition.
92116         (print_errno_message): New function.
92117         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
92118         char*-flavored one.
92119         (error_tail, error, error_at_line): Use it.
92120
92121 2001-10-11  Jim Meyering  <meyering@lucent.com>
92122
92123         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
92124         and quote_n (1, ... to avoid clobbering a buffer.
92125
92126 2001-10-05  Jim Meyering  <meyering@lucent.com>
92127
92128         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
92129         hash-pjw.h.
92130         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
92131         * lib/hash-pjw.h: New file.
92132
92133 2001-09-30  Jim Meyering  <meyering@lucent.com>
92134
92135         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
92136         `struct fsstat' has the `f_fstypename' member.
92137         Use that to define FS_TYPE, which is now used to make
92138         the getfsstat link test tighter.
92139
92140 2001-09-30  Jim Meyering  <meyering@lucent.com>
92141
92142         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
92143         Include <sys/ucred.h>, for Apple Darwin.
92144         Include sys/mount.h and sys/fs_types.h only if available.
92145         (FS_TYPE): Define.
92146         (read_filesystem_list): Use FS_TYPE.
92147
92148 2001-09-29  Paul Eggert  <eggert@twinsun.com>
92149
92150         * lib/exclude.c (excluded_filename): 0 -> false, since it's
92151         a boolean context.
92152
92153 2001-09-29  Jim Meyering  <meyering@lucent.com>
92154
92155         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92156         [one-argument getmntent function]): Include stdio.h before mntent.h.
92157         SunOS 4.1.x needs it for the declaration of `FILE'.
92158         Patch by Volker Borchert.
92159
92160         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92161         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
92162         sys/fs_types.h, and make the link-test for getfsstat guard #include
92163         directives with appropriate #if HAVE_*_H tests so that we can
92164         detect getfsstat on Apple Darwin1.3.7 systems.
92165         Reported by Nelson Beebe.
92166         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
92167
92168 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92169
92170         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92171         #defines strtoimax.  Also treat the other strto* functions
92172         like strtoimax.
92173
92174         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92175         Check for strtoul and strtoumax,
92176         as those declarations are made even in the signed case.
92177         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
92178         Likewise, for strtol and strtoimax.
92179
92180 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92181
92182         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92183         #defines strtoimax.  Also treat the other strto* functions
92184         like strtoimax.
92185
92186         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
92187         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
92188         (strtoimax, strtoumax): Do not declare if already defined as a macro.
92189
92190 2001-09-26  Jim Meyering  <meyering@lucent.com>
92191
92192         Most macros in unlocked-io.h had the wrong number of arguments.
92193         * lib/gen-uio: New script.
92194         (USE_UNLOCKED_IO): Define to 1 if not already defined.
92195         * lib/unlocked-io.hin: Remove file.
92196         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
92197         rather than trying to embed it here.
92198         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
92199         Reported by Padraig Brady.
92200
92201 2001-09-25  Volker Borchert  <bt@teknon.de>
92202
92203         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
92204         `result'.
92205
92206 2001-09-24  Jim Meyering  <meyering@lucent.com>
92207
92208         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
92209
92210 2001-09-23  Jim Meyering  <meyering@lucent.com>
92211
92212         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
92213         instead of the mere test for existence of mntent.h.  The latter
92214         would get a false-positive on AIX 3.4 systems.
92215         In the outer getmntent if-block, don't die if neither of the getmntent
92216         tests succeeds.  Instead, just fall through and continue with the
92217         remaining tests.
92218
92219 2001-09-23  Jim Meyering  <meyering@lucent.com>
92220
92221         * lib/mountlist.c: Remove useless parentheses in #if directives.
92222         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
92223         the deprecated MOUNTED symbol is no longer defined in mntent.h.
92224
92225 2001-09-22  Jim Meyering  <meyering@lucent.com>
92226
92227         * m4/gettext.m4: New file.  From gettext.
92228         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
92229         * m4/progtest.m4: Likewise
92230         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
92231         * m4/glibc21.m4: Likewise.
92232
92233         * m4/libintl.m4: Remove.  No longer used.
92234
92235 2001-09-22  Jim Meyering  <meyering@lucent.com>
92236
92237         * lib/localcharset.c: Update from latest gettext.
92238         * lib/config.charset: Likewise.
92239
92240 2001-09-20  Jim Meyering  <meyering@lucent.com>
92241
92242         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
92243         strtoimax.
92244         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
92245         strtoumax.
92246
92247 2001-09-20  Jim Meyering  <meyering@lucent.com>
92248
92249         * lib/xstrtol.c (strtoimax): Guard declaration with
92250         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
92251         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
92252         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
92253         (strtoumax): Likewise, for completeness (it wasn't necessary).
92254
92255 2001-09-17  Paul Eggert  <eggert@twinsun.com>
92256
92257         * lib/strtoimax.c (HAVE_LONG_LONG):
92258         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
92259         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
92260         to work around bug in IBM C compiler.
92261
92262 2001-09-17  Jim Meyering  <meyering@lucent.com>
92263
92264         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
92265         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
92266         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
92267         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
92268         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
92269         whenever the right hand side need not be expanded by the shell.
92270
92271 2001-09-16  Paul Eggert  <eggert@twinsun.com>
92272
92273         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
92274         library.  It's not correct, as some older glibcs are buggy.
92275         fnmatch wasn't fixed until glibc 2.2.
92276
92277         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
92278         special shell magic here.
92279
92280 2001-09-16  Jim Meyering  <meyering@lucent.com>
92281
92282         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
92283         * m4/jm-macros.m4: Require it.
92284
92285 2001-09-16  Jim Meyering  <meyering@lucent.com>
92286
92287         * lib/mkdir.c: New file.
92288
92289 2001-09-15  Jim Meyering  <meyering@lucent.com>
92290
92291         * m4/jm-macros.m4: Check for help2man.
92292
92293 2001-09-11  Jim Meyering  <meyering@lucent.com>
92294
92295         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
92296         The body, by Paul Eggert, was moved here from configure.in.
92297         * m4/jm-macros.m4: Require UTILS_HOST_OS.
92298
92299 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92300
92301         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
92302         (jm_PREREQ): Use it.
92303
92304 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92305
92306         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
92307         Use ssize_t, not int, to store result of readlink.
92308         Check for ssize_t overflow as well as size_t overflow,
92309         as POSIX says the result of readlink is implementation-defined
92310         when ssize_t overflows.
92311         Remove unnecessary cast to char*.
92312         Use free+malloc instead of realloc, as the storage doesn't need
92313         to be preserved and it's clearer and can be more efficient that way.
92314         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
92315         * lib/xreadlink.h (xreadlink): Update prototype.
92316
92317 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92318
92319         * lib/xgetcwd.c: Revert some of the previous change; intead,
92320         fix the HAVE_GETCWD_NULL code to behave more like the
92321         !HAVE_GETCWD_NULL code used to.
92322
92323         Include "xalloc.h".
92324         (xgetcwd): Do not return NULL when memory is exhausted; instead,
92325         invoke xalloc_die.
92326
92327 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92328
92329         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
92330         sys/param.h, as pathmax.h includes them.
92331
92332 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92333
92334         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
92335         (jm_PREREQ_XGETCWD): New macro.
92336
92337         * m4/getcwd.m4: New file.
92338
92339 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92340
92341         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
92342         like the HAVE_GETCWD_NULL code.
92343         Include pathmax.h if not HAVE_GETCWD.
92344         Do not include xalloc.h.
92345         (INITIAL_BUFFER_SIZE): New symbol.
92346         Do not use xmalloc / xrealloc, since the caller is responsible for
92347         handling errors.  Preserve errno around `free' during failure.
92348         Do not overrun buffer when using getwd.
92349
92350 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92351
92352         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
92353         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
92354         getcwd (NULL, 0).
92355
92356 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92357
92358         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
92359         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
92360         spotted by Jim Meyering.
92361
92362 2001-09-03  Jim Meyering  <meyering@lucent.com>
92363
92364         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
92365         failure.
92366
92367 2001-09-02  Jim Meyering  <meyering@lucent.com>
92368
92369         * lib/error.c: Update from GNU libc.
92370
92371 2001-09-01  Jim Meyering  <meyering@lucent.com>
92372
92373         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
92374         Used by df.
92375
92376 2001-09-01  Jim Meyering  <meyering@lucent.com>
92377
92378         * lib/xreadlink.c: New file.
92379         * lib/xreadlink.h: New file.
92380         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
92381         xreadlink.h.
92382
92383         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
92384         doesn't conflict with sparc Solaris 7's definition in
92385         /usr/include/sys/int_types.h.
92386
92387         * lib/exclude.c: Use `""', not `<>' to #include non-system header
92388         files.
92389         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
92390         and strncasecmp as r-values.  Unixware didn't have declarations.
92391
92392 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92393
92394         * lib/xstrtol.h: Add copyright notice.
92395         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
92396         LONGINT_INVALID_SUFFIX_CHAR.
92397
92398 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92399
92400         * lib/xstrtol.c (strtoimax): New decl.
92401
92402 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92403
92404         * lib/xgetcwd.c: Don't include pathmax.h.
92405         Include stdlib.h and unistd.h if available.
92406         Include xalloc.h.
92407         (xmalloc, xstrdup, free): Remove decls.
92408         (xgetcwd): Don't assume sizes fit in unsigned.
92409         Check for overflow when computing sizes.
92410         Simplify reallocation code.
92411
92412 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92413
92414         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
92415         a directory's st_size can have an arbitrary value, so the old
92416         usage could waste an arbitrary amount of memory.  All uses
92417         changed.
92418         * lib/savedir.h: Update prototype.
92419
92420 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92421
92422         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
92423
92424         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
92425         old strtoimax.c.
92426
92427         Also, make the following further changes to make this file's
92428         configuration more similar to that of strtol.c:
92429         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
92430         (strtoumax, uintmax_t, strtoull, strtol): Remove.
92431         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
92432         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
92433         changed to signed values.
92434
92435         And make the following changes as well:
92436         Fix copyright notice, as 1999 was missing.
92437         (verify): New macro.
92438         (strtoimax): Check sizes at compile-time, not run-time.
92439         Prefer strtol to strtoll if both work.
92440         (main): Remove; it was not that useful and was a pain to maintain.
92441
92442         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
92443
92444 2001-08-31  Jim Meyering  <meyering@lucent.com>
92445
92446         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
92447         Use an initial, malloc'd, buffer of length 128 rather than
92448         a statically allocated one of length 1024.
92449
92450 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92451
92452         Simplify code, partly by assuming autoconf 2.52 semantics.
92453
92454         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
92455
92456         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
92457         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
92458         All uses removed.
92459         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
92460         Move AC_REQUIRE to next-to-top level, to avoid confusion.
92461         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
92462         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
92463         jm_AC_HEADER_INTTYPES_H.
92464         * m4/jm-macros.m4 (jm_MACROS): Likewise.
92465
92466         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
92467
92468         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92469         Quote first arg of AC_DEFUN.
92470         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
92471         since they are needed to parse the include file even if we need
92472         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
92473         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
92474         but with opposite signedness.
92475
92476 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92477
92478         Merge 'exclude' changes from tar 1.13.22.
92479         This fixes one or two unlikely storage allocation overflow bugs,
92480         but doesn't change user-visible behavior otherwise.
92481
92482 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92483
92484         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
92485         (jm_PREREQ_EXCLUDE): New macro.
92486
92487 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92488
92489         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
92490         tm to be declared.
92491
92492 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92493
92494         * lib/hash.c: Remove '2001' from copyright notice.
92495
92496 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92497
92498         * lib/full-write.h: New file.
92499         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
92500         * lib/full-write.c: Correct credits, as cccp.c no longer
92501         exists and anyway it was so heavily changed from the old cccp
92502         code as to be unrecognizable.  Include full-write.h.
92503         (full_write): Return size_t, with short writes meaning failure.
92504         All callers changed.  This fixes a bug with large buffers
92505         on 64-bit hosts.
92506         * lib/utime.c: Include full-write.h.
92507
92508 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92509
92510         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
92511         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
92512         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
92513         Include if available.
92514         (<xalloc.h>): Include
92515         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
92516         (verify): New macro.  Use it to verify that EXCLUDE macros do not
92517         collide with FNM macros.
92518         (struct patopts): New struct.
92519         (struct exclude): Use it, as exclude patterns now come with options.
92520         (new_exclude): Support above changes.
92521         (new_exclude, add_exclude_file):
92522         Initial size must now be a power of two to simplify overflow checking.
92523         (free_exclude, fnmatch_no_wildcards): New function.
92524         (excluded_filename): No longer requires options arg, as the options
92525         are determined by add_exclude.  Now returns bool, not int.
92526         (excluded_filename, add_exclude):
92527         Add support for the fancy new exclusion options.
92528         (add_exclude, add_exclude_file): Now takes int options arg.
92529         Check for arithmetic overflow when computing sizes.
92530         (add_exclude_file): xrealloc might modify errno, so don't
92531         realloc until after errno might be used.
92532
92533         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
92534         New macros.
92535         (free_exclude): New decl.
92536         (add_exclude, add_exclude_file): Now takes int options arg.
92537         (excluded_filename): No longer requires options arg, as the options
92538         are determined by add_exclude.  Now returns bool, not int.
92539
92540 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92541
92542         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
92543
92544 2001-08-27  Jim Meyering  <meyering@lucent.com>
92545
92546         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
92547
92548         * lib/version-etc.c (N_): Remove definition.
92549         Revert most of last change.
92550         Instead, simply don't mark the `Copyright...' string for translation.
92551         Based on advice from Paul Eggert.
92552
92553         * lib/strtoxmax.c: Tweak comment.
92554
92555 2001-08-26  Jim Meyering  <meyering@lucent.com>
92556
92557         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
92558
92559         * m4/xstrtoimax.m4: New file.
92560         * m4/xstrtoumax.m4: Add comments explaining why we
92561         AC_REPLACE_FUNCS(strtol).
92562
92563 2001-08-26  Jim Meyering  <meyering@lucent.com>
92564
92565         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
92566         of copyright with `%s' so translators don't get an untranslated
92567         message in 2002.
92568         (COPYRIGHT_YEAR): Define.
92569         (version_etc): Use fprintf rather than fputs.
92570         Suggestion from Ulrich Drepper.
92571
92572         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
92573
92574         * lib/strtoll.c: New file, from GNU libc.
92575         * lib/xstrtoimax.c: New file.
92576
92577         * lib/xstrtol.h: Add xstrtoimax.
92578         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
92579         * lib/strtoimax.c: New file.  Likewise, but first define
92580         STRTOUXMAX_SIGNED.
92581
92582         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
92583         ...
92584         * lib/strtoxmax.c: ... then renamed to this.
92585
92586 2001-08-18  Paul Eggert  <eggert@twinsun.com>
92587
92588         * m4/inttypes.m4: Add AC_PREREQ(2.13).
92589         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
92590         (jm_AC_TYPE_INTMAX_T): New macro.
92591         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
92592
92593         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
92594
92595         * m4/longlong.m4: Renamed from ulonglong.m4.
92596         * m4/inttypes.m4: Renamed from inttypes_h.m4.
92597         * m4/uintmax_t.m4: Removed.
92598
92599 2001-08-13  Paul Eggert  <eggert@twinsun.com>
92600
92601         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
92602         Port to Solaris 8, where 'sed' requires a space after the 'r'
92603         command, and where sh dislikes "$/".  Clean up the spacing a bit.
92604         Redirect output to $tmp just once.
92605
92606 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
92607
92608         * lib/addext.c (<errno.h>): Include.
92609         (errno): Declare if not defined.
92610         (addext): Work correctly when pathconf returns -1 and leaves
92611         errno alone because there is no limit.  Also, work even if
92612         pathconf returns a value greater than SIZE_MAX.
92613
92614 2001-08-12  Jim Meyering  <meyering@lucent.com>
92615
92616         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
92617         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
92618         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
92619         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
92620         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
92621         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
92622         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
92623         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
92624         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
92625         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
92626         utime.m4, utimes.m4, xstrtoumax.m4:
92627         Quote the first argument in each use of AC_DEFUN.
92628
92629 2001-08-12  Jim Meyering  <meyering@lucent.com>
92630
92631         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
92632         Simply `return getcwd (NULL, 0);'.
92633         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
92634         Use 1300 as initial value for length, not PATH_MAX.
92635
92636         * lib/pathmax.h: Clean up cpp syntax.
92637
92638 2001-08-12  Jim Meyering  <meyering@lucent.com>
92639
92640         * lib/gettimeofday.c: New file.
92641         * lib/gtod.h: New file.
92642         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
92643
92644 2001-08-05  Jim Meyering  <meyering@lucent.com>
92645
92646         * m4/jm-macros.m4: Require autoconf-2.52.
92647
92648 2001-08-04  Jim Meyering  <meyering@lucent.com>
92649
92650         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
92651         stmt, to get in sync with glibc.
92652
92653 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92654
92655         The following changes are from gettext 0.10.39 as maintained by
92656         Bruno Haible.
92657
92658         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
92659         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
92660         with inverted sense.  All uses changed.
92661
92662         * lib/mbswidth.c: Don't include <limits.h>.
92663         Include <stdlib.h> and <string.h> unconditionally.
92664         (iswcntrl, mbsinit, ISCNTRL): New macros.
92665         (mbsnwidth): Use K&R style function declarations.
92666         Don't bother checking for MB_LEN_MAX == 1, since the compiler
92667         can optimize it when MB_CUR_MAX == 1.
92668         The width of control characters is zero, not 1.
92669
92670 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92671
92672         The following changes are from gettext 0.10.39 as maintained by
92673         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
92674
92675         * m4/codeset.m4: Upgrade to serial AM1.
92676         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
92677         all uses changed.  Quote first arg of AC_DEFUN.
92678         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
92679
92680         * m4/iconv.m4: Upgrade to serial AM2.
92681         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
92682         Add --with-libconv-prefix.
92683         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
92684         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
92685         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
92686         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
92687         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
92688
92689         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
92690         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
92691         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
92692         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
92693         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
92694         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
92695         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
92696         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
92697         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
92698
92699         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
92700         string.h any more.
92701
92702         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
92703         not the default value.
92704
92705         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
92706         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
92707         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
92708         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
92709         Also check for iswcntrl, used for wcwidth fallback.
92710         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
92711         to Autoconf 2.13.
92712
92713 2001-08-03  Jim Meyering  <meyering@lucent.com>
92714
92715         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
92716         as it was in the original.  Reported by Paul Eggert.
92717
92718 2001-07-16  Jim Meyering  <meyering@lucent.com>
92719
92720         * m4/gettimeofday.m4: New file.
92721         Prompted by a report from Bernhard Baehr.
92722
92723 2001-07-15  Jim Meyering  <meyering@lucent.com>
92724
92725         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
92726         stuff. Now it's in ../Makefile.cfg.
92727
92728 2001-07-15  Jim Meyering  <meyering@lucent.com>
92729
92730         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
92731         (BUILT_SOURCES): Add unlocked-io.h.
92732         (io_functions): Define.
92733         (unlocked-io.h): New rule.
92734         (DISTCLEANFILES): Add unlocked-io.h.
92735         (all-local): Depend on unlocked-io.h, to ensure it is created.
92736
92737         * lib/unlocked-io.hin: New file
92738
92739         * lib/regex.c: Update from glibc.
92740
92741 2001-07-05  Jim Meyering  <meyering@lucent.com>
92742
92743         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
92744         recommendation.
92745         (libfetish_a_SOURCES): Put all .h files here instead.
92746         Remove a thus-exposed (better checks in automake) duplicate and
92747         two unnecessary .h files.
92748
92749 2001-07-04  Jim Meyering  <meyering@lucent.com>
92750
92751         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
92752         that generates jm-glibc-io.m4 so that it doesn't trigger any make
92753         distcheck failure.
92754
92755 2001-07-02  Jim Meyering  <meyering@lucent.com>
92756
92757         The following changes were prompted by suggestions from Bruno Haible.
92758
92759         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
92760         is now generated.
92761         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
92762         definition of EXTRA_DIST.
92763         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
92764         ensure that the generated file is created/updated whenever the list
92765         of $(unlocked_functions) is changed.
92766         (jm-glibc-io.m4): New rule.
92767         (unlocked-io.h): New rule -- currently unused.
92768
92769 2001-06-24  Jim Meyering  <meyering@lucent.com>
92770
92771         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
92772         unmatched right bracket, rather than kludging it with an extra,
92773         falsely-matching quote in a comment.  Patch by Akim Demaille.
92774
92775 2001-06-11  Jim Meyering  <meyering@lucent.com>
92776
92777         * lib/regex.c: Update from GNU libc.
92778
92779 2001-05-27  Jim Meyering  <meyering@lucent.com>
92780
92781         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
92782         Check for ut_type in struct utmp.
92783
92784 2001-05-27  Jim Meyering  <meyering@lucent.com>
92785
92786         * lib/readutmp.h (UT_TYPE): Define.
92787
92788 2001-05-24  Jim Meyering  <meyering@lucent.com>
92789
92790         * lib/argmatch.c: Include "quote.h".
92791         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
92792         quote function.  Reported by Göran Uddeborg.
92793
92794 2001-05-22  Jim Meyering  <meyering@lucent.com>
92795
92796         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
92797         now that we use the package-supplied version unconditionally.
92798         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
92799
92800 2001-05-21  Jim Meyering  <meyering@lucent.com>
92801
92802         * m4/regex.m4: Change a couple backticks to single quotes to avoid
92803         shell syntax errors.
92804
92805 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92806
92807         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
92808
92809 2001-05-20  Paul Eggert  <eggert@twinsun.com>
92810
92811         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
92812         Don't bother to check library strftime, since
92813         we'll be using our own my_strftime function anyway.
92814         Define my_strftime instead of strftime.
92815
92816 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
92817
92818         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
92819         which is not yet declared.
92820
92821 2001-05-15  Jim Meyering  <meyering@lucent.com>
92822
92823         * m4/regex.m4: Use proper quoting so brackets appear in the test
92824         program.
92825         Reported by, and with help from, Bruno Haible.
92826
92827 2001-05-13  Jim Meyering  <meyering@lucent.com>
92828
92829         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
92830         undefined.
92831
92832 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92833
92834         dirname code cleanup.  base_name now behaves more compatibly
92835         with POSIX basename when given file names that have trailing
92836         slashes, and similarly for dir_name.  Add new primitives
92837         base_len and dir_len.  Put the directory-name-related decls
92838         into dirname.h.
92839
92840         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
92841         * lib/backupfile.c (base_name): Likewise.
92842         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
92843         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
92844         * lib/makepath.c (strip_trailing_slashes): Likewise.
92845         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
92846         ISSLASH): Likewise.
92847         * lib/rename.c (strip_trailing_slashes): Likewise.
92848         * lib/same.c (base_name): Likewise.
92849         * lib/stripslash.c (ISSLASH): Likewise.
92850
92851         * lib/addext.c: Include <dirname.h> after size_t is defined.
92852         * lib/backupfile.c: Likewise.
92853
92854         * lib/addext.c (addext): Use base_len to trim redundant
92855         trailing slashes instead of doing it ourselves.
92856         But do not trim the last slash if it is not redundant.
92857
92858         * lib/backupfile.c (find_backup_file_name,
92859         max_backup_version): Use base_len instead of rolling it ourselves.
92860         Handle the case of "" and (on DOS) "C:" correctly.
92861
92862         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
92863         needed. Include <string.h>, <dirname.h>.
92864         (base_name): Allow file names ending in slashes, other than names
92865         that are all slashes.  In this case, return the basename followed
92866         by the slashes.  This is more general, and can be used in places
92867         where the original base_name purposely had an assertion failure.
92868         (base_len): New function.
92869
92870         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
92871         Do not include <assert.h>; no longer needed.
92872         Include xalloc.h.
92873         (memrchr): Remove decl.
92874         (dir_name_r): Remove.
92875         (dir_len): Renamed from dirlen.  All callers changed.
92876         Rewrite in terms of base_name, for simplicity and consistency.
92877         (dir_name): Never return NULL.  All callers changed.
92878         Do not include <stdlib.h> in test program; no longer needed.
92879         return 0; is fine for test program.
92880
92881         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
92882         New macros.
92883         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
92884
92885         * lib/path-concat.c (path_concat): Use base_len to compute
92886         base length, not strlen; this means we cannot rely on memcpy
92887         to null-terminate.
92888
92889         * lib/same.c (STREQ): Remove.
92890         (same_name): Handle the case where the basename ends in trailing '/'.
92891
92892         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
92893         a slash was stripped.  Do not strip the last slash after a
92894         file system prefix.
92895
92896 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92897
92898         * lib/Makefile.am (libfetish_a_SOURCES):
92899         Add strftime.c, since we now compile it on all hosts.
92900
92901         * lib/strftime.c (my_strftime):
92902         Define to nstrftime if emacs, but only if my_strftime is not defined.
92903         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
92904         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
92905         Add one more extra argument: a nanoseconds value.
92906         All uses changed.
92907         (ns): New macro.
92908         (my_strftime function): Add %N format.
92909         (emacs_strftimeu): Renamed from emacs_strftime,
92910         with extra ut argument.
92911
92912 2001-05-09  Paul Eggert  <eggert@twinsun.com>
92913
92914         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
92915
92916 2001-04-21  Jim Meyering  <meyering@lucent.com>
92917
92918         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
92919         doesn't interfere.
92920
92921 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92922
92923         * m4/ftruncate.m4: Check for chsize.
92924         Link with ftruncate.o unconditionally if ftruncate is missing.
92925         This was required when cross-compiling to i586-mingw32msvc.
92926
92927 2001-04-08  Jim Meyering  <meyering@lucent.com>
92928
92929         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
92930         recomputed; that's necessary when the offset spans a DST transition.
92931         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
92932
92933 2001-04-02  Jim Meyering  <meyering@lucent.com>
92934
92935         * lib/regex.h, regex.c: Update from GNU libc.
92936
92937 2001-03-24  Jim Meyering  <meyering@lucent.com>
92938
92939         * m4/jm-macros.m4: Require autoconf-2.49d.
92940
92941 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
92942
92943         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
92944
92945 2001-03-19  Paul Eggert  <eggert@twinsun.com>
92946
92947         * lib/version-etc.c (version_etc_copyright): Update to 2001.
92948
92949 2001-03-17  Jim Meyering  <meyering@lucent.com>
92950
92951         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
92952         now that the version in autoconf is equivalent.
92953         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
92954
92955         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
92956         Suggestion from Akim Demaille.
92957
92958         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
92959         (jm_PREREQ_TEMPNAME): New function.
92960
92961 2001-03-16  Paul Eggert  <eggert@twinsun.com>
92962
92963         * lib/tempname.c (uint64_t): Define to uintmax_t if
92964         not defined, and if UINT64_MAX is not defined.
92965         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
92966         Reported by John David Anglin.
92967
92968 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
92969
92970         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
92971         resolve alias if codeset is empty.
92972         * lib/config.charset (BeOS): Use wildcard syntax.
92973
92974 2001-03-13  Jim Meyering  <meyering@lucent.com>
92975
92976         * lib/path-concat.c (path_concat)
92977         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
92978         concatenating e.g., `C:' and `foo'.
92979         From Bruno Haible.
92980
92981 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92982
92983         * lib/localcharset.c (locale_charset): Don't use
92984         setlocale(LC_CTYPE,NULL). Don't return NULL.
92985         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
92986
92987 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92988
92989         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
92990         support for DOS/DJGPP.
92991
92992 2001-03-01  Paul Eggert  <eggert@twinsun.com>
92993
92994         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
92995         lacks mkstemp.  Compile our own tempname.c if we compile our own
92996         mkstemp.c, as mkstemp relies on tempname.
92997
92998 2001-03-01  Jim Meyering  <meyering@lucent.com>
92999
93000         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
93001         AH_VERBATIM really does output its argument verbatim.
93002
93003 2001-02-28  Paul Eggert  <eggert@twinsun.com>
93004
93005         * lib/Makefile.am (libfetish_a_SOURCES):
93006         Add dup-safer.c, fopen-safer.c.
93007         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
93008
93009         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
93010         * lib/unistd-safer.h: New files.
93011
93012 2001-02-25  Paul Eggert  <eggert@twinsun.com>
93013
93014         The mkstemp replacement is taken from glibc 2.2.2, with some
93015         portability fixes for use outside glibc, as follows:
93016
93017         * lib/tempname.c (struct_stat64): New macro.
93018         (direxists, __gen_tempname): Use it.
93019         This avoids a portability problem with Solaris 8.
93020
93021         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
93022         (<stddef.h>, <stdint.h>, <string.h>):
93023         Include only if STDC_HEADERS || _LIBC.
93024         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
93025         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
93026         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
93027         (__set_errno): Define this macro if <errno.h> doesn't.
93028         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
93029         Define these macros if <stdio.h> doesn't.
93030         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
93031         Define these macros if <sys/stat.h>
93032         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
93033         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
93034         __xstat64): Define if not _LIBC.
93035         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
93036         (__gen_tempname): Invoke gettimeofday only if
93037         HAVE_GETTIMEOFDAY || _LIBC;
93038         otherwise, fall back on plain "time".
93039         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
93040
93041         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
93042
93043         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
93044
93045 2001-02-18  Paul Eggert  <eggert@twinsun.com>
93046
93047         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
93048
93049 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93050
93051         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
93052         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
93053         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
93054         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
93055
93056 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93057
93058         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
93059         Remove workaround macros for hosts that have mbrtowc but not
93060         mbstate_t, as we now insist on proper declarations for both
93061         before using mbrtowc.
93062
93063 2001-02-17  Jim Meyering  <meyering@lucent.com>
93064
93065         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
93066         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
93067         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
93068         UnixWare 7.1.1.
93069
93070         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
93071         rather than AC_CACHE_VAL.
93072
93073 2001-02-17  Jim Meyering  <meyering@lucent.com>
93074
93075         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
93076         around included file name.
93077
93078         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
93079
93080         * lib/strftime.c: Update from GNU libc (the only changes were to
93081         comments).
93082
93083 2001-02-17  Jim Meyering  <meyering@lucent.com>
93084
93085         * lib/regex.c: Update from libc.
93086
93087 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
93088
93089         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
93090         clash.
93091
93092 2001-02-16  Paul Eggert  <eggert@twinsun.com>
93093
93094         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
93095         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
93096         Reported by Mark Hounschell via Paul Eggert.
93097
93098 2001-02-07  Jim Meyering  <meyering@lucent.com>
93099
93100         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
93101
93102 2001-02-05  Jim Meyering  <meyering@lucent.com>
93103
93104         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
93105         it includes the patch required for `large file' support with at least
93106         HP-UX's 10.20 /bin/cc.
93107
93108 2001-02-03  Jim Meyering  <meyering@lucent.com>
93109
93110         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
93111         AS_IF, now that it works once again (mysteriously).
93112         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93113
93114 2001-01-30  Jim Meyering  <meyering@lucent.com>
93115
93116         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
93117         * m4/chown.m4: Rename conftestchown to conftest.chown.
93118         * m4/rename.m4: s/conftestdir/conftest.d1/ and
93119         s/conftestdir2/conftest.d2/.
93120         * m4/utimes.m4: s/conftestdata/conftest.data/
93121         Inspired by Pavel Roskin's change in autoconf.
93122
93123 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
93124
93125         * lib/config.charset: Update for FreeBSD 4.2.
93126
93127 2001-01-27  Jim Meyering  <meyering@lucent.com>
93128
93129         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
93130         a use of AS_IF.
93131         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93132
93133 2001-01-26  Jim Meyering  <meyering@lucent.com>
93134
93135         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
93136         quotearg.c includes it.
93137
93138 2001-01-26  Jim Meyering  <meyering@lucent.com>
93139
93140         * lib/quotearg.c: Include stddef.h.
93141         * lib/quote.c: Include stddef.h.
93142         Reported by Axel Kittenberger.
93143
93144         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
93145         line in double quotes so that it evokes a better diagnostic.
93146         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
93147         Reported by Axel Kittenberger.
93148
93149 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
93150
93151         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
93152         as if it was a `charset'.
93153
93154 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93155
93156         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
93157         has const.
93158
93159 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93160
93161         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
93162         to avoid a warning.  Add back 'const' to inptr.
93163
93164 2001-01-20  Jim Meyering  <meyering@lucent.com>
93165
93166         Be sure that headers are checked before used in code compiled
93167         for the type checks.
93168         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
93169         In place of that, invoke jm_CHECK_ALL_TYPES.
93170         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
93171         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
93172         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
93173         The check for ssize_t was mistakenly run before the test for unistd.h.
93174
93175         The configure-time check for stdbool.h was missing.
93176         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
93177         (jm_PREREQ_HASH): New function.
93178
93179 2001-01-17  Jim Meyering  <meyering@lucent.com>
93180
93181         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
93182         for autoconf-2.49c.
93183         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
93184
93185 2001-01-16  Jim Meyering  <meyering@lucent.com>
93186
93187         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
93188         From Bruno Haible.
93189
93190 2001-01-14  Jim Meyering  <meyering@lucent.com>
93191
93192         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
93193         foo and bar.  Create conftestdir/ in the script, not in the C code.
93194         Remove directories in the script, not in the C code.
93195         Remove conftestdir{,2} before trying to create the directory.
93196         Make the entire configure script fail if the mkdir fails.
93197
93198 2001-01-14  Jim Meyering  <meyering@lucent.com>
93199
93200         * lib/rename.c: New file.  From Volker Borchert.
93201         Include stdlib.h, string.h or strings.h, and xalloc.h.
93202         Use strip_trailing_slashes rather than open-coding it.
93203
93204 2001-01-03  Paul Eggert  <eggert@twinsun.com>
93205
93206         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
93207
93208 2001-01-03  Jim Meyering  <meyering@lucent.com>
93209
93210         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
93211         of local `inptr' to avoid warning with some system declarations of
93212         iconv.
93213
93214 2001-01-02  Volker Borchert  <bt@teknon.de>
93215
93216         * m4/rename.m4: New file.
93217         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
93218
93219 2001-01-01  Jim Meyering  <meyering@lucent.com>
93220
93221         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
93222         even on systems with utmpx.h.  It's necessary for the declaration of
93223         utmp's ut_user member.  Reported by Andreas Jaeger.
93224
93225         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
93226         available. They are required for the declarations of getgrgid and
93227         getpwuid resp.
93228         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
93229         Reported by Andreas Jaeger.
93230
93231 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
93232
93233         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
93234         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
93235         so `make install' also works in VPATH builds.
93236
93237 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
93238
93239         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
93240         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
93241         can be used in subdirectories.
93242
93243 2000-12-29  Paul Eggert  <eggert@twinsun.com>
93244
93245         * lib/modechange.c: Do not assume that mode_t uses the
93246         traditional octal encoding.  E.g. "chmod 1 FOO" should set
93247         the other-execute bit of FOO even if S_IXOTH != 1.
93248
93249         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
93250         WOTH, XOTH, ALLM): New macros.
93251         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
93252          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
93253         Use them.
93254         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
93255         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
93256         (mode_compile):
93257         No need to use uintmax_t; unsigned long is long enough.
93258         Don't bother to get suffix since we don't use it.
93259
93260 2000-12-26  Jim Meyering  <meyering@lucent.com>
93261
93262         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
93263         better with autoheader.
93264
93265 2000-12-24  Jim Meyering  <meyering@lucent.com>
93266
93267         * lib/hash.c (is_prime): Return explicit boolean values.
93268         (hash_get_first): Return NULL to appease Irix5.6's 89.
93269         Reported by Nelson Beebe.
93270
93271 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
93272
93273         * lib/localcharset.c (locale_charset): Add support for Win32.
93274
93275 2000-12-18  Paul Eggert  <eggert@twinsun.com>
93276
93277         * lib/physmem.h, lib/physmem.c: New files.
93278
93279         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
93280         (noinst_HEADERS): Add physmem.h.
93281
93282         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
93283         't' for compatibility with Solaris 8 sort.
93284
93285 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
93286
93287         * lib/config.charset: Add support for BeOS.
93288
93289 2000-12-17  Jim Meyering  <meyering@lucent.com>
93290
93291         * m4/dos.m4 (jm_AC_DOS): New file and macro.
93292         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
93293
93294 2000-12-16  Jim Meyering  <meyering@lucent.com>
93295
93296         This bug had a serious impact on chown: `chown N:M FILE' (for integer
93297         N and M) would have treated it like `chown N:N FILE'.
93298
93299         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
93300
93301 2000-12-16  Jim Meyering  <meyering@lucent.com>
93302
93303         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
93304         SHELLS_FILE to a file name that's useful on djgpp systems.
93305         Include stdlib.h.
93306         (ADDITIONAL_DEFAULT_SHELLS): Define.
93307         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
93308         Based mostly on a patch from Prashant TR.
93309
93310 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
93311
93312         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
93313         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
93314         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
93315
93316 2000-12-08  Andreas Schwab  <schwab@suse.de>
93317
93318         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
93319         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
93320
93321 2000-12-07  Jim Meyering  <meyering@lucent.com>
93322
93323         * lib/stripslash.c (ISSLASH): Define.
93324         (strip_trailing_slashes): Use ISSLASH rather than comparing against
93325         `/'.
93326         From Prashant TR.
93327
93328         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
93329         (dir_name_r): Declare this function as static.
93330         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
93331         manifest itself on a name containing a mix of slashes and
93332         backslashes.
93333         Make this function work with names starting with a DOS-style
93334         drive letter and colon prefix.
93335         (dir_name): Append `.' if necessary.
93336         Based mostly on patches from Prashant TR and Eli Zaretskii.
93337
93338         * lib/dirname.h (dir_name_r): Remove prototype.
93339
93340 2000-12-06  Paul Eggert  <eggert@twinsun.com>
93341
93342         * m4/off_t-format.m4: Remove this file.
93343         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
93344
93345 2000-12-06  Jim Meyering  <meyering@lucent.com>
93346
93347         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
93348         replacement strtoull, we may well need the replacement strtoul, too.
93349         Check for declarations of strtoul and strtoull.
93350         Check for strtol.  Mainly as a cue to cause automake to include
93351         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
93352         Check for limits.h -- strtol.c needs it.
93353
93354 2000-12-05  Jim Meyering  <meyering@lucent.com>
93355
93356         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
93357
93358 2000-12-04  Jim Meyering  <meyering@lucent.com>
93359
93360         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
93361         Also include memory.h, stdlib.h, unistd.h if appropriate.
93362         Reported by Andreas Jaeger (conflicting declaration of malloc).
93363
93364 2000-12-02  Jim Meyering  <meyering@lucent.com>
93365
93366         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
93367         * m4/jm-macros.m4 (jm_MACROS): require it.
93368
93369 2000-12-02  Jim Meyering  <meyering@lucent.com>
93370
93371         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
93372
93373 2000-12-01  Paul Eggert  <eggert@twinsun.com>
93374
93375         * lib/memrchr.c: Include <config.h> before any system include file.
93376
93377 2000-11-30  Jim Meyering  <meyering@lucent.com>
93378
93379         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
93380
93381 2000-11-30  Jim Meyering  <meyering@lucent.com>
93382
93383         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
93384
93385 2000-11-29  Paul Eggert  <eggert@twinsun.com>
93386
93387         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
93388
93389 2000-11-26  Jim Meyering  <meyering@lucent.com>
93390
93391         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
93392
93393 2000-11-22  Paul Eggert  <eggert@twinsun.com>
93394
93395         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
93396         size of (size_t) -1; it's not portable.
93397
93398 2000-11-17  Jim Meyering  <meyering@lucent.com>
93399
93400         * lib/strstr.c: Update from GNU libc.
93401
93402 2000-11-17  Akim Demaille  <akim@epita.fr>
93403
93404         * lib/obstack.h: Formatting changes.
93405         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
93406         prevent type checking.
93407         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
93408         cast the value to (void *): assigning a `foo *' to a `void *'
93409         variable is valid.
93410         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
93411
93412 2000-11-16  Jim Meyering  <meyering@lucent.com>
93413
93414         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
93415
93416 2000-11-11  Jim Meyering  <meyering@lucent.com>
93417
93418         * lib/error.c: Add a couple #includes, merging from GNU libc version.
93419
93420 2000-11-10  Jim Meyering  <meyering@lucent.com>
93421
93422         * lib/obstack.h: Update from GNU libc.
93423         * lib/obstack.c: Likewise.
93424
93425 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
93426
93427         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
93428
93429 2000-11-06  Paul Eggert  <eggert@twinsun.com>
93430
93431         * lib/getusershell.c (setusershell): Use rewind rather than
93432         fseek/fseeko, to avoid configuration hassles with fseeko.
93433         Don't bother opening SHELLS_FILE if shellstream is NULL;
93434         it's not necessary.
93435
93436 2000-11-05  Jim Meyering  <meyering@lucent.com>
93437
93438         * lib/makepath.h (make_dir): Declare.
93439         * lib/makepath.c (make_dir): Remove `static' attribute.
93440         Tweak a comment.
93441
93442 2000-11-04  Jim Meyering  <meyering@lucent.com>
93443
93444         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
93445
93446 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
93447
93448         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
93449         last one in a bucket, advance to the next bucket.
93450
93451 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
93452
93453         * lib/fnmatch.c: Do not comment out all the code if we are using
93454         the GNU C library, because in some cases we are replacing buggy
93455         code in the GNU C library itself.
93456
93457 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
93458
93459         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
93460         (regex_compile): Catch bogus \(\1\).
93461
93462 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93463
93464         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
93465         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
93466         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
93467
93468 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93469
93470         * lib/error.h, getline.h, modechange.h:
93471         Remove "2000" from Copyright line, as the file hasn't been
93472         changed this year other than in the copyright notice.
93473
93474         * lib/xalloc.h: Add "2000" to Copyright line, as this file
93475         was changed this year.
93476
93477 2000-10-29  Jim Meyering  <meyering@lucent.com>
93478
93479         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
93480         renaming.
93481         * m4/ls-mntd-fs.m4: Likewise
93482
93483 2000-10-29  Jim Meyering  <meyering@lucent.com>
93484
93485         * lib/xstat.in: Fix grammar in comment.
93486
93487 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
93488
93489         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
93490         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
93491         doesn't define __restrict_arr.
93492
93493 2000-10-28  Jim Meyering  <meyering@lucent.com>
93494
93495         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
93496         (jm_PREREQ_MEMCHR): New function.
93497
93498 2000-10-28  Jim Meyering  <meyering@lucent.com>
93499
93500         * lib/memchr.c: Update from libc.
93501         Adjust for portability:
93502         [HAVE_STDLIB_H]: Include stdlib.h.
93503         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
93504         Undef __memchr, too.
93505         [!weak_alias]: Define __memchr to memchr.
93506
93507         * lib/regex.c: Update from libc.
93508         * lib/regex.h: Likewise.
93509         * lib/getopt1.c: Likewise.
93510         * lib/memcmp.c: Likewise.
93511
93512         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
93513         Avoid using fseek, when possible -- it's broken by design.
93514         Patch by Ulrich Drepper.
93515
93516 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
93517
93518         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
93519         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
93520         Giving in to popular pressure to shut up the compiler with casts.
93521
93522 2000-10-26  Jim Meyering  <meyering@lucent.com>
93523
93524         * lib/strftime.c: Update from libc.
93525
93526 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
93527
93528         * regex.c: More `unsigned char' -> `re_char' changes.
93529         Also change several `int' into `re_wchar_t'.
93530         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
93531         (PUSH_FAILURE_POINTER): Don't cast any more.
93532         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
93533         We want GCC to complain, since this piece of code makes
93534         re_match non-reentrant, which *should* be fixed.
93535         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
93536         (EXTEND_BUFFER): Use RETALLOC.
93537         (SET_LIST_BIT): Don't cast.
93538         (re_wchar_t): New type.
93539         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
93540         that those two functions will always properly return.
93541         (IMMEDIATE_QUIT_CHECK): Cast to void.
93542         (analyse_first): Use recursion rather than an explicit stack.
93543         (re_compile_fastmap): Can't fail anymore.
93544         (re_search_2): Don't check re_compile_fastmap for failure.
93545         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
93546         Now also sets the new value (passed in a new argument).
93547         (re_match_2_internal): Use it.
93548         Also, use a new var `reg' of type size_t when looping through regs
93549         rather than reuse the inappropriate `mcnt'.
93550
93551 2000-10-25  Jim Meyering  <meyering@lucent.com>
93552
93553         * lib/obstack.c: Update from libc.
93554
93555 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
93556
93557         * regex.c (regex_compile): Change the way of handling a range from
93558         a char less than 256 to a char not less than 256.
93559
93560 2000-10-24  Andrew Innes  <andrewi@gnu.org>
93561
93562         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
93563         NT-Emacs only.
93564         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
93565         so that re_search functions only quit when callers expect them to.
93566
93567 2000-10-23  Jim Meyering  <meyering@lucent.com>
93568
93569         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
93570         wrong.  That set_locale call must not have any side effects.
93571         From Paul Eggert.
93572
93573 2000-10-22  Jim Meyering  <meyering@lucent.com>
93574
93575         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
93576         [CYCLIC]: Remove now-unused definition.
93577
93578         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
93579         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
93580         Suggestion from Ulrich Drepper.
93581
93582 2000-10-21  Jim Meyering  <meyering@lucent.com>
93583
93584         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
93585         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
93586         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
93587
93588 2000-10-21  Jim Meyering  <meyering@lucent.com>
93589
93590         * lib/dirname.c (memrchr): Declare if necessary.
93591         (dir_name): Remove the restriction that there be no
93592         trailing slashes.  Now, this code skips past them, effectively
93593         ignoring them.
93594         [TEST_DIRNAME] (main): New unit tests.
93595
93596         * lib/memrchr.c: New file from GNU libc.
93597         Undef __memrchr, too.
93598         [!weak_alias]: Define __memrchr to memrchr.
93599         Guard weak_alias use with `#ifdef weak_alias'.
93600
93601 2000-10-21  Jim Meyering  <meyering@lucent.com>
93602
93603         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
93604         (dir_name): Use dir_name_r.
93605         * lib/dirname.h (dir_name_r): Declare it.
93606
93607 2000-10-17  Jim Meyering  <meyering@lucent.com>
93608
93609         * lib/quote.h (PARAMS): Define and use.
93610         Reported by Akim Demaille.
93611
93612         * lib/getopt.c: Update from libc.
93613
93614 2000-10-16  Jim Meyering  <meyering@lucent.com>
93615
93616         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
93617         setlocale.
93618         From Jan Fedak.
93619
93620 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
93621
93622         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
93623
93624 2000-09-25  Jim Meyering  <meyering@lucent.com>
93625
93626         * lib/md5.h (rol): Define (from GnuPG).
93627
93628         * lib/sha.c: Give credit (GnuPG) where due.
93629         (M): Use rol rather than open-coding it.
93630         Add a FIXME comment.
93631
93632 2000-09-21  Jim Meyering  <meyering@lucent.com>
93633
93634         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
93635         Reported by Michael Stone.
93636
93637 2000-09-20  Jim Meyering  <meyering@lucent.com>
93638
93639         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
93640         (noinst_HEADERS): Add sha.h.
93641         Based on code from Scott G. Miller and from GnuPG.
93642
93643 2000-09-18  Jim Meyering  <meyering@lucent.com>
93644
93645         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
93646         LIBS. Otherwise, everyone ends up linking with -lelf for some
93647         configurations.
93648         Reported by Mike Stone.
93649
93650 2000-09-15  Jim Meyering  <meyering@lucent.com>
93651
93652         * lib/regex.c: Update from libc.
93653
93654 2000-09-10  Jim Meyering  <meyering@lucent.com>
93655
93656         * lib/getopt.c (_getopt_internal): Update from glibc.
93657
93658 2000-09-09  Jim Meyering  <meyering@lucent.com>
93659
93660         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
93661         think it should be used as a general replacement for isascii.
93662         * lib/fnmatch.c: Likewise.
93663         * lib/mbswidth.c: Likewise
93664         * lib/regex.c: Likewise.
93665
93666         Don't use atoi.
93667         * lib/userspec.c: Include sys/param.h and limits.h.
93668         Include xstrtol.h.
93669         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93670         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
93671         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
93672         UID, GID.  Check range.
93673
93674 2000-09-06  Jim Meyering  <meyering@lucent.com>
93675
93676         * lib/getopt.c (_getopt_internal): Update from glibc.
93677
93678 2000-08-30  Jim Meyering  <meyering@lucent.com>
93679
93680         * lib/strftime.c: Merge in changes from GNU libc.
93681
93682 2000-08-26  Jim Meyering  <meyering@lucent.com>
93683
93684         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
93685         * m4/fpending.m4: New file.
93686
93687 2000-08-26  Jim Meyering  <meyering@lucent.com>
93688
93689         * lib/closeout.c: Include "__fpending.h".
93690         (close_stdout_status): Return right away if there's nothing to flush.
93691
93692         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
93693         * lib/__fpending.c: New file.
93694         * lib/__fpending.h: New file.
93695
93696 2000-08-20  Jim Meyering  <meyering@lucent.com>
93697
93698         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
93699         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
93700         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
93701
93702 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
93703
93704         Improve fileutils installation on systems where running
93705         programs (like install) can't be unlinked.
93706         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
93707         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
93708
93709 2000-08-07  Paul Eggert  <eggert@twinsun.com>
93710
93711         Standardize on "memory exhausted" instead of "Memory exhausted"
93712         or "virtual memory exhausted".
93713         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
93714         "virtual memory exhausted".
93715         * lib/same.c (same_name): Invoke xalloc_die instead of printing
93716         our own message.
93717         * lib/userspec.c (parse_user_spec): Likewise.
93718         * lib/bumpalloc.h: comment fix
93719         * lib/same.c, userspec.c: Include xalloc.h.
93720
93721         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
93722         not char *const and pointing to a constant array.
93723         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
93724         (xrealloc): Comment fix.
93725
93726         * lib/userspec.c (parse_user_spec):
93727         Don't translate a message until just before returning,
93728         to avoid unnecessary translation.
93729
93730 2000-08-07  Jim Meyering  <meyering@lucent.com>
93731
93732         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
93733         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
93734         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
93735         getgroups.c, gethostname.c, getopt.h, group-member.c,
93736         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
93737         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
93738         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
93739         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
93740         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
93741         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
93742         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
93743         yesno.c: Back out Copyright date changes for each file with no change
93744         this year.  This eases coordination with other programs using the same
93745         source code modules.  From Paul Eggert.
93746
93747 2000-08-06  Paul Eggert  <eggert@twinsun.com>
93748
93749         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
93750         not char, for compatibility with glibc 2.1.3 strftime.c.
93751
93752 2000-08-03  Greg McGary  <greg@mcgary.org>
93753
93754         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
93755         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
93756         (EXTEND_BUFFER): Use them.
93757
93758 2000-08-01  Jim Meyering  <meyering@lucent.com>
93759
93760         * lib/dirname.c (ISSLASH): Define.
93761         (BACKSLASH_IS_PATH_SEPARATOR): Define.
93762         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
93763         both `\' and `/' may be use as path separators.
93764         Based on a patch from Prashant TR.
93765
93766 2000-07-31  Paul Eggert  <eggert@twinsun.com>
93767
93768         * lib/quotearg.c (quotearg_n_options): Don't make the initial
93769         slot vector a constant, since it might get modified.
93770
93771 2000-07-31  Jim Meyering  <meyering@lucent.com>
93772
93773         * lib/xmalloc.c: Use `virtual memory exhausted', not
93774         `Memory exhausted'.
93775         * lib/obstack.c (print_and_abort): Likewise.
93776
93777 2000-07-30  Paul Eggert  <eggert@twinsun.com>
93778
93779         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
93780         buffer, so that the caller can always quote one small
93781         component of a "memory exhausted" message in slot 0.
93782         From a suggestion by Jim Meyering.
93783
93784 2000-07-30  Jim Meyering  <meyering@lucent.com>
93785
93786         * lib/makepath.c (make_path): Quote the other instance, too.
93787
93788         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
93789         (STATIC_BUF_SIZE): Define.
93790         (quotearg_n_options): Use only statically allocated storage when
93791         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
93792         than STATIC_BUF_SIZE.
93793
93794 2000-07-29  Jim Meyering  <meyering@lucent.com>
93795
93796         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
93797         * lib/dirname.c (dir_name): Likewise.
93798
93799         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
93800         `/'.
93801
93802         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
93803         (dir_name): Assert that there are no trailing slashes.
93804
93805 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
93806
93807         * lib/mbswidth.h (mbswidth): Add a flags argument.
93808         (mbswidth): New declaration.
93809         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
93810         * lib/mbswidth.c (mbswidth): Add a flags argument.
93811         (mbsnwidth): New function.
93812
93813 2000-07-24  Jim Meyering  <meyering@lucent.com>
93814
93815         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
93816
93817 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93818
93819         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
93820
93821 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93822
93823         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
93824         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
93825         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
93826         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
93827         invoke multibyte primitives.
93828
93829 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93830
93831         * lib/quotearg.c:
93832         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
93833         so that mbstate_t is always defined.
93834
93835         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
93836         be 1 in at least one GCC installation, and this configuration
93837         error is likely to be common.  Ignoring MB_LEN_MAX hurts
93838         performance on hosts that have mbrtowc but have only unibyte
93839         locales, but I assume these hosts are rare.
93840
93841 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93842
93843         * lib/mbswidth.c (_XOPEN_SOURCE):
93844         Don't define; this causes problems on Solaris 7.
93845         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
93846
93847 2000-07-23  Jim Meyering  <meyering@lucent.com>
93848
93849         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
93850         too: getgrgid, getpwuid, getuid.
93851
93852 2000-07-23  Jim Meyering  <meyering@lucent.com>
93853
93854         * lib/basename.c (base_name): Add an assertion.
93855
93856 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
93857
93858         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
93859         shadow its mbsinit function.
93860
93861 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93862
93863         * lib/mbswidth.h: New file.
93864         * lib/mbswidth.c: New file.
93865         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
93866         (noinst_HEADERS): Add mbswidth.h.
93867
93868 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93869
93870         * lib/config.charset: Add support for FreeBSD. Improve support for
93871         HP-UX and IRIX 6.
93872
93873 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
93874
93875         * m4/mbswidth.m4: New file.
93876         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
93877
93878 2000-07-15  Jim Meyering  <meyering@lucent.com>
93879
93880         * lib/makepath.c: Include quote.h.
93881         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
93882         corresponding argument in a `quote (...)' call.
93883         Give better diagnostics.
93884
93885         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
93886         (noinst_HEADERS): Add quote.h.
93887
93888         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
93889         from tar's src/misc.c.
93890         * lib/quote.h: New file.  Prototypes for same.
93891
93892 2000-07-14  Paul Eggert  <eggert@twinsun.com>
93893
93894         From a suggestion by Bruno Haible.
93895         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
93896         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
93897         to decide whether to define the BeOS workaround macro;
93898         this adjusts to the change to AC_MBSTATE_T.
93899
93900 2000-07-14  Jim Meyering  <meyering@lucent.com>
93901
93902         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
93903         jm_AC_TYPE_UINTMAX_T.
93904
93905 2000-07-13  Paul Eggert  <eggert@twinsun.com>
93906
93907         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
93908
93909         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
93910         quotearg_buffer_restyled): Add support for
93911         clocale_quoting_style.  Undo previous change to
93912         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
93913         and "{RIGHT QUOTATION MARK}" msgids.
93914
93915 2000-07-10  Paul Eggert  <eggert@twinsun.com>
93916
93917         From a suggestion by Bruno Haible.
93918         * m4/mbstate_t.m4 (AC_MBSTATE_T):
93919         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
93920         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
93921         and mbstate_t, to a single-part test that simply defines mbstate_t.
93922         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
93923         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
93924
93925 2000-07-10  Jim Meyering  <meyering@lucent.com>
93926
93927         * m4/strerror_r.m4: Mirror the correction made in autoconf.
93928
93929         * m4/gnu-source.m4: Output to confdefs.h directly.
93930         Suggestion from Akim Demaille.
93931
93932 2000-07-09  Paul Eggert  <eggert@twinsun.com>
93933
93934         The old behavior of quoting `like this' doesn't look good with
93935         newer, ISO-style fonts.  See:
93936         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
93937
93938         Instead, quote "like this" by default.  Let the translator
93939         tailor the locale-specific quoting behavior by providing
93940         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
93941
93942         * lib/quotearg.c (N_): New macro.
93943         (gettext_default): New function.
93944         (quotearg_buffer_restyled): Use
93945         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
93946         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
93947
93948 2000-07-09  Jim Meyering  <meyering@lucent.com>
93949
93950         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
93951         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
93952
93953         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
93954         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
93955
93956 2000-07-09  Jim Meyering  <meyering@lucent.com>
93957
93958         * lib/Most files: Update copyright dates to include 2000.
93959
93960 2000-07-08  Jim Meyering  <meyering@lucent.com>
93961
93962         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
93963         if not defined.
93964         (xgethostname): Remove now-unnecessary #ifdef.
93965         Move declaration of `err' into loop where it's used.
93966
93967 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93968         and Bruno Haible  <haible@clisp.cons.org>
93969
93970         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
93971         only if the test for an object-type mbstate_t fails.  This
93972         prevents us from mistakenly reporting that mbstate_t is a
93973         system object type after we "#define mbstate_t int" to work
93974         around its lack.
93975
93976 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93977         and Bruno Haible  <haible@clisp.cons.org>
93978
93979         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
93980
93981 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93982
93983         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
93984         to strerror_r.
93985         Include <ctype.h> for use of isalpha.
93986
93987 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93988
93989         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
93990         by allocating a larger buffer. Test the gethostname return value for
93991         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
93992         returns an error and ENAMETOOLONG isn't defined.
93993
93994 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93995
93996         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
93997         dimension.
93998
93999 2000-07-04  Jim Meyering  <meyering@lucent.com>
94000
94001         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
94002         of the deprecated AC_CHECKING.
94003
94004 2000-07-04  Jim Meyering  <meyering@lucent.com>
94005
94006         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
94007         Reported by Bruno Haible.
94008
94009 2000-07-04  Jim Meyering  <meyering@lucent.com>
94010
94011         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
94012         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
94013         lacks mbrtowc.
94014
94015 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94016
94017         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
94018         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
94019
94020 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94021         and Bruno Haible  <haible@clisp.cons.org>
94022
94023         * lib/quotearg.c (mbrtowc):
94024         Assign to *pwc, and return 1 only if result is nonzero.
94025         (iswprint): Use ISPRINT when substituting our own mbrtowc.
94026
94027 2000-07-03  Jim Meyering  <meyering@lucent.com>
94028
94029         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
94030
94031 2000-07-03  Jim Meyering  <meyering@lucent.com>
94032
94033         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
94034         This is necessary to get a definition of e.g., UTMP_FILE on
94035         HP-UX 10.20.
94036         From Bob Proulx.
94037
94038 2000-07-02  Jim Meyering  <meyering@lucent.com>
94039
94040         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
94041
94042         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
94043         AC_LIBOBJ(function_name).
94044         * m4/chown.m4: Likewise.
94045         * m4/fnmatch.m4: Likewise.
94046         * m4/ftruncate.m4: Likewise.
94047         * m4/getgroups.m4: Likewise.
94048         * m4/getline.m4: Likewise.
94049         * m4/group-member.m4: Likewise.
94050         * m4/jm-macros.m4: Likewise.
94051         * m4/lstat.m4: Likewise.
94052         * m4/malloc.m4: Likewise.
94053         * m4/memcmp.m4: Likewise.
94054         * m4/nanosleep.m4: Likewise.
94055         * m4/putenv.m4: Likewise.
94056         * m4/realloc.m4: Likewise.
94057         * m4/regex.m4: Likewise.
94058         * m4/stat.m4: Likewise.
94059         * m4/strftime.m4: Likewise.
94060
94061 2000-07-02  Jim Meyering  <meyering@lucent.com>
94062
94063         * lib/quotearg.c (mbstate_t): Don't define here.
94064
94065 2000-07-02  Jim Meyering  <meyering@lucent.com>
94066
94067         * lib/nanosleep.c (SIGCONT): Define if not already defined.
94068
94069 2000-07-01  Jim Meyering  <meyering@lucent.com>
94070
94071         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
94072
94073 2000-07-01  Jim Meyering  <meyering@lucent.com>
94074
94075         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
94076         problem.
94077
94078 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94079
94080         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
94081         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
94082
94083 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94084
94085         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
94086         per change in ../m4/ls-mntd-fs.m4.
94087         (read_filesystem_list): Ignore symbolic links.
94088
94089 2000-06-29  Jim Meyering  <meyering@lucent.com>
94090
94091         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
94092         for declaration of strcmp.
94093
94094         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
94095
94096         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
94097         Avoid warning by casting result to `char *' to remove `const'.
94098
94099 2000-06-28  Jim Meyering  <meyering@lucent.com>
94100
94101         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
94102         included by quotearg.c, for which we perform this test.  From
94103         Bruno Haible.
94104
94105 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94106
94107         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
94108         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
94109         <utmpx.h> exists, put readutmp.o into LIBOBJS.
94110
94111 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94112
94113         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
94114
94115 2000-06-26  Paul Eggert  <eggert@twinsun.com>
94116
94117         savedir now sets errno on failure and invokes xmalloc to get memory.
94118         Fix a couple of other minor bugs while we're at it.
94119
94120         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
94121         (NAMLEN): Remove macro.
94122         (malloc, realloc): Remove decls.
94123         (stpcpy): Likewise.
94124         ("xalloc.h"): Include.
94125         (NAME_SIZE_DEFAULT): New macro.
94126         (savedir): Use xmalloc / xrealloc to allocate memory.
94127         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
94128         Skip "" directory entries.
94129         Use strlen to calculate directory entry length, since the old method
94130         is rarely used these days and isn't worth supporting.
94131         Don't use a pointer after freeing it.
94132         Check for integer overflow when calculating allocation size.
94133         Use memcpy to copy entries, instead of stpcpy.
94134         Set errno properly when returning NULL.
94135         Check for readdir error.
94136
94137 2000-06-26  Jim Meyering  <meyering@lucent.com>
94138
94139         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
94140
94141 2000-06-25  Jim Meyering  <meyering@lucent.com>
94142
94143         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
94144         Linux header bug when _XOPEN_SOURCE is defined to 500.
94145
94146 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94147
94148         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
94149         deficiency.
94150
94151 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94152
94153         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
94154         Include xalloc.h.
94155         Don't include <stdlib.h>.  Don't declare malloc, realloc.
94156
94157 2000-06-24  Jim Meyering  <meyering@lucent.com>
94158
94159         * m4/strerror_r.m4: Revive this file -- to try out an experimental
94160         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
94161         for which strerror does return char*, but which lacks a conveniently
94162         accessible declaration of the function.  If the compile-test says
94163         strerror_r doesn't work, then resort to a `run'-test that works on
94164         BeOS and segfaults on DEC Unix.
94165
94166 2000-06-24  Jim Meyering  <meyering@lucent.com>
94167
94168         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
94169
94170 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94171
94172         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
94173         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
94174
94175 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94176
94177         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
94178         (mbrtowc, mbstate_t): Define substitutes if
94179         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
94180         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
94181         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
94182
94183 2000-06-23  Jim Meyering  <meyering@lucent.com>
94184
94185         * m4/afs.m4: Add missing AC_MSG_RESULT.
94186         Reported by Bruno Haible.
94187
94188         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
94189         Suggestion from Bruno Haible.
94190
94191 2000-06-23  Jim Meyering  <meyering@lucent.com>
94192
94193         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
94194
94195 2000-06-21  Jim Meyering  <meyering@lucent.com>
94196
94197         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
94198
94199 2000-06-21  Jim Meyering  <meyering@lucent.com>
94200
94201         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
94202         (noinst_HEADERS): Add getstr.h.
94203
94204         * lib/getline.c (getstr): Move into a separate file.
94205         * lib/getstr.c (getstr): New file, extracted from getline.c, with
94206         the following changes: new parameter, delim2; both delim[12]
94207         parameters have type `int', not `char'.  The latter would lose
94208         with 8-bit delimiters.
94209         * lib/getstr.h: New file.
94210
94211 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94212
94213         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
94214         than 1024, return a memory chunk of least possible size, instead
94215         of size PATH_MAX + 2. In the loop, increment the size proportionally.
94216         Use free/xmalloc instead of xrealloc to avoid copying for very long
94217         paths.
94218
94219 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94220
94221         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
94222         the empty string.
94223
94224 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94225
94226         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
94227         address, not strdup.  Include <stdlib.h> and don't declare free().
94228
94229 2000-06-19  Jim Meyering  <meyering@lucent.com>
94230
94231         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
94232
94233 2000-06-18  Jim Meyering  <meyering@lucent.com>
94234
94235         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
94236
94237         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
94238         `checking whether...' message to be consistent with that of the
94239         lstat test.
94240
94241 2000-06-18  Jim Meyering  <meyering@lucent.com>
94242
94243         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
94244         Besides, these days every porting target provides a mkdir function.
94245
94246         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
94247         needed. (this snippet comes from src/system.h).
94248
94249 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
94250
94251         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
94252
94253 2000-06-15  Paul Eggert  <eggert@twinsun.com>
94254
94255         * lib/human.c (adjust_value): New function.
94256         (human_readable_inexact): Apply rounding style even when
94257         printing approximate values.
94258
94259 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94260
94261         * lib/human.c (human_readable_inexact): Allow an input block
94262         size that is not a multiple of the output block size, and vice versa.
94263         Reported by Piergiorgio Sartor.
94264
94265 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94266
94267         * lib/getdate.y (get_date): Apply relative times after time
94268         zone indicator, not before.  Reported by Todd A. Jacobs.
94269
94270 2000-06-13  Jim Meyering  <meyering@lucent.com>
94271
94272         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
94273
94274         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
94275
94276 2000-06-12  Paul Eggert  <eggert@twinsun.com>
94277
94278         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
94279
94280 2000-06-12  Jim Meyering  <meyering@lucent.com>
94281
94282         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
94283         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
94284         optional argument.
94285         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
94286         the optional argument, `lib'.
94287
94288 2000-06-08  Jim Meyering  <meyering@lucent.com>
94289
94290         * m4/largefile.m4: Remove file (now that it's part of autoconf).
94291
94292 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94293
94294         Rewrite largefile configuration so that we don't need to run
94295         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
94296         AC_CANONICAL_HOST in configure.in -- jmm]
94297
94298         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
94299         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
94300         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
94301         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
94302         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
94303         All uses changed.
94304         Instead of inspecting the output of getconf, try to compile the
94305         test program without and with the macro definition.
94306         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
94307         for getconf.  Instead, check for the needed flags by compiling
94308         test programs.
94309
94310 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94311
94312         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
94313
94314 2000-06-04  Jim Meyering  <meyering@lucent.com>
94315
94316         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
94317         SunOS 4.1.4 for which gid_t is an unsigned type.
94318
94319 2000-06-03  Jim Meyering  <meyering@lucent.com>
94320
94321         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
94322         now that autoconf requires that.
94323
94324         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
94325         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
94326         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
94327
94328 2000-06-03  Jim Meyering  <meyering@lucent.com>
94329
94330         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
94331
94332 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94333
94334         * m4/glibc21.m4: New file.
94335         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
94336
94337 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94338
94339         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
94340         newer, don't install charset.alias.
94341         * lib/config.charset: Change the Linux/glibc rules so they become empty
94342         on glibc-2.1 or newer.
94343
94344 2000-06-02  Jim Meyering  <meyering@lucent.com>
94345
94346         * lib/mountlist.c: Back out last change.  Instead, do this...
94347         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
94348         me_dummy member using the same `ignore'-testing code.
94349         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
94350         fs_type strings.
94351         From Mark D. Roth.
94352
94353 2000-05-29  Jim Meyering  <meyering@lucent.com>
94354
94355         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
94356         mounts with the `ignore' attribute.  Based on a patch from
94357         Mark D. Roth.
94358
94359 2000-05-28  Jim Meyering  <meyering@lucent.com>
94360
94361         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
94362         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94363         * m4/stat.m4: Likewise.
94364         * m4/lstat.m4: Likewise.
94365         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
94366
94367         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
94368         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
94369
94370 2000-05-26  Jim Meyering  <meyering@lucent.com>
94371
94372         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
94373
94374 2000-05-24  Jim Meyering  <meyering@lucent.com>
94375
94376         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
94377         autoconf requires that.
94378         * m4/lib-check.m4: Likewise.
94379         * m4/jm-macros.m4: Likewise.
94380         * m4/strftime.m4: Likewise.
94381
94382         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
94383         AC_CHECK_DECLS, now that autoconf requires that.
94384
94385 2000-05-22  Jim Meyering  <meyering@lucent.com>
94386
94387         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94388         * m4/lstat.m4: Likewise.
94389
94390 2000-05-22  Jim Meyering  <meyering@lucent.com>
94391
94392         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
94393
94394 2000-05-20  Jim Meyering  <meyering@lucent.com>
94395
94396         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
94397         (jm_PREREQ): Use it.
94398
94399 2000-05-18  Jim Meyering  <meyering@lucent.com>
94400
94401         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
94402         back, too, since it may have been modified by allocate_entry.
94403         (hash_delete): Rewrite to use neither the assignment operator
94404         nor the comma operator in an if-expression.
94405
94406 2000-05-15  Paul Eggert  <eggert@twinsun.com>
94407
94408         * lib/closeout.c:
94409         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
94410         Remove; no longer needed.
94411         "quotearg.h": Add include.
94412         (file_name): Do not bother to explicitly initialize to NULL; it's less
94413         efficient on some hosts.
94414         (close_stdout_status): Remove test as to whether stdout was already
94415         closed; it breaks for the case "echo x | sort >&-".
94416         Quote file name colons.
94417         Do not assume that _("write error") lacks format strings.
94418
94419 2000-05-15  Jim Meyering  <meyering@lucent.com>
94420
94421         * lib/version-etc.c (version_etc_copyright): Update the copyright
94422         string used in all --version output.
94423
94424 2000-05-14  Jim Meyering  <meyering@lucent.com>
94425
94426         * lib/closeout.c (close_stdout_set_file_name): New function.
94427         (close_stdout_status): Use new file-scoped global.
94428         Return right away if fstat says the stdout file descriptor is invalid.
94429         * lib/closeout.h (close_stdout_set_file_name): Declare.
94430
94431 2000-05-10  Jim Meyering  <meyering@lucent.com>
94432
94433         * lib/closeout.c [default_exit_status]: New file-scoped variable.
94434         (close_stdout_set_status): New function.
94435         * lib/closeout.h (close_stdout_set_status): Declare.
94436
94437 2000-05-09  Jim Meyering  <meyering@lucent.com>
94438
94439         * m4/gettext.m4: Rename this...
94440         * m4/libintl.m4: ...to this.
94441
94442 2000-05-08  Jim Meyering  <meyering@lucent.com>
94443
94444         * lib/long-options.c: Don't include closeout.h.
94445         (parse_long_options): Don't call close_stdout for --version.
94446
94447 2000-05-06  Paul Eggert  <eggert@twinsun.com>
94448
94449         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
94450         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
94451         2.1.3 bug.  This avoids a clash when files like regex.c define
94452         _GNU_SOURCE.
94453
94454 2000-05-06  Jim Meyering  <meyering@lucent.com>
94455
94456         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
94457         (AC_REPLACE_FUNCS): Add strnlen.
94458
94459         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
94460         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
94461
94462         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
94463         AC_SEARCH_LIBS call for nanosleep.
94464         (LIB_NANOSLEEP): Set and AC_SUBST.
94465
94466 2000-05-06  Jim Meyering  <meyering@lucent.com>
94467
94468         * lib/strnlen.c: Undefine __strnlen and strnlen.
94469         [!weak_alias]: Define __strnlen to strnlen.
94470
94471         * lib/atexit.c: New file, from libiberty.
94472
94473 2000-05-06  Jim Meyering  <meyering@lucent.com>
94474
94475         * lib/closeout.c (close_stdout_status): Also check for errors on the
94476         stderr stream.
94477
94478 2000-05-05  Jim Meyering  <meyering@lucent.com>
94479
94480         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
94481         AC_SEARCH_LIBS call for clock_gettime.
94482         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
94483
94484         * m4/search-libs.m4: Update from autoconf.
94485
94486         su doesn't work on Solaris 2.6.
94487         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
94488         <shadow.h>.  Reported by Dragos Harabor.
94489
94490 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
94491
94492         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
94493         memcpy instead of xmalloc, xrealloc, path_concat.
94494         (locale_charset): Treat empty environment variables as absent.
94495         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
94496
94497 2000-05-04  Jim Meyering  <meyering@lucent.com>
94498
94499         * lib/getopt.c: Update from glibc.
94500         * lib/obstack.c: Likewise.
94501         * lib/obstack.h: Likewise.
94502         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
94503         file
94504
94505         * lib/regex.h: Likewise.
94506         * lib/strndup.c: Likewise.
94507         * lib/strnlen.c: New file, from glibc.
94508
94509 2000-05-03  Jim Meyering  <meyering@lucent.com>
94510
94511         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
94512
94513 2000-05-02  Paul Eggert  <eggert@twinsun.com>
94514
94515         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
94516         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
94517         compile-time test, rather than inspecting host and OS, to
94518         decide whether to define _LARGEFILE_SOURCE.
94519
94520 2000-05-01  Jim Meyering  <meyering@lucent.com>
94521
94522         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
94523
94524         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
94525         Based on a patch from Bruno Haible.
94526
94527 2000-05-01  Jim Meyering  <meyering@lucent.com>
94528
94529         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
94530
94531 2000-04-29  Jim Meyering  <meyering@lucent.com>
94532
94533         * lib/path-concat.c: Declare strdup only if it's not defined.
94534         * lib/canon-host.c: Likewise.
94535
94536 2000-04-28  Jim Meyering  <meyering@lucent.com>
94537
94538         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
94539         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
94540         is included first, then limits.h is included by locale.h by libintl.h.
94541         From John David Anglin.
94542
94543 2000-04-25  Jim Meyering  <meyering@lucent.com>
94544
94545         * lib/makepath.c (S_IRWXUGO): Define.
94546         (make_path): Always perform explicit chmod if MODE specifies any
94547         of the `special' permission bits.  Prompted by a bug report against
94548         install from Mate Wierdl and Joost van Baal.
94549
94550 2000-04-18  Jim Meyering  <meyering@lucent.com>
94551
94552         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
94553         (jm_PREREQ): Use it.
94554
94555 2000-04-18  Jim Meyering  <meyering@lucent.com>
94556
94557         * lib/README: New file.
94558
94559         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
94560         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
94561
94562 2000-04-17  Jim Meyering  <meyering@lucent.com>
94563
94564         Get it right :-)
94565         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
94566         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
94567         Suggestion from Akim Demaille.
94568
94569 2000-04-17  Jim Meyering  <meyering@lucent.com>
94570
94571         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
94572         the definition of it to rpl_strftime also defined-away the system's
94573         declaration.
94574
94575 2000-04-15  Jim Meyering  <meyering@lucent.com>
94576
94577         Use `C' to denote so-called `contiguous' files, the same way
94578         that tar does.
94579         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
94580         (ftypelet): Use S_ISCTG.
94581         From Michael Deutschmann.
94582
94583 2000-04-14  Jim Meyering  <meyering@lucent.com>
94584
94585         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
94586         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
94587         clobbered.
94588
94589 2000-04-14  Jim Meyering  <meyering@lucent.com>
94590
94591         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
94592
94593 2000-04-13  Jim Meyering  <meyering@lucent.com>
94594
94595         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
94596         AH_VERBATIM to insert required #ifndef into config.h.in.
94597         Suggestion from Akim Demaille.
94598
94599 2000-04-12  Jim Meyering  <meyering@lucent.com>
94600
94601         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
94602         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
94603         Christian Krackowizer.
94604
94605         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
94606         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
94607         (AC_SYS_LARGEFILE): Require.
94608         (AM_C_PROTOTYPES): Require.
94609
94610 2000-04-08  Jim Meyering  <meyering@lucent.com>
94611
94612         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
94613         names don't conflict.  Reported by Eli Zaretskii.
94614
94615 2000-04-07  Jim Meyering  <meyering@lucent.com>
94616
94617         * lib/putenv.c: Move inclusion of errno.h so it follows that of
94618         sys/types.h, to work around system header problems on AIX 3.2.5.
94619         From Bruno Haible.
94620
94621 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
94622
94623         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
94624         bug.  Deal with the different error behavior of Irix iconv.
94625
94626 2000-04-05  Paul Eggert  <eggert@twinsun.com>
94627
94628         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
94629         IRIX if the installer said otherwise.
94630
94631 2000-04-05  Jim Meyering  <meyering@lucent.com>
94632
94633         Portability tweaks required for ultrix4.3.
94634         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
94635         (jm_CHECK_DECLS): Add getutent to the list of functions.
94636         (_jm_DECL_HEADERS): Add utmpx.h.
94637         From John David Anglin.
94638
94639         * m4/strftime.m4: Back out the 2000-04-02 change.
94640         Instead of that change, simply undefine putenv in the test program.
94641
94642 2000-04-05  Jim Meyering  <meyering@lucent.com>
94643
94644         Portability tweaks required for ultrix4.3.
94645         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
94646         getutent.
94647         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
94648         * lib/canon-host.c: Declare strdup.
94649         * lib/path-concat.c: Likewise.
94650         From John David Anglin.
94651
94652 2000-04-04  Jim Meyering  <meyering@lucent.com>
94653
94654         Be more DOS 8.3-friendly.
94655         * lib/ref-add.sin: Renamed from ref-add.sed.in.
94656         * lib/ref-del.sin: Renamed from ref-del.sed.in.
94657         * lib/Makefile.am: Reflect renaming.
94658         Reported by Eli Zaretskii.
94659
94660         Use a temporary file name that won't clash with `charset.alias'
94661         in the DOS 8.3 name space.
94662         * lib/Makefile.am (charset_tmp): Define.
94663         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
94664         (uninstall-local): Likewise.
94665         Reported by Eli Zaretskii.
94666
94667 2000-04-03  Jim Meyering  <meyering@lucent.com>
94668
94669         * m4/gettext.m4: Fix typo in comment.
94670
94671         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
94672         textutils/configure.in).  Suggestion from Paul Eggert.
94673         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
94674
94675 2000-04-02  Paul Eggert  <eggert@twinsun.com>
94676
94677         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
94678         variable in the shell rather than using putenv, which isn't
94679         portable.  This avoids the configure-time inter-test dependency
94680         on the potentially-renamed putenv function.
94681
94682 2000-03-30  Paul Eggert  <eggert@twinsun.com>
94683
94684         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
94685         before checking struct stat.st_blksize, so that
94686         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
94687
94688 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94689
94690         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
94691         since strftime.c uses HAVE_STRFTIME to decide whether to use
94692         the underlying strftime.
94693
94694 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94695
94696         * lib/time/strftime.c (my_strftime): Make sure we call the system
94697         strftime, not ourselves, when invoking the underlying strftime.
94698
94699 2000-03-24  Jim Meyering  <meyering@lucent.com>
94700
94701         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
94702         (charset_alias): Define.
94703         (install-exec-local): Factor out common code.
94704         (uninstall-local): Split lines longer than 80.
94705         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
94706         (SUFFIXES): Define.
94707         (.sed.in.sed): New rule.  Don't redirect directly to $@.
94708         (CLEANFILES): Add ref-add.sed and ref-del.sed.
94709
94710 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
94711
94712         * lib/config.charset: Output a line containing "Packages using this
94713         file".
94714         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
94715         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
94716         ref-del.sed): New rules.
94717
94718 2000-03-17  Jim Meyering  <meyering@lucent.com>
94719
94720         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
94721         Otherwise, include <strings.h>
94722
94723 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
94724
94725         * lib/unicodeio.c (utf8_wctomb): New function.
94726         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
94727         format instead of in UCS-4 with platform dependent endianness.
94728
94729 2000-03-10  Jim Meyering  <meyering@lucent.com>
94730
94731         * m4/lib-check.m4: Look for getspnam in -lgen, too.
94732         From Marco Franzen.
94733
94734 2000-03-07  Paul Eggert  <eggert@twinsun.com>
94735
94736         * lib/savedir.c (savedir): Work even if directory size is
94737         negative; this can happen with some screwy NFS configurations.
94738
94739 2000-03-06  Jim Meyering  <meyering@lucent.com>
94740
94741         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
94742         if it's NULL (because we ran out of memory).  From Bruno Haible.
94743
94744 2000-03-05  Jim Meyering  <meyering@lucent.com>
94745
94746         * lib/localcharset.c ("path-concat.h"): Include.
94747         (get_charset_aliases): Use path_concat instead of ANSI string
94748         concatenation.
94749
94750         * lib/unicodeio.h (PARAMS): Define.
94751         Use it to guard prototype.
94752
94753 2000-03-04  Jim Meyering  <meyering@lucent.com>
94754
94755         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
94756         for lib/localcharset.c.
94757
94758 2000-03-04  Jim Meyering  <meyering@lucent.com>
94759
94760         * lib/Makefile.am (install-exec-local): Create $(libdir) before
94761         installing into it.
94762         (uninstall-local): Uncomment this rule so `make distcheck' works
94763         once again.
94764
94765         * lib/unicodeio.c (<errno.h>): Include it.
94766         (errno): Declare if not defined.
94767
94768         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
94769
94770         * lib/config.charset: New version, incorporating remarks from a linux
94771         i18n mailing list.  From Bruno Haible.
94772
94773 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
94774
94775         * m4/codeset.m4: New file.
94776         * m4/iconv.m4: New file.
94777         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
94778
94779 2000-03-03  Jim Meyering  <meyering@lucent.com>
94780
94781         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
94782
94783 2000-03-02  Jim Meyering  <meyering@lucent.com>
94784
94785         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
94786         the messages come out on separate lines.
94787
94788         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
94789         rather than jm_CHECK_DECLARATIONS.
94790         * m4/decl.m4: Remove now-unused file.
94791
94792         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
94793         geteuid.
94794
94795 2000-03-02  Jim Meyering  <meyering@lucent.com>
94796
94797         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
94798
94799 2000-03-01  Jim Meyering  <meyering@lucent.com>
94800
94801         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
94802         * lib/unicodeio.c: Likewise.
94803
94804 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
94805
94806         * lib/config.charset: New file.
94807         * lib/localcharset.c: New file.
94808         * lib/unicodeio.h, lib/unicodeio.c: New files.
94809         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
94810         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
94811         (noinst_HEADERS): Add unicodeio.h.
94812         (all-local, install-exec-local, charset.alias): New targets.
94813
94814 2000-02-28  Paul Eggert  <eggert@twinsun.com>
94815
94816         * lib/quotearg.c (ALERT_CHAR): New macro.
94817         (quotearg_buffer_restyled): Use it.
94818
94819 2000-02-27  Jim Meyering  <meyering@lucent.com>
94820
94821         * m4/check-decl.m4: Add getenv to the list.
94822
94823 2000-02-27  Jim Meyering  <meyering@lucent.com>
94824
94825         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
94826         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
94827
94828         * lib/backupfile.c: Guard inclusion of stdlib.h with
94829         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
94830         Declare malloc if needed.
94831
94832         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
94833         `#ifndef HAVE_DECL..'
94834         now that autoconf always defines the HAVE_DECL_ symbols.
94835         * lib/human.c: Likewise.
94836         * lib/same.c: Likewise.
94837         * lib/strtoumax.c: Likewise.
94838
94839         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
94840         declaration check was not run.
94841         * lib/hash.c: Likewise.
94842         * lib/human.c: Likewise.
94843         * lib/same.c: Likewise.
94844         * lib/strtoumax.c: Likewise.
94845
94846         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
94847         `.', then first look up the entire `.'-containing string as a login
94848         name.
94849
94850 2000-02-23  Jim Meyering  <meyering@lucent.com>
94851
94852         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
94853         in place of my hack.
94854
94855 2000-02-18  Paul Eggert  <eggert@twinsun.com>
94856
94857         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
94858         (textint): New typedef.
94859         (parser_control): Member year changed from int to textint.
94860         All uses changed.
94861         (YYSTYPE): Removed; replaced by %union with int and textint members.
94862         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
94863         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
94864         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
94865         (tSNUMBER, tUNUMBER): Now of type <textintval>.
94866         (date, number, to_year): Use width of number in digits, not its value,
94867         to determine whether it's a 2-digit year, or a 2-digit time.
94868         (yylex): Store number of digits of numeric tokens.
94869         Reported by John Kendall.
94870
94871         (parser_control): Changed from struct parser_control to typedef (for
94872         consistency).  All uses changed.
94873
94874         (tID): Removed; not used.
94875         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
94876
94877 2000-02-14  Paul Eggert  <eggert@twinsun.com>
94878
94879         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
94880         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
94881
94882 2000-02-12  Jim Meyering  <meyering@lucent.com>
94883
94884         * lib/userspec.c (ISDIGIT): Define it.
94885         (isdigit): Remove definition.
94886         (is_number): Use ISDIGIT, not isdigit.
94887         <libintl.h>: Include.
94888         (_ and N_): Define.
94889         (parse_user_spec): Mark translatable strings.
94890
94891 2000-02-10  Jim Meyering  <meyering@lucent.com>
94892
94893         With these changes, nanosleep.[ch] are finally enough like the other
94894         lib/* replacement files to compile on a few more losing systems.
94895
94896         * lib/nanosleep.h: Don't include config.h.
94897         Remove prototype from declaration of nanosleep.
94898         (PARAMS): Remove now-unneeded definition.
94899         * lib/nanosleep.c: #undef nanosleep.
94900         (rpl_nanosleep): Rename from nanosleep.
94901
94902 2000-02-10  Jim Meyering  <meyering@lucent.com>
94903
94904         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
94905         gnu_nanosleep to rpl_nanosleep.
94906
94907 2000-02-09  Jim Meyering  <meyering@lucent.com>
94908
94909         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
94910         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
94911
94912 2000-02-08  Akim Demaille  <akim@epita.fr>
94913
94914         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
94915         `[' and `]' and remove uses of `changequote'.
94916         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
94917         (AC_SYS_LARGEFILE): Likewise.
94918         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
94919         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
94920         of changequote.
94921         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
94922         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
94923         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
94924         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
94925
94926 2000-02-05  Jim Meyering  <meyering@lucent.com>
94927
94928         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
94929         Remove explicit use of AC_HEADER_TIME.  It is required by
94930         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
94931         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
94932         in autoconf whereby the expansion of the latter ended up preceding
94933         the expansion of its prerequisite, AC_HEADER_TIME.
94934         Reported by Volker Borchert.
94935
94936 2000-02-03  Jim Meyering  <meyering@lucent.com>
94937
94938         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
94939
94940 2000-02-03  Jim Meyering  <meyering@lucent.com>
94941
94942         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
94943         rather than with `#if HAVE_UTMPNAME'.
94944
94945 2000-02-02  Jim Meyering  <meyering@lucent.com>
94946
94947         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
94948         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
94949         Reported by Eli Zaretskii.
94950
94951 2000-02-01  Jim Meyering  <meyering@lucent.com>
94952
94953         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
94954
94955 2000-01-31  Jim Meyering  <meyering@lucent.com>
94956
94957         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
94958         functions.  Add the time.h and sys/time.h headers along with the
94959         AC_REQUIRE'ment of AC_HEADER_TIME.
94960
94961 2000-01-31  Jim Meyering  <meyering@lucent.com>
94962
94963         * lib/nanosleep.h (nanosleep): Guard declaration with
94964         `#if ! HAVE_DECL_NANOSLEEP'.
94965         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
94966         the declaration in that vendor's sys/timers.h.
94967         Reported by Christian Krackowizer.
94968
94969         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
94970         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
94971         (ISPRINT): Likewise.
94972         Reported by Tom Tromey.
94973
94974 2000-01-30  Jim Meyering  <meyering@lucent.com>
94975
94976         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
94977
94978         * m4/prereq.m4 (utmp_includes): Define.
94979         Check for ut_user and ut_name members in both struct utmpx
94980         and struct utmp.
94981
94982 2000-01-30  Jim Meyering  <meyering@lucent.com>
94983
94984         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
94985         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
94986         header files where only utmpx.ut_user is declared.
94987
94988         * lib/readutmp.h (UT_USER): Define.
94989
94990 2000-01-29  Jim Meyering  <meyering@lucent.com>
94991
94992         * m4/lib-check.m4: New file containing library-related checks from
94993         fileutils and sh-utils (textutils had none).
94994
94995 2000-01-28  Jim Meyering  <meyering@lucent.com>
94996
94997         * m4/perl.m4: Change format of warning message to look more like that
94998         from the missing script.  Suggestion from François Pinard.
94999
95000 2000-01-25  Jim Meyering  <meyering@lucent.com>
95001
95002         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
95003         well as time.h in the compile check.
95004         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
95005         Fix typo in cross-compiling case: s/yes/no/.
95006
95007 2000-01-23  Jim Meyering  <meyering@lucent.com>
95008
95009         * m4/jm-macros.m4: Move df-related tests here from
95010         fileutils/configure.in
95011
95012         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
95013         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
95014
95015         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
95016         s/space/ac_fsusage_space/.
95017         (jm_FILE_SYSTEM_USAGE): Take two parameters.
95018
95019         * m4/ftruncate.m4: New file (derived from part of
95020         fileutils/configure.in).
95021         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
95022         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
95023
95024         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
95025         AC_SUBST these here, rather than just in sh-util/configure.in, so
95026         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
95027         all the same.
95028         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
95029         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
95030         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
95031         (AC_SUBST(POW_LIBM)): Likewise.
95032         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
95033
95034 2000-01-23  Jim Meyering  <meyering@lucent.com>
95035
95036         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
95037         obstack.c.
95038
95039 2000-01-22  Jim Meyering  <meyering@lucent.com>
95040
95041         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
95042
95043         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
95044
95045         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
95046         configure.in
95047         (AC_CHECK_HEADERS): Likewise for sh-utils.
95048         (AC_CHECK_HEADERS): Likewise for textutils.
95049         Merge the three lists of headers.
95050
95051         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
95052         from fileutils' configure.in.
95053
95054         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
95055         code. Moved tests into their own function (_jm_DECL_HEADERS) in
95056         check-decl.m4.
95057
95058         * m4/check-decl.m4: Use #if rather than #ifdef.
95059         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
95060         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
95061         (_jm_DECL_HEADERS): Define new function.
95062         (jm_CHECK_DECLARATIONS): Require it.
95063
95064 2000-01-22  Jim Meyering  <meyering@lucent.com>
95065
95066         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
95067         [! HAVE_DECL_STRTOULL]: Declare strtoull.
95068         Required for some AIX systems.  Reported by Christian Krackowizer.
95069         [TESTING] (main): New function.
95070
95071         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
95072         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
95073         letters.
95074
95075         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
95076         iswprint.
95077
95078         * lib/strverscmp.c (ISDIGIT): Define.
95079         (strverscmp): Use ISDIGIT, not isdigit.
95080
95081 2000-01-19  Jim Meyering  <meyering@lucent.com>
95082
95083         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
95084         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
95085         defines `struct timespec' in <sys/time.h>
95086
95087         * m4/c-bs-a.m4: Remove uses of changequote altogether.
95088         Thanks to Akim for explaining.
95089
95090 2000-01-17  Paul Eggert  <eggert@twinsun.com>
95091
95092         * lib/nanosleep.c (nanosleep):
95093         Don't use SA_INTERRUPT to decide whether to call sigaction, as
95094         POSIX.1 doesn't require SA_INTERRUPT and some systems
95095         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
95096         it's been part of POSIX.1 since day 1 (in 1988).
95097
95098 2000-01-17  Jim Meyering  <meyering@lucent.com>
95099
95100         * lib/interlock: Remove unused file.  Reported by François Pinard.
95101
95102 2000-01-16  Paul Eggert  <eggert@twinsun.com>
95103
95104         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
95105         alert, backslash, formfeed, and vertical tab unnecessarily in
95106         shell quoting style.
95107
95108 2000-01-16  Jim Meyering  <meyering@lucent.com>
95109
95110         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
95111         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
95112         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
95113         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
95114
95115 2000-01-16  Jim Meyering  <meyering@lucent.com>
95116
95117         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
95118         because the latter didn't work.
95119
95120 2000-01-15  Jim Meyering  <meyering@lucent.com>
95121
95122         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
95123         (AC_REPLACE_FUNCS): Add memcpy and memset.
95124         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
95125         Add strpbrk.
95126         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
95127
95128 2000-01-12  Jim Meyering  <meyering@lucent.com>
95129
95130         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
95131         (jm_PREREQ): Use it.
95132         (jm_PREREQ_READUTMP): New macro.
95133         (jm_PREREQ): Use it.
95134
95135 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95136
95137         Quote multibyte characters correctly.
95138         * m4/c-bs-a.m4: New file.
95139         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
95140         (jm_PREREQ): Use it.
95141
95142 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95143
95144         * m4/uintmax_t.m4: Port to autoconf 2.13.
95145
95146 2000-01-08  Jim Meyering  <meyering@ascend.com>
95147
95148         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
95149         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
95150
95151 2000-01-04  Jim Meyering  <meyering@ascend.com>
95152
95153         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
95154         jm_STRUCT_DIRENT_D_TYPE.
95155         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
95156         jm_STRUCT_DIRENT_D_INO.
95157         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
95158         jm_STRUCT_UTIMBUF.
95159         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
95160         renamings.
95161         * m4/utime.m4: Likewise.
95162
95163         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
95164         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
95165
95166 2000-01-03  Paul Eggert  <eggert@twinsun.com>
95167
95168         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
95169         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
95170
95171 2000-01-02  Jim Meyering  <meyering@ascend.com>
95172
95173         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
95174         remember if this is necessary.
95175
95176 1999-12-26  Jim Meyering  <meyering@ascend.com>
95177
95178         * m4/jm-macros.m4: Use it here.
95179         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
95180
95181 1999-12-23  Jim Meyering  <meyering@ascend.com>
95182
95183         * m4/jm-macros.m4: Check for clock_gettime (moved from
95184         fileutils/configure.in)
95185         Check for gettimeofday.
95186
95187 1999-12-20  Jim Meyering  <meyering@ascend.com>
95188
95189         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
95190         autoconf-2.14a-1999-12-20.
95191
95192 1999-12-19  Jim Meyering  <meyering@ascend.com>
95193
95194         * m4/lstat-slash.m4: New file.
95195         * m4/jm-macros.m4: Use the new macro:
95196         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95197
95198 1999-12-07  Jim Meyering  <meyering@ascend.com>
95199
95200         * m4/perl.m4: Require that File::Compare be available, too.
95201         Too many systems seem to lack it.
95202
95203         * m4/strftime.m4: Add checks for most of the cpp macros tested in
95204         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
95205
95206 1999-11-18  Paul Eggert  <eggert@twinsun.com>
95207
95208         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
95209         problem with the QNX 4.25 shell, which doesn't propagate exit
95210         status of failed commands inside shell assignments.
95211
95212 1999-11-17  Jim Meyering  <meyering@ascend.com>
95213
95214         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
95215
95216 1999-11-07  Jim Meyering  <meyering@ascend.com>
95217
95218         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
95219
95220 1999-11-06  Jim Meyering  <meyering@ascend.com>
95221
95222         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
95223         * m4/jm-macros.m4 (jm_MACROS): Use it here.
95224
95225 1999-11-05  Jim Meyering  <meyering@ascend.com>
95226
95227         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
95228         configure.in of textutils, fileutils, and sh-utils into this one
95229         (shared between those packages) file.
95230         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
95231         AC_STRUCT_ST_BLKSIZE.
95232
95233 1999-11-03  Jim Meyering  <meyering@ascend.com>
95234
95235         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
95236         of AC_CHECK_TYPE checks includes unistd.h.
95237         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
95238         Suggestion from Akim Demaille.
95239
95240 1999-10-30  Jim Meyering  <meyering@ascend.com>
95241
95242         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
95243         m4-quoted string.
95244         * m4/ls-mntd-fs.m4: Likewise.
95245         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
95246         * m4/jm-winsz1.m4: Likewise.
95247
95248         * m4/const.m4: Remove file, since the fix made it into the experimental
95249         version of autoconf.
95250         * m4/mktime.m4: Likewise.
95251
95252         * m4/check-type.m4: Remove file, now that the latest version of
95253         AC_CHECK_TYPE takes a third arg to specify additional #includes.
95254
95255         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
95256         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
95257         AC_CHECK_TYPE.
95258
95259 1999-10-04  Jim Meyering  <meyering@ascend.com>
95260
95261         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
95262
95263 1999-09-22  Paul Eggert  <eggert@twinsun.com>
95264
95265         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
95266         2.95.1 bug with HP-UX 10.20.
95267
95268 1999-09-17  Jim Meyering  <meyering@ascend.com>
95269
95270         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
95271         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
95272         due to missing strdup (against sh-utils-2.0).
95273
95274 1999-08-29  Jim Meyering  <meyering@ascend.com>
95275
95276         * m4/jm-macros.m4: Require jm_BISON.
95277         * m4/bison.m4: New file.
95278
95279 1999-08-17  Paul Eggert  <eggert@twinsun.com>
95280
95281         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
95282         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
95283
95284 1999-08-05  Jim Meyering  <meyering@ascend.com>
95285
95286         * m4/getline.m4: Rename test file from conftestdata to conftest.data
95287         to avoid conflicts with `conftest' on 8+3 filesystems.
95288         Suggestion from Eli Zaretskii.
95289
95290 1999-08-04  Jim Meyering  <meyering@ascend.com>
95291
95292         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
95293         fileutils and sh-utils (textutils's getline test was inadequate).
95294         (AM_FUNC_GETLINE): Run this test.
95295         (AC_CHECK_FUNCS): Check for getdelim.
95296         Reported by Bob Proulx.
95297
95298 1999-08-02  Jim Meyering  <meyering@ascend.com>
95299
95300         * m4/jm-macros.m4: Add a comment.
95301
95302 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95303
95304         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
95305         <inttypes.h> defines strtoumax as a macro (and not as a
95306         function).
95307
95308 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95309
95310         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
95311         that we can shift, multiply and divide unsigned long long
95312         values; Ultrix cc can't do it.
95313
95314 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95315
95316         * m4/mktime.m4: New file, which is a preview of what should appear
95317         in the next public autoconf release.
95318
95319 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95320
95321         * m4/lfs.m4: Remove this file.
95322         * m4/largefile.m4: New file.  It contains the old contents of
95323         lfs.m4, except that all names with prefix AC_LFS have been
95324         changed to use the prefix AC_SYS_LARGEFILE instead, to be
95325         compatible with future autoconf versions.  Also, some minor m4
95326         quoting problems have been fixed.
95327
95328 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95329
95330         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
95331         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
95332         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
95333         and simplify the shell code.
95334
95335 1999-08-01  Jim Meyering  <meyering@ascend.com>
95336
95337         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
95338         m4.
95339
95340 1999-07-20  Jim Meyering  <meyering@ascend.com>
95341
95342         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
95343
95344 1999-07-15  Jim Meyering  <meyering@ascend.com>
95345
95346         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
95347
95348 1999-05-22  Jim Meyering  <meyering@ascend.com>
95349
95350         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
95351
95352 1999-05-20  Jim Meyering  <meyering@ascend.com>
95353
95354         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
95355         Add a colon after each `then' in case $4 is empty.
95356
95357 1999-05-16  Jim Meyering  <meyering@ascend.com>
95358
95359         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
95360
95361 1999-05-10  Jim Meyering  <meyering@ascend.com>
95362
95363         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
95364
95365         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
95366         AC_FUNC_MKTIME.
95367
95368 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
95369
95370         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
95371
95372 1999-05-04  Paul Eggert  <eggert@twinsun.com>
95373
95374         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
95375         not CPPFLAGS, so that linking works correctly in IRIX.
95376
95377 1999-04-30  Paul Eggert  <eggert@twinsun.com>
95378
95379         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
95380
95381 1999-04-20  Paul Eggert  <eggert@twinsun.com>
95382
95383         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
95384         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
95385         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
95386         jm_AC_TYPE_UNSIGNED_LONG_LONG.
95387         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
95388
95389         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
95390
95391 1999-04-20  Jim Meyering  <meyering@ascend.com>
95392
95393         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
95394         AC_REPLACE xstroull if necessary.  From Paul Eggert.
95395         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
95396
95397 1999-04-18  Jim Meyering  <meyering@ascend.com>
95398
95399         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
95400         * m4/jm-macros.m4: Use it.
95401
95402 1999-04-06  Jim Meyering  <meyering@ascend.com>
95403
95404         * m4/strftime.m4: Remove test for %f.
95405
95406 1999-03-29  Jim Meyering  <meyering@ascend.com>
95407
95408         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
95409         superset of the AC_TYPE_* checks in the textutils, fileutils,
95410         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
95411         AC_TYPE_PID_T.
95412
95413 1999-03-28  Jim Meyering  <meyering@ascend.com>
95414
95415         * m4/jm-macros.m4: Define GNU_PACKAGE here.
95416         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
95417         replaced e.g., in the *.sh files of the sh-utils.
95418
95419 1999-03-20  Jim Meyering  <meyering@ascend.com>
95420
95421         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
95422         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
95423         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
95424
95425 1999-03-19  Jim Meyering  <meyering@ascend.com>
95426
95427         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
95428
95429 1999-03-12  Jim Meyering  <meyering@ascend.com>
95430
95431         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
95432
95433 1999-03-07  Jim Meyering  <meyering@ascend.com>
95434
95435         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
95436         declared.
95437
95438 1999-02-17  Jim Meyering  <meyering@ascend.com>
95439
95440         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
95441         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
95442
95443 1999-02-07  Jim Meyering  <meyering@ascend.com>
95444
95445         * m4/group-member.m4: New file -- extracted from sh-utils'
95446         configure.in.
95447
95448         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
95449         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
95450
95451 1999-02-06  Jim Meyering  <meyering@ascend.com>
95452
95453         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
95454         * m4/fnmatch.m4: Likewise.
95455         * m4/getgroups.m4: Likewise.
95456         * m4/lstat.m4: Likewise.
95457         * m4/malloc.m4: Likewise.
95458         * m4/putenv.m4: Likewise.
95459         * m4/realloc.m4: Likewise.
95460         * m4/regex.m4: Likewise.
95461         * m4/stat.m4: Likewise.
95462         * m4/strftime.m4: Likewise.
95463         Suggestion from Alain Magloire.
95464
95465         * m4/chown.m4: Use `.$ac_objext', not `.o'.
95466         * m4/fnmatch.m4: Likewise.
95467         * m4/getgroups.m4: Likewise.
95468         * m4/getline.m4: Likewise.
95469         * m4/lstat.m4: Likewise.
95470         * m4/malloc.m4: Likewise.
95471         * m4/memcmp.m4: Likewise.
95472         * m4/putenv.m4: Likewise.
95473         * m4/realloc.m4: Likewise.
95474         * m4/regex.m4: Likewise.
95475         * m4/stat.m4: Likewise.
95476         * m4/strftime.m4: Likewise.
95477         Suggestion from Alain Magloire.
95478
95479         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
95480         an argument.
95481
95482         * m4/regex.m4: Add a run-time Test for proper operation of
95483         re_compile_pattern.
95484
95485 1999-01-31  Jim Meyering  <meyering@ascend.com>
95486
95487         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
95488
95489 1999-01-30  Jim Meyering  <meyering@ascend.com>
95490
95491         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
95492
95493         * m4/jm-mktime.m4: Make this a wrapper around the official
95494         AM_FUNC_MKTIME rather than my private copy, now that the official one
95495         is up to date.
95496         * m4/mktime.m4: Remove file.
95497
95498         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
95499         * m4/uptime.m4: Likewise.
95500         * m4/uintmax_t.m4: Likewise.
95501
95502 1999-01-28  Jim Meyering  <meyering@ascend.com>
95503
95504         * m4/jm-macros.m4: Use jm_AFS.
95505         * m4/afs.m4: New file (from fileutils' configure.in).
95506
95507         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
95508         * m4/chown.m4: Likewise.
95509         * m4/d-ino.m4: Likewise.
95510         * m4/d-type.m4: Likewise.
95511         * m4/fnmatch.m4: Likewise.
95512         * m4/getgroups.m4: Likewise.
95513         * m4/gettext.m4: Likewise.
95514         * m4/jm-mktime.m4: Likewise.
95515         * m4/jm-winsz2.m4: Likewise.
95516         * m4/lcmessage.m4: Likewise.
95517         * m4/ls-mntd-fs.m4: Likewise.
95518         * m4/malloc.m4: Likewise.
95519         * m4/memcmp.m4: Likewise.
95520         * m4/putenv.m4: Likewise.
95521         * m4/realloc.m4: Likewise.
95522         * m4/st_mtim.m4: Likewise.
95523         * m4/strftime.m4: Likewise.
95524
95525 1999-01-16  Jim Meyering  <meyering@ascend.com>
95526
95527         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
95528         (ARGMATCH_DIE_DECL): Define.
95529
95530 1999-01-12  Jim Meyering  <meyering@ascend.com>
95531
95532         * m4/Makefile.am.in: Rewrite to avoid using fmt.
95533         Reported by Lars Hecking.
95534
95535 1999-01-10  Jim Meyering  <meyering@ascend.com>
95536
95537         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
95538         gross kludge.
95539         * m4/inttypes_h.m4: Likewise.
95540         * m4/lstat.m4: Likewise.
95541         * m4/malloc.m4: Likewise.
95542         * m4/readdir.m4: Likewise.
95543         * m4/realloc.m4: Likewise.
95544         * m4/st_dm_mode.m4: Likewise.
95545         * m4/stat.m4: Likewise.
95546         * m4/utimbuf.m4: Likewise.
95547         * m4/utimes.m4: Likewise.
95548
95549         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
95550         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
95551         comments in config.h.in are meaningful.
95552
95553         * m4/jm-macros.m4: Require autoconf-2.13 here.
95554
95555         * m4/regex.m4: By default, don't use the included regex.c on systems
95556         with glibc 2.  Suggestion from Uli Drepper.
95557
95558 1999-01-02  Jim Meyering  <meyering@ascend.com>
95559
95560         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
95561
95562 1998-12-18  Jim Meyering  <meyering@ascend.com>
95563
95564         * m4/Makefile.am.in (Makefile.am): Simplify rule.
95565         Based on a suggestion from Lars Hecking.
95566
95567 1998-11-16  Paul Eggert  <eggert@twinsun.com>
95568
95569         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
95570
95571 1998-11-16  Jim Meyering  <meyering@ascend.com>
95572
95573         * m4/lfs.m4: Double-quote the `uname...` expression.
95574
95575 1998-11-14  Jim Meyering  <meyering@ascend.com>
95576
95577         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
95578         * m4/stat.m4: Likewise.
95579
95580 1998-11-03  Jim Meyering  <meyering@ascend.com>
95581
95582         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
95583         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
95584
95585 1998-10-18  Jim Meyering  <meyering@ascend.com>
95586
95587         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
95588
95589 1998-10-17  Jim Meyering  <meyering@ascend.com>
95590
95591         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
95592         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
95593         calls for those previously hard-coded headers.  Instead, take a new
95594         parameter.
95595         (jm_CHECK_DECLARATIONS): Reflect interface change.
95596         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
95597         (jm_CHECK_DECL_LOCALTIME_R): New macro.
95598
95599         * m4/mktime.m4: Test for spring-forward gap before long-running test.
95600
95601 1998-10-14  Jim Meyering  <meyering@ascend.com>
95602
95603         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
95604         instead of "TZ=America/Vancouver".  From Paul Eggert.
95605
95606 1998-10-11  Jim Meyering  <meyering@ascend.com>
95607
95608         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
95609         This adds a test for a recently added compatibility fix for mktime.c.
95610         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
95611
95612 1998-09-27  Jim Meyering  <meyering@ascend.com>
95613
95614         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
95615
95616         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
95617         ../configure.in, including a change from Gordon Matzigkeit to allow
95618         cross-compiling for the Hurd.
95619
95620         * m4/glibc.m4: New file/macro to test for the GNU C Library
95621         versions 1 and 2.  From Gordon Matzigkeit.
95622         Indent.
95623
95624 1998-09-21  Jim Meyering  <meyering@ascend.com>
95625
95626         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
95627
95628 1998-08-18  Paul Eggert  <eggert@twinsun.com>
95629
95630         Port nanosecond-resolution times to UnixWare 2.1.2 and
95631         pedantic Solaris 2.6.
95632
95633         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
95634         AC_STRUCT_ST_MTIM.
95635         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
95636         Generate name of ns member, instead of just 1 or undef.
95637         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
95638
95639 1998-08-15  Jim Meyering  <meyering@ascend.com>
95640
95641         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
95642         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
95643         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
95644         instead of jm_TYPE_SSIZE_T.
95645
95646 1998-08-12  Jim Meyering  <meyering@ascend.com>
95647
95648         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
95649
95650 1998-08-02  Jim Meyering  <meyering@ascend.com>
95651
95652         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
95653         in acconfig.h manually.
95654
95655 1998-07-31  Paul Eggert  <eggert@twinsun.com>
95656
95657         * m4/st_mtim.m4: New file.
95658
95659 1998-07-28  Jim Meyering  <meyering@ascend.com>
95660
95661         * m4/utimes.m4: Undef stat.
95662
95663 1998-07-25  Jim Meyering  <meyering@ascend.com>
95664
95665         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
95666         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
95667
95668 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
95669
95670         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
95671         uid and gid actually remain unchanged.
95672
95673 1998-07-07  Jim Meyering  <meyering@ascend.com>
95674
95675         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
95676
95677 1998-07-04  Jim Meyering  <meyering@ascend.com>
95678
95679         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
95680         to prove that this macro can be used in packages without regex.c.
95681
95682 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
95683
95684         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
95685         is to be used.
95686
95687 1998-07-03  Jim Meyering  <meyering@ascend.com>
95688
95689         * m4/gettext.m4: Add -lintl if it's found to be necessary.
95690
95691         * m4/gettext.m4: New file -- from gettext-0.10.35.
95692         * m4/lcmessage.m4: Likewise.
95693         * m4/progtest.m4: Likewise.
95694
95695         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
95696         * m4/jm-macros.m4: Require the new macro.
95697
95698 1998-06-29  Jim Meyering  <meyering@ascend.com>
95699
95700         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
95701         for the definition of NGROUPS (used in a system header included
95702         by sys/mount.h).
95703
95704 1998-06-28  Jim Meyering  <meyering@ascend.com>
95705
95706         * m4/ls-mntd-fs.m4: New file.
95707         * m4/fstypename.m4: New file.
95708
95709         * m4/jm-macros.m4: Require the new macro.
95710         * m4/jm-glibc-io.m4: New file.
95711
95712 1998-05-19  Jim Meyering  <meyering@ascend.com>
95713
95714         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
95715         * m4/lchown.m4: New file.
95716
95717         * m4/Makefile.am.in: New file.
95718         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
95719
95720 1998-05-14  Jim Meyering  <meyering@ascend.com>
95721
95722         * m4/Makefile.am (EXTRA_DIST): Add them.
95723         * m4/jm-macros.m4: New file.
95724         * m4/utimbuf.m4: New file.
95725
95726 1998-05-12  Jim Meyering  <meyering@ascend.com>
95727
95728         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
95729
95730 1998-05-11  Jim Meyering  <meyering@ascend.com>
95731
95732         * m4/isc-posix.m4: New file.
95733
95734 1998-05-10  Jim Meyering  <meyering@ascend.com>
95735
95736         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
95737
95738 1998-05-09  Jim Meyering  <meyering@ascend.com>
95739
95740         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
95741         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
95742         with automake.
95743
95744         * m4/ssize_t.m4: New file.
95745         * m4/mktime.m4: Remove file -- the new automake has this now.
95746
95747 1998-04-26  Jim Meyering  <meyering@ascend.com>
95748
95749         * m4/assert.m4: New file.
95750         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
95751
95752 1998-04-05  Jim Meyering  <meyering@ascend.com>
95753
95754         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
95755         (jm_PREREQ): Use it here.
95756
95757 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
95758
95759         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
95760         in acconfig.h.
95761
95762 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
95763
95764         * m4/prereq.m4: New file.
95765         * m4/error.m4: New file.
95766         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
95767
95768 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
95769
95770         * m4/getline.m4: Don't set am_cv_func_working_getline before the
95771         cache-check for the same variable -- that defeated the purpose of
95772         the test; the test program was never run.  This was a problem only
95773         on systems with losing getline functions -- HP-UX 10.20 is one.
95774         Reported by Bjorn Helgaas.
95775
95776 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
95777
95778         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
95779
95780 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
95781
95782         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
95783
95784         * m4/const.m4: New file.  Use an initializer in this declaration
95785         typedef int charset[2]; const charset x;
95786         Reported by Bob Glickstein.
95787
95788 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
95789
95790         * m4/chown.m4: Fix reversed types on -1 args to chown.
95791         From Kaveh Ghazi.
95792
95793 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
95794
95795         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
95796         Add lseek and memchr.
95797
95798         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
95799         T.E.Dickey <dickey@clark.net> said that some older preprocessors
95800         have a 20-character limit on names.
95801
95802 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
95803
95804         * m4/inttypes_h.m4: New file.
95805         * m4/uintmax_t.m4: New file.
95806         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
95807
95808
95809         -----
95810
95811         Local Variables:
95812         coding: utf-8
95813         End:
95814
95815         Copyright (C) 1997-2012 Free Software Foundation, Inc.
95816
95817         Copying and distribution of this file, with or without
95818         modification, are permitted provided the copyright notice
95819         and this notice are preserved.